powersave.txt 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. Notes on Power-Saving Mode
  2. ==========================
  3. AC97 and HD-audio drivers have the automatic power-saving mode.
  4. This feature is enabled via Kconfig CONFIG_SND_AC97_POWER_SAVE
  5. and CONFIG_SND_HDA_POWER_SAVE options, respectively.
  6. With the automatic power-saving, the driver turns off the codec power
  7. appropriately when no operation is required. When no applications use
  8. the device and/or no analog loopback is set, the power disablement is
  9. done fully or partially. It'll save a certain power consumption, thus
  10. good for laptops (even for desktops).
  11. The time-out for automatic power-off can be specified via power_save
  12. module option of snd-ac97-codec and snd-hda-intel modules. Specify
  13. the time-out value in seconds. 0 means to disable the automatic
  14. power-saving. The default value of timeout is given via
  15. CONFIG_SND_AC97_POWER_SAVE_DEFAULT and
  16. CONFIG_SND_HDA_POWER_SAVE_DEFAULT Kconfig options. Setting this to 1
  17. (the minimum value) isn't recommended because many applications try to
  18. reopen the device frequently. 10 would be a good choice for normal
  19. operations.
  20. The power_save option is exported as writable. This means you can
  21. adjust the value via sysfs on the fly. For example, to turn on the
  22. automatic power-save mode with 10 seconds, write to
  23. /sys/modules/snd_ac97_codec/parameters/power_save (usually as root):
  24. # echo 10 > /sys/modules/snd_ac97_codec/parameters/power_save
  25. Note that you might hear click noise/pop when changing the power
  26. state. Also, it often takes certain time to wake up from the
  27. power-down to the active state. These are often hardly to fix, so
  28. don't report extra bug reports unless you have a fix patch ;-)
  29. For HD-audio interface, there is another module option,
  30. power_save_controller. This enables/disables the power-save mode of
  31. the controller side. Setting this on may reduce a bit more power
  32. consumption, but might result in longer wake-up time and click noise.
  33. Try to turn it off when you experience such a thing too often.