RedHat iTOps Tube

Monday, April 23, 2012

Default time-out for HD-audio power-save mode - Leave On 'Zero'?

The 'Default time-out for HD-audio power-save mode', kernel help section says;

The default time-out value in seconds for HD-audio automatic power-save mode. 0 means to disable the power-save mode.

What I don't understand is that in the pm-utils there is the intel-audio-powersave which will enable or diable it;



# Allow the driver to put the audio hardware to sleep

# once the driver has been inactive for a second.

# This hook should work with at least the ac97 and hda codecs.


help() {

cat <<EOF


$0: Intel Audio powersave parameters.

This hook has 1 tuneable parameter.

INTEL_AUDIO_POWERSAVE = controls whether we will try to save power on battery.

Defaults to true.



audio_powersave() {

    [ "$INTEL_AUDIO_POWERSAVE" = "true" ] || exit $NA

    for dev in /sys/module/snd_*; do

        [ -w "$dev/parameters/power_save" ] || continue

        printf "Setting power savings for %s to %d..." "${dev##*/}" "$1"

        echo $1 > "$dev/parameters/power_save" && echo Done. || echo Failed.



case $1 in

    true) audio_powersave 1 ;;

    false) audio_powersave 0 ;;

    help) help;;

    *) exit $NA


exit 0

So in order to use intel-audio-powersave, I assumed I would compile in the kernel support 'Aggressive power-saving on HD-audio' - CONFIG_SND_HDA_POWER_SAVE: but then I'm confused should I leave the 'Default time-out for HD-audio power-save mode' on 0 for the kernel?