BLN Support for SGS2 - With Example.

samaral

Senior Member
Jul 31, 2006
135
2
0
Manila
Hi Dev's

This is not my code, so credits to the owner 'creams'
I happened to stumble on some code yesterday from somebody who have attempted to integrate BLN to his kernel and done it successfully.


I thought the dev's might like to take a look at this one and implement this on their work.


blog : http://creamsnexus.blogspot.com/
git : git://github.com/creams/SGS2-SC02C-BLN-Kernel.git

His kernel was built for the Jap version of GS2.

Cheers!
 

Nitroz

Senior Member
Jan 13, 2011
1,793
1,845
0
Wakefield
nitroz.org
AdamG has already implemented this into his AOSP ROM and it's working fantasticly, I know another Dev has already implemented it into a ROM just forgot his name. Thanks for pointing us to the source though!
 

HellcatDroid

Senior Member
Jul 15, 2011
1,043
753
0
Cologne Area
Yay, my kernel will have BLN support to in the next version, just need to build all the seperate versions :D

(time to make a "one-for-all" kernel, that goes onto any (stock) ROM.... :rolleyes: )
 

ogdobber

Inactive Recognized Developer
Nov 4, 2008
3,257
1,827
0
the only downside to this bln "version" is that it uses a kernel wakelock that will be hard on the battery:(
 

jlevy73

Senior Member
Nov 8, 2009
9,471
1,302
0
Los Angeles
the only downside to this bln "version" is that it uses a kernel wakelock that will be hard on the battery:(
Yep, people are in for a treat when they realize their battery is being raped. We'll have to wait for CM7 to implement it into the framework like they did with the Optimus 2X/G2X
 

vegetaleb

Senior Member
Feb 26, 2010
10,403
2,388
253
Beirut
Nothing can beat the old good trackball lights on N1 :eek:
It's a pitty all the brands stopped producing trackball,they could just reduce its size :rolleyes:
 

HellcatDroid

Senior Member
Jul 15, 2011
1,043
753
0
Cologne Area
the only downside to this bln "version" is that it uses a kernel wakelock that will be hard on the battery:(
Yep, people are in for a treat when they realize their battery is being raped. We'll have to wait for CM7 to implement it into the framework like they did with the Optimus 2X/G2X
:eek:

:(

Yeah.... that is.... so not nice.... but well.... can't have everything.... :-/

// EDIT
Hm, for one, maybe some things can still be tweaked in the involved kernel code and for the other, how about disabling BLN when not needed? Does that release the wakelock? Haven't checked yet.... should check....

And does the drain/wakelock accour all the time while while activated or only when the lights are actually on - as far as I understood it so far the wakelock ist required to keep the powersupply up for the lights, but when no blinking is needed (due to no notification) the wakelock could/should be released....

Maybe that's something to tweak if that isn't already the case.
If the drain only accours when the lights are on, that's kinda OKish IMO, time to answer the damn phone *lol*
 
Last edited:

ogdobber

Inactive Recognized Developer
Nov 4, 2008
3,257
1,827
0
so creams put out an update that is supposed to release wakelock after the led cycle (pro app needed)
That would be an acceptable solution, I am testing to see;)

ps, btw jlevy he wasn't keen to your battery rape comment:eek:

:eek:

:(

Yeah.... that is.... so not nice.... but well.... can't have everything.... :-/

// EDIT
Hm, for one, maybe some things can still be tweaked in the involved kernel code and for the other, how about disabling BLN when not needed? Does that release the wakelock? Haven't checked yet.... should check....

And does the drain/wakelock accour all the time while while activated or only when the lights are actually on - as far as I understood it so far the wakelock ist required to keep the powersupply up for the lights, but when no blinking is needed (due to no notification) the wakelock could/should be released....

Maybe that's something to tweak if that isn't already the case.
If the drain only accours when the lights are on, that's kinda OKish IMO, time to answer the damn phone *lol*
 

jlevy73

Senior Member
Nov 8, 2009
9,471
1,302
0
Los Angeles
so creams put out an update that is supposed to release wakelock after the led cycle (pro app needed)
That would be an acceptable solution, I am testing to see;)

ps, btw jlevy he wasn't keen to your battery rape comment:eek:
It wasn't anything personally directed at him. I'm very grateful for his work in bringing BLN to our devices. I appreciate the update it looks like it will have a helpful impact on battery life.