[ltp] current power saving mode=what?

linux-thinkpad@linux-thinkpad.org linux-thinkpad@linux-thinkpad.org
Wed, 17 Sep 2008 08:10:23 +0800


How can a script query the current power saving state?

I.e., if I don't touch my computer for 10 minutes, the screen goes
blank, until I press a key.

I want to do
test `cat /sys/what...` = "fully awake" && get_a_weather_map||never_mind

/sys/power/state is not the same thing.