[laptop-mode] script with powertop suggestions

Ritesh Raj Sarraf rrs at researchut.com
Wed Sep 9 22:40:13 CEST 2009


--nextPart2669676.cblo3S5ngU
Content-Type: Text/Plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

On Thursday 10 Sep 2009 01:44:22 uastasi wrote:
> 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:
>=20
> #!/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
>=20

Can you enable LOG_TO_SYSLOG=3D1 in /etc/laptop-mode/laptop-mode.conf and s=
ee if=20
that really isn't the case.

=46or the dirty_writeback_centisecs, I have personally verified it and it w=
orks.=20
If your concern is about value 1500 not being set when the machine is on AC=
,=20
you need to enable:

ENABLE_LAPTOP_MODE_ON_AC=3D1
and down below, something like:
# Maximum time, in seconds, of work that you are prepared to lose when your
# system crashes or power runs out. This is the maximum time that Laptop Mo=
de
# will keep unsaved data waiting in memory before spinning up your hard dri=
ve.
#
LM_BATT_MAX_LOST_WORK_SECONDS=3D600
LM_AC_MAX_LOST_WORK_SECONDS=3D360


It should be safe to enable LAPTOP_MODE_ON_AC because most of the individua=
l=20
modules have their own settings if you want them triggered on ON_AC or not.

Ritesh
=2D-=20
Ritesh Raj Sarraf
RESEARCHUT - http://www.researchut.com
"Necessity is the mother of invention."

--nextPart2669676.cblo3S5ngU
Content-Description: This is a digitally signed message part.
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit

A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: This is a digitally signed message part.
URL: <http://mailman.samwel.tk/pipermail/laptop-mode/attachments/20090910/07e16a8e/attachment.pgp>

--nextPart2669676.cblo3S5ngU--


More information about the laptop-mode mailing list