You are not logged in.
Hello,
I've tried to add some udev and systemctl tweaks from this article:
https://wiki.archlinux.org/index.php/Power_saving
Here's what "Tunables" I get, after all, in the output of PowerTop utility:
Wireless Power Saving for interface wlan0 => iw dev wlan0 set power_save off
^^^ But I have already the following Udev rule:
ACTION=="add", SUBSYSTEM=="net", KERNEL=="wlan*" RUN+="/usr/sbin/iw dev %k set power_save on"
(btw, why powertop suggests to turn pover_save off?)
iw is installed and the command '/usr/sbin/iw dev wlan0 set power_save on' works. It is just not executed automatically at startup..
---
Enable SATA link power management for /dev/sda => echo 'min_power' > '/sys/class/scsi_host/host0/link_power_management_policy';
^^^ But I have already the following Udev rule:
SUBSYSTEM=="scsi_host", KERNEL=="host*", ATTR{link_power_management_policy}="min_power"
---
NMI watchdog should be turned off => echo '0' > '/proc/sys/kernel/nmi_watchdog';
^^^ But I have this sysctl tweak already:
# cat etc/sysctl.d/disable_watchdog.conf
kernel.nmi_watchdog = 0
---
VM writeback timeout => echo '1500' > '/proc/sys/vm/dirty_writeback_centisecs';
^^^ But I have this sysctl tweak already:
# cat etc/sysctl.d/dirty_writeback.conf
vm.dirty_writeback_centisecs = 1500
---
Enable Audio codec power management => echo '1' > '/sys/module/snd_hda_intel/parameters/power_save';
^^^ Power Saving article suggest to enable power save for snd_hda_intel via modprobe. So did I:
# cat etc/modprobe.d/audio_power_save.conf
options snd_hda_intel power_save=1
---
Wake-on-lan status for device eth0 => ethtool -s eth0 wol d;
^^^ But I have already the following Udev rule:
ACTION=="add", SUBSYSTEM=="net", KERNEL=="wlan*|eth*" RUN+="/usr/sbin/ethtool -s %k wol d"
---
Other Tunables:
Autosuspend for USB device EHCI Host Controller [usb3] echo 'auto' > '/sys/bus/usb/devices/usb3/power/control';
Autosuspend for USB device WebCam SCB-1100N [123] echo 'auto' > '/sys/bus/usb/devices/2-2/power/control';
Autosuspend for USB device 2.4G Keyboard Mouse [MOSART Semi.] echo 'auto' > '/sys/bus/usb/devices/4-5/power/control';
Autosuspend for USB device EHCI Host Controller [usb2] echo 'auto' > '/sys/bus/usb/devices/usb2/power/control';
Autosuspend for USB device Broadcom Bluetooth 2.1 Device [Broadcom Corp] echo 'auto' > '/sys/bus/usb/devices/5-4/power/control';
Autosuspend for USB device EHCI Host Controller [usb1] echo 'auto' > '/sys/bus/usb/devices/usb1/power/control';
Autosuspend for USB device OHCI Host Controller [usb5] echo 'auto' > '/sys/bus/usb/devices/usb5/power/control';
Autosuspend for USB device OHCI Host Controller [usb6] echo 'auto' > '/sys/bus/usb/devices/usb6/power/control';
Autosuspend for USB device OHCI Host Controller [usb7] echo 'auto' > '/sys/bus/usb/devices/usb7/power/control';
Autosuspend for USB device OHCI Host Controller [usb4] echo 'auto' > '/sys/bus/usb/devices/usb4/power/control';
For USB devices I have the following Udev rules:
ACTION=="add", SUBSYSTEM=="usb", TEST=="power/control" ATTR{power/control}="auto"
ACTION=="add", SUBSYSTEM=="usb", TEST=="power/autosuspend" ATTR{power/autosuspend}="2"
Though, here it's less obvious if they had to help.
Important note: I've checked current values in all these '/proc/sys/vm/dirty_writeback_centisecs', etc. files and they are really not as I tried to set via udev/sysctl tweaks. So, the PowerTop is correct listing all these tunables. What I'm trying to clarify is: why the tweaks did not apply when booting? Can it be connected to the fact that I'm having Archlinux installed from December's image, which is using systemd by default? To me, the wiki article is adapted for systemd users, so, don't know...
Offline
Thank you, orschiro. Is there a documentation available for the powerdown?
Also, I'm still interested to know what is happening with the Udev/Sysctl tweaks. I might want, for example, to use Udev for something other than power saving. Also, the powerdown itself comes with few udev rules, as far as I can see. They won't work, I'm afraid, until I fix current topic's issue ;-)
Offline
Same problem with /etc/sysctl.d/ files: none of them seems to be working.
UPD: In my case problem was in jupiter. It overwrites most of power saving issues with /usr/lib/jupiter/kernel/ files.
Last edited by aka noname (2012-12-23 12:57:44)
Offline