[laptop-mode] script with powertop suggestions

uastasi uastasi at archlinux.us
Wed Sep 9 22:14:22 CEST 2009


I can confirm that at least in one case the script doesn't work as it should.
If I press 'P' in Powertop to perform
# iwconfig wlan0 power timeout 500ms
then wireless power saving is enabled.
The same command put into the script doesn't enable anything.
I'd like to verify if it happens for the other commands too.
Here's my powertop script:

#!/bin/sh
iwconfig wlan0 power timeout 500ms
echo min_power > /sys/class/scsi_host/host0/link_power_management_policy
echo 1500 > /proc/sys/vm/dirty_writeback_centisecs


> On my system, powertop just cycles through all the tips it has, with no
> regard to the state when it was started. Pressing the appropriate key
> disables a tip, but I think it just doesn't check if some of the conditions
> may already be met.


More information about the laptop-mode mailing list