yashsingh1/xdaforums huggingface dataset:
[Sony Xperia P, U, Sola, Go] rundgong:
I tried a different approach to solving the custom rom compatibility problem.

I reimplemented the functionality in SemcIllumination.apk and made it write directly to the LEDs.

This way it is independent of any light libs, which means there is no need for any sony libs at all, and it should work for all roms.

All it needs is root to write to the LEDs.

It also works for all three models. It tries to detect S, P or U, but you probably want to verify that it is correct after install

It lacks a few features but should be good enough for notifications at least.

Specifically it lacks setting the theme color. If anyone knows how that color can be set on CM9 I can probably add that too.

Also it does not fade the lights. It's only on/off.

Install it to a clean rom that does not have the sony libs. Most importantly you should not have SemcIllumination.apk installed as they may conflict.

Once it is installed you should not have to install it again after upgrades (unless you wipe it of course...)

Please give it a try and see if it feels like a good solution. Especially feedback for S/P would be good since I have not tried that myself. I only ran it on Xperia U CM9

----

Edit:

To clarify: IlluminationReceiver.apk does not replace Illumination Bar Notification. You need to have both installed.

What Illumination Receiver does is replace all the sony libs used in the previous fixes.

That means other apps that use the illumination framework will also start working when you install Illumination Receiver. I'm not sure but I think that includes Sonys music player and image viewer.
[Sony Xperia P, U, Sola, Go] Dillby777:
Hi Rundgong

I have tested this on my Xepria S running the latest FXP204 CM10 rom and it is working as it should. I haven't come across any problems with it yet.

It did throw me a bit figuring out how it works as you didn't state that it still needed your illumination app, but once i installed that it worked like a charm.

nice work Rundgong.

just out of curiosity how hard would it be to incorporate the torch light flashing with the illumination bar?

cheers
[Sony Xperia P, U, Sola, Go] Dillby777:
Is Illumination Receiver meant to allways request superuser access on device wake up?
[Sony Xperia P, U, Sola, Go] rundgong:
Yes, it starts a background service on boot that listens to the illumination intents
[Sony Xperia P, U, Sola, Go] Dillby777:
Right it just seemed like it was happening every time I woke the device.
[Sony Xperia P, U, Sola, Go] TheHurf:
Perhaps when you allowed Superuser access, the 'remember' box on the Superuser notification somehow got unticked? Just a thought, as I've installed Rundgong's fix, the receiver apk, and the original store Illumination Bar apk, allowed root access and haven't had to grant anything since the initial start up. Even when rebooting a couple times just to replicate your problem.
[Sony Xperia P, U, Sola, Go] yribollen:
Sv: Illumination bar notification app

Great work! I just bought you a stor stark ;)

Skickat från min Xperia U via Tapatalk 2

---------- Post added at 02:07 PM ---------- Previous post was at 01:54 PM ----------

Oh.. Rundgong I'm talking to you. Sorry for spaming

Skickat från min Xperia U via Tapatalk 2
[Sony Xperia P, U, Sola, Go] noob111:
Always on brightness

Hi there,

I tried to find the information via the search but I did not succeed.

First I must say it is a really cool app you got there. Am I right in thinking that the brightness setting does not effect the softkey always on? I set it on the darkest setting and tested it, but after the test it goes back to the brightest setting. The dark setting should suffice concerning the energy consumption.
[Sony Xperia P, U, Sola, Go] eduardorodrigues:
Not working on AOKP ROM ://
[Sony Xperia P, U, Sola, Go] myzar:
this is lights.c from cm9 https://github.com/CyanogenMod/android_device_sony_montblanc-common/blob/ics/liblights/lights.c i think is setting the led to white here

static void set_shared_light_locked (struct light_device_t *dev, struct light_state_t *state) {

int i, r, g, b;

int delayOn, delayOff;

r = (state->color >> 16) & 0xFF;

g = (state->color >> 8) & 0xFF;

b = (state->color) & 0xFF;

0xFFFFFF is white , not sure if this can help you about the theme color
[Sony Xperia P, U, Sola, Go] rundgong:
Thanks man
[Sony Xperia P, U, Sola, Go] rundgong:
Yes, that is how it currently works. It only has full brightness for always on.

You need to be more specific. Does this app not work or do you mean one of the fixes for custom roms mentioned?

There are at least three solutions for that problem mentioned in the last few weeks, so more details is essential.

No, that is way too low level. That is how the colors are set on the actual LED devices. The basic stuff of that I have already figured out.

What I'm looking for is a place where I can write a color and then the android framework would use that color for the button backlights. Or something like that...

I think that would be a decent emulation of the Theme functionality
[Sony Xperia P, U, Sola, Go] Dillby777:
nah the box was ticked, it was the notification saying it was granted SU i was seeing, maybe it was only showing after a reboot, i was rebooting it a few times :)
[Sony Xperia P, U, Sola, Go] thebrainkafka:
AW: Illumination bar notification app

Is there any update or confirmation for this fix app
[Sony Xperia P, U, Sola, Go] aca89:
@rundgong, is this how the UI looks? Because that's all I get after I grant su permission.

How do I set notification lights for calls eg? Should I install illumination bar notification alongside, 'cause I get fc when I do. I'm on cm9, xperia u.

Thanks, sorry if I did something wrong.

EDIT:

Got it.

-disabled led notifications in settings - display

-installed illumination bar notification and turned on accessibility options for it

-installed illumination receiver, selected xperia u, granted su permissions

-restarted the phone and it works like a charm

Thank you once again man!
[Sony Xperia P, U, Sola, Go] thebrainkafka:
AW: Illumination bar notification app

Same question for me
[Sony Xperia P, U, Sola, Go] rundgong:
Aha, maybe I was not very clear in explaining that. IlluminationReceiver.apk does not replace Illumination Bar Notification. You need to have both installed.

What Illumination Receiver does is replace all the sony libs used in the previous fixes.

That means other apps that use the illumination framework will also start working when you install Illumination Receiver. I'm not sure but I think that includes Sonys music player and image viewer.

I will update the original post to clarify this.
[Sony Xperia P, U, Sola, Go] marius88cc:
Hi,

I'm on cm9.1 , i flashed 205 without data wipe and this happens :

when i miss a call, bar starts blinking (screen is still on -a thing on cm)

when the screen turns off the bar starts blinking like knight rider :) and then gets stuck with 2 letds on and 1 off.(after unlock it's unstuck)

Is this because i didn't wipe data? Also i did not fastboot boot.img from fxp205 (i updated from 204) is that taken care of when you flash in cwm, the kernel i mean ?
[Sony Xperia P, U, Sola, Go] thebrainkafka:
AW: Illumination bar notification app

Can we delete illumination receiver after first setup?
[Sony Xperia P, U, Sola, Go] rundgong:
What fix did you use? Illumination Receiver, or one of the older fixes?

No matter what you do there is a possibility that different apps writing to the leds at the same time will cause weird behavior.

Depending on the solution you may get frozen leds when it goes to sleep, but I think that should not happen with Illumination Receiver.

No, Illumination Receiver must run in the background for the LEDs to work.

This is the same as with SemcIllumination.apk on stock rom. It always runs in the background, but you don't see it because it does not have a GUI
[Sony Xperia P, U, Sola, Go] thebrainkafka:
works like a charm on XU FXP!
[Sony Xperia P, U, Sola, Go] DanielNL:
Rundgong, why is always when I start up my Xperia U (turning it on after it was completely turned off) the blue bar flashes? As if there would be some notification... I do not know which application would cause this, since I have set "All notifications temporarily disabled" and still this happens... I thought the bar would be off completely then... ?
[Sony Xperia P, U, Sola, Go] rundgong:
Are you sure it is my app that lights the bar on startup? Normally my app should not notify when you disable it.

Also you should be able to see from the color + blink rate what app it is if you set different settings for each app.
[Sony Xperia P, U, Sola, Go] DanielNL:
I am sure it is your app since also I get the notification bar up on the dropdown-menu on top of the screen...
[Sony Xperia P, U, Sola, Go] rundgong:
Ok. But you do not recognize the color from any of the notifications you have set?
[Sony Xperia P, U, Sola, Go] DanielNL:
No... could be Outlook app (Microsoft) or Picture Password Lockscreen (an app from xda developers too) though... (I haven't added them to the list, but will do now and set them both on "disabled" to test it, though "All notifications temporarily disabled" should also not have lighten up the bar through your app at all, huh?)
[Sony Xperia P, U, Sola, Go] rundgong:
If you haven't added them they can't make it blink.

I can see two possible reasons for blinking during startup.

1: battery notification if it is low or high and those notifications are enabled.

2: SMS/MMS notifications. if you have unread messages it might notify. MMS are particularly tricky. Reading status of MMS does not seems to be working very well, so that might cause issues.

Otherwise I have no idea.
[Sony Xperia P, U, Sola, Go] DanielNL:
Very possible that it's the battery notification... :P I'll check it.
[Sony Xperia P, U, Sola, Go] marius88cc:
I used Illumination Receiver, because i'm on cm9.

Turned off SCREEN OFF ANIMATION and it blinks normally - no freeze - conflict with screen off animation ? ..
[Sony Xperia P, U, Sola, Go] rundgong:
Weird. I have no idea how it can behave like that
[Sony Xperia P, U, Sola, Go] Dillby777:
something I've found running the Illumination Receiver is the notification for sms doesn't always get dismissed, you have to turn the screen off then back on and unlock just to dismiss it.
[Sony Xperia P, U, Sola, Go] yribollen:
Sv: Illumination bar notification app

My illumination bar reciver app force closes every now and then. I don't see any connection to somthing I do that causes this.

I'm on cleen fxp205 Xperia U. Could it be that I'm running out of RAM and that android closes it?

Skickat från min Xperia U via Tapatalk 2
[Sony Xperia P, U, Sola, Go] aca89:
+1

It recovers right after but it's still annoying. Also on 205.

@Rundgong do you encounter similar behavior? Maybe already know what it is? :)
[Sony Xperia P, U, Sola, Go] marius88cc:
happening to me too
[Sony Xperia P, U, Sola, Go] rundgong:
Hmm, that is weird.

I have not seen that. Does it give you an error message that has any clues when it closes?

Can someone get me a logcat printout when it happens? Maybe that has more info
[Sony Xperia P, U, Sola, Go] yribollen:
Sv: Illumination bar notification app

Here is a screen. Sorry I'm a noob here, but logcat? I have to google this and come back. It's swedish and just says that the app has stopped.

Not much help but this is the message I get pretty often.

Great work anyhow!

Skickat från min Xperia U via Tapatalk 2
[Sony Xperia P, U, Sola, Go] rundgong:
Yeah, that message does not help a lot :)

logcat is where android does most of its logging. you can view it from your computer if you have adb installed with "adb logcat".

There are apps that let you view it from your phone. For example this: https://play.google.com/store/apps/details?id=org.jtb.alogcat
[Sony Xperia P, U, Sola, Go] yribollen:
Ok, thanks

:highfive:

but i actually figgured out that my self (thank you google). Anyway here it comes. Lets just hope it's not any sensitive info in there. It's pretty long so i hope you know how to use ctrl+f ;)

And like I said thank you for your hard work!
[Sony Xperia P, U, Sola, Go] rundgong:
I think I got it. Try the one attached in this post.
[Sony Xperia P, U, Sola, Go] underskyzx:
I bought your Disco app you should merge both apps IMO make something like LED Toolbox and put everything that works with the LED bar there.

Would be nice to add the rainbow effects from Disco to IBN too.
[Sony Xperia P, U, Sola, Go] rundgong:
The two apps use completely different methods for lighting the leds. Also one requires root and the other does not, so I don't think it would work well to merge them into one app.
[Sony Xperia P, U, Sola, Go] wisnuhadi23:
@rundgong

I applied your fix for CM9 for my Xperia U this one, everything works fine except one thing.

Every time I got a missed call the led on top right corner turns on white and never goes off, I always have to reboot the phone to turn that led off.

is there anyway to fix that ? or did I make any mistake here ?

By the way, the illumination led does not turn green while charging which is great, thank you for that :D
[Sony Xperia P, U, Sola, Go] rundgong:
I think there was some talk about that earlier in the thread.

The solution i recommend is installing Illumination Receiver instead of all the proprietary sony libs. It has less side effects.
[Sony Xperia P, U, Sola, Go] rundgong:
New version of Illumination Receiver. It contains a fix for Xperia P
[Sony Xperia P, U, Sola, Go] wisnuhadi23:
I installed the Receiver few days ago, but the thing is that the led still turns green while charging. I know opening U-disco would turn that led off but when there is notification coming the led goes to green again.

is this fixed in the last Illumination Receiver you posted ?
[Sony Xperia P, U, Sola, Go] rundgong:
No. That is not my apps doing. That is a FXP feature I think.
[Sony Xperia P, U, Sola, Go] wisnuhadi23:
Hmmm, I see. So what is it that causing the led to stay white ?

This is exactly the time where I wish I had more knowledge on this :'(
[Sony Xperia P, U, Sola, Go] rundgong:
The sony libs does not work 100% together with CM9
[Sony Xperia P, U, Sola, Go] XUx3:
For those who want myzar's fix:

All credits go to myzar :)
[Sony Xperia P, U, Sola, Go] donmarkon:
Одг: Illumination bar notification app

what this fix do? Tnx

Послато са Xperia U користећи Тапаток 2
[Sony Xperia P, U, Sola, Go] XUx3:
These are the lib files which are needed to make the illumination bar work like on stock rom and a modified boot.img to start the illumination service

regards
[Sony Xperia P, U, Sola, Go] donmarkon:
does this work on fxp205 ?
[Sony Xperia P, U, Sola, Go] marius88cc:
Works for me, but not the theme color option, in 206 it worked. But main thing - notifications work.

Rundgong, quick request : fade control for the illumination app could that be done ? i like it with no fading.
[Sony Xperia P, U, Sola, Go] rundgong:
No, only on/off times are available for the illumination api. So custom fading is not possible for this app.
[Sony Xperia P, U, Sola, Go] Von Bleaux:
For change the color of LEDs use Illumination Bar Notification by clicking on "Set Theme Color"

Sorry for my English
[Sony Xperia P, U, Sola, Go] Slavko87:
I have problem with mine with mine Sony Xperia J ST26.. Ilumination bar worked prefectly on mine phone before i was updating firmware to 11.0.A.7.5 .. Now led bar wont blink with any notification i get on phone.. It just get turned on (like i was selected option never blink). What to do guys ? Tnx :o
[Sony Xperia P, U, Sola, Go] costyprj:
hy

this work for htc pico?
[Sony Xperia P, U, Sola, Go] Asycid:
Is it possible somehow to change the LEDs individually? I mean like one of the three is green, other is red and the third is blue, or to control the times for each one for notifications? Like in the "cop siren" demo?
[Sony Xperia P, U, Sola, Go] rundgong:
No, this is only for Sony Xperia phones
[Sony Xperia P, U, Sola, Go] rundgong:
No. You need root for that.

There is another app that does that called Leds-U-Ctrl
[Sony Xperia P, U, Sola, Go] Asycid:
@rundgong:

I have root, so it's not a problem. I've tried Leds-U-CTRL, but I've not found this feature in it (I mean the timing of each LED individually). Maybe I'm missing something?
[Sony Xperia P, U, Sola, Go] nixx-X1:
LUC (LEDs-U-CTRL) does give control over the individual colors, but, indeed, LUC doesn't give the ability to control the single leds with individual timings.

If you're a bit skilled with scripting you could give this a try > http://xdaforums.com/showthread.php?t=1929895

but will have to build your own alerts around it, or use it in combination with Tasker
[Sony Xperia P, U, Sola, Go] Slavko87:
:crying:
[Sony Xperia P, U, Sola, Go] rundgong:
There's not a lot you can do. hopefully Sony will fix it again in another update
[Sony Xperia P, U, Sola, Go] Slavko87:
Damn :/ tnx for the reply mate .. If knew it, would never do that :D
[Sony Xperia P, U, Sola, Go] XUx3:
Illumination fix for fxp207

Credits to myzar :)

Edit: Now it's working :p
[Sony Xperia P, U, Sola, Go] Narathan:
Hmm, my xperia P refuses to boot after flashing this one. Flashed through CWM, then tried to flash through fastboot... Re-flashed FXP207 made it work again. Am I doing something wrong?
[Sony Xperia P, U, Sola, Go] rundgong:
Isn't that one only for Xperia U?
[Sony Xperia P, U, Sola, Go] whalesplaho:
does dis app work for CM....?
[Sony Xperia P, U, Sola, Go] rundgong:
yes. have a look at the first post
[Sony Xperia P, U, Sola, Go] whalesplaho:
saw it brov but needs illuminationreciever.apk to work & also re yhu not yet permitted to post apk file cos i cant find illumination bar app?

if one wanna use on stock, is illuminationreciever.apk also needed or only for CM roms?
[Sony Xperia P, U, Sola, Go] rundgong:
Illumination Bar Notification is on google play here: https://play.google.com/store/apps/details?id=com.rundgong.illuminationcontrol

Illumination Receiver is only needed if you are on CM. It replaces some of the sony libs that are available on stock rom.
[Sony Xperia P, U, Sola, Go] whalesplaho:
thanks a ton for tha clarification...... :good:

Sorry, you are limited to 8 thanks per day... i owe yhu brov!

would have love to donate but Paypal aint available in my country.
[Sony Xperia P, U, Sola, Go] XUx3:
FXP208 illumination bar fix

Credits again to myzar :)
[Sony Xperia P, U, Sola, Go] sicaronaldo:
its not workin bootloader blocked ... ilumination bar turned off but the screen phone not turn off anymore
[Sony Xperia P, U, Sola, Go] XUx3:
It's for unlocked BL
[Sony Xperia P, U, Sola, Go] iamsuperuser:
@rundgong

Can u pls add coloured theme for Xperia P also, I'm ready to test it on my Xperia P

Why is it that only Xperia U can have coloured theme ??
[Sony Xperia P, U, Sola, Go] :
It's hardware related mate
[Sony Xperia P, U, Sola, Go] whalesplaho:
tha Bottom Led light blinks without Notifications most times, why please?
[Sony Xperia P, U, Sola, Go] rundgong:
It depends what apps you have enabled notifications for. It is possible that an app adds a notification in the statusbar and then removes it. My app can't detect when it is removed so it might look like it blinks for no reason.

If you set different blink rates on different notifications you should be able to figure out which one is the causing the problems.

Otherwise you can disable notifications one by one until it goes away.

It is also possibly one of the phone-notifications. They work without notifications in the status bar
[Sony Xperia P, U, Sola, Go] whalesplaho:
I enable whatsapp & i have unread notifications but i thought it wont disturb since there is no connection on! i just wish XP can blink more dan tha white light.

thanks a ton. great app brov & any plan on updates?
[Sony Xperia P, U, Sola, Go] stavca:
not working on mine XS with JB, was working before on ICS, but now it's no chance, I tried the fix with copying libs, but it didn't work, then I tried also to install receiver, but still it doesn't work
[Sony Xperia P, U, Sola, Go] rundgong:
What libs did you copy? The solution mostly discussed here lately is only for XU.

Did you remove all the libs you added before you installed Illumination Receiver?

I think there may be complications if you have both solutions in at the same time.
[Sony Xperia P, U, Sola, Go] stavca:
libs from solution for CM10 users, but they aren't in my system anymore because I tried it on FXP207, now I am on 208 and tried the solution with receiver, but still no luck
[Sony Xperia P, U, Sola, Go] rundgong:
try this to verify the leds work ok:

in a root shell enter this:

echo 255 > /sys/class/leds/button-backlight/brightness

If everything is ok that should light your led bar.
[Sony Xperia P, U, Sola, Go] stavca:
no, LED above display is blinking, but the button LEDs dont, in the file you sent me was value 153 before change and the LEDs bar is normally working, but with this app I dont have luck...
[Sony Xperia P, U, Sola, Go] rundgong:
That is weird. Does it stop blinking if you enter 0 instead of 255? What color does it blink with?

Enter this in the shell and paste the output here:

ls -l /sys/class/leds

Maybe that can give some clues.

You can also try setting the brightness of the other leds and see if anyone of them lights the led bar
[Sony Xperia P, U, Sola, Go] stavca:
I don't have any screenshot taking app, so the folders in location you provided are:

blue

button-backlight

camera:flash0

camera:flash1

green

lcs-backlight

red

but if it's important to you to know some other things, I'll install some screenshotter and share a screenshot ;)
[Sony Xperia P, U, Sola, Go] rundgong:
Yes, the rest of the info could be important also.

Cant you get a screenshot from the menu on the power button?

Also i'd like to know the following:

what color is it blinking?

does it stop when you set brightness to 0?

does the other leds work as expected when you set the brightness on them?
[Sony Xperia P, U, Sola, Go] XUx3:
AW: Illumination bar notification app

For screenshot just press power button+volume down :)
[Sony Xperia P, U, Sola, Go] stavca:
- I feel like a dumb now :D so screenshot is included in the attachment now ;)

- as I have Xperia S, LEDs are white (for haptic buttons)

- and yes, if I set 0 for max brightness, the LED bar under the display won't light

- the informative LED above the display is working ok I think, it's showing missed calls, messages etc
[Sony Xperia P, U, Sola, Go] rundgong:
You said that the led ABOVE the display started blinking when you did "echo 255 > /sys/class/leds/button-backlight/brightness"

Now I'm getting confused...
[Sony Xperia P, U, Sola, Go] stavca:
oh, we misunderstood each other, if I set button backlight brightness to 255, the LED bar under the display lights very bright white color and if I set it to 0, it won't light
[Sony Xperia P, U, Sola, Go] rundgong:
OK. then the LED is working as expected. Then I think illumination receiver should work.

Is the device set properly if you go into Illumination Receiver settings?
[Sony Xperia P, U, Sola, Go] stavca:
yes, in the Receiver is set Xperia S, but if I'll go into the Illumination Bar Notification and set something there, it's not working :( not even the test button...

but I am testing it right now again and it seems it should be working :) I installed the Receiver at first now
[Sony Xperia P, U, Sola, Go] rundgong:
And you do not have SemcIllumination.apk from the sony libs installed?

Havnig that installed could lead to a conflict
[Sony Xperia P, U, Sola, Go] stavca:
no, I don't and didn't have this installed, but thank you for your help ;)
[Sony Xperia P, U, Sola, Go] sjnonweb:
xperia u

Xperia U. Unlocked boot loader, rooted, and CM 9 fxp208

Now there's a bug, The illumination bar keeps turned on while charging the phone or even connecting it to PC, Do you know if there's any way to bypass this.

Night mode, illumination bar notification and LEDs U ctrl..tried everything.still not working.
[Sony Xperia P, U, Sola, Go] whalesplaho:
maybe yhu enabled charging in INB settings.