yashsingh1/xdaforums huggingface dataset:
[Sony Xperia P, U, Sola, Go] prabhav.3892:
Music Beat effect

[MENTION=4687087]rundgong[/MENTION]

hey man,

I have got a Xperia SP

its a wonderful work you have done with the illuminationreciever.apk for non stock roms.

i have managed to get the LED's work while playing some music in the walkman but the LED's keep glowing continuously they do change the colors also based on the album cover.

Only thing missing is that they do not blink according to the beats.They do not blink at all they keep glowing continuously all the time when the song is being played.

it would be nice if you can suggest some workaround to make them blink according to the beats as in stock or if you include that in your next update that would be very awesome.

thanks in advance.;)
[Sony Xperia P, U, Sola, Go] rundgong:
I have already created another app that has the leds blinking to the beat. it's called U-Disco
[Sony Xperia P, U, Sola, Go] prabhav.3892:
i am talking about that only i use that for music effect but the LEDs keep glowing continously they do not blink as per the beats.
[Sony Xperia P, U, Sola, Go] alabamajack:
Illumination Receiver API

I've tried it on Xperia SP and it work great.

Is there any chance that you can given a "Illumination-Receiver-API" to allow other developers to work with this API?

Thanks for this great work!
[Sony Xperia P, U, Sola, Go] rundgong:
Sony published that already.

http://developer.sonymobile.com/knowledge-base/experimental-apis/illumination-bar-api/
[Sony Xperia P, U, Sola, Go] alabamajack:
reply

[HERE should be a Quote, but because I am a new user, there cannot be links in my posts for the first time ;)]

Yes I see that and want to use this like in the description of the api.

But I'm running with CM11 and there are not these packages installed. Is there a wrapper in the receiver for using the Receiver like there would be the sony packages and I did something wrong when wanted to use the Illumination-Bar over the Illumination-Receiver?

Or did we talk past to each other?:D:D

greetings
[Sony Xperia P, U, Sola, Go] rundgong:
The IlluminationReceiver does most of what the sony packages does, but not exactly the same. If you are just trying to get some lights going it should be a good enough replacement.

How are you trying to do it?
[Sony Xperia P, U, Sola, Go] alabamajack:
I've deinstall the Illumination Bar Pro and started like in the Sony-Api descriped(only turns the LED on)

Intent intent = new Intent(IlluminationIntent.ACTION_START_LED);
intent.putExtra(IlluminationIntent.EXTRA_LED_ID, IlluminationIntent.VALUE_BUTTON_2);
intent.putExtra(IlluminationIntent.EXTRA_PACKAGE_NAME, "com.yourapplication.packagename");
startService(intent);

I've setted the permissons in the android-manifest and I check if the com.sonyericcson.illumination.intent exists(like in the doku of Sony), and the app find the package. But nothing happens...:(
[Sony Xperia P, U, Sola, Go] rundgong:
You probably also need the color and the time

intent.putExtra(IlluminationIntent.EXTRA_LED_ON_TIME, onTime);
intent.putExtra(IlluminationIntent.EXTRA_LED_COLOR, color);
[Sony Xperia P, U, Sola, Go] alabamajack:
I will test this tomorrow, thanks for your help. So I think the notification bar should be no problem when it is still installed?!
[Sony Xperia P, U, Sola, Go] rundgong:
Yeah, you can keep the notification app. They will not interfere
[Sony Xperia P, U, Sola, Go] alabamajack:
THANKS a lot!! It works, I thougt it is enought to do the things like in the Sony-API...

So I have to say more thank you for the Receiver than the Notification Bar (Pro), because I've paid for that :laugh::laugh:
[Sony Xperia P, U, Sola, Go] Clauderain31:
Hi Rundgong,

I apologize in advance for my very bad english. I'm french ;)

First of all, Thanks a lot for this great API that I use every day since two years. Very very practical. I used it on my xperia U, unfortunately, someone has stolen my phone some days ago.

That's why I plan to buy the new xperia M2, but before this purchase, I'd like to be sure that illumination bar notification API runs on this phone. Could you say me if it does ?

Thanks again for this very cool and practical idea :good: :good:
[Sony Xperia P, U, Sola, Go] rundgong:
I don't know if it works on M2. I haven't tried it myself.
[Sony Xperia P, U, Sola, Go] le grande magnetto:
pure gold :) btw [MENTION=4687087]rundgong[/MENTION], is it possible to implement effects from u-disco to this app? like having a running light in call and etc? that would be cool.
[Sony Xperia P, U, Sola, Go] robw1978:
I would definitely pay for the pro version if it had the effects from U-Disco.
[Sony Xperia P, U, Sola, Go] rundgong:
Technically it would be possible i guess, but I dont really want to add root access to it.

It already requires too many permissions... :)
[Sony Xperia P, U, Sola, Go] le grande magnetto:
it already requires notification access and illumination receiver (which is necessary for non stock based ROMs) already requires root so another one root access is not a big deal I guess. :) I mean c'mon, don't be shy :D

btw, my ringtone is theme from Knight Rider, so that bouncing red light ant the bottom.. ah, that would be sweeeeet! :D
[Sony Xperia P, U, Sola, Go] henry_acevedo:
Does not Work for Sony SP

It work, only within the app, but when we got out only middle led turn on when i got a notificaion. i willl try the libs option lIBS DOES NOT work at all, I really want to get this to work anyone with an sp on cm11 that actually make it work?
[Sony Xperia P, U, Sola, Go] rundgong:
This app does not normally require root. That's only for custom ROMs. I don't want to add a root dependency to it either.

I guess it would be possible to mod the IlluminationReceiver so it does some animations, but then it would no longer behave like stock. That would also not let you have different animations for different notifications, but one animation that override all other behavior, or something like that
[Sony Xperia P, U, Sola, Go] le grande magnetto:
Im with SP on mokee. Did you enabled and chose "Illumination bar" in specific notifications?
[Sony Xperia P, U, Sola, Go] DjowBr:
Nice APP man, using it in my SP but it will be amazing to have fully working like on stock, since we will not get KitKat this APP will help to get the effects in custom ROMs with the xperia UI

Sorry for poor english
[Sony Xperia P, U, Sola, Go] robw1978:
How about adding a root switch into it? This is what light flow (another notification app) does.

That way the extra libraries and root access functionality aren't loaded until this is checked. And have a warning for non-rooted users not to use it.

That way you would keep everyone happy.

Or alternatively is it possible to mod IlluminationReceiver so that when it receives the request for a particular colour and flashing combo that pre-defined multi-colour patterns could be triggered instead.

All just ideas. If I had the coding chops I'd do it myself.

Thanks for all your work.
[Sony Xperia P, U, Sola, Go] Gabboxxx:
Sorry , it works whit u_disco ??

In sp whith cm11,??

Thanks

What are the steeps??

I already install the illumination reciever :0
[Sony Xperia P, U, Sola, Go] rundgong:
Both apps work in CM. No extra steps needed if you have illumination receiver installed
[Sony Xperia P, U, Sola, Go] kepetrov:
is there any chance to make illumination bar working fine on Xperia S with custom CM11 Rom ? Thanks
[Sony Xperia P, U, Sola, Go] PunchUp:
What do you mean by “working fine”?
[Sony Xperia P, U, Sola, Go] kepetrov:
it works with the illumination reciever, but in 20 seconds stops or the light stands still

xperia s with carbon 4.4.4 rom
[Sony Xperia P, U, Sola, Go] PunchUp:
Oh that's weird :confused: Works fine here.. I use PA
[Sony Xperia P, U, Sola, Go] rundgong:
That sounds like a power save problem. If the device goes to sleep, and does not let IR wake up the blinking will stop and the LED will stay in what ever state it has at the time.
[Sony Xperia P, U, Sola, Go] kepetrov:
notification led in upper left position is blinking without any problems

http://youtu.be/z4qA8y-sud8 - this happens
[Sony Xperia P, U, Sola, Go] rundgong:
I'm not sure how that works, but it's possible that it is running in a different process that is allowed to wake the phone.

I'm not sure how your rom works but I think it should be possible to tweak the power save feature for different apps
[Sony Xperia P, U, Sola, Go] ddurdle:
A great app, but I found an issue. I have two apps called Calendar. The application can't seem to decipher between the two as it only lists a single Calendar app under apps. So it's probably defaulting to Google Calendar. Any way to modify the code to list all apps installed, even ones with the same name. If the OS doesn't allow apps with the same name, it wouldn't allow them to install. so the issue is valid.
[Sony Xperia P, U, Sola, Go] rundgong:
Did you try looking for it "Add more apps"?

The one shown by default is the android system calendar. That is not the same as the Google Calendar, but very similar.

If you install another calendar app it may also have only the name "Calendar" but it should still be available under "add more apps"
[Sony Xperia P, U, Sola, Go] ddurdle:
There is a single Calendar that shows up "add more apps". I have two apps with the name "Calendar" that show up on the Android Apps Menu. Setting this app to capture notifications from "Calendar" is capturing only from the built-in Calendar application, that I'm not using.
[Sony Xperia P, U, Sola, Go] rundgong:
The one in "add more apps" is not the same as the other one. If you add it you will get two Calendar entries in the app section.
[Sony Xperia P, U, Sola, Go] In-Fuse:
Did you solve this? I have same problem with my Xperia SP, CM11 Snapshot M11.
[Sony Xperia P, U, Sola, Go] In-Fuse:
Ok, I noticed this:

When the diplay is turned off, there is a problem with the diodes. At the start everything works fine, all diodes are blinking, but after a while it doesn't work correctly. Sometimes they are all always on, or only of them is blinking etc.

When I turn the display on, but don't unlock it, the diodes will start blinking without a problem again.
[Sony Xperia P, U, Sola, Go] In-Fuse:
Last notice: The blinking is also working correctly when the battery is charging.

Maybe this will help to find out where is the problem.
[Sony Xperia P, U, Sola, Go] rundgong:
Definitely sounds like a battery-save feature.

The ROM does not let IlluminationReceiver wake up
[Sony Xperia P, U, Sola, Go] In-Fuse:
Probably yes, but I didn't find any option how to disable it in the settings. It must be a function of the system which can't be changed easily. It's strange because in the original ROM it was working even if the stamina mode was on.

Is there someone who made it working correctly on Xperia SP with CM11?
[Sony Xperia P, U, Sola, Go] ShinOrochiX:
Purpose?

Sorry for the noob question but what is the purpose of this app, I'm failing to see it. I have the Xperia SP and when I was on CM11 my LED worked fine (missed calls, messages etc...) so what change would this app provide? :confused:

I give credit to the developer but I personally just am unsure. :confused:
[Sony Xperia P, U, Sola, Go] PunchUp:
First of all, this is not for custom ROMs exclusively.

And before SP, Sony's NXT devices didn't have any way to control notifications. That is where this wonderful app was introduced! But since then it has grown even more in scope

And it wouldn't be an exaggeration to say that SP received those features because of this app ;)
[Sony Xperia P, U, Sola, Go] ShinOrochiX:
So as an SP user I don't need this app on stock rom and the same probably applies for CM?
[Sony Xperia P, U, Sola, Go] rundgong:
You can still override and customize notifications, in a way you cant do on stock.

Not sure how it applies to CM though
[Sony Xperia P, U, Sola, Go] maurensen:
The same. I have xu with cm kk and use this app to customize my illumination light. You can set color blinking frequency quiet hours.... Not possible otherwise.... So yes for me it's a must have app!
[Sony Xperia P, U, Sola, Go] ShinOrochiX:
Tested...

Hi guys,

I tried the app on stock ROM and have concluded that there is no need for it, it only offers one setting which is for a fading effect (which stock already has-e.g. when you get a message a blue light fades in and out). As for CM I'm not sure but as people report it looks like it is worth having-so I will definitely try it when I go back to CM11.

Either way thumbs up for the op for creating this tool. :good:
[Sony Xperia P, U, Sola, Go] Mysteoa:
Hi All,

I have just flashed to CM11 (m11). I'm trying to get my SP to function the same way as stock.

I have some problem with this app. Other problems I have is that i cant set "Android notification " on to Incoming call,s I only have "Illumination bar" as an option.

Setting to "Illumination bar" will not work for the SP. When i set it to "Android notification" only the mid diode works. The SP has 3 diodes, but the app only uses the mid one.

I would like to be able to put notification for when the alarm is on.
[Sony Xperia P, U, Sola, Go] pabjimlop:
You also need this Illumination Receiver

http://xdaforums.com/showthread.php?t=2607897
[Sony Xperia P, U, Sola, Go] Amor Cbr:
Notwork on xperia m2
[Sony Xperia P, U, Sola, Go] Kobalto07:
you're in

Xperia P, U, Sola, Go Themes and Apps

thread, is clear that it will not work on your M2
[Sony Xperia P, U, Sola, Go] PunchUp:
Not exactly. This app is meant for many other devices like S, SL, SP, etc
[Sony Xperia P, U, Sola, Go] rundgong:
Sony have not provided the illumination libraries on most new devices.

M2 is one such device I believe, and then my app wont work properly
[Sony Xperia P, U, Sola, Go] Velexas:
The app doens't work on JB (Xperia P). Why?
[Sony Xperia P, U, Sola, Go] ShinOrochiX:
Are you using both IlluminationReceiver and Illumination Bar Notification?

I initially was only using the receiver and didn't notice anything new, but later found that you require the play store app to actually do most of the changes. :o
[Sony Xperia P, U, Sola, Go] Velexas:
Maybe that's it! Thank you :)
[Sony Xperia P, U, Sola, Go] R3t0qX:
Nice work :)
[Sony Xperia P, U, Sola, Go] le grande magnetto:
is it possible to make led blink every few minutes with no notification? just to make it pulse every few minutes.

@rundgong have any suggestions?
[Sony Xperia P, U, Sola, Go] rundgong:
Technically it would not be difficult to do, I guess.

Why do you want to do that?
[Sony Xperia P, U, Sola, Go] le grande magnetto:
just to see in the dark or even in light where my phone is or smt.. to know that it's breathing :D once in a minute or smth, to save battery ant not to catch too much attention all the time.
[Sony Xperia P, U, Sola, Go] rundgong:
I think it would probably be a better solution to create an app that specifically does this.

Either by directly controlling the lights, or just putting up a status-bar notification when you want the light on, and then use this app for the actual controlling of the LEDs.
[Sony Xperia P, U, Sola, Go] le grande magnetto:
I have one app that is constantly in notification - ACR (call recorder) beut after one blink led stopped.. idk why.
[Sony Xperia P, U, Sola, Go] PunchUp:
[MENTION=4687087]rundgong[/MENTION] could you please add an intent for temporarily disable? Due to the latest WhatsApp web feature I often use it on my PC now. And it would be handy to create a custom shortcut for disabling rather than opening the settings again and again
[Sony Xperia P, U, Sola, Go] rundgong:
There is already a widget that lets toggle this.
[Sony Xperia P, U, Sola, Go] PunchUp:
Yes I'm aware. But would've been cool if I could add a custom shortcut to my notification panel toggles. Anyway just a request. It's fine if you choose not to
[Sony Xperia P, U, Sola, Go] mrsatan:
I wish this worked with z2 illumination. I think they changed it. It
[Sony Xperia P, U, Sola, Go] rundgong:
It might be possible to do something for rooted devices, by since I don't have one of those that I can play around with it's hard to know
[Sony Xperia P, U, Sola, Go] Sheera Kavannah:
Hi, I just put Cyanogenmod 12 on my xperia u, and I tried installing your app on my phone but it doesn't work. Illuminationreceiver won't open when I want to install the apk, how can i solve? My phone is rooted. Thanks.
[Sony Xperia P, U, Sola, Go] rundgong:
Do you get any error messages when you install IlluminationReceiver?
[Sony Xperia P, U, Sola, Go] PunchUp:
Working fine with CM 12 on my XS
[Sony Xperia P, U, Sola, Go] Sheera Kavannah:
Yes, when i click on the apk it says: impossible to open file.
[Sony Xperia P, U, Sola, Go] rundgong:
Sounds like there is something wrong with the file you have.
[Sony Xperia P, U, Sola, Go] Sheera Kavannah:
Could it be because it is an old file? And it's not compatible with lollipop?

I'll try to download it again, or maybe is there an updated version for android 5.1? Thank you so much for the help.
[Sony Xperia P, U, Sola, Go] rundgong:
There has not been any changes to IlluminationReceiver for 5.1.

It sounds like your file got corrupted during download or something like that.
[Sony Xperia P, U, Sola, Go] PunchUp:
Someone in XS forum mentioned that it isn't working in CM 12.1
[Sony Xperia P, U, Sola, Go] Sheera Kavannah:
It is probably like that, i downloaded the file three times and still doesn't work. Infact I have CM 12.1
[Sony Xperia P, U, Sola, Go] PunchUp:
You said 12 earlier so I didn't say anything about that
[Sony Xperia P, U, Sola, Go] Sheera Kavannah:
Oh sorry, probably forgot about that. So will the app be updated? Thanks for your help and congratz for your work, I used your app for 3 years.
[Sony Xperia P, U, Sola, Go] PunchUp:
It's not my app
[Sony Xperia P, U, Sola, Go] rundgong:
It works for me.

I installed the latest CM12.1 from this thread:

http://xdaforums.com/xperia-u/u-development/rom-unofficial-cyanogenmod-12-xperia-t2986729

Copied IlluminationReceiver.apk it to sdcard using adb.

Installed by clicking the file in TotalCommander.

I do not see any problems.
[Sony Xperia P, U, Sola, Go] Sheera Kavannah:
This is strange, if I open the file from Downloads ot doesnt work, now i opened it from the file manager and it worked. Everything work fine now! Thank you for your time.
[Sony Xperia P, U, Sola, Go] kepetrov:
This was maybe a year ago ..

Now im using CM 12.1 /SXS uCyan/ and the problem is exactly the same... is there any suggestions ?

both apps have permision to wake up device in privacy guard.
[Sony Xperia P, U, Sola, Go] rundgong:
Did the problem go away for a while, and is now back or has it been the same all the time?
[Sony Xperia P, U, Sola, Go] kepetrov:
When i was with carbon 4.4.4 I didnt use your app because of this problem , but when im going with ucyan 5.1 I decided to test it again and the same problem for me..

This app work correctly with stock rom only for me... I dont know where is the problem..

Is there any chance these two apps (down) to make conflict with your app ?
[Sony Xperia P, U, Sola, Go] rundgong:
There is always a chance, but if they are well written there should not be any problems
[Sony Xperia P, U, Sola, Go] yunamunchy:
not working on XSP 5.1.1, it is working on my xs on 5.0.2. any news?
[Sony Xperia P, U, Sola, Go] BlueJeans:
Brightness doesn't work with the latest version of this app on Xperia P on stock JB. Although it used to work with version 2.10 with few bugs.
[Sony Xperia P, U, Sola, Go] rundgong:
Not sure about that. There is nothing in either this app or IlluminationReceiver that depends on the android version as far as I know

There were some changes in the last version of XP stock ROM that broke the Illumination API. I think I got around some of it, but maybe there are some bugs left.
[Sony Xperia P, U, Sola, Go] yunamunchy:
have you tried it on your phone with any 5.1.1 rom? i dont really understand too why it doesnt work on 5.1.x but works on 5.0.x
[Sony Xperia P, U, Sola, Go] rundgong:
No, I'm still running stock rom on my SP, so I have not tried any 5.x roms
[Sony Xperia P, U, Sola, Go] BlueJeans:
Is there any way to set the default brightness high by modifying some values in system files? My phone is rooted and BL is unlocked. I changed the value of sys/class/leds/so34-led0,1,2/brightness from 45 to 200. It worked but again it was reset to default 45 when I turned off the screen.
[Sony Xperia P, U, Sola, Go] rundgong:
Not that I know of.

Setting those ledxxx/brightness only modify the current value. It's only has effect until someone else gives it a new value.
[Sony Xperia P, U, Sola, Go] yunamunchy:
i think the problem that is why illumination receiver led bar is not working for 5.1. maybe having some conflicts or something
[Sony Xperia P, U, Sola, Go] kojata:
Working just fine on AICP 10
[Sony Xperia P, U, Sola, Go] yunamunchy:
its working because of liblights added by devs. last time this app works properly was on 5.0.x on my xperia s. during 5.1 roms this app was not working anymore
[Sony Xperia P, U, Sola, Go] automizzer:
Is it normal that i have 'blink rate' option disabled for every event on Xperia L with the newest version??
[Sony Xperia P, U, Sola, Go] rundgong:
Yes. For some reason blinking does not work on Xperia L, so I just disabled that option in the app.
[Sony Xperia P, U, Sola, Go] rundgong:
I think you're gonna have to explain that if you want us to believe it.

First of all, the LEDs don't actually use that much power to begin with, IMO.

I have had the LEDs on for long periods of time a couple of times and not seen any big increases in power usage. The rest of the phone is still the bigger power consumer.

There is also not a whole lot of options in the way the LEDs work that will let you make aggressive optimizations.

Obviously there are mistakes you can make that will seriously degrade battery life though.

But I may be wrong, so please enlighten us
[Sony Xperia P, U, Sola, Go] rundgong:
LED brightness, just below Select Device.

Did you already get the latest version? it should be 1.3
[Sony Xperia P, U, Sola, Go] Chxrlyglez:
Yes!!!

Good work man
[Sony Xperia P, U, Sola, Go] Malner27:
i cant see it either
[Sony Xperia P, U, Sola, Go] mrsatan:
Update now, I don't think the new build had been put up yet. It should be 1.3.
[Sony Xperia P, U, Sola, Go] Malner27:
Got it thanks
[Sony Xperia P, U, Sola, Go] blackon:
Whatsapp please. Thank you.
[Sony Xperia P, U, Sola, Go] Arnold_hk:
Thanks. It is a nice APP.

if possible, it is better to set a time-out scheme for the lighting...say, 3 hours to slow down/adjust(dim) the LED brightness; 6 hours will switch off the lighting, etc...
[Sony Xperia P, U, Sola, Go] Yezariael:
Thanks for the update :good:

In my opinion at least for the Xperia S the brightness setting is kinda useless: if you chose below 7 (or minimum 6) you won't see the light even if it's not in bright sunlight...
[Sony Xperia P, U, Sola, Go] chochic10:
The brightness setting is useless in xperia s. My bar light still lights the same based on my screen brightness.. Maybe it only works with the blinking upon receiving sms but even without that option it still blinks to the brightest so i dont see the point of that new brightness option.. Is this going to be fixed?
[Sony Xperia P, U, Sola, Go] jorgestima:
Good job Rundgong. I like the brightness adjustment option. Great for my Xperia U. Now, to become perfect, it only needs the MMS and Calendar notifications.

Cheers
[Sony Xperia P, U, Sola, Go] rundgong:
The LED brightness only applies to the SMS / missed calls notifications.

This version does not change the normal soft key backlight behavior.

I will see what I can do about that in upcoming versions. But I'm not sure it's possible to stop other apps (or the system) from setting any brightness they want on the LEDs
[Sony Xperia P, U, Sola, Go] chochic10:
Glad to hear that. It is possible because that other guy made it happen in his app illuminatic but the prob is, the light only stays on for 30 secs then reverts back to the default brightness based on the screen brightness. Just pointing out that its possible. Anyhow, great work! Thank you so much!
[Sony Xperia P, U, Sola, Go] Felimenta97:
The app is having big RAM usage:

Don't know if this is normal, but …