[Pm-utils] [PATCH 1/2] Fix audio powersave script to look for snd_* modules

Chase Douglas chase.douglas at canonical.com
Tue Jun 8 12:44:10 PDT 2010


On Tue, 2010-06-08 at 15:34 -0400, Chase Douglas wrote:
> Without this change the snd_hda_intel module is skipped.
> 
> Signed-off-by: Chase Douglas <chase.douglas at canonical.com>
> ---
>  pm/power.d/intel-audio-powersave |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/pm/power.d/intel-audio-powersave b/pm/power.d/intel-audio-powersave
> index 2bf0a51..2402aea 100644
> --- a/pm/power.d/intel-audio-powersave
> +++ b/pm/power.d/intel-audio-powersave
> @@ -19,7 +19,7 @@ EOF
>  }
>  
>  audio_powersave() {
> -    for dev in /sys/module/snd_*_codec/parameters/power_save; do
> +    for dev in /sys/module/snd_*/parameters/power_save; do
>  	[ -w $dev ] && [ "$INTEL_AUDIO_POWERSAVE" = "true" ] && echo $1 > $dev
>      done
>  }
> @@ -31,4 +31,4 @@ case $1 in
>      *) exit $NA
>  esac
>  
> -exit 0
> \ No newline at end of file
> +exit 0

Hrm... I have no clue what this second hunk is about. There's no line in
the file like "\ No newline at end of file". Sounds like it could be a
git bug. I can resend if you want, or you can just drop it when you
commit it.

Thanks,

-- Chase



More information about the Pm-utils mailing list