powersave.txt

来自「linux 内核源代码」· 文本 代码 · 共 42 行

TXT
42
字号
Notes on Power-Saving Mode==========================AC97 and HD-audio drivers have the automatic power-saving mode.This feature is enabled via Kconfig CONFIG_SND_AC97_POWER_SAVEand CONFIG_SND_HDA_POWER_SAVE options, respectively.With the automatic power-saving, the driver turns off the codec powerappropriately when no operation is required.  When no applications usethe device and/or no analog loopback is set, the power disablement isdone fully or partially.  It'll save a certain power consumption, thusgood for laptops (even for desktops).The time-out for automatic power-off can be specified via power_savemodule option of snd-ac97-codec and snd-hda-intel modules.  Specifythe time-out value in seconds.  0 means to disable the automaticpower-saving.  The default value of timeout is given viaCONFIG_SND_AC97_POWER_SAVE_DEFAULT andCONFIG_SND_HDA_POWER_SAVE_DEFAULT Kconfig options.  Setting this to 1(the minimum value) isn't recommended because many applications try toreopen the device frequently.  10 would be a good choice for normaloperations.The power_save option is exported as writable.  This means you canadjust the value via sysfs on the fly.  For example, to turn on theautomatic power-save mode with 10 seconds, write to/sys/modules/snd_ac97_codec/parameters/power_save (usually as root):	# echo 10 > /sys/modules/snd_ac97_codec/parameters/power_saveNote that you might hear click noise/pop when changing the powerstate.  Also, it often takes certain time to wake up from thepower-down to the active state.  These are often hardly to fix, sodon't report extra bug reports unless you have a fix patch ;-)For HD-audio interface, there is another module option,power_save_controller.  This enables/disables the power-save mode ofthe controller side.  Setting this on may reduce a bit more powerconsumption, but might result in longer wake-up time and click noise.Try to turn it off when you experience such a thing too often.

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?