Difference between revisions of "Power saving"

From ArchWiki
Jump to: navigation, search
(Disabling NMI watchdog: stupid mediawiki.)
(wol)
Line 19: Line 19:
  
 
or add {{ic|nmi_watchdog}} as a [[kernel parameter]].
 
or add {{ic|nmi_watchdog}} as a [[kernel parameter]].
 +
 +
==Disabling Wake-on-LAN==
 +
 +
[[Wikipedia:Wake-on-LAN|Wake-on-LAN]] can be a useful feature, but if you're not making use of it then it's simply draining extra power waiting for a magic packet while in suspend.
 +
 +
Disabling for one interface:
 +
 +
{{hc|/etc/udev/rules.d/disable_wol.rules|2=ACTION=="add", SUBSYSTEM=="net", KERNEL=="eth0" RUN+="/usr/sbin/ethtool -s eth0 wol d"}}
 +
 +
Disabling for all interfaces:
 +
 +
{{hc|/etc/udev/rules.d/disable_wol.rules|2=ACTION=="add", SUBSYSTEM=="net", KERNEL=="eth*" RUN+="/usr/sbin/ethtool -s %k wol d"}}

Revision as of 23:40, 23 October 2012

Audio

By default, audio power saving is turned off by most drivers. It can be enabled by setting the power_save parameter to a time (in seconds) to go in idle.

Note: Toggling the audio card's power state can cause a popping sound or noticeable latency on some broken hardware.
Intel
/etc/modprobe.d/audio_power_save.conf
options snd_hda_intel power_save=1
ac97
/etc/modprobe.d/audio_power_save.conf
options snd_ac97_codec power_save=1

Disabling NMI watchdog

The NMI watchdog is a debugging feature to catch hardware hangs and cause a kernel panic. On some systems it can generate a lot of interrupts, causing a noticeable increase in power usage.

/etc/sysctl.d/disable_watchdog.conf
kernel.nmi_watchdog = 0

or add nmi_watchdog as a kernel parameter.

Disabling Wake-on-LAN

Wake-on-LAN can be a useful feature, but if you're not making use of it then it's simply draining extra power waiting for a magic packet while in suspend.

Disabling for one interface:

/etc/udev/rules.d/disable_wol.rules
ACTION=="add", SUBSYSTEM=="net", KERNEL=="eth0" RUN+="/usr/sbin/ethtool -s eth0 wol d"

Disabling for all interfaces:

/etc/udev/rules.d/disable_wol.rules
ACTION=="add", SUBSYSTEM=="net", KERNEL=="eth*" RUN+="/usr/sbin/ethtool -s %k wol d"