Making an app for the 2nd LED flash. - ASUS ROG Phone II Questions & Answers

the RGB led on the back are sitting doing nothing. the kernel sources are available. can somebody tell me what APIs i can use to make an app which lights on the 2nd led flash.

Wowie, that would be amazing!! However idk the about APIs...

Related

Upper led colors

Hi guys,
is it possible to use the upper led as notification like in the other android phones?And if so is it possible to change the colors and the blinking time?
I did some searchs about this issue but i found nothing.
I too am wondering this, i just recently noticed that on a very low battery the upper led starts flashing
yeah same here, looks lilke only design for battery status.
im not confident in an api way to change it, and it might not even flash or blink, and still not very visible.
sry but i never eard of a tweak for that, but could be interresting too.
Sent from my Nexus One using the XDA mobile application powered by Tapatalk
When I had a G1, it had LED notifications on the top of the phone which were very useful. The N1 only has the trackball light but it's really sl-ooo-www... I also wish the LEDs lit up as well.

[FIX] CM led notifications [MERGED]

These changes have been merged into the latest nightly. Expect to see it in the new dinc build on 11/30/2010.
-------------
Hey fellow dinc users. We've been complaining for too long and now we can complain no more (or some more)
I've made a patch that fixes the led notifications so that green and amber blinks now. You can flash this over any version of cm 6.
The led blinks like stock, but the blink rate is not configurable.
-Flash in succession works for different notification colors.
Flash like any zip. Be sure to back up.
Bug: There seems to be an issue with the led light colors not being properly set by CM settings.. Here is a possible solution:
tdiman said:
Next: Bingo:
Set a custom color (somewhere in the pink-red range). Got a red LED immediately.
Now flash color, blink rate work as advertised.
Hopefully that helps narrow down the issue me and CUViper are seeing.
Click to expand...
Click to collapse
Devs: I've started a Gerritt issue for the fix. I'm not sure if I broke things for other phones.. so hopefully there'll be more contribution from other devs to get this into cm6.1..... update- they didn't like my generic liblights fix, so I've made a device specific one for our inc. It works right now, but I will clean up the file when I get a chance.
http://review.cyanogenmod.com/527
NEW: http://review.cyanogenmod.com/#change,681
Do you think this will work with RUBY?
shoman24v said:
Do you think this will work with RUBY?
Click to expand...
Click to collapse
I think it should. But please let us know if it doesn't!
Let me do a backup and I'll try it out.
nice.. much appreciated! what's left in terms of issues? just the cam force close or are there others? once the cam's fixed.. i'd like to use cm as my daily
The camera really only fcs for 720p recording with autofocus. I might look into it over Thanksgiving.
The led issue was just really bugging me and I was getting impatient lol..
No, go. When I get a text it doesn't blink, or even stay on like it did.
shoman24v said:
No, go. When I get a text it doesn't blink, or even stay on like it did.
Click to expand...
Click to collapse
Sorry man, there must be other changes in Ruby that I don't know about. Have you tried changing the colors of your notifications? The driver only responds if it's green or red.
seanzer said:
Sorry man, there must be other changes in Ruby that I don't know about. Have you tried changing the colors of your notifications? The driver only responds if it's green or red.
Click to expand...
Click to collapse
I don't believe Ruby allows you to change the color of your LED. We only have two anyway
shoman24v said:
I don't believe Ruby allows you to change the color of your LED. We only have two anyway
Click to expand...
Click to collapse
You should try an led tester or handcent. An app that lets you change test the color of the led. I could recode the patch to default to green for all other colors, I believe that would make it work for MIUI. Pm me if you're willing to try it..
I think many users may want it blink for Ruby. Though, it does work just fine as it is being only solid. Reason I sorta perfer that is I'm not being tricked into thinking I have a notification. When it blinks I have to always take a second look at it
I tried LED Tester, only colors we have are green and red.
For the apps that have built in LED configuration, like handcent and kik. THey wouldn't even have the orange LED blinking right, which leads me to have it set to no blind in CMsettings and the app settings.
Will this fix work with those aswell?
mikeymop said:
For the apps that have built in LED configuration, like handcent and kik. THey wouldn't even have the orange LED blinking right, which leads me to have it set to no blind in CMsettings and the app settings.
Will this fix work with those aswell?
Click to expand...
Click to collapse
I'm not sure what you mean, but I can use handcent's settings to set the led color. Only green and red work though. For the apps that don't have a way to set the color, I can control it using cyanogen's settings under the led notifications menu.
I added some review comments in Gerrit for you. When I tried it myself, I wasn't able to get it working until I uncommented your BLINK_FILE writes.
This b0rks the green LED when charging above 90% Now both orange and green are lit.
Also rather then plain green flashing I get nothing :/
CUViper said:
I added some review comments in Gerrit for you. When I tried it myself, I wasn't able to get it working until I uncommented your BLINK_FILE writes.
Click to expand...
Click to collapse
When remove the comments, don't the blinks go sporadically?
I intended for the leds to be able to have both red and green, but it looks rediculous so I'm going to fix it.
seanzer said:
When remove the comments, don't the blinks go sporadically?
Click to expand...
Click to collapse
I'm not sure what you mean by sporadic. It's a quick blink about every two seconds, longer off than on. But with your comments in place, I don't get anything blinking lights at all. The solid charge light works, but blinking notification doesn't.
CUViper said:
I'm not sure what you mean by sporadic. It's a quick blink about every two seconds, longer off than on. But with your comments in place, I don't get anything blinking lights at all. The solid charge light works, but blinking notification doesn't.
Click to expand...
Click to collapse
Interesting, try setting different blink rates, it definitely works!
I'm posting a new version fixing the issue with both lights showing up.
Ok, this is weird. I built your second patch from Gerrit, pushed it out, rebooted, and then suddenly I was getting the opposite of before, now a long blink on with a short off. So I went into Advanced and chose "Reset all colors and apps", and now I can't get anything to blink at all. I'm about to give up and let you and others figure it out...
Can you tell what all the settings are for you? I have only the default "Miscellaneous" category, and I've tried "Always pulse" on and off. The other Advanced settings don't look like they should matter, but I have the rest all off. Then I go into the applications list and choose Gmail, set it to green or red, choose any blink rate, and then "Flash test" does nothing.
You should get a long blink with short off..
I just repeated what you did..
Reset all notifications,
Goto led settings for gmail,
Test flash does nothing,
pick green..even though it was already selected...
Test flash and it worked..
Not exactly sure why it doesn't work for you. lets see what the others say.

[Q] led notifications on GingerDX

Do LED-Notifications work for you in GingerDX?
In my phone they don't seem to work?!
They work for me
it seems they got messed up somehow? if i set them in cyanogensettings they at least work once (means they blink 1 time)?
just did a full wipe and the problem persists ...
e.g.: missed call: screen goes off, led blinks once green and then stops blinking, but is supposed to blink red?
i have same problem, LED just blinks at once..
Had no problem with any LED notifications to date on any rom, just wish I could change the the charging light. >_<
alphine.zzz said:
i have same problem, LED just blinks at once..
Click to expand...
Click to collapse
You can set how much it blinks by changing that specific setting in blink rate.
by changing the blink rate it just changes the "speed" of blinking?
Ginger DX v21 LED Notifications don't work
Edit: Never Mind! Night-time notification toggle was on!
I installed Ginger DX with a full wipe. The LED notifications don't work, although the LED lights up while charging.
Any suggestions?
Thanks

[Q] Control notification LED?

Has anyone found an app that gives us better control over the hardware LED?
I'd like to have the notification light periodically blink when there's an SMS message or missed call, (and maybe some of the other important notifications), and the default settings offer so little control as to be useless. <rant> Seriously, why would I want a LED to tell me if the phone is charging, I can see damned well that it's charging, there's a cord attached! </rant>
There's the LEDBlinker app, which has all the options i'd want, but when I put it into test mode, it doesn't blink the leds.
Has anyone else tried to do this? Has anyone had any success? It's a cool hardware feature, that I think i'd really use - but it's hobbled by the crap configuration options Samsung gave us.
Thanks
DrAzzy said:
There's the LEDBlinker app, which has all the options i'd want, but when I put it into test mode, it doesn't blink the leds.
Click to expand...
Click to collapse
Samsung prevents the LED notifications from working unless the screen is turned off. I'm using Light Manager (the dev participates on this forum), and so far it works fine in "alternate" mode. When you test the LED settings, a pop-up tells you to turn off the screen, and only then will the test work (and it does).
barnabydog said:
Samsung prevents the LED notifications from working unless the screen is turned off. I'm using Light Manager (the dev participates on this forum), and so far it works fine in "alternate" mode. When you test the LED settings, a pop-up tells you to turn off the screen, and only then will the test work (and it does).
Click to expand...
Click to collapse
Thanks - turns out I'd turned the LED off in settings (along with the options to use the LED to show charging status). /facepalm

No LED light flashing for notifications

I got my R1 HD recently. After I set up everything I noticed that when the screen is off, no matter whether I received an email, a sms or a missed call, the LED light just didn't flash. The phone did notify by sound and I can see items in status bar when I turn on the screen.
I looked at everything in the Settings, but couldn't find anything wrong. I called R1 representative and he said he never heard such issue before.
Then I ordered a replacement from Amazon and it arrived today. You know what, same thing happened! No LED light for notification. Just sound notification.
The only time I know there is an LED light is when I charge the phone (red) or when it's fully charged (green).
Has anyone seen such issue before? I greatly appreciate the help!
The LED can really only display red and green as when they are both on the red greatly overpowers the green so the color combination is not detectable. Lightflow can control which apps have access to the LED and which color to display. The LEDs are either on or off - no brightness levels. I have also not been able to get the LED to blink on notifications and suspect that this is also a hardware limitation of the phone. I've been quite disappointed in the LED notification capabilities. There are a couple of other threads about the notification light in the Blu forums here if you search
Thanks for the reply! I did try Lightflow, but it didn't help. In test mode or real mode, what I got was just a status bar notification, no LED.
yaconsult said:
The LED can really only display red and green as when they are both on the red greatly overpowers the green so the color combination is not detectable. Lightflow can control which apps have access to the LED and which color to display. The LEDs are either on or off - no brightness levels. I have also not been able to get the LED to blink on notifications and suspect that this is also a hardware limitation of the phone. I've been quite disappointed in the LED notification capabilities. There are a couple of other threads about the notification light in the Blu forums here if you search
Click to expand...
Click to collapse
I did have to change some settings for it to work with the Blu phone.
These are the settings I am using that allow apps to turn on the LED:
Under General settings, the following are checked:
Enable Light Flow
Show LED in priority mode
Device Admin
Enable Clear all
Accessibility check
Version upgrade reminder
Under Device settings and root, the following are checked:
Direct mode
Root mode
Run every command as root
Show LED with screen on
Nexus 5 force LED reset
I also have light flow enabled under settings->accessability and lightflow has root permission in supersu.
Oh so I have to root the phone? I just called Blu customer service, and they told me I need to do a factory reset..
Try it and let us know what happens, please. Some phones require root and others don't. I reflashed and rooted and xposed mine before I did anything else so I don't know if it works without root or not.
Solved! Did a hard reset (not factory data reset thru Settings) by pressing power button and volume up together to enter the recovery menu. I cannot believe Amazon/Blu missed such an important step that the customer has to do it by themselves..
Same here bit in a Blu vivo 5R in this case.
So... I need to execute a Factory Reset? And then appears the option for LED notification And works.
Hi ! I did buy a BLU VIVO XL2. No LED activity for notifications. I have the options for LED behavior (Settings/Advanced Settings/Under Hardware title, LED indicator, Notification Reminder ON but green LED never flashes when expected. Factory Reset tried: I used Volume Up & Power Button to get recovery menu. There, I took a backup (SD storage, no compression, several chunks of data). After that, I selected Factory Reset. When rebooted, Google did his automatic restore of phone. After that, I tried Restore from Recovery menu, but a msg informed backup was corrupted, so, I did get a full Factory Reset status, with my phone memory user data lost. NO LED Notifications working after all these actions !!!!! . LED is alive, when reporting Power status, so it is not HW damaged. I will keep fighting to get my LED notification activity working... Regards, Norberto !!!
Try the free version of LightFlow from the play store. It will allow you to test and turn individual notifications on or off. The light can on display red and green colors and the red is very much brighter than the green. Mine turns flashing red when I miss a phone call on the Blu R1 HD>
Hi !! Thnx yaconsult. I did try free & legacy, unsuccessfully. Have a good day !!
I guess the Vivo works differently, then. The notification light works ok on my R1. If I miss a call, I get a blinking red light.

Categories

Resources