View Single Post
Posts: 34 | Thanked: 21 times | Joined on Feb 2008
#26
Originally Posted by fanoush View Post
and it turns keyboard light off when kb is closed and turns it on when opened in a dark. This is already enough for me but perhaps it also needs to be turned on/off when slide is open and screen is turned on/off. However, I am not sure how to do it.
Thanks. I haven't tried it but shouldn't the keyboard light already be independent of the state of the screen?

I'll put this into the default config. This reminds me why I never got to adding this and a couple other similar things. I was trying to keep sudo out of these powerlaunch scripts. My aim was to get to the point of running two powerlaunch programs, one as root to handle this kind of stuff and one as user to handle UI things, and try to minimize as much of the code that's in powered. For example, the screen locking code in powered is as simple as writing a value to a single file and could easily by implemented in a powerlaunch process run as root.