yashsingh1/xdaforums huggingface dataset:
[Nexus S Q&A, Help & Troubleshooting] akent:
I have been having a poke around my i9023 Nexus S today. The bad news is it seems that there is no Cypress touchkey chip, which is where the guts of the i9020 BLN kernel mod is done. Instead the keys are handled as an extension of the main touchscreen. I guess this is the main difference between the i9020 and the i9023. Maybe it is due to the SC-LCD rather than AMOLED?

From observation however I would say the button backlight is definitely still interdependently controllable, so I think a BLN for i9023 could still well be possible even without the Cypress chip.
[Nexus S Q&A, Help & Troubleshooting] akent:
Well! Pays to read the git commit log.

arch/arm/mach-s5pv210/herring-touchkey-led.c is where it's at for i9023 devices. Seems ALL FOUR button backlights are independently controllable, merely by toggling some GPIO lines.

I'll have a further hack at this tomorrow but it looks quite promising.
[Nexus S Q&A, Help & Troubleshooting] akent:
OK, I have a working (if a little hacky) patch for BLN support on i9023 Nexus S devices.

Unfortunately for some bizarre reason the android market won't let me buy the "Pro" BLN app so I have not tested blinking, but as the interface is basically identical I presume it will work.

https://github.com/neldar/kernel-2.6.35-nexusS-bln/pull/1

Hopefully the original devs can take it up and get it into Netarchy's kernel or something.
[Nexus S Q&A, Help & Troubleshooting] musterzwerg:
Wow, good job. Is there a way to test it? If yes, how?
[Nexus S Q&A, Help & Troubleshooting] IT4ALii3EN:
Nedlar managed to mend to BNL on the I9023 ?

It'll be possible or not ?

Because a lot of people are some dreams ^^ !

But the hardware's Nexus I9023 isn't like the hardware's I9020, so... a big difficulty !
[Nexus S Q&A, Help & Troubleshooting] akent:
Yes, possible and working now for me.

I will try get a build into an update.zip if people are keen to try it.
[Nexus S Q&A, Help & Troubleshooting] areicko:
Well I'd like to try, so if you can make an update.zip, so that'd be nice.

thanks
[Nexus S Q&A, Help & Troubleshooting] akent:
OK, here is a update.zip build for testing thanks to Koush's AnyKernel. You need to flash this from recovery.

dl.dropbox.com/u/197956/sdf3df-bln-signed.zip

MD5SUM

e4ce23ba4366e0a77df4adbb45b6387e sdf3df-bln-signed.zip

Built from github.com/akent/linux_samsung/tree/1a1db08b19ffb7a196ab993cf00e8c55ac0859c7

It is the latest unmodified upstream Samsung kernel plus the BLN mod for both i9023 and original Nexus S devices (although I have only tested i9023).

Also includes and installs the modified liblights binary you need to make the BLN app work.

The blinking feature may or may not work, as I said, I haven't been able to test it. I cannot really see how the mechanism is supposed to work, perhaps there is some magic in the BLN Pro app. Without blinking, the biggest problem is that it can be difficult to see the backlight notifications in bright light conditions.

Please do a nandroid backup before installing, I take no responsibility if you lose data and you don't have a backup.

I've tested this on the CM7 nightly and ClockworkModRecovery v3.0.2.5, your mileage may vary.

Happy to hear how it goes for people.

(Sorry for the non-hyperlinked links, the XDA forum software won't let me post links yet.)
[Nexus S Q&A, Help & Troubleshooting] noobhero:
thanks mate!! am very happy to see progress of this issue!!

hopefully the other kernels catches wind of this!! ;)
[Nexus S Q&A, Help & Troubleshooting] taindtamere:
I tested it on 9023 with stock rom and it doesn't works. BLN Control doesn't say that BLN is unavailable but when I tested it, the touchkeys don't light.

Edit: I tested it receiving a message and it worked so I think that the test inside the BLN Control app doesn't work but in real cases it works.

Edit 2: doesn't works for calls
[Nexus S Q&A, Help & Troubleshooting] ItsDace:
Great work sdf3df - maybe you should contact Neldar to share your findings with him.
[Nexus S Q&A, Help & Troubleshooting] akent:
Hmm. Have not tested stock, only CM nightlies. Maybe something subtly different. Make sure you reboot after enabling BLN in the app?
[Nexus S Q&A, Help & Troubleshooting] eiabea:
flashed it over Netarchy CFS 1.3.0.2 --> Google Logo reboot loop ^^
[Nexus S Q&A, Help & Troubleshooting] striesse:
works

i flashed it on my i9023 running CM 7.0.2 - works, except for blinking
[Nexus S Q&A, Help & Troubleshooting] eiabea:
OMG i love you!!!

flashed back to CM7 kernel and it works!!! waiting has an end :)

now blinking would be nice :o
[Nexus S Q&A, Help & Troubleshooting] akent:
Some very good news. I found a way to get the BLN Pro installed for a test, and fixed the bug in the kernel patch that stopped it working.

Here's an updated kernel update.zip with blinking support!

http://dl.dropbox.com/u/197956/sdf3df-bln-with-blinking-signed.zip

Also some extra good news, Netarchy has pulled in this patch to his git tree so I suspect it won't be long until this is in the next build of his kernel too.
[Nexus S Q&A, Help & Troubleshooting] eiabea:
blinking works great!! :-)

now my nexus is perfect!! thank you so much!
[Nexus S Q&A, Help & Troubleshooting] ItsDace:
Awesome! Great work :-D
[Nexus S Q&A, Help & Troubleshooting] striesse:
blinking works now too - great work, thanks!
[Nexus S Q&A, Help & Troubleshooting] zakiie:
This is what I was waiting for.. !! :)

Thank you so much
[Nexus S Q&A, Help & Troubleshooting] akent:
I have rolled a new stock kernel + BLN for the latest 2.3.4 OTA update too, if people are keen. Works for me. Flash from recovery.

http://dl.dropbox.com/u/197956/sdf3df-bln-2.3.4.zip

As a previous poster said, it does seem to work properly for "real" notifications but not from the test in the BLN app for some reason.

Note this will NOT work on 2.3.3, only the latest 2.3.4.

Built from source at:

https://github.com/akent/linux_samsung/tree/2283d00c259e9a4a1db5de718c612c24a62f86a0

2.3.3 version is still here:

http://dl.dropbox.com/u/197956/sdf3df-bln-with-blinking-signed.zip

To all who have said "thanks", you are of course welcome! This is scratching my itch as well!
[Nexus S Q&A, Help & Troubleshooting] lyfkevin:
latest netarchy's 2.3.4 kernel supports i9023 BLN

works perfectly for me
[Nexus S Q&A, Help & Troubleshooting] akent:
Excellent news, props to Netarchy for including it!
[Nexus S Q&A, Help & Troubleshooting] netarchy:
It's good work. ;D

Do you prefer being credited as akent or as sdf3df?
[Nexus S Q&A, Help & Troubleshooting] akent:
Yeah, sorry for the confusion-- akent is fine. I should probably fix my xda login name somehow :)
[Nexus S Q&A, Help & Troubleshooting] laspecas:
The zip file is only the updated bln app? What Kernel do you use?
[Nexus S Q&A, Help & Troubleshooting] akent:
No the zip above is my own kernel build of stock plus BLN patch, not an updated app or anything.

You should probably now use Netarchy's kernel, mine is mostly just for testing, and you still need Neldar's app.
[Nexus S Q&A, Help & Troubleshooting] laspecas:
Thing is i don't want to mess with stock Kernel. So does It work with yours?
[Nexus S Q&A, Help & Troubleshooting] eiabea:
Problem with Netarchy: only for 2.3.4 otherwise you will stuck at the google logo, trust me, i tested it :D
[Nexus S Q&A, Help & Troubleshooting] akent:
Yes it works. I'll reiterate...

If you have 2.3.3, flash this from recovery, works with stock 2.3.3, CM7 and possibly other ROMs too as it uses AnyKernel:

http://dl.dropbox.com/u/197956/sdf3df-bln-with-blinking-signed.zip

If you have upgraded to 2.3.4, use latest Netarchy or if you prefer the simple stock kernel + BLN, use this one, which is exactly what I'm using now on stock 2.3.4:

http://dl.dropbox.com/u/197956/sdf3df-bln-2.3.4.zip

N.B. with stock the "test" notification in the BLN app doesn't seem to work but "real" notifications do.

Good luck,

akent
[Nexus S Q&A, Help & Troubleshooting] laspecas:
Do i need root?
[Nexus S Q&A, Help & Troubleshooting] eiabea:
i have 2.3.3 and installed sdf3df-bln-with-blinking-signed.zip and the "test notification" works for me :)

EDIT: i noticed that sometimes the blinking is a bit "irregular", looks like lagging ^^
[Nexus S Q&A, Help & Troubleshooting] akent:
I am pretty sure you should not need root but I haven't tested it, someone else may know better? Do try it without rooting and let us all know how it goes.
[Nexus S Q&A, Help & Troubleshooting] akent:
I've seen that too but haven't looked into it, I guess it's the way it's done with a userspace timer and the modified liblights -- just guessing -- haven't looked at that part of the code, only the kernel driver.

If I get bored sometime I'll take a look, I think the blinking could be done nicer than it is currently. I just went with the path of least resistance to get something working.
[Nexus S Q&A, Help & Troubleshooting] eiabea:
its not a big issue, just want to report ;) great work anyway!

i read somewhere that each button can be controled separately, so is it possible to chaser light?? like knight rider? :D
[Nexus S Q&A, Help & Troubleshooting] akent:
Agreed, small issue. Thankyou, enjoy! :D

Yeah that is possible on the i9023, probably not on the i9020 however.

Apart from knight rider style effects, a potentially useful feature could be having different backlights turn on for different events, just like they are configurable for different "colours" on phones with a proper notification LED.
[Nexus S Q&A, Help & Troubleshooting] laspecas:
Can't install. Verification signature failure
[Nexus S Q&A, Help & Troubleshooting] eiabea:
Sounds really great :) maybe the i9023 gets better than the i9020 hehe :D
[Nexus S Q&A, Help & Troubleshooting] akent:
What recovery are you using? I'd strongly suggest installing Clockworkmod Recovery from here http://xdaforums.com/showthread.php?t=988686 (3025-i9023.img) first and make sure you have done a Nandroid backup before installing too!!
[Nexus S Q&A, Help & Troubleshooting] laspecas:
Have no cwmr since i updated to 2.3.4. Thats why i asked for root
[Nexus S Q&A, Help & Troubleshooting] akent:
Right, so use fastboot and flash a decent recovery back on? What's the problem?
[Nexus S Q&A, Help & Troubleshooting] laspecas:
Do i loose all my settings?
[Nexus S Q&A, Help & Troubleshooting] sjaber36:
Bln now works for the i9023 with the netarchy kernal
[Nexus S Q&A, Help & Troubleshooting] eiabea:
which settings? you don't loose any data, if you mean this...

but only with 2.3.4 ;)
[Nexus S Q&A, Help & Troubleshooting] ccriminal:
I have a i9023 and have just installed stock 2.3.4, netarchy 1.3.0.8a and bln pro, but I can't get bln notifications to work. I have tried all the options of bln pro and rebooted after activating it, but no joy. Can anyone help?
[Nexus S Q&A, Help & Troubleshooting] ogdobber:
if anyone with a 9023 & 2.3.4 and would like to test my kernel with bln support please pm me. thanks
[Nexus S Q&A, Help & Troubleshooting] ItsDace:
same for tried BLN without blinking - no luck
[Nexus S Q&A, Help & Troubleshooting] akent:
Here are some things you can do to debug it:

adb shell cat /sys/devices/virtual/misc/backlightnotification/enabled

Should print "1". If it says "/sys/devices/virtual/misc/backlightnotification/enabled: No such file or directory" then the BLN supporting kernel is not installed correctly or for some reason, a device that supports BLN has not been detected.

If it prints "0" it means the BLN app has not properly enabled BLN.

If this step shows BLN is enabled, you can try (with the quotes exactly as shown):

adb shell "echo 1 > /sys/devices/virtual/misc/backlightnotification/notification_led"

And the backlight should come on, or blink if you've configured blinking.

If this all works, then it's possible the modified liblights binary was not installed properly or the BLN app is not working.
[Nexus S Q&A, Help & Troubleshooting] ItsDace:
I ran the test - everything went fine and I found out that BLN is working for SMS&GMail but it doesn't trigger from missed calls and Exchange.
[Nexus S Q&A, Help & Troubleshooting] MaXAiRO:
Akent did you contact neldar to let him know about the i9023 fix? It works partially (not all features work) but I think it s almost perfect. Good job akent.
[Nexus S Q&A, Help & Troubleshooting] eiabea:
it is already implemented into Netarchy 1.3.0.8(a) ;)
[Nexus S Q&A, Help & Troubleshooting] MaXAiRO:
Yeah, I saw that (though 1.3.0.8 is only for 2.3.4). If neldar gets to know about the fix maybe BLN will completely (with all its features) work for i9023.
[Nexus S Q&A, Help & Troubleshooting] eiabea:
what das not work in akent's patch for 2.3.3 or the netarchy kernel for 2.3.4? :rolleyes:
[Nexus S Q&A, Help & Troubleshooting] akent:
There's an explicit "call notification" check box in "BLNs by stock apps" in the BLN pro app. This still doesn't work?

Looks like the kernel is working just fine however so the problem must sadly be in the BLN app or liblights.
[Nexus S Q&A, Help & Troubleshooting] ItsDace:
Doesn't work, I tried every option.
[Nexus S Q&A, Help & Troubleshooting] railgods:
me too :( doesn't work on my i9023...
[Nexus S Q&A, Help & Troubleshooting] eiabea:
Try Netarchy, neldar implemented the patch from akent :)

for me everything works, with akent's patched stock kernel and neldar's Netarchy for 2.3.3 :)

i use the BLN pro app
[Nexus S Q&A, Help & Troubleshooting] akent:
== does work for SMS and gtalk for example but not for missed calls?

I will test missed calls and see, the problem is my carrier always sends me an SMS on every missed call...
[Nexus S Q&A, Help & Troubleshooting] akent:
Confirmed, no BLN for missed call for me either.

When I get a chance I will dig into the liblights code to see what I can find, no promises though ;)

People on i9020 must be having the same problem though, this is not a kernel driver issue.
[Nexus S Q&A, Help & Troubleshooting] eiabea:
i just tested the missed call issue, and it works for me :confused:

i am using Netarchy 1.3.0.8a on NSCollab 21
[Nexus S Q&A, Help & Troubleshooting] akent:
I'm a little confused too, maybe there is a change in stock 2.3.4 that makes a difference.
[Nexus S Q&A, Help & Troubleshooting] ItsDace:
i am using Netarchy 1.3.0.8a on Stock GRJ22 upgraded from GRI40 with BLN Pro
[Nexus S Q&A, Help & Troubleshooting] ogdobber:
akent, just to be clear...everything works on the 9020t(cm7.0.1). on the 9020a missed call doesn't work and the test notification doesn't work. 9023??? don't know

for the 9020a, the same problems existed on cm7.0.1 as on stock 2.3.4

9020t all my testing was on cm7.0.0, I will have to ask a buddy for 2.3.4 results and I will get back to you

best regards

*edit

9020t- cm7 is perfect, stock (2.3.3,2.3.4) no missed calls, and test notification doesn't work

9020a-cm7 no missed calls and test notification doesn't work, stock (2.3.3,2.3.4) no missed calls, and test notification doesn't work

9023-???
[Nexus S Q&A, Help & Troubleshooting] eiabea:
bugreport

i just noticed a bug.

i got a sms with go sms and it blinked --> fine

i read the message and locked the phone

blinking goes on :(

but no notification...
[Nexus S Q&A, Help & Troubleshooting] akent:
OK, thanks for the info. Very suspicious. I also found this from Chibsz in another thread, maybe he's on to something:
[Nexus S Q&A, Help & Troubleshooting] MaXAiRO:
I have i9023 with CM 7.0.2, latest Netarchy kernel 1.3.0.8a and BLN Control Pro 0.9.8a. BLN works without any problems for missed calls, so it has to do with 2.3.4 and it' about time for neldar to update the application with compatibility for 2.3.4.

Doesn't BLN work with Messaging applications such as Go SMS Pro, Handcent etc.? I use Go SMS Pro and it doesn't seem to work.
[Nexus S Q&A, Help & Troubleshooting] eiabea:
i use Go SMS and BLN works fine for me :)

netarchy 1.3.0.8a / NSCollab 21
[Nexus S Q&A, Help & Troubleshooting] MaXAiRO:
I presume that you have i9023 too since you are from Austria and post in this topic.:p Well, I don't know what else to do in order to make it work. Except for enabling BLN do I have to change something else in Go SMS Pro settings?
[Nexus S Q&A, Help & Troubleshooting] eiabea:
jep --> go sms --> ledsettings (under notification settings) --> let led blink ;)
[Nexus S Q&A, Help & Troubleshooting] taindtamere:
Is there any news of a fix that activate BLN on missed calls for 9023 with stock rom?
[Nexus S Q&A, Help & Troubleshooting] MaXAiRO:
I had already done that. The problem was that I had chosen in BLN settings to deactivate the blinking if battery was lower than 30% and I had about 20% when I tested the notifications. Everything s working without any problems now.
[Nexus S Q&A, Help & Troubleshooting] laurenceqi:
Anyone help? BLN doesn't work on i9023 with Netarchy 1.3.0.9 kernel

I ran the bln test app, and the result is

BLN enabled: true

NotificationLed enabled:false

isBlnKernel:true

isBlnLiblights:true

Stock 2.3.4 with Netarchy 1.3.0.9 kernel, Bln control pro 0.98...

now with Netarchy 1.3.0.10 kernel, it still doesn't work...:mad::mad::mad::mad:
[Nexus S Q&A, Help & Troubleshooting] MaXAiRO:
Don't trust the BLN test app, it sometimes doesn't show the true results. Did you try sending an sms (or missed call) to your Nexus S to see if it works or not? Other people complain about BLN not working on 2.3.4 builds too. So... Akent, may the power be with you!
[Nexus S Q&A, Help & Troubleshooting] laurenceqi:
i have tried sending SMS or calling it did not work too. i really hope someone to solve this problem. much thx
[Nexus S Q&A, Help & Troubleshooting] taindtamere:
It's strange cause I am on stock 2.3.4 rom with netarchy 1.3.0.9 kernel and SMS works but missed calls don't. My Nexus S is i9023 (SLCD version).
[Nexus S Q&A, Help & Troubleshooting] Dr_Ownage:
Not sure if this has already been answered but you need a BLN compatible Kernel such as Netarchy... or JamesBond...
[Nexus S Q&A, Help & Troubleshooting] eiabea:
does james bond really have BLN support for i9023 phones??
[Nexus S Q&A, Help & Troubleshooting] taindtamere:
yes, it have.
[Nexus S Q&A, Help & Troubleshooting] taindtamere:
It seems that the BLN doesn't work when the screen is on. When a call is received, the screen wakes up and BLN doesn't work. The same behaviour happens when I have the BLN buttons blinking and I just wake up the screen, then the BLN buttons stop blinking.
[Nexus S Q&A, Help & Troubleshooting] DoomFragger:
This is the default LED behavior in AOSP. The Oxygen ROM for Desire had the same issue and they needed to change its default behavior.

Maybe talking with AdamG or _Thalamus can bring some light on this issue. Still I believe that changes were made also at the framework level.
[Nexus S Q&A, Help & Troubleshooting] proxylullaby:
BLN for missed call dose not work with stock 2.3.4...

it's time to update BLN control ....something may change on 2.2.4
[Nexus S Q&A, Help & Troubleshooting] ccriminal:
Any updates for i9023 missed call notifications? BLN is fantastic, but incomplete without it. Also how much battery drain can you expect from leaving notifications to blink indefinitely?
[Nexus S Q&A, Help & Troubleshooting] ccriminal:
..Anyone?! Can anyone share experiences of battery drain with BLN?
[Nexus S Q&A, Help & Troubleshooting] akent:
The issue is leaving the blinking on indefinitely prevents the phone from going into deep sleep - that is, cpu always stays on. Yes, this will definitely drain your battery faster.

A good compromise is to have it blink for say 5 or 10 mins but then go into "leave light on after blink" mode. In this mode it allows the cpu to sleep thus saving battery.
[Nexus S Q&A, Help & Troubleshooting] proxylullaby:
hi akent,

how should I test backlight in app program?

I am trying to write a app for missed call myself

...though I have no exp for java.......~_~

would you please tell me in a simple way?
[Nexus S Q&A, Help & Troubleshooting] akent:
Things have changed in Gingerbread that make this behaviour impossible from an app, without also modifying the framework code. Please read this explanation from neldar.
[Nexus S Q&A, Help & Troubleshooting] proxylullaby:
thx akent

so I have to give up for this ....

i saw

adb shell "echo 1 > /sys/devices/virtual/misc/backlightnotification/notification_led"

works for test

I thought it would be simple to do so in a app....
[Nexus S Q&A, Help & Troubleshooting] akent:
Hmm, maybe. You could indeed do that simple test from an app if you had root privileges. It's a low level interface that bypasses the whole android framework and goes straight to the kernel driver.

My understanding however is that you cannot generate "proper" notifications through the Android framework, but maybe you're right, you could potentially do it directly.

In any case, there's a better solution for Gingerbread as implemented for Samsung Galaxy S in Cyanogenmod. As soon as I get a spare minute I plan to look at porting that for Nexus S.
[Nexus S Q&A, Help & Troubleshooting] proxylullaby:
ok,I'll try it, thx again

and looking forward for your new plan~~
[Nexus S Q&A, Help & Troubleshooting] proxylullaby:
neldar has released a new version BLN control pro

seems all problems are solved for now
[Nexus S Q&A, Help & Troubleshooting] jorim.tielemans:
Hey guys,

i've found another 'very' good kernel with bln-support for 9023,

but there's also one for 9020 users. Just check it out:

http://xdaforums.com/showthread.php?t=1100448
[Nexus S Q&A, Help & Troubleshooting] Kytrix:
playing with bln from console

Hi

I trying to play with BLN from console.

echo 1 > /sys/devices/virtual/misc/backlightnotification/notification_led

and

echo 0 > /sys/devices/virtual/misc/backlightnotification/notification_led

works both great, but how use

blink_control ?

I try to put a 1 inside but nothing change :/

Is there some doc somewhere ?

Kytrix.
[Nexus S Q&A, Help & Troubleshooting] akent:
The blinking is currently handled by the closed-source userspace BLN app. From memory I think it writes 1 and 0 alternatively to blink_control at the requested blink frequency. This changes the LED state when notification_led is set to 1.

You might be interested to have a play with https://github.com/akent/samsung-kernel-crespo where I implemented very basic in-kernel blink support (doesn't rely on the userspace app) with a kernel timer.

I believe neldar (original BLN author) is looking at this method too.
[Nexus S Q&A, Help & Troubleshooting] Kytrix:
Thanks :)

I'm going to see that closer :)
[Nexus S Q&A, Help & Troubleshooting] Pugaciov:
I think I just find out the right combination of ROM and kernel to have BLN working on i9023, and I mean with full blinking support.

Latest Matr1x kernel (8.0) on Oxygen 2.3.

I haven't tried a lot of ROMS but I've always had problems with Matr1x or netarchy kernels, I think that blinking didn't work on neither Cyanogenmod and NSCollab, now it works just fine and it seems to fully respod to the settings in the app.
[Nexus S Q&A, Help & Troubleshooting] kptnk:
It maybe has already been told, but all the TRINITY kernels support BLN, and as far as I know, with all Roms....

http://xdaforums.com/showthread.php?t=1036996

Oh yes, I have a 9023 (now running with Miui Kelmsking and Trinity, Lazy Gov = GREAT :)
[Nexus S Q&A, Help & Troubleshooting] fredbull:
Hi :)

At first, sorry for up this topic from so deep lol.

I get a Nexus S on 2.3.4 (my wife). I dont want to put ICS on this one but just let 2.3.4.

I just want the stock kernel with BLN function . I dont want a Custom Kernel.

I have seen some links on this topic but i would like some advises of which one should i use.

Maybe this one ?

Thanks :)
[Nexus S Q&A, Help & Troubleshooting] fredbull:
Nobody ? :confused:
[About XDA developers] tito12:
I've noticed in the last few days that the envelope with arrow icon doesn't show anymore in Classic view. BTW the icon and meaning are missing from the legend at the bottom of page...

Interestingly I use the classic view because the Xda 2010 view had this behavior from its infancy, after I reported I was told the problem was solved but it worked only after viewing the thread and refreshing the page. I just tried this now but to no avail.

Can someone help me solve or understand this issue?

Thanks