[APP] BLN control - the official BLN settings app by neldar

Search This thread

kohkohnut

Senior Member
Jul 3, 2011
107
3
Can someone point me to a patched sms app or a patched services.jar please?

I am using Touchwiz sms and would like to enable bln for sms messages.

PS: I am on JVU using semaphore (i9000)
 

kohkohnut

Senior Member
Jul 3, 2011
107
3
You'll need a custom kernel which supports BLN.. check 1st post FAQ
I think you misunderstood me. I am on Semaphore which supports BLN. But for bln to work for sms (Touchwiz), I'll still need a patch.

I tried searching XDA for a patch for deodexed JVU but couldn't find any. So I am hoping that someone here can point me to the right direction.
 

finneginsfast

Senior Member
Mar 6, 2011
944
181
BC
Hi there, been using this app on a SGH-T959D and darkyrom 10.4.2, and it's been great.

I've recently flashed onecosmics ICS rc4.2 with semaphore kernel 0.9.1 which is supposed to support BLN. Once I configure, enable BLN and test it within the app it works for the test. However in real world application it's not notifying me.

Any idea what the problem is?
 

lowspeed

Senior Member
Dec 24, 2006
1,337
75
Any chance of fixing BLN for the at&t Galaxy note so it doesn't keep wakelock? The device doesn't go back to deepsleep if LED goes on.
 

neldar

Retired Recognized Developer
Jul 4, 2010
569
363
twitter.com
Any chance of fixing BLN for the at&t Galaxy note so it doesn't keep wakelock? The device doesn't go back to deepsleep if LED goes on.

You have chosen the wrong thread for that kind of question, the wakelock you are referring to is managed by the kernel driver. That means only the author of the bln implementation for the note can change this - and that is not me.

edit: just had a look at the bln sources for the note. And I realized most ppl still are using my old patches, while the i9000 repo already contains newer bln code, that makes a lot easier...
 
Last edited:

squall458

Senior Member
Nov 5, 2011
443
52
GTA
Just updated the PRO app and what does the experimental proximity sensor option do for the galaxy s2? LOVE YOUR APP!
 

Grimmy1st

Senior Member
Jul 18, 2011
176
7
Problems with new version:
- heavy wakelocks/battery drain (phone NEVER sleeps), when not ticking experimental prox...
- when exp. prox. clicked: battery drain still higher than before, it seems to me (prox sensor always on???)

SGS2, checkrom V6, Redpill
 

neldar

Retired Recognized Developer
Jul 4, 2010
569
363
twitter.com
Probably when the phone is laying on screen the LED's don't go on.

or in pocket...

Exactly. 5 seconds delay before bln is disabled, if the proximity sensor is triggered. Bln gets instantly re-enabled if the proximity sensor is released.
Currently blinking and the static timeout dont work after bln is re-enabled, that will be fixed.

Problems with new version:
- heavy wakelocks/battery drain (phone NEVER sleeps), when not ticking experimental prox...
- when exp. prox. clicked: battery drain still higher than before, it seems to me (prox sensor always on???)

SGS2, checkrom V6, Redpill

Thank you for reporting that, please provide me the output of /proc/wakelocks.
Code:
adb shell cat /proc/wakelocks > wakelocks.txt
 
Last edited:
  • Like
Reactions: cdmackay

cdmackay

Senior Member
Aug 11, 2009
985
273
Cambridge, UK
Problems with new version:
- heavy wakelocks/battery drain (phone NEVER sleeps), when not ticking experimental prox...
- when exp. prox. clicked: battery drain still higher than before, it seems to me (prox sensor always on???)

SGS2, checkrom V6, Redpill

Interesting observation: with exp prox option NOT ticked, if I hold my hand over the prox sensor, I can no longer activate the "Led notification" item in the Test section.

Take my hand off the sensor, and the menu item immediately works.

Again, this is with the prox option NOT enabled.


Edit: stupid me: I must have been touching the screen at the same time, thus making it a multi-touch, and confusing things.
 
Last edited:

rallyfan1986

Member
Mar 16, 2012
24
1
Which kernel?

Hi, I have just upgraded to ics on my galaxy s2, can anyone recommend a kernel that supports bln?

I have already bought bln pro

Thanks in advance
 

neldar

Retired Recognized Developer
Jul 4, 2010
569
363
twitter.com
Interesting observation: with exp prox option NOT ticked, if I hold my hand over the prox sensor, I can no longer activate the "Led notification" item in the Test section.

Take my hand off the sensor, and the menu item immediately works.

Again, this is with the prox option NOT enabled.


Edit: SGS, THS ICS b17, Semaphore 0.9.1


[deleted test results: cannot reproduce]


I guess you covered the proximity sensor with your hand and touched the screen at the same time. In that case android can not track your input.
I am using a piece of paper to test the proximity sensor, that eliminates most of the side effects.
 
  • Like
Reactions: cdmackay

jsmith8858

Senior Member
Nov 11, 2008
675
107
Boston
On the AT&T GS2, I am getting constant wakelocks for wlProximityEvents, and I do not even have the new Proximity feature enabled.

I just unplugged the charger 5 minutes ago, I have no notifications, and it's been in constant wakelock since then. (See the screen shot).

Since the last update, my battery life has been very bad and deep sleep has gone down significantly.

UPDATE: Attached is my wakelocks.txt file.
 

Attachments

  • SC20120316-155007.jpg
    SC20120316-155007.jpg
    38.8 KB · Views: 80
  • wakelocks.txt
    9.2 KB · Views: 16
Last edited:

neldar

Retired Recognized Developer
Jul 4, 2010
569
363
twitter.com
On the AT&T GS2, I am getting constant wakelocks for wlProximityEvents, and I do not even have the new Proximity feature enabled.

I just unplugged the charger 5 minutes ago, I have no notifications, and it's been in constant wakelock since then. (See the screen shot).

Since the last update, my battery life has been very bad and deep sleep has gone down significantly.

UPDATE: Attached is my wakelocks.txt file.

Thank you for the informations about the wakelock, these infos helped me to resolve the problem.
An update is now available at the market. I want to apologize to those who may have had problems because of this issue.
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 49
    This app does only work, if you have a kernel with BacklightNotification (bln) mod on your phone installed.

    Go and get BLN for Samsung i9000 Eclair, Froyo or Gingerbread or any other kernel/rom with BacklightNotification support.
    Or visit this page to view a list with supported phones by BLN.


    What is the BLN mod?
    The BLN mod turns the touchkey backlights into a notification led.
    It enables the notification led api for any android application that supports notifications by led.
    If you dont have the BLN mod installed, the app provides you instructions how to install the BLN mod.

    What does this app?
    This application gives you control over the BacklightNotification (bln) mod settings on your phone.

    What features does the Free version have?
    • enable/disable BacklightNotification function (without uninstalling bln)
    • test BacklightNotification
    • update notification (notifies you about new BLN app, liblights or kernel releases)

    Additional features in the Pro version:
    • widget
    • scheduler (disable BLN at night, ...)
    • locale plug-in(s) for: bln status, blinking, scheduler, static led, notification led
    • adjustable timeout of static led notification
    • blinking**:
      • adjustable on/off led period
      • adjustable overall blinking duration (5-60 minutes or unlimited)
      • select led status after blinking ends(on/off)
      • stop blinking if battery is below a selectable % level
    • adds led notifications for:
      • missed calls

    ** Please notice that blinking consumes more energy than static backlight!

    Download the app from market:
    Free | Pro
    attachment.php


    The price for the Pro version is 0.99€ (~ 1.99 US$).
    The Pro version is available at the android market (creditcard) and at androidpit (paypal, clickandbuy).

    If you find an issue, please report it here in the thread.


    Which features will be added to future Pro versions?
    • suggest me a feature

    What permissions are used for which features?
    • RECEIVE_BOOT_COMPLETED: to activate BLN at boot and start the services
    • INTERNET: for update notification (new BLN app, liblights or kernel releases - you can disable the notification in the update settings) and for the compatibility check (the app receive instructions for you, if the app detects that something is wrong with the BLN setup)
    • READ_PHONE_STATE: to detect if an incoming call could become a missed call
    • WAKE_LOCK: services & schedule (reactivating interrupted led notifications, froyo only)

    Translations already done:
    • Dutch
    • French
    • German
    • Japanese
    • Korean
    • Russian
    • Spanish
    • Swedish

    The initial translations into Dutch, French, Russian and Spanish have been realized at crowdin.net with the help of adequacy, andifds, elroy911, HERVEG, HTCDevil, Jaax, jbnitro, ravexx, Rebel2k and Shaymelmed. Thank you.
    The translations into Japanese, Korean and Swedish have been realized at icanlocalize.com.

    Translations pending:
    • Chinese (Simplified) - suspended, no sufficient Chinese market service
    • Chinese (Traditional) - see above
    • Czech
    • Italian
    • Polish

    Kernel-devs / rom cookers: Please do only integrate the FREE version of this app into your releases.
    10
    BLN pro will work for JVP version (gingerbread 2.3.4 ) ? :confused:

    For all having trouble with JVP, i compiled a patched services.jar. It contains both liblights and services.jar, to have BLN working with any kernel supporting it on JVP. To be installed from CWM recovery.

    Tried on Juwe's 5.0 working with stock sms, calls, mail, etc.

    Hope it helps!

    Thanks to neldar for his great job.
    Thanks to Virnik for his update package & script.
    6
    FAQ:

    How do i enable led notification for ...?
    • touchwiz sms: notification is only possible if you use another sms app (e.g. Go SMS) or if you use a patched sms app or a patched services.jar
    • touchwiz email: notification by default
    • gmail: notification by default
    • Google talk: notification by default
    • calendar: download "Calendar notifier" app from market (alternative)
    • call: BLN control - Pro from market
    • any other apps:
      ask the author of the app for notification led support

    The led notification is enabled in app xyz, but it still dont work, why?
    This only a problem of Android >= 2.3. Led notifications in Android >= 2.3 do only work if the screen is powered off. You can not trigger a led notification while the screen is powered on and any led notification is automatically dismissed if the screen becomes powered on. This is a general "problem" of all gingerbread phones. This behavior is a design decision of the asop team and they think this is not important enough to be mentioned in the Android SDK documentation. The BLN control app has a workaround implemented for the internal call, locale/tasker plug-in & test notification. Any other apps may have also a option to disable the screen before these apps try to trigger led notifications (e.g. Go SMS).

    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). Measurements were made on a i9000 (eclair) with enabled flight mode.

    The sgs2 does currently (6th august 2011) rely on a kernel wakelock, that does affect the battery more than on other phones.
    This is an exception from the general bln behavior and may hopefully change in future.

    How do you test the battery consumption? This is a common and reliable method.

    Could you add a fade feature?
    That is only possible on some phones, most hardware is limited (by controller firmware) to simple on/off. Maybe I add these capability in the future.

    The blinking or the missed call notification of the pro app are not reliably working, what is wrong?
    The lowmemorykiller of your phone is configured with too aggressive settings, thereby the app services are killed and not restarted.
    Either you use less aggressive settings or you have to live with the fact that your settings make things unreliable.
    Btw, it is better to have less free ram in android. A lot of free ram on a android device indicates that it is inefficiently working.
    4
    Just wonderign, is there going to be support for normal notifcations, like third party apps etc

    No, if you are wondering about the reason, then you might want to understand the functional principle of bln by looking at the following "art":

    |android application| --> |notification service| --> |bln liblights| --> |bln driver| --> |touchkey leds|

    legend:
    --> : x calls y (unidirectional)
    android application: any android application
    notification service: public api, part of the Android SDK
    liblights: conjunction between the android OS and the Linux kernel
    bln driver: provides interface to control the touchkey led hardware
    touchkey leds: light emitting diodes behind the touchkeys...

    The bln mod (blue parts) just adds the (modified) liblights and the bln driver in that chain, these components are missing in the original stock ROM from Samsung.
    Any android application that should trigger the leds just have to implement the call (the red arrow) of the functions of the notification service .

    And the gentle reader may now notice that the control app is missing in that flowchart. Well, the control app consists of 2 parts, one part actually accesses the bln driver to adjust some settings. The second part detects missed calls and acts like any other android application to issue a (hidden) notification with the led flag.


    PS: The flowchart includes only the necessary components and conjunctions between the application and the leds. There are a few more components involved, but you don't need to know them all.
    4
    On the AT&T GS2, I am getting constant wakelocks for wlProximityEvents, and I do not even have the new Proximity feature enabled.

    I just unplugged the charger 5 minutes ago, I have no notifications, and it's been in constant wakelock since then. (See the screen shot).

    Since the last update, my battery life has been very bad and deep sleep has gone down significantly.

    UPDATE: Attached is my wakelocks.txt file.

    Thank you for the informations about the wakelock, these infos helped me to resolve the problem.
    An update is now available at the market. I want to apologize to those who may have had problems because of this issue.