Related
Hello,
Anyone have an idea of how to simply turn off LED button back lights?
It seems it could be done as there is already at least one app that uses them for notification.
Here is what I am trying to do:
I've downloaded a desktop alarm clock app that turns the screen back light WAY down so it is not disruptive in a completely dark room while sleeping. But, the buttons remain illuminated.
Basically 8 want to use tasker to launch those clock and turn off the button back lights if the phone is charging and the time is after a certain hour.
I am thinking I could fire off a script with tasked to do thwarting back lights portion of this as well, but I don't even know where to begin.
Any ideas? Thanks!
Sent from my Dell Streak using XDA App
I'm rooted, and use an app called AdjBrightness. Works wonders, and also via menu, you can totally turn off the LED lights.
Hope that helps.
Cool, I will check it out. Ideally I would like to do it automatically, without having to open another app, but this tells me it ostensibly at least doable.
Thanks!
Sent from my Dell Streak using XDA App
If you want the code, just do this from adb or from your phone's terminal.
echo "0" > /sys/class/leds/button-backlight/brightness
Thanks! I think that is getting pretty close to what I need. Any idea if/how this could be written or saved as a SL4A script that could be fired off with tasker?
Also, I'd need to configure an exit task as well for morning, so I will need to know how to set all the buttons back to normal.
I know this is kinda minor, but I am excited about it nonetheless. Looking forward to having a nice, super dim clock to check the time late at night.
Thanks again!
Sent from my Dell Streak using XDA App
Spleisher said:
Thanks! I think that is getting pretty close to what I need. Any idea if/how this could be written or saved as a SL4A script that could be fired off with tasker?
Also, I'd need to configure an exit task as well for morning, so I will need to know how to set all the buttons back to normal.
I know this is kinda minor, but I am excited about it nonetheless. Looking forward to having a nice, super dim clock to check the time late at night.
Thanks again!
Sent from my Dell Streak using XDA App
Click to expand...
Click to collapse
You could always leave your computer on overnight and make a macro that executes the adb command to dim the leds and then executes another that makes them bright again at a certain time.
There must be something similar you can do on the phone though.
Thanks for the thoughts Meltus.
Well, I did it! I actually created a solution that is, at least to me, the first thing I have done that might actually be worth it to others and might be worth sharing.
I'll post this in more detail in the Apps/Themes forum as I am not sure it belongs here, but the short version is that you can use a plug-in called "Locale Execute" that allows you run SU commands in Tasker.
So, I created a profile in Tasker so that when the phone is plugged in to AC power between certain hours (I may add some other contexts to tweak it, like maybe say it has to be in landscape orientation), it launches my desk clock app, turns the screen down to the very lowest setting (not the "low" setting allowed at the user level), and turns the button lights off using the command you gave me.
Then, when the AC power is pulled, It automatically goes to my default home screen, returns the screen brightness to normal, and turns the button back-lights back on.
It really is pretty cool!
Spleisher said:
Thanks for the thoughts Meltus.
Well, I did it! I actually created a solution that is, at least to me, the first thing I have done that might actually be worth it to others and might be worth sharing.
I'll post this in more detail in the Apps/Themes forum as I am not sure it belongs here, but the short version is that you can use a plug-in called "Locale Execute" that allows you run SU commands in Tasker.
So, I created a profile in Tasker so that when the phone is plugged in to AC power between certain hours (I may add some other contexts to tweak it, like maybe say it has to be in landscape orientation), it launches my desk clock app, turns the screen down to the very lowest setting (not the "low" setting allowed at the user level), and turns the button lights off using the command you gave me.
Then, when the AC power is pulled, It automatically goes to my default home screen, returns the screen brightness to normal, and turns the button back-lights back on.
It really is pretty cool!
Click to expand...
Click to collapse
Good job, sounds pretty cool
I'm sure many people will find this useful!
Does the louder volume app work with the streak?
SeanH said:
Does the louder volume app work with the streak?
Click to expand...
Click to collapse
No i'm afraid it doesn't. Also, send me a pm next time rather than ask in someone else's thread
I did turne off button's back-light by adjusting the context of "/sys/class/leds/button-backlight/brightness" file from 255 to 0, it works great, but it gets back to normal after phone restart, I even went to properties of the file and removed all the "write" rights, but it won't give in.
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!
Is there a way to disable my hardware keys from lighting up? when i want to watch a netflix movie at night the keys stay lit the entire time, and it really kills it for me.
EDIT: here's the link https://market.android.com/details?id=mobi.pruss.superdim
1. Download "SuperDim [root]" from the market
2. Open it up and click the "Other Lights" button
3. Choose the second option, "button-backlight."
4. Click thanks on my post, and enjoy!
P.S. Superdim is used mainly for dimming the screen super dark, which is nice for saving your eyes at night!
-omni
Sent from my MB860 using XDA Premium App
There are situations when I want the phone awake and alive and powered and on high brightness when I need it, but want to save the screen. An example is when in the car on a bright day. I use Llama (like Tasker) and can get it to start an app under appropriate conditions...
What I need is an app that will display a black screen image (or a preset image I can set that's actually a blank screen), and ideally the app to exit when I touch the screen.
So I would have Llama launch this app after a delay (when other conditions indicate I'm in the car). It would act as a delayed screen blanker/saver that would exit as soon as I touch the screen Does such an app exist (or something very similar)?
Use an app called "Screen Filter". You can set the brightness level all the way down and add a screen widget which will toggle this setting. Of course set the screen to be on all the time.
Sent from my GT-I9300 using Tapatalk 2
dstech said:
Use an app called "Screen Filter". You can set the brightness level all the way down and add a screen widget which will toggle this setting. Of course set the screen to be on all the time.
Sent from my GT-I9300 using Tapatalk 2
Click to expand...
Click to collapse
Will that work? How would I exit the dimmed screen on-demand (e.g. by touching the screen)? I don't think Llama/Tasker can detect this in order to reset Screen Filter.
Yes you touch the on screen widget to exit it. Put a bunch on the screen to make it easier to enable and disable it.
Sent from my GT-I9300 using Tapatalk 2
The usage model I have in mind won't work as you suggest. Say I have a music or gps app in the foreground. I want the screen to 'dim' after a while and to just tap the screen to restore normal brightness, still showing the app previously in the foreground. If I need widgets exposed, I have to switch to a home screen.
I think if I had an app that displayed a black screen, then the app could be launched in foreground over the music or gps app and designed to simply exit on a screen tap. This would re expose the music or gps app and I'd be good to continue using my phone on the app I was using before the 'screensaver' was launched...
As many of you may know, for newer version of TS (at least for 4th List, May version devices), it's NOT possible to flick your wrist to show watch face since the Accelerator is DISABLED whenever screen is OFF!!!
What an oversight! A smart watch needs you to push a button to see time? What if when you are driving or have both hand full and cannot spare even a finger!?
(My Pebble, on the contrast, works great here!)
I tried to force the screen always on with watch face, it's great, except it kills my battery in around 6 hrs (airplane mode!) Not acceptable!
Thus, Here comes "Tasface". With this, you could achieve:
1. Let TS shows you time WHENEVER you LOOK at the watch! (well, actually when the watch is face up) or when you flick your wrist (You can modify this!)
2. Reduce using your button (if you have an Shortcut supported launcher like Smart Launcher 2)
DISCLAIMER: I will not be responsible if Tasface broke/brick your TS in anyway! Since Tasface is only a set of Tasker profiles/Tasks you can read everything before decide go or not! Tasface DO mess around with system files!
Pre-requests:
===============
1. Your TS must be ROOTED!
2. You need to know Tasker basics! (It's not THAT difficult to use Tasker...)
3. Tasker (Obviously)
4. Watchface by Kurt Huwig (I didn't test other watchface app. May not work with stock lock watchface) https://play.google.com/store/apps/details?id=de.huwig.watchfaces
5. Secure Settings (Required) https://play.google.com/store/apps/details?id=com.intangibleobject.securesettings.plugin
6. Smart Launcher 2 (Optional, any Launchers supports Shortcut will work. With this you can activate Watch face without using button!) https://play.google.com/store/apps/details?id=ginlemon.flowerfree
Set-up
========
1. Have Tasker (required), Watchface (required), Secure Setting (don't forget to install system helper) and Smart Launcher 2 (Optional) installed. DO NOT IMPORT "Tasface" yet!
2. Disable your stock lock watchface: Go to Setting/Personal & Account/Security/Screen lock/None (<-- This IS IMPORTANT)
3. Launch Watchface by Kurt Huwig, than double tap on any watchface to enter setup
a. check "Keep screen on"
b. Select desired watchface from "Lockscreen face"
c. Recommended to disable all other options
4. Check if the Watchface work or not by turn off than turn on your TS by press the upper physical button. You should see the Watchface you selected shows up when screen on. Swipe to return to your launcher and launch Tasker.
5. Unrar and import Tasface into Tasker
6. Close Tasker
7. Turn off --> Turn on your TS with the upper button
8. Profit!
Notes
=======
1. When watchface is displayed:
a. Touch screen is DISABLED to avoid accidental touch.
b. Screen will be OFF after 8 seconds (you can setup your prefer time)
c. Touch screen lock is achieved by putting a transparent Tasker Scene element on top of the Watchface. A small "X" on bottom right screen is used to reactivate the touch screen. You can also push the lower right button (back) to reactive your touch screen.
2. To show watchface (after automatic screen off as Step 1)
a. Just face the watchface up. The watchface should appear for another 8 seconds
b. There maybe a 1~2 second delay. This is due to Tasker not detecting the Watchface up event. I cannot do anything about this....
c. You could change the watchface up to anything else, like "Sensor shake/Backware-Forward"
3. If you have "Smart Launcher 2" or any other launcher supports Shortcut, you can set a icon to task "Lock". With this TS will activate watchface WITHOUT touch physical button. (I heard horrible stories about broken button so want to avoid use them as much as possible!) It's normal the screen will off for 2 second than back on with watchface for 8 seconds!
4. You must wait for automatic screen off or use the "Lock" shortcut to turn off the screen! Tasface will NOT work if you turn off TS by pressing the upper right physical button. This DISABLE the accelerator as mentioned above. To reactive Tasface, just turn on TS by pressing the upper right physical button to show the watchface than wait for automatic screen off.
I wrote this primarily for myself so a there are a lot of bugs. You are free to modify it and make it better. Just let me know if you have any questions and need help or improvement here!
Thanks button is just a click away if I helped you!
Update the attached file to resolve some bugs and improve responseness
Technical stuff -- What is done here?
=================================
It's a bit technical here .... No need to read if you don't care how it works!
Since TS turns off the accelerator whenever screen off, so it's not possible to activate the screen once it's off by external conditions. (You can still set a timer to wake the screen, but it's meaningless)
Thus we need to disable the power hungry backlight while keep the screen on!
I found out that it's possible to control the backlight by doing
Code:
echo 0 > /sys/class/leds/lcd-backlight/brightness
Thus, I set up a Task profile which fires whenever Watchface is activated and TS is face up, to activate the backlight then turn off the backlight again after 8 seconds, but KEEP the TS screen wake! (Only backlight is turned off to save battery!)
Code:
echo 1 > /sys/class/leds/lcd-backlight/brightness
You can change "1" to anything from 1~255. I just found 1 bright enough for me
Since screen/system is always wake, to avoid accidental touch, a transparent Tasker Scene on top of the screen is add to disable the touch screen. A small "X" is on the bottom right to disable this transparent scene if anything goes wrong. (And it does, Tasker is laggy sometimes and too slow to remove this scene automatically!)
I also lower down the CPU cycle to the lowest possible to further saving battery. CPU returns to normal frequency when leaving watch face (into launcher, etc...)
That's all! Folks!
Reserved
Shake
I was able to use application Shake from ADL Dev (com.adl.appshaker) to switch screen on with shake/twist of wrist. You just have to enable "activate when screen off" option - and it is little battery hungry.
Of course I have version 20140513.
I also strongly suspect, that you can force sensors to work when face is off, by switching into "Sports mode" (Run Settings->SMART MODE->Sports Mode)
Piw said:
I was able to use application Shake from ADL Dev (com.adl.appshaker) to switch screen on with shake/twist of wrist. You just have to enable "activate when screen off" option - and it is little battery hungry.
Of course I have version 20140513.
I also strongly suspect, that you can force sensors to work when face is off, by switching into "Sports mode" (Run Settings->SMART MODE->Sports Mode)
Click to expand...
Click to collapse
Thanks for the advice.... I just think since I already have Tasker on my TS, I want to find a way to not to use additional SW which always runs in background to monitor things... Since its battery hungry, maybe Shake also use the same trick as me......
As for Smart mode settings, I tried bdefore but none of them work for flick wrist to wake up... Maybe I missed something?
Sent from my HTC_One_max using XDA Premium HD app
might give this a shot since shake was waking up watch at wrong times and was destroying battery life, and i already have tasker on the watch and running so hopefully that will avoid the battery loss that shake had.
lssong99 said:
As for Smart mode settings, I tried bdefore but none of them work for flick wrist to wake up... Maybe I missed something?
Click to expand...
Click to collapse
I was just guessing, because it suppose to leave GPS and accelerometer working with screen off, to enable sport trackers and pedometers.
If it works? - I haven't tested yet...
Piw said:
I was just guessing, because it suppose to leave GPS and accelerometer working with screen off, to enable sport trackers and pedometers.
If it works? - I haven't tested yet...
Click to expand...
Click to collapse
Wow! It seems you are right! The watch DOES allow sensor to work on Sport mode after screen off, but the response from Tasker become very sluggish when screen-off!
I made a simple profile to detect shake action (if shake than beep), and when screen on, the watch beep in less than one second after shake began, but when screen-off (sport mode), It took Takers 5~6 seconds of continuous shaking to detect the shake event. Not very practical for a watch solution...
With my Backlight solution, although sometimes still hiccup happens, but my feeling is about 90% of time the watchface wakeup correctly...
tasker problems
lssong99 said:
Wow! It seems you are right! The watch DOES allow sensor to work on Sport mode after screen off, but the response from Tasker become very sluggish when screen-off!
I made a simple profile to detect shake action (if shake than beep), and when screen on, the watch beep in less than one second after shake began, but when screen-off (sport mode), It took Takers 5~6 seconds of continuous shaking to detect the shake event. Not very practical for a watch solution...
With my Backlight solution, although sometimes still hiccup happens, but my feeling is about 90% of time the watchface wakeup correctly...
Click to expand...
Click to collapse
i can not import to tasker tasker do not see it
pashka79 said:
i can not import to tasker tasker do not see it
Click to expand...
Click to collapse
Do you mean the Tasker cannot see the prj file?
For how to import project, you could check http://tasker.dinglisch.net/userguide/en/faqs/faq-how.html#q
and you need to put the unrared file (.xml) in /sdcard/tasker/projects for Tasker to see it...
How much does this cost in battery? If I don't use my watch I can get about 4 days out of it.... I know Shake stops the TS going into deep sleep, won't this do the same and annihilate battery??
death_entry said:
How much does this cost in battery? If I don't use my watch I can get about 4 days out of it.... I know Shake stops the TS going into deep sleep, won't this do the same and annihilate battery??
Click to expand...
Click to collapse
Don't know for tasker but I'm using shake app from market and I even I thought it'll drain my battery very fast - it didn't...
It's almost like I don't have it...
My battery can't hold on more then 24hours but I really use my watch and it's constantly connected to wifi and BT.
Sent from my C6903 using Tapatalk
funky0308 said:
Don't know for tasker but I'm using shake app from market and I even I thought it'll drain my battery very fast - it didn't...
It's almost like I don't have it...
My battery can't hold on more then 24hours but I really use my watch and it's constantly connected to wifi and BT.
Sent from my C6903 using Tapatalk
Click to expand...
Click to collapse
Ah that's prolly why you don't notice it running down... what do you use your watch for? Tbh i haven't used it for more than a watch lol/...
death_entry said:
Ah that's prolly why you don't notice it running down... what do you use your watch for? Tbh i haven't used it for more than a watch lol/...
Click to expand...
Click to collapse
Well as I have Z1, which is quite big, I'm using TS mainly to receive notifications (using swapplink).
I'm receiving many emails (I'm using Z1 as my business phone) so it's great that I can see on my TS subject of email and decide what will I do.
I have sim card in TS and I use it all the time, when I'm alone in a car (and that's 6 hours per day )
I found TS quite practical for companion
BTW...from today, I'm using this app to help me save my battery power on TS and Z1
http://forum.xda-developers.com/showthread.php?p=53078670
Sent from my C6903 using Tapatalk
lssong99 said:
Do you mean the Tasker cannot see the prj file?
For how to import project, you could check http://tasker.dinglisch.net/userguide/en/faqs/faq-how.html#q
and you need to put the unrared file (.xml) in /sdcard/tasker/projects for Tasker to see it...
Click to expand...
Click to collapse
I tried this and Tasker can't see the xml on my TS
Here's a workaround for those having issues seeing the xml file in Tasker
Using a file manager, navigate to the location of the xml file
"Open with.." and choose Tasker
You will then see a toast notificaiton saying "...can be opened in Tasker" (or something like that)
Open Tasker -> Preferences -> UI -> Untick "Beginner Mode"
Back to main Tasker screen
In the HOME icon (bottom left) -> Long press, and choose "Import", then look for the XML file, wherever you put it
Boom
Note: Make sure you have the correct app from the Play Store, and not from the Ostore (same app, different names)
death_entry said:
How much does this cost in battery? If I don't use my watch I can get about 4 days out of it.... I know Shake stops the TS going into deep sleep, won't this do the same and annihilate battery??
Click to expand...
Click to collapse
I am afraid that this will have an impact your battery. Basically to make TS responsive (light up as soon as you raise your hand), the screen/CPU is kept wake. Only LED backlight is disabled.
Although in my implement I put the CPU is slowest frequency and sleep Governor, but battery is around one day usage without radio on....
We need kernel tweak of this to achieve good battery life... Tasker is only... Tasker...
jeremy.chan said:
Here's a workaround for those having issues seeing the xml file in Tasker
Using a file manager, navigate to the location of the xml file
"Open with.." and choose Tasker
You will then see a toast notificaiton saying "...can be opened in Tasker" (or something like that)
Open Tasker -> Preferences -> UI -> Untick "Beginner Mode"
Back to main Tasker screen
In the HOME icon (bottom left) -> Long press, and choose "Import", then look for the XML file, wherever you put it
Boom
Note: Make sure you have the correct app from the Play Store, and not from the Ostore (same app, different names)
Click to expand...
Click to collapse
Thanks I see it now.
put the unzip file at that location and still Tasker cannot see it?
Hi do read the solution I provided
Tapa-ed from the Sony Z Ultra