[ltp] reducing LCD's brightness after inactivity
Shem Multinymous
linux-thinkpad@linux-thinkpad.org
Sun, 7 May 2006 17:53:48 +0300
On 5/7/06, Gerrit E. <gerrit-e@gmx.de> wrote:
> I would like to reduce my LCD's brightness after a defined period of
> inactivity. I know I can do this by hand using die ibm-acpi module but I
> don't know how to automate this with Xorg. When the user uses the mouse
> or keyboard the LCD should bright up again.
The HDAPS driver (if your model has one) provides the necessary
information, in the
/sys/devices/platform/hdaps/{keyboard,mouse}_activity. From there it's
simple scripting.
Use the tp_smapi patch to HDAPS to obtain this information reliably,
since vanilla hdaps resets the activity status after the first query
by anyone.
Shem