[ltp] Re: confused about power managment with T520 with Debian with no DE

Claudius Hubig linux-thinkpad@linux-thinkpad.org
Sat, 4 Feb 2012 20:06:30 +0100


Hello,

keitho@strucktower.com wrote:
>When I bought my Lenovo Thinkpad T520 a few months ago I started off by
>using Debian with Gnome. Recently I switched to using a window manager
>(currently i3) instead of Gnome, and often I just use the console.
>
>Since I switched away from using a DE I have been confused as to which
>power management tools I should use and how to use them, due to my
>inexperience.
>
>The only thing I really need is to enable sleep or suspend at intervals or
>on demand in order to conserve battery,

I am using pm-suspend and pm-hibernate from the pm-utils package[1]
to send my notebook into sleep or hibernate. Fn-* key combinations
trigger an ACPI event for me (check with acpi_listen) which I am
catching via files such as:

0 17:59 0 ares: ~ # cat /etc/acpi/events/fnf3-suspend=20
event=3Dibm/hotkey HKEY 00000080 00001003
action=3D/etc/acpi/suspend.sh
0 20:01 0 ares: ~ # cat /etc/acpi/suspend.sh=20
#!/bin/bash
. /etc/acpi/common

# lots of snipped stuff I am too lazy to put into
# /etc/pm/sleep.d

pm-suspend --quirk-vbe-post

The event=3D argument can be read via acpi_listen and pressing the
corresponding button.

I am also using cpufreqd and thinkfan to control CPU and fan speed
according to my needs, but you didn=E2=80=99t seem to want this :)

Best regards,

Claudius

[1] You might not know about dpkg -L <packagename> which lists all
the files contained in a package. Additionally, at least my bash/man
knows about all the man pages upon tab completion, so that

$ man pm-<TAB>

prints out a nice list of possible completions.
--=20
To be or not to be, that is the bottom line.
Please use GPG: ECB0C2C7 4A4C4046 446ADF86 C08112E5 D72CDBA4
http://chubig.net/ http://nightfall.org