You could try the attached file. It moves a "kbdled" program which I coded to /opt/maemo/usr/bin Now you have to create a file in /etc/dbus-scripts.d/ with the following content: Code: #:Kbdled slider /opt/maemo/usr/bin/kbdled * * org.freedesktop.Hal.Device Condition ButtonPressed cover #:Kbdled inactivity /opt/maemo/usr/bin/kbdled * * com.nokia.mce.signal system_inactivity_ind (And of course you have to have dbus-scripts installed reboot) Program should fade when you open up the keyboard from 50 up to 255 led_current and the same when your keyboard is still open but N900 is inactive and gets reactivated. Hope it works (is my first program so please be gentle ).
#:Kbdled slider /opt/maemo/usr/bin/kbdled * * org.freedesktop.Hal.Device Condition ButtonPressed cover #:Kbdled inactivity /opt/maemo/usr/bin/kbdled * * com.nokia.mce.signal system_inactivity_ind