[BLN] Button Led notifications

alfrix

Senior Member
May 19, 2011
152
435
0
Rosario
BLN is currently implemented in cyanogenmod / vurrutrom as a modification of the ROM (opensource liblights), not the kernel. Therefore it will work on every kernel.

You need the lights.latona.so file from cyanogenmod and must rename it to lights.omap3.so.
The correct, renamed file is attached for your convenience.

Make a backup of /system/lib/hw/lights.omap3.so and replace it with the attached file.

After that, change the permissions to match all other files in the folder and reboot.

Changing permissions on a terminal:
cd /system/lib/hw
chmod 644 lights.omap3.so
reboot bootloader
if you want to use a root explorer, permissions for the file are rw-r--r--

Note that most Google apps and Facebook do support led notifications but touchwiz apps don't...

Further, if you are using any touchwiz apps, then you will need Light Flow from the market, to have notifications of those apps. Adjust Light Flow settings to your liking, but do not enable omap_bl control.

About Lightflow config:
On General settings > enable button backlight control
On notifications > enable button backlight LED and leave brightness at 255
Use led flash-rate very slow or always on (works best for me)
 

Attachments

Last edited:

ggclanlord

Senior Member
Feb 11, 2011
1,290
203
0
Tried it when you posted @bck kernel thread.

Good you opened a new thread.

Thanks. Working great.

Can you give some details/instructions about light flow settings? I'm finding it a bit difficult to set up.
 

Uan_ar

Senior Member
Jun 21, 2011
103
49
0
Buenos Aires
BLN is currently implemented in cyanogenmod / vurrutrom as a modification of the ROM (opensource liblights), not the kernel. Therefore it will work on every kernel.

You need the lights.latona.so file from cyanogenmod and must rename it to lights.omap3.so.
The correct, renamed file is attached for your convenience.

Make a backup of /system/lib/hw/lights.omap3.so and replace it with the attached file.

After that, change the permissions to match all other files in the folder and reboot.

Changing permissions on a terminal:


if you want to use a root explorer, permissions are rw-r--r--

Note that most Google apps and Facebook do support led notifications but touchwiz apps don't...

Further, if you are using any touchwiz apps, then you will need Light Flow from the market, to have notifications of those apps. Adjust Light Flow settings to your liking, but do not enable omap_bl control.

About Lightflow config:
On General settings > enable button backlight control
On notifications > enable button backlight LED and leave brightness at 255
Use led flash-rate very slow (works best for me)

This is really very nice. Thanks for the explanation it would be really usefull.
 

erik07

Senior Member
Jan 17, 2012
353
64
58
Houston, TX
Will this add to the extra battery consumption? Or no noticable effects on battery? But this is really good work.

Sent from my GT-I9003 with Beats Audio using xda premium
 

varunthapliyal999

Senior Member
Aug 8, 2010
729
231
0
Dehradun
Will this add to the extra battery consumption? Or no noticable effects on battery? But this is really good work.

Sent from my GT-I9003 with Beats Audio using xda premium
Doesnt really affect the battery as the lights hav minimum usage.Im using miui and it uses this mod and I dont really see any difference in battery consumption.
 

erik07

Senior Member
Jan 17, 2012
353
64
58
Houston, TX
i tried it. no doubt, it works, but just for my opinion, after setting the config provided in the first post, the bln is not that real time, sometimes it just doesn't let you be notified. the bln is not consistent in other words. but this is great work. maybe there are some files that need to be configure, and work with lights.omap to make this mod consistent and reliable when it comes to notifying the user. :)
 

vishal24387

Recognized Contributor
May 11, 2011
3,936
1,976
0
33
Solapur, Maharashtra
I am still saying that it will be great if we able to make bln mod in kernel itself. There are lots of apps which are available in market but it requires bln kernel mod. If we able to make it then easily we can change the blinking rate of bln like galaxy S users have done since age ago.
 
  • Like
Reactions: shriom_manerker

alfrix

Senior Member
May 19, 2011
152
435
0
Rosario
I am still saying that it will be great if we able to make bln mod in kernel itself. There are lots of apps which are available in market but it requires bln kernel mod. If we able to make it then easily we can change the blinking rate of bln like galaxy S users have done since age ago.
i'll see if it can be implemented on our kernel, but don't hold your breath.
 

anuraagkochar

Senior Member
Nov 20, 2010
393
45
0
can someone help me this i not working for me .
my settings
general
light flow enabled
direct mode off
notification method cycle all fast
button back light - control
omap bl control off

notifiaction
light enabled
led flash rate very slow
button backlight led solid
button backlight brightness 255
 

erik07

Senior Member
Jan 17, 2012
353
64
58
Houston, TX
Doesnt really affect the battery as the lights hav minimum usage.Im using miui and it uses this mod and I dont really see any difference in battery consumption.
here's where i read the thread of bln control saying that blinking backlight (for notifications) can consume battery than static backlight (just for lighting the button when pressing backlight buttons).

http://forum.xda-developers.com/showthread.php?t=823922

but i really hope we can have this in every kernel and also making it as like it doesn't consume battery life at all, and also real time and consistent notifications.
 

vishal24387

Recognized Contributor
May 11, 2011
3,936
1,976
0
33
Solapur, Maharashtra
@ alfrix

I just read somewhere that cm 7.2 has released with some ICS features backported to GB. One of it is ICS rotation animation. Like how we have ported bln feature can we take a file from cm 7.2 which is responsuble for ICS rotation so that we can have ICS rotation animation in out stock GB formwares also???
 

alfrix

Senior Member
May 19, 2011
152
435
0
Rosario
@ alfrix

I just read somewhere that cm 7.2 has released with some ICS features backported to GB. One of it is ICS rotation animation. Like how we have ported bln feature can we take a file from cm 7.2 which is responsuble for ICS rotation so that we can have ICS rotation animation in out stock GB formwares also???
It needs a lot of framework changes: look here for that reason every firmware version must be modded individually or a lot of problems will arise...
For now i'm looking forward to port full bln (kernel mod + this liblights) but i have little time because of college... you may try to decompile framework-res and make the changes yourself... everyone starts somewhere ;)