Skip to content

Instantly share code, notes, and snippets.

Created August 29, 2015 07:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/81bca3a90e4519377518 to your computer and use it in GitHub Desktop.
Save anonymous/81bca3a90e4519377518 to your computer and use it in GitHub Desktop.
# /etc/udev/rules.d/50-network-powersave.rules
# vim: ft=udevrules
ACTION=="add", SUBSYSTEM=="net", KERNEL=="eth*", RUN+="/usr/bin/ethtool -s %k wol d"
ACTION=="add", SUBSYSTEM=="net", KERNEL=="wlan*", RUN+="/usr/sbin/iw dev %k set power_save on"
# /etc/udev/rules.d/50-pci-powersave.rules
# vim: ft=udevrules
ACTION=="add", SUBSYSTEM=="pci", ATTR{power/control}="auto"
# /etc/udev/rules.d/50-sata-powersave.rules
# vim: ft=udevrules
ACTION=="add", SUBSYSTEM=="scsi_host", ATTR{link_power_management_policy}="min_power"
# /etc/modprobe.d/powersave.conf - powersaving settings
# vim: ft=modconf
options snd-hda-intel power_save=1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment