How to Root Android Wear 5.0.1 Lollipop Devices – XDA TV

The Lollipop update for Android Wear devices has hit the market and people are … more

Android 5.0.2 and New Factory Images For Nexus 7 (Wi-Fi) Available

Android 5.0 is has been publicly available since early November, and the … more

Github Tutorial App Shows You How to Use… Github

Github can get pretty complicated and using it can become quite daunting, especially … more

Google Glass-like Clip-On For Regular Glasses Developed by Sony

For the price of $2,000, a pair of glasses that can run apps, take pictures, … more

Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[MOD] BackLightNotification v1.6 (eclair) - led notifications by touchkey backlight

OP neldar

2nd September 2010, 07:28 PM   |  #1  
OP Recognized Developer
Thanks Meter: 357
 
10
569 posts
Join Date:Joined: Jul 2010
This modification is ONLY for firmwares with Android 2.1 (eclair)!
if you are searching for a froyo (android 2.2) version: BLN for froyo

What is BackLightNotification?
The BackLightNotification mod converts the touchkey backlights into a notification led.

What is modified?
The BackLightNotification mod replaces the kernel by a modified kernel and it also replaces the lights.default.so in /system/lib/hw/.
In detail:
This kernel includes my backlight notification patch and additionally ext4 and tun modules. (For lagfix and vpn support.) The lights.default.so in /system/lib/hw/ enables android led notification via backlights. This mod does not include any modified app. To enable led/backlight notification for an app/function see the Q&A "How do i enable notification for ...?"

What Galaxy S phones are supported?
This kernel is only for i9000 and i9000m (Bell Vibrant).
If you want BLN for any other Galaxy S phone, then please ask someone who creates custom-kernels for that phone, whether she/he would like to include BLN. The patches are compatible to all already released Galaxy S phones.

Does this mod drain the battery?
No, that issue has been fixed in v1.0. Some blogs are still reporting that, but that is an old news that applies to an early beta version.
Measurements showed, that an ongoing BLN increases battery consumption by 0,18% per hour. The average battery consumption without BLN is 1,04% per hour, so an ongoing BLN results in an overall battery consumption of 1,22% per hour. And by the way: ongoing NoLed results in an overall battery consumption of more than 9,5% per hour. Please see the Q&A "How much does this modification affect battery life?".

How reliable will I be notified with this mod?
With this mod you will get 100% reliable notifications via touchkey backlights.

Why could you state, that this mod is 100% reliable?
The BLN mod activates already available APIs in android. If an application initiates a led notification, it will call the notification manager and that will call liblights (lights.default.so), which enables/disables the backlights by calling the (modified) touchkey kernel driver.

For more questions and answers have a look at the Q&A in the second post.


If you have A2SD or mimocan lagfix installed, remove/disable it before installing BacklightNotification.

Instructions for installation/update:

New method: SGS kernel flasher app:
If your phone is already rooted you can try the SGS kernel flasher app.
Just download&install the app and select any .tar or update.zip that you want to flash from this thread.
If your phone is not rooted and/or you dont want to root the phone, you can use the odin/heimdall method.

Update.zip-method:
  1. Download "i9000_BacklightNotification_v1.6.zip" (md5: 606aa95a2b43be900928cd7a32eb5a7e)
  2. copy the zip-file to /sdcard/
  3. rename the zip-file to "update.zip"
  4. power off the phone
  5. boot into recovery mode (by pressing "Vol Up" + "home key" + "power key" together,
    when bootlogo appears, release the keys)
  6. apply update.zip (Vol Up/Down to select and Home key to apply -
    you will see strange characters and a flickering screen, that is normal)
  7. wait for reboot
  8. install apps, if needed, see the Q&A "How do i enable backlight notification for ...?"
If you want to have more control over BacklightNotification:
BLN control app - blinking, call notification, scheduler and more to come


BackLightNotification with Voodoo lagfix(-only) beta4/v3.0:
i9000_BacklightNotification_v1.6_with_voodoo_lagfi x_beta4.zip (md5: dde016adb2c18182a1bff25bdc6a0048)
Support for voodoo lagfix:
Discuss about Project Voodoo / lagfix, color or http://project-voodoo.org/


Removal:
Download "i9000_android_2.1_remove_backlight_notification.z ip" (md5: 9a9baa80b18e24eac19c02e7cb3a153a)
(if you have the voodoo package, use the package from project-voodoo)
and continue with step 2. of the instructions above.


Todo for v2 (sorted by priority):
  1. app to enable/disable bln function (without uninstalling) done
  2. add an option to disable/enable bln (without uninstall) added with v1.1
Twitter:
http://twitter.com/neldar_dev

Credits:
supercurio (for voodoo lagfix, his kernel-update.zip-template and the ct-ng config)
Last edited by neldar; 11th March 2011 at 11:50 PM.
The Following User Says Thank You to neldar For This Useful Post: [ View ]
2nd September 2010, 07:28 PM   |  #2  
OP Recognized Developer
Thanks Meter: 357
 
10
569 posts
Join Date:Joined: Jul 2010
Questions & Answers:

How do i enable led notification for ...?
  • sms: notification by default
  • touchwiz email: notification by default
  • gmail: notification by default
  • Google talk: notification by default
  • calendar: download "Calendar notifier" app from market (alternative)
  • call: my BLN control - Pro from market
  • any other apps not shipped with stock-samsung firmware:
    ask the author of the app for notification led support

What lagfixes are supported?
How much does this modification affect battery life?
With backlight notification permanently powered on, the battery lasts around 82 hours (around 3,5 days, 1,22% per hour). This means, that activated backlights will increase battery usage by about 0,18% per hour. If there is no backlight notification ongoing, battery life is normal (around 96 hours, 1,04% per hour). Tested with flight mode enabled.
How do you test the battery consumption? This is a common and reliable method.

Can you get this mod working with Android 2.2 (froyo)?
BacklightNotification for Froyo is now available.

Could you add a fade feature?
That is not possible, hardware is limited (by controller firmware) to simple on/off.

Could you add a flashing/blinking light/pulse feature/option?
That is available in the froyo kernel combined with the bln control pro.

I got the message "Cannot open update.zip (bad)". What does this message mean?
That means the file got corrupted, you should delete the update.zip in /sdcard/ and download the zip-file again, copy it again to /sdcard/ and rename it to "update.zip".


Source:
kernel: linux-2.6.29 updated | license: GPLv2
normal bln ramdisk | license: unknown (proprietary?) | author: samsung
voodoo lagfix ramdisk | license: GPLv3 | author: supercurio (Francois SIMOND)
BacklightNotification patches v1.6 for eclair | license: GPLv2 | author: neldar (Michael Richter) | comment: compatible to all Galaxy S phones, no porting needed (just enable KEYPAD_CYPRESS_TOUCH and disable KEYPAD_MELFAS_TOUCH in config)
Liblights for BacklightNotification | license: Apache-2.0 | comment: have a look at the NOTICE file


Chancelog:

v1.6 (stable)
  • new sysfs interface (/sys/class/misc/backlightnotification/) - recommend update
  • updated kernel source

v1.1:
  • added: option to disable/enable bln (without uninstall)

v1.0 (stable, based on rc3)

v0.9.8 (release candidate 3):
  • removed: wakelock -> (hugely) improved battery life

v0.9.6 (release candidate 2):
  • improved battery life
  • fixed: wakelock remains enabled after notification is disabled


v0.9.5 (release candidate 1):
  • reduced size of initramfs
  • some lowmemorykiller tweaks
  • updated proprietary kernel modules
  • solution for calendar & call notification: "Missed Call for Android 2.x" app

v0.9.1 beta:
  • improved compatibility with lagfixes
    (see Q&A "What lagfixes are supported?")


v0.9 beta:
  • initial release (first public beta)
Last edited by neldar; 23rd February 2011 at 05:23 PM.
The Following 2 Users Say Thank You to neldar For This Useful Post: [ View ]
2nd September 2010, 07:40 PM   |  #3  
Bec07's Avatar
Senior Member
Thanks Meter: 90
 
722 posts
Join Date:Joined: Aug 2010
More
Are you sure it's not working with JPC?

Does it drain due to missed call/message or because of the background process?
2nd September 2010, 07:48 PM   |  #4  
OP Recognized Developer
Thanks Meter: 357
 
10
569 posts
Join Date:Joined: Jul 2010
Quote:
Originally Posted by Bec07

Are you sure it's not working with JPC?

Does it drain due to missed call/message or because of the background process?

I'm absolutely sure that this modification will not work with Android 2.2 until Samsung will release their sources for 2.6.32 kernel. Hopefully they will release the sources soon after the official release of Android 2.2 for i9000.


There is a wakelock in the driver, to avoid that the backlight controller will be disabled while the phone is suspending.
BUT that means that a full/deep suspend is suppressed and the battery drains a lot faster. Only screen and touch input is disabled.
This should motivate you to react faster on a notification...

If you dont have a notification, the phone can do a full suspend and the battery last longer.
Last edited by neldar; 2nd September 2010 at 08:01 PM.
2nd September 2010, 07:58 PM   |  #5  
Senior Member
Flag JHB
Thanks Meter: 743
 
2,021 posts
Join Date:Joined: Jan 2006
Quote:
Originally Posted by neldar

I'm absolutely sure that this modification will not work with Android 2.2 until Samsung will release their sources for 2.6.32 kernel. Hopefully they will release the sources soon after the official release of Android 2.2 for i9000.


There is a wakelock in the driver, to avoid that the backlight controller will be disabled while the phone is suspending.
BUT that means that a full/deep suspend is suppressed and the battery drains a lot faster. Only screen and touch input is disabled.

Technically cool... but this limitation makes it useless for everyday use for now. Hopefully someone can figure it out.
2nd September 2010, 08:21 PM   |  #6  
OP Recognized Developer
Thanks Meter: 357
 
10
569 posts
Join Date:Joined: Jul 2010
Quote:
Originally Posted by RyanZA

Technically cool... but this limitation makes it useless for everyday use for now. Hopefully someone can figure it out.

It drains battery less than NoLed, because the amoled screen is completely powered off.
And it is more reliable than NoLed, if the applications support led notification.

At the moment you can only choose between this solution and NoLed, both have their disadvantages...
Last edited by neldar; 2nd September 2010 at 08:27 PM.
2nd September 2010, 08:31 PM   |  #7  
Daneshm90's Avatar
Recognized Developer
Thanks Meter: 637
 
3,309 posts
Join Date:Joined: Jun 2009
Quote:
Originally Posted by neldar

It drains battery less than NoLed, because the amoled screen is completely powered off.
And it is more reliable than NoLed, if the applications support led notification.

At the moment you can only choose between this solution and NoLed, both have their disadvantages...

Does this blink the backlight's or keep em on ? Just wondering before i give it a shot. Also could you give a rough idea as to how much it affects battery life ? (% perhaps).

I mean if all it does is blink the backlight for say once every 10seconds, i doubt its a huge battery loss :S
2nd September 2010, 08:35 PM   |  #8  
OP Recognized Developer
Thanks Meter: 357
 
10
569 posts
Join Date:Joined: Jul 2010
It turns the backlights only on.
Flashing backlights may be a feature for a future release.

With enabled backlight the battery lasts around 36 hours.
If no notification is ongoing, battery life is normal.
Last edited by neldar; 2nd September 2010 at 08:41 PM.
2nd September 2010, 08:42 PM   |  #9  
Daneshm90's Avatar
Recognized Developer
Thanks Meter: 637
 
3,309 posts
Join Date:Joined: Jun 2009
Quote:
Originally Posted by neldar

It turns the backlights only on.
Flashing backlights may be a feature for a future release.

With enabled backlight the battery lasts around 36 hours.

Wow nice.

Would "flashing backlight" be hard to implement ? Would it require an intermediary android app to send calls ?

Just wondering.
2nd September 2010, 08:52 PM   |  #10  
OP Recognized Developer
Thanks Meter: 357
 
10
569 posts
Join Date:Joined: Jul 2010
Quote:
Originally Posted by Daneshm90

Wow nice.

Would "flashing backlight" be hard to implement ? Would it require an intermediary android app to send calls ?

Just wondering.

Only flashing is not so hard, but to safe some battery life while backlights are off is hard.
Android needs around 200ms to suspend and another 200ms to resume.
And switching repeatedly between suspend/resume state could drain the battery even more, if it is not done right.


Samsung removed the led notification from their touchwiz phone app.
I dont know why they did that. It would not hurt anyone, if they had not removed it....
So call notification could be done by an additional intermediary app or by replacing the touchwiz phone app with the aosp phone app.
Last edited by neldar; 2nd September 2010 at 09:11 PM.

Post Reply Subscribe to Thread

Tags
backlight, i9000, led, notification, touchkey
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes