This is a small script to control leds on xperia u.
You will need root and busybox.
Instructions. Unzip, Put it in /system/bin , give it execution permissions (555, for example) and run it in a terminal.
Do not install it with CWM.
Use it as
blink [led] [intensity]
led list: red, green, blue, red1, green1, blue1, red2, green2,blue2,red3,blue3,green3
the ones without number are the small led next to the power button. Numbers are the notification bar, from left to right.
intensity goes from 0 to 255
0 stops blinking.
I use it with tasker for many things.
If you just use it with no arguments, it makes the power green led to blink. If you give no intensity, it uses 50.
You need to be root, so if you are using this on the terminal or adb, type "su" first.
For tasker, mark the "use root" box.
Examples:
blink red2 - makes the middle led on the bar blink red.
blink red2 0 - stops the blinking for middle red led.
blink green3 255 - blinks green right led, max power.
blink blue1 200; blink red1 - makes left led blink in a bluish violet.
You can of course modify the script to match your needs. All the info was extracted from this forums, so I cannot say that I did anything new, just put the script together.
Note1: The blink speed seems random ,sometimes is faster, and sometimes it is slower. If anyone knows how to control it, please tell me and I will try to add it to the program. Sometimes it is so slow that it does not work.
Note2: Leds-u-ctrl allows you to use the ambient bar for notifications, and it is a very nice program. If you find this too complicated, you may try that. I am not related in anyway to LUC developer.
------------
Edit : I added version 2.
New command: solid. Works as blink, but with solid light. Same syntax.
New command:ledset .
ledset [option]
options:
fadeon : sets fade to on for led blinking
fadeoff: sets fade to off for led blinking
baroff : turns off all notification bar leds
alloff : turns off all notification and power leds
Copy to /system/bin ,give permissions as usual.
dapaua said:
Note1: The blink speed seems random ,sometimes is faster, and sometimes it is slower. If anyone knows how to control it, please tell me and I will try to add it to the program. Sometimes it is so slow that it does not work.
Note2: Leds-u-ctrl allows you to use the ambient bar for notifications, and it is a very nice program. If you find this too complicated, you may try that. I am not related in anyway to LUC developer.
Click to expand...
Click to collapse
Regarding Note1: the blinking speed depends fully on the CPU load and speed at that moment.
Since the CPU governor's system default is flexible the speeds tends to vary.
The only way I've found up till now (and included in LUC) is to temporarily change the governor.
The downside is that the cpu speed is changed for the whole system, not only the shell script.
Regarding Note2: thanks
Looks really interesting, will give it a try with tasker
It works untilj unless you don't touch the buttons (home/back/options) the color you set goes away but the white blink still keeps
Btw. In sys/class/led/device. There is file use soft dim (something like that) it helps the blinks to in away softly and come back softly. Can you tell/guide what line com where should I add to your script ?? Or can do it for me??
Sent from my ST25i using xda app-developers app
jitin02 said:
It works untilj unless you don't touch the buttons (home/back/options) the color you set goes away but the white blink still keeps
Btw. In sys/class/led/device. There is file use soft dim (something like that) it helps the blinks to in away softly and come back softly. Can you tell/guide what line com where should I add to your script ?? Or can do it for me??
Sent from my ST25i using xda app-developers app
Click to expand...
Click to collapse
Hi, yes, I know. That cannot be fixed because sony's framework for lighting the bar interferes with the script. I use it only when the screen is off, and I turn the led off when the screen is on.
I played a bit with the file dim_brightness, but couldn't figure how it works. But if you have any information, tell me and I will add it to the script.
I think some good additions would be solid lights: "solid red2 50" for eg. and a way of turning all lights off in one go, maybe putting in "rgb123 0".
dapaua said:
Hi, yes, I know. That cannot be fixed because sony's framework for lighting the bar interferes with the script. I use it only when the screen is off, and I turn the led off when the screen is on.
I played a bit with the file dim_brightness, but couldn't figure how it works. But if you have any information, tell me and I will add it to the script.
Click to expand...
Click to collapse
Hi
Sorry didn't mentioned the full name of the file. its> pattern use softdim
Its in sys/class/led//device. Here from the last its the 4th file
I can tell u what to add. Will try explain you how I came to know about it
Leave the script for a sec(Coz it don't do anything to the original files in the above mentioned folder. )
Just set the value of any of the led file use_pattern manually to 1. Than set the value of the same led file pattern use softdim
See if understood or get it. Otherwise let me know I will try make video of what it does to show it.
I really want it happen successfully as I am fan of it from the day fourth of after bought this phone, (as fourth day of buying it I was playing with it manually . Will be great if works
Btw its only ics that don't let the leds blink but on gb this interference don't happens
They blink the way you set it until you don't restart the phone
But nixx-x1 helped me keep the settings even after starting with a small script on gb. But ICS don't even let that too work
Sent from my ST25i using xda app-developers app
It doesnt work as it should but could you make police type blink option.
Sent from my ST25i using xda app-developers app
XperianPro said:
It doesnt work as it should but could you make police type blink option.
Sent from my ST25i using xda app-developers app
Click to expand...
Click to collapse
The idea is that with this you can program your own patterns. I'm not going to do the patterns, but I will post an example for a police light. It's not perfect, but should give you an idea about how to do this:
Code:
#!/system/bin/sh
ledset alloff
for a in `seq 100`
do
solid blue1 0 ; solid blue3 0 ; solid red1 100 ; solid red3 100;
usleep 100000
solid red1 0 ; solid blue1 100 ; solid red3 0; solid blue3 100;
usleep 100000
solid red1 100 ; solid red3 100; solid red2 100; solid blue2 100; solid green2 100; solid blue1 0 ; solid blue3 0;
usleep 100000
solid red1 0 ; solid blue1 100 ; solid red2 0; solid green2 0 ; solid blue2 0 ;solid red3 0; solid blue3 100;
usleep 100000
done
ledset alloff
Save it as police, put it in /system/bin/ and give the permissions.
You will need version 2 that I just posted.
jitin02 said:
Hi
Sorry didn't mentioned the full name of the file. its> pattern use softdim
Its in sys/class/led//device. Here from the last its the 4th file
I can tell u what to add. Will try explain you how I came to know about it
Leave the script for a sec(Coz it don't do anything to the original files in the above mentioned folder. )
Just set the value of any of the led file use_pattern manually to 1. Than set the value of the same led file pattern use softdim
See if understood or get it. Otherwise let me know I will try make video of what it does to show it.
I really want it happen successfully as I am fan of it from the day fourth of after bought this phone, (as fourth day of buying it I was playing with it manually . Will be great if works
Btw its only ics that don't let the leds blink but on gb this interference don't happens
They blink the way you set it until you don't restart the phone
But nixx-x1 helped me keep the settings even after starting with a small script on gb. But ICS don't even let that too work
Sent from my ST25i using xda app-developers app
Click to expand...
Click to collapse
Thank you very much, this info was really nice and helpful.
Mitchio said:
I think some good additions would be solid lights: "solid red2 50" for eg. and a way of turning all lights off in one go, maybe putting in "rgb123 0".
Click to expand...
Click to collapse
Thanks! I implemented your suggestions.
Great . V2
will try as soon as i update mine to Indian ICs (releasedalready)
Police script does not work.
Sent from my ST25i using xda app-developers app
XperianPro said:
Police script does not work.
Sent from my ST25i using xda app-developers app
Click to expand...
Click to collapse
It works for me. I'll attach it here. Probably it is because you edited it in windows, and you used windows endlines.
I'll attach it here, just copy it to /system/bin and give permissions as in first post.
Here is output.
Sent from my ST25i using xda app-developers app
Still wondering wat would be the command for the police script to work
jitin02 said:
Still wondering wat would be the command for the police script to work
Click to expand...
Click to collapse
XperianPro said:
Police script does not work.
Click to expand...
Click to collapse
1. copy all files from V2.zip (first post) into /system/bin/
2. copy police script into /system/bin/
3. change permission of those 4 files you just copied to 555 (or just check all boxes)
4. go to a shell emulator and type " police " (without quotes)
then you have your phone siren blinking
XperianPro said:
Here is output.
Sent from my ST25i using xda app-developers app
Click to expand...
Click to collapse
You need busybox installed. Get the installer from play store, use normal install.
Rainbows
For those liking rainbows, I've edited the rainbow scripts used in LUC a bit to be used in the same way as the blink scripts
Just extract the .zip attached and copy it with the other files in /system/bin and set the execute.
There are 3 sequences in it:
RB1 = fade in sequence
RB2 = loop sequence
RB3 = fade out sequence
You can also set a slowdown factor in msec.
If you don't want to slow it down use value " 0 ".
I found that slowdown factors up to 50000 still work smoothly (it will take a minute to finish thou..)
Commands
Code:
rainbow [slowdown] [sequence] [sequence] [sequence]
Example
Code:
rainbow 1000 RB1 RB2 RB2 RB3
This will fade in the rainbow, loop it 2 times and fade it out.
at the moment it's possible to have 6 loops (so 8 sequences in total)
If you use less you'll get a few "1000: not found"... those can be ignored
Perhaps daPaua knows a way to have the input dynamic instead of fixed
nixx-X1 said:
1. copy all files from V2.zip (first post) into /system/bin/
2. copy police script into /system/bin/
3. change permission of those 4 files you just copied to 555 (or just check all boxes)
4. go to a shell emulator and type " police " (without quotes)
then you have your phone siren blinking
Click to expand...
Click to collapse
Don't work
Sent from my ST25i using xda app-developers app
---------- Post added at 07:58 AM ---------- Previous post was at 07:57 AM ----------
nixx-X1 said:
For those liking rainbows, I've edited the rainbow scripts used in LUC a bit to be used in the same way as the blink scripts
Just extract the .zip attached and copy it with the other files in /system/bin and set the execute.
There are 3 sequences in it:
RB1 = fade in sequence
RB2 = loop sequence
RB3 = fade out sequence
You can also set a slowdown factor in msec.
If you don't want to slow it down use value " 0 ".
I found that slowdown factors up to 50000 still work smoothly (it will take a minute to finish thou..)
Commands
Code:
rainbow [slowdown] [sequence] [sequence] [sequence]
Example
Code:
rainbow 1000 RB1 RB2 RB2 RB3
This will fade in the rainbow, loop it 2 times and fade it out.
at the moment it's possible to have 6 loops (so 8 sequences in total)
If you use less you'll get a few "1000: not found"... those can be ignored
Perhaps daPaua knows a way to have the input dynamic instead of fixed [/QUOTE
Work great thanks
Sent from my ST25i using xda app-developers app
Click to expand...
Click to collapse
Related
I take no credit for this, but just got it working with the evo 3d, this is mearly copied work of sw99's from the og evo forum found here
I cannot find screen brightness controls but everything else seems to work with a tiny change from the og evo to the e3d.
Also found that you can turn both the green and red led on at the same time and get orange.
You just need to download the Locale Execute Plug-in and obviously have Tasker
In tasker set up a new action and choose plugin then the execute plugin and click edit
replace X with option you want
For amber led on/off,
@! echo X > sys/devices/platform/leds-pm8058/leds/amber/brightness
0 = OFF
1 = ON
For amber led blink,
@! echo X > sys/devices/platform/leds-pm8058/leds/amber/blink
0 = Solid
1 = Blink
For green led on/off,
@! echo X > sys/devices/platform/leds-pm8058/leds/green/brightness
0 = OFF
1 = ON
For green led blink,
@! echo X > sys/devices/platform/leds-pm8058/leds/green/blink
0 = Solid
1 = Blink
For capacitive leds,
@! echo X > sys/devices/platform/leds-pm8058/leds/button-backlight/brightness
0 = OFF
1 = ON
For Flash leds,
@! echo X > sys/devices/platform/flashlight.0/leds/flashlight/brightness
0 = OFF
125 = Low power
127 = High Power
129 = High Power Single Flash
You must "Test" the task several times and wait for the Superuser permissions to trigger, otherwise the task will not execute. You will need to do this for each task you create using this plugin.
Pretty cool stuff here man. Thanks for a info. Now I have to find a way to implement this. Maybe I can find a way for the LED to blink when I am in a 4G zone. That would be amazing in itself.
Very nice, kudos
akiradavis said:
Pretty cool stuff here man. Thanks for a info. Now I have to find a way to implement this. Maybe I can find a way for the LED to blink when I am in a 4G zone. That would be amazing in itself.
Click to expand...
Click to collapse
If you ever find that out let me know. That would make my life.
Nice
Works cool
Sent from my PG86100 using XDA Premium App
Great stuff, wish I weren't colorblind.
A.Priori said:
Great stuff, wish I weren't colorblind.
Click to expand...
Click to collapse
That blows!
Sent from my PG86100 using XDA Premium App
Thanks for the kudos. I was kind of waiting for full root before I messed with this.
I also kind of miss the extra led on the OG EVO. The charge led is being used by the system, and as such, if a system event occurs it will override your settings.
sw99 said:
Thanks for the kudos. I was kind of waiting for full root before I messed with this.
I also kind of miss the extra led on the OG EVO. The charge led is being used by the system, and as such, if a system event occurs it will override your settings.
Click to expand...
Click to collapse
welcome! and yeah sucks we only have the one led this go around
lame, moved to general. was in development with the og evo. oh well, hope i helped someone
DomSim said:
lame, moved to general. was in development with the og evo. oh well, hope i helped someone
Click to expand...
Click to collapse
This was incredibly helpful. I use my phone at night and the capacitive LEDs at the bottom were blinding me. I've now got tasker profile to automatically turn them off when the display comes on.
Has anyone had any problems running these commands with the latest version of Android?
WillJitsu said:
Has anyone had any problems running these commands with the latest version of Android?
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=1198622
And
http://forum.xda-developers.com/showthread.php?t=1176607
I use the script from the second link on my 2,3,4 ROM
phatmanxxl said:
http://forum.xda-developers.com/showthread.php?t=1198622
Click to expand...
Click to collapse
That's not really what I was asking. I think my problem is due to the latest version of Superuser that was included in the ROM I downloaded.
I don't know why your having issues with super user, I use root explorer to place the script in system/bin then activate it in the terminal.
I haven't tried it using tasker
phatmanxxl said:
I don't know why your having issues with super user, I use root explorer to place the script in system/bin then activate it in the terminal.
I haven't tried it using tasker
Click to expand...
Click to collapse
I was just able to fix it by downgrading to Superuser 2.3.6.3. Thanks.
great tip - thank you very much!
I rather not have them turn on at all. I don't like using screen filter because it disables randomly or when the brightness is adjusted either manually or from another app.
LEDs hack in the market. You can use to disable them, but I don't know if it will stay after reboot.
Didn't work that's the first thing I tried.
I have a script I got from somewhere on here that I just run the command in terminal emulator. One command, and it turns off when on or turns off when on.
#!/system/bin/sh
ws=255
exec < /sys/devices/platform/leds-pm8058/leds/button-backlight/brightness
read s
ks=$((s^ws))
echo $ks > /sys/devices/platform/leds-pm8058/leds/button-backlight/brightness
Click to expand...
Click to collapse
Sent from my PG86100 using XDA App
arrgh couldn't get it to work, says 0 not found in adb and 255: not found in terminal emulator
Use screen filter in the market
mattfmartin said:
Use screen filter in the market
Click to expand...
Click to collapse
Re-read post #1
I have to admit this would be very nice. No need for the lights and should help battery.
I'm ready to take the phone apart and remove/cut the leds for them.
I dislike them too
NewZJ said:
I'm ready to take the phone apart and remove/cut the leds for them.
I dislike them too
Click to expand...
Click to collapse
I was thinking of just maybe coloring the LED's with a black Sharpie. But im sure there's a easy way without taking the phone apart.
Here, download this then
adb remount
adb push leds /system/bin
Now, in adb shell or terminal, type leds
http://db.tt/4Bx7sRs
Sent from my PG86100 using XDA App
Is it possible to just dim them?
I would like them as dim as possible so that I can only see them lit in complete darkness.
you can set up profiles in tasker to disable them
http://forum.xda-developers.com/showthread.php?t=1185127
/self plug
DomSim said:
you can set up profiles in tasker to disable them
http://forum.xda-developers.com/showthread.php?t=1185127
/self plug
Click to expand...
Click to collapse
Thanks. I don't have tasker, but looked at this from your tut: For capacitive leds,
@! echo X > sys/devices/platform/leds-pm8058/leds/button-backlight/brightness
0 = OFF
1 = ON
I was able to use Root Explorer, and navigate to "/sys/devices/platform/leds-pm8058/leds/button-backlight/brightness" When I got to the 'brightness' file, I long pressed it, and cliicked 'open in text editor'. It opened and the number 255 was there. I deleted it, and added a 0, then hit menu and chose 'save and exit'. Not sure if i did it right, but as soon as I hit save and exit the capacitive lights turned out, and I've had no issues so far.
EDIT: NVM, they came back on and the 0 changed back to 255. Lights are back on after the screen shuts off and turns back on.
Tasker is $7, kinda pricey for me. Im a cheap bastard when it comes to adding to my $200+ phone bill.
Noticed they came back on with the script too. So I modified the script to make it stick.
http://db.tt/4Bx7sRs
Sent from my PG86100 using XDA App
man my adb is not working, will this work in the script manager?
Pushed it using root explorer then typed leds in the terminal. LED's turned off. Nice!
Also worked after reboot. Thanks alot!
Glad it worked for ya. Do you get that bug with the half a search light lit though? It's a hardware problem but damned annoying
Sent from my PG86100 using XDA App
danaff37 said:
Glad it worked for ya. Do you get that bug with the half a search light lit though? It's a hardware problem but damned annoying
Sent from my PG86100 using XDA App
Click to expand...
Click to collapse
It's leakage. Any way to make the leds turn off at screen dimmed?
Sent From My HTC Evo 3D Using Tapatalk On The Now Network From Sprint!
I think I have figured out a setup for tasker to make the notification light blink longer than 5 minutes. The setup that is currently working for me is to use tasker with the Locale Execute Plug-in. I followed DomSim's guide to get Locale Execute to handle LED blinking. You can setup solid/blinking lights using that guide. I just chose a generic green blinking light for all notifications. I also chose to shut off led notifications under settings-display, though I don't know if it would conflict in any way.
In tasker,
1) Create new profile
2) First context - choose Event, UI, Notification, Done
3) Task Selection - choose New Task, click +, Plugin, Execute, Edit, type lines from DomSim's thread ie
Code:
For green led blink,
@! echo 1 > sys/devices/platform/leds-pm8058/leds/green/blink
4)Click Done and test until it gets root permission (took several times until it happened)
4) click +, Tasker, Wait 5 minutes, Done
5) click +, Tasker, Goto Action, 1, add an if then statement so it only repeats if the notification is not cleared. Done
6) click Done and Apply
So far it's worked to keep my led flashing on notifications for longer than 5 minutes. I'm sure it'll affect battery life some, but I don't know how much. You could make it more complex and have different color (red or green) and solid/flash for different events like missed call, sms, etc. using tasker and replacing Notification in step 2 with whatever you want. Also, Locale Execute Plug-in may not be needed as tasker has the ability to flash the LED as well, but I could not get it to work in the past...but that was before I thought of using an infinite loop. It will save some typing if you don't need Locale Execute Plug-in .
original post
So now that we have root and s-off, is there something that can be changed to make it so the notification light will keep flashing until the notification is dismissed? It shuts off after about 5 minutes as it is now, which defeats its purpose IMO. I've tried using many of the LED controller programs, and none of them work reliably for notifications even with root. I've also tried setting up profiles in tasker to blink the led, but it still shuts off after 5 minutes.
Is this 'feature' in the kernel or some other part of HTC's software? I'd love for a mod/program to make it blink until the notification is dismissed or the battery is dead .
Click to expand...
Click to collapse
I would like that too honestly good idea
Sent from my PG86100-EVO3D-using Tapatalk
I too agree
root + app "tasker"
kthxbye close thread
Tilde88 said:
root + app "tasker"
kthxbye close thread
Click to expand...
Click to collapse
mwalt2 said:
I've also tried setting up profiles in tasker to blink the led, but it still shuts off after 5 minutes.
Is this 'feature' in the kernel or some other part of HTC's software? I'd love for a mod/program to make it blink until the notification is dismissed or the battery is dead .
Click to expand...
Click to collapse
Learn to read, kthxbye.
With tasker are you able to use different colors?
As for notification, someone would have to modify the framework-res I believe.
Tilde88 said:
root + app "tasker"
kthxbye close thread
Click to expand...
Click to collapse
^^^^fail
Sent from my PG86100-EVO3D-using Tapatalk
Nobody has any other ideas? If someone has it working with tasker or any other program, go ahead and post how you did it.
I guess I should title the thread "Get a Photon!" so I could get pages and pages of replies .
I've been using Light Flow, it's the best app I've found so far but I haven't tried a whole lot to be honest. It works pretty decent, though like you said not 100% reliable. You can also adjust the vibrate rate/pattern which I love.
I've come from a Blackberry, the notification LED on those are very big, very bright and multiple color selections, where the EVO 3D has 3, green, red and a deep orange. I've missed many a different notifications on my EVO 3D, specially text messages. I'll walk out of the room, come back and see no blinking light, then check my phone like 30 minutes later and notice I had a text message sitting for 30+ minutes without even knowing.
Not only is shutting the light off after 5 minutes a terrible idea, like you said pretty much defeats the purpose but the notifications not showing while charging due to the light staying constantly red is a terrible design decision if you ask me.
Updated the OP with some tasker settings that seem to be working (so far).
A total noob with Tasker here, what exactly do I put for the IF statement in step 5?
Thanks
gsgflash said:
A total noob with Tasker here, what exactly do I put for the IF statement in step 5?
Thanks
Click to expand...
Click to collapse
I actually never could get tasker to work right. I got it to keep the LED on until dismissed, but the loop caused the phone to never go to sleep and ate through battery faster. If your interested, I've implemented a fix at the kernel level (thanks to joe85) for 2.3.4 Sense ROMs. You can find the thread here. It's been the only reliable fix for me.
mwalt2 said:
I actually never could get tasker to work right. I got it to keep the LED on until dismissed, but the loop caused the phone to never go to sleep and ate through battery faster. If your interested, I've implemented a fix at the kernel level (thanks to joe85) for 2.3.4 Sense ROMs. You can find the thread here. It's been the only reliable fix for me.
Click to expand...
Click to collapse
Thanks for letting me know, will take a look at the link
FXP045 released, http://forum.xda-developers.com/showpost.php?p=16822404&postcount=4
Current Issues (FXP045) and unofficial fixes
Hardware keyboard layout scrambled - Old keyboard file is no longer in this ROM but appearently just pasting the old stock file (attached) to /system/usr/keychars/ fixes the layout. The included keyboard changer app force closes.
LEDs under soft keys Return and Menu - Replace /system/etc/hw_config.sh with the attached file.
Screen flicker upon turning on - New issue in fxp045.
can this work on Ray?
the flash does not work either
and the keyboard light does not work when use (when charging, it works)
and the max brightness is not very bright
xutienan9520 said:
can this work on Ray?
the flash does not work either
and the keyboard light does not work when use (when charging, it works)
and the max brightness is not very bright
Click to expand...
Click to collapse
I believe these fixes will work on Ray but you should find the stock values from Ray ROM because there probably are some differences.
Basically, only one issue you're having can potentially be fixed using SK17i fixes and that is max brightness by applying the fix for screen flicker. If you can't get a hold of Ray's stock values, try SK17's stock ones, but do a backup in recovery just in case.
thanks~
i changed the light.semc.so in system\lib\hw from stock 2.3.3, now i have the max brightness, but the keyboard light is on for ever! i can't close it!!!!the colour is always pink!
i think i can edit the file, i am in Mac, so is there a way to edit it without linux?
xutienan9520 said:
thanks~
i changed the light.semc.so in system\lib\hw from stock 2.3.3, now i have the max brightness, but the keyboard light is on for ever! i can't close it!!!!the colour is always pink!
i think i can edit the file, i am in Mac, so is there a way to edit it without linux?
Click to expand...
Click to collapse
i'm editting these files on the phone. copy the file to sdcard to edit it, with any kind of text editor. i use edit function of Total Commander. then i copy over the original file in system with Root Explorer. backup original file to sdcard just in case.
dont know about Mac much, sorry.
root explorer is a paid app but i think ES file explorer has the required functionality
LEDs under soft keys Return and Menu on maximum brightness - distractingly bright, in almost all environments. SOLUTION posted here: http://forum.xda-developers.com/show...&postcount=178
can't open it,need help
xutienan9520 said:
LEDs under soft keys Return and Menu on maximum brightness - distractingly bright, in almost all environments. SOLUTION posted here: http://forum.xda-developers.com/show...&postcount=178
can't open it,need help
Click to expand...
Click to collapse
oh, i messed up the links. will be fixed in a moment =)
Per someones suggestion I've added modified files and instructions on how to replace the original CM ones.
yepsky!!
I found the background ligths for the keyboard
Code:
echo 100 > /sys/devices/i2c-0/0-0040/leds/keyboard-backlight/brightness
I tested 100 and found it adequate.
We just can add it to the config file in /system/etc/hw_config.sh
I do not know if it stays lit when slided back, but it works as a first atempt
PoedelPCS said:
yepsky!!
I found the background ligths for the keyboard
Code:
echo 100 > /sys/devices/i2c-
0/0-0040/leds/keyboard-backlight/brightness
I tested 100 and found it adequate.
We just can add it to the config file in /system/etc/hw_config.sh
I do not know if it stays lit when slided back, but it works as a first atempt
Click to expand...
Click to collapse
Thank you good Sir! Testing it later!
PoedelPCS said:
yepsky!!
I found the background ligths for the keyboard
Code:
echo 100 > /sys/devices/i2c-
0/0-0040/leds/keyboard-backlight/brightness
I tested 100 and found it adequate.
We just can add it to the config file in /system/etc/hw_config.sh
I do not know if it stays lit when slided back, but it works as a first atempt
Click to expand...
Click to collapse
Amazing job! I'm gonna test it out now in a super dark place to see if i can check whether it stays on when closed. =)
I'll be updating original post with results and updated files in a bit.
Edit: Unfortunately keyboard lighting stays on and not only when keyboard is closed but even when phone is locked. Which means, its lit at all times. Won't be updating the files yet, because I don't know how much of a battery drain it is, but i'll put in information about it, so people can decide for themselves.
Nice to see process.
Now i need to find the button light for RAY
sulkie said:
Unfortunately keyboard lighting stays on and not only when keyboard is closed but even when phone is locked. Which means, its lit at all times. Won't be updating the files yet, because I don't know how much of a battery drain it is, but i'll put in information about it, so people can decide for themselves.
Click to expand...
Click to collapse
I thought that
Okay, there is a binary called slidercounter that or something similar sets a system var. If you take your dev Tools app and look unter Configuration there it is mentioned:
hardKeyboardHidden=2 <- if closed
hardKeyboardHidden=1 <- if opened
We now just have to find out where it occurs and if not we make a background script that ech0 x (100) or 0 into the node depending on the state.
But there must be a system process watching this we could use.
Don't hide, I'll find you anyway
---------- Post added at 06:16 AM ---------- Previous post was at 06:14 AM ----------
xutienan9520 said:
Nice to see process.
Now i need to find the button light for RAY
Click to expand...
Click to collapse
did you look, if in ray the nodes under /sys are similar to the pro mini?
you can test using adb shell or terminal app cat'ing the node to see what's in it and echo'ing a number to see what happens.
You meant progress, didn't you
as I am using Scriptmanager anyway I made 2 oneliners besides the shebang that echo either 0 or 100 into the node called
liteon.sh
and
liteoff.sh
put the scripts into root of sdcard, start scriptmanager, choose liteon.sh and check run as root and save
Do this either way with liteoff.sh
Go to your Mangos Homescreen, add a widget, choose Script Manager and choose liteon.sh and in the next step liteoff.sh
You´ll have to Widgets, one puts light on, on off.
This is of course a workaround an will be implemented into lights module. Fxp knows about the fact already.
PoedelPCS said:
as I am using Scriptmanager anyway I made 2 oneliners besides the shebang that echo either 0 or 100 into the node called
liteon.sh
and
liteoff.sh
put the scripts into root of sdcard, start scriptmanager, choose liteon.sh and check run as root and save
Do this either way with liteoff.sh
Go to your Mangos Homescreen, add a widget, choose Script Manager and choose liteon.sh and in the next step liteoff.sh
You´ll have to Widgets, one puts light on, on off.
This is of course a workaround an will be implemented into lights module. Fxp knows about the fact already.
Click to expand...
Click to collapse
not the most elegant solution but it'll do until the fix is in =)
good job though
If I had more time I would have searched where the system keeps the var keyboardHiddenState or how it was called and build a condition of if it's open and not bright enough to switch in on/off
But how I understood fxp the fact about the light seems to be enough to get this working ..I hope so
new issue:
km launcher disturbes camera module.
I use the KM Launcher to determine which keyboard to use in which state.
Portrait: swype
Landscape: thumb keyboard
Keyboard open: hardware keyboard
This is a very cool application that worked perfectly on my rooted stock. If it is active the cam works in the cam app, but not in many other apps that use the cam, e.g. barcoo barcode scanner. I have to disable KM Launcher before using these apps. Hope it'll be fixed automatically in the next release.
I just cannot guess why that happens.
Hey guys I still have the problem with the over sensitive lcd backlight, whenever I'm in a brightly lit room the backlight starts going crazy and sometimes goes so dark I can't see the screen, it then goes super bright.
It repeats this several times a day
I've tries the fix in this thread but it doesn't work
Could someone attach the fix to this thread? As I've tried the the fix using terminal emulator
Thanks
EDIT: it started doing this while I was writing this
Sulkie did append the script to the first post of the thread. Did you test it?
send from a fruit called mango using xda app.
I did it before but it didn't work, I found the reason it didn't work was because I didnr change the permissions.
Sorry I got confused
---------- Post added at 12:51 PM ---------- Previous post was at 12:43 PM ----------
Its still going crazy, I followed the instructions properly though,
When I get home ill upload a video of it happening
The light coming from the 4 soft keys and the two physical home and end buttons is bugging the hell out of me. They hurt my eyes, especially when it's dark.
Is there some kind of script I can run to permanently turn them off? Preferably a zip file I can just flash in the recovery or something.
Interesting that you want them turned off.
I want to know how to turn ON the soft key lights, because sometimes I press the wrong key (as I came from a Droid-X).
Easy, if your rooted download gscript and run one of these scripts one for of is lightsout.sh one for one is lightson.sh
push them to your sdcard/gscript folder then load them in gscript and run from gscript
there is allso trackballon and trackballoff if you want to turn your trackball on or off for some reason. I will have the green and orange led up later
NOTE: if there is an error like the lights turn off after a bit then edit the gscript lightson.sh and remove the line that says sleep1.
NOTE#2: this may cause soft reboots were your phone will run the boot animation and restart the xserver of android shell blah blah. nothing to worry about doesnt hurt your phone
androidifyme said:
Easy, if your rooted download gscript and run one of these scripts one for of is lightsout.sh one for one is lightson.sh
push them to your sdcard/gscript folder then load them in gscript and run from gscript
there is allso trackballon and trackballoff if you want to turn your trackball on or off for some reason. I will have the green and orange led up later
NOTE: if there is an error like the lights turn off after a bit then edit the gscript lightson.sh and remove the line that says sleep1.
NOTE#2: this may cause soft reboots were your phone will run the boot animation and restart the xserver of android shell blah blah. nothing to worry about doesnt hurt your phone
Click to expand...
Click to collapse
First of all, thank you.
But I ran into some issues/have questions:
1) The lightsoff script works after I run it in gscript, but when I turn the screen off and back on again, the soft key lights turn right back on.
2) By the green and orange LEDs, do you mean the notification LED? Because if so, it's not necessary; I actually need those ones.
3) The green phone and red end/power lights still stay on.
4) I don't see a line that say "sleep1" in the lightson script.
If you are running a CyanogenMod ROM, there is a control for the automatic backlight that also lets you set the light levels fot when the softkey backlights go on (which you can set to 0 to never come on.) I don't have a CM ROM installed at the moment, but it's in settings->CyanogenMod ROM settings somewhere. if you cannot find it, I can dig around.
[edit] I think it's in user interface->automatic backlight. That's where it was in CM6 (Froyo).
doogald said:
If you are running a CyanogenMod ROM, there is a control for the automatic backlight that also lets you set the light levels fot when the softkey backlights go on (which you can set to 0 to never come on.) I don't have a CM ROM installed at the moment, but it's in settings->CyanogenMod ROM settings somewhere. if you cannot find it, I can dig around.
[edit] I think it's in user interface->automatic backlight. That's where it was in CM6 (Froyo).
Click to expand...
Click to collapse
Thank you! I found it after digging around the settings a bit.
on Arc S
while button-backlights are off value of
/sys/class/leds/button-backlight/brightness is 0
while its 0 change permissions to read only
they are disabled
I can also limit current to 150 in max_current which limits current and lights are dimmed if you want it running but not at max brightness...
added
echo 0 > /sys/devices/i2c-0/0-0040/leds/button-backlight/brightness
chmod 444 /sys/devices/i2c-0/0-0040/leds/button-backlight/brightness
Click to expand...
Click to collapse
to /system/etc/hw_config.sh
now they are set off on boot
another more hardcore approach is to unplug the leds. remove the back cover, sdcard, and battery. then use a t5 or t6 torx screwdriver to remove the four screws. remove the back casing, starting at the top, near the headphones. peel off the copper plate held on by 4 pieces of tape, but dont bend the copper. then in the middle of the circut board there will we a yellow film. peel it back to reveal a hole in the board where a long and skinny brown wire plugs in. unplug it, it just lifts straight off. follow these steps in reverse, and the softlights will be disabled.
WARNING: this WILL irrevocably void your warranty, although seeing how old the model is, i doubt it has one
Hey guys, can I use any of your solutions with my samsung galaxy s plus ?
Diablob555 said:
Hey guys, can I use any of your solutions with my samsung galaxy s plus ?
Click to expand...
Click to collapse
I hardly know anything about this aspect of the Eris (my phone), so I really can't say, but I would doubt it being such different hardware and of course different manufacturer.