While working on CM9, I became weary of using a lights HAL module taken from a Samsung ROM and decided to write my own. Whilst doing so, I added BLN (backlight notification) functionality. @tonsit on IRC was kind enough to test it on a Samsung ROM and reported it worked there as well, so here it is for anyone who may find it useful.
I'm lazy as hell, so the zip is untested, and its updater-script is as lazy as I. You'll need to mount /system in mounts&storage before flashing for the module to be installed. All it does is replace /system/lib/hw/lights.s5pc110.so. If the zip doesn't work, extract the file and replace it manually ;P
It is only configurable by using AOSP's 'pulse notification light' setting, so once installed, you can only disable it by reinstalling your old lights.s5pc110.so from Samsung. BLN Control and similar apps will have no effect. Perhaps TW ROM devs can add a setting to Samsung's Settings.apk to configure it. Ask them. I'll include it in a later update to CM9.
I've verified that the device still goes into deep sleep while the lights are lit, so battery drain should be minimally affected. The lights are NOT very bright, and brightness CANNOT be increased, so pl0x don't ask, kthx.
Source code here: https://github.com/j...blight/lights.c
Edited by jt1134, 09 March 2012 - 11:42 PM.