I wrote some patches to make wmlaptop2 control the lcd brightness (on all laptops) and the keyboard backlight (on apple laptops).
Now wmlaptop2 changes the lcd brightness to 20% after 'session-idle' seconds (default 10) if running on battery and restores it to 100% if plugged in or upon X session activity. The current code uses a system() call with 'xbacklight' to change the backlight. These two values could be user-defined, but they are not at the moment for the sake of simplicity. I also added support to automatically control the keyboard backlight found on some apple laptops (at least mine). A lot of this code was taken from 'lightum', which also provided the motivation to write these patches since 'lightum' does not take into account the battery status (charging or discharging) and the lcd backlight functions assume that you either have kde or gnome. Now I don't need to use 'lightum' anymore and I get more convenient behavior when running on battery and also when plugged in. I wrote these patches for my own use, but I guess it might be useful for others too. One thing that just occurred me while writing this email is that the lcd fading on battery might conflict with some other application doing this kind of management already. What do people usually use to do this? Well, I should probably have written this new code under a disabled switch by default, but... In any case, patches to improve things are always welcome. [PATCH 1/5] wmlaptop2: Revert "Adjust LCD brightness with mouse wheel" [PATCH 2/5] wmlaptop2: Change backlight according to session's idle time [PATCH 3/5] wmlaptop2: Add support for keyboard backlight on Apple laptops [PATCH 4/5] wmlaptop2: Support reading cpu temperature on Macbook [PATCH 5/5] wmlaptop2: Remove set but unused variable -- To unsubscribe, send mail to [email protected].
