Is it possible to completely disable the automatic activation of the screensaver? I don't see it in settings, the longest interval for this to happen is 1 hour, but no option to disable it completely. I already installed the No Lock app, but this only helped me to get rid of the slide to unlock screen. Thank you for any ideas.
Martin
Martin2603 said:
Is it possible to completely disable the automatic activation of the screensaver? I don't see it in settings, the longest interval for this to happen is 1 hour, but no option to disable it completely. I already installed the No Lock app, but this only helped me to get rid of the slide to unlock screen. Thank you for any ideas.
Martin
Click to expand...
Click to collapse
All settings are here:
http://developer.android.com/reference/android/provider/Settings.System.html
In you case you'll need:
adb shell
sqlite3 /data/data/com.android.providers.settings/databases/settings.db
-- check current value
select * from system where name='screen_off_timeout';
120000 - 2 min
3600000 - 1 hour
2147483647 = 596.5 hours
-- set
update system set value='2147483647' where name='screen_off_timeout';
.q
^d
or you can pull/mod/push alternatively.
Won't disabling the screensaver keep the screen and IR sensors active, thus eating up battery life significantly when not in use?
I know some folks would like to get rid of the swipe, waking up on a screen tap (mostly for accessibility issues), but I think some sort of screen (actually, battery) saver is still important.
Great link, ApokrifX. Would you happen to know if WIFI_SLEEP_POLICY does anything on the NST? I use Tasker to shut wifi off when the screen goes off, but I wonder if that might be easier?
bobstro said:
Great link, ApokrifX. Would you happen to know if WIFI_SLEEP_POLICY does anything on the NST? I use Tasker to shut wifi off when the screen goes off, but I wonder if that might be easier?
Click to expand...
Click to collapse
No idea.
I bet, it won't work...
Try and let us know?
ApokrifX said:
No idea.
I bet, it won't work...
Try and let us know?
Click to expand...
Click to collapse
I need to find a program that will let me know when wifi is on or off relative to the screen. On other devices, I can see that info in the battery status, but I'm not finding a similar option for the NST.
I *did* find a little program that would toggle it, but the NST lasts so long on battery, it's hard to tell if it's making any difference.
Actually, to disable the screensaver completely:
Code:
update system set value=-1 where name='screen_off_timeout';
I haven't found a way to disable the keyguard yet, but if you have one of the side keys set as Menu that dismisses the keyguard.
Renate NST said:
Actually, to disable the screensaver completely:
Code:
update system set value=-1 where name='screen_off_timeout';
Click to expand...
Click to collapse
Hi Renate again ( you adviced me with manual time set in NST
http://forum.xda-developers.com/showthread.php?p=30560605#post30560605, thanks).
I like the tweak (to disable the screensaver completely) also. But not understanding how to do this in internal terminal. Not shell and not busybox know the sqlite3 app and update command?
I fixed it so:
you must install SQLite3 to the NST you can just push it to the device. [unzip sqlite3 (push to n2e).zip]
Code:
adb shell mount -o rw,remount -t ext2 /dev/block/mmcblk0p5 /system
adb push sqlite3 /system/bin
download it from here:
http://forum.xda-developers.com/showpost.php?p=14747007&postcount=2
bobstro said:
Won't disabling the screensaver keep the screen and IR sensors active, thus eating up battery life significantly when not in use?
Click to expand...
Click to collapse
This makes a lot of sense... it explains my battery drain when the screen gets stuck on the "drag to unlock your NOOK" page after a reboot. Basically you have to make sure the Nook really goes to sleep.
Disabling the IR sensors and wifi are then the key to long battery life on the NST.
For anyone trying this technique: I used the pull/mod/push approach and Renate's recommendation of a -1 value, and everything seems to be working well, but I had to powercyle (power down, then power up) my Nook to get the change to take effect.
Background:
I previously had an old Nexus i9250 which had an LED and I'm missing that badly, despite the Moto notification.
However, the Moto X 2 (2014) has a LED hidden under the earpiece, but it is normally only used to indicate charging (this is similar to the Nexus 6, but the Moto 2014 LED is just green, the Nexus-6 seems to have a hidden multi-color LED too).
On rooted devices the LED can be turned on by writing a value to a system file:
echo <brighness> >/sys/class/leds/charging/brightness
(<brighness> is some value betweeen 1 and 255, for testing in an adb shell it needs to be issued from su)
The LED can also be activated using the LightFlow app (see thread here: http://forum.xda-developers.com/showpost.php?p=59198021&postcount=22)
Here are instructions for the Tasker app (which allows more flexible control over the LED):
1) Create a Tasker task "Led On If Screen Off"
- Task-Type "Code>Run Shell", set Use-Root to "on", command: echo 64 >/sys/class/leds/charging/brightness
- EDIT: as someone suggested here, alternately (instead of the run.shell command) you can add a Task: Alert>Set-Light>Charging and set slider to 64
- fill in the IF-section: IF %SCREEN equals off
- (the number 64 in the command is the brightness, it can technically run from 1 [dim] to 255 [battery consuming])
2) Create a task named "Led Off"
- Task-Type "Code>Run Shell", set Use-Root to "on", command: echo 0 >/sys/class/leds/charging/brightness
- EDIT: as someone suggested here, alternately (instead of the run.shell command) you can add a Task: Alert>Set-Light>Charging and set slider to 0
3) Create a Profile named "Notify Led On"
- Profile-Type "Event>UI>Notification"
- Owner Application "*" (or any you may like)
- Assign profile to perform task "Led On If Screen Off"
4) Create a Profile named "Notify Click Led Off"
- Profile-Type "Event>UI>Notification Click"
- Assign it to perform task "Led Off"
and/or
5) Create a Profile named "Screen On Led Off"
- Profile-Type "Event>UI>Display>Display On"
- Assign to perform task "Led Off"
Violá ... Tasker will turn on the LED if the display is off and a notification arrives. (Of course other triggers like "State>Battery" can also be linked to the "Led On" task).
Enjoy
Can you say why my echo <brightness> keeps coming back to 0 by itself?
fhreire said:
Can you say why my echo <brightness> keeps coming back to 0 by itself?
Click to expand...
Click to collapse
It should be something like
echo 255 >/sys/class/leds/charging/brightness
And needs to be running in root or superuser, so make sure the command is set to run as root (and you have Tasker allowed in SuperSU or similar apps).
fhreire said:
I don't have the Tasker app, I tried a cracked one to test but it didn't ask me permission for SuperSu, so I guess it's not working, innit?
Click to expand...
Click to collapse
The Use-Root flag must be set in the task.
Probably su echo 64 >/sys/class/leds/charging/brightness as a command will also work.
Or your cracked version is broken (Tasker is worth the money anyway and you can get a refund from PlayStore within a few hours if you don't like).
Otherwise see the link (in the original post) to the thread using LightFlow for the LED
We can make it blink!
shimodax said:
Here are instructions for the Tasker app (which allows more flexible control over the LED):
1) Create a Tasker task "Led On If Screen Off"
- Task-Type "Code>Run Shell"
- set Use-Root to "on"
- Command: echo 64 >/sys/class/leds/charging/brightness
- fill in the IF-section: IF %SCREEN equals off
- (the number 64 in the command is the brightness, it can technically run from 1 [dim] to 255 [battery consuming])
2) Create a task named "Led Off"
- Task-Type "Code>Run Shell"
- set Use-Root to "on"
- Command: echo 0 >/sys/class/leds/charging/brightness
3) Create a Profile named "Notify Led On"
Task-Type "Event>UI>Notification", Owner Application "*" (or any you may like) and assign it to task "Led On If Screen Off"
4) Create a Profile named "Notify Click Led Off"
Task-Type "Event>UI>Notification Click", and assign it to task "Led Off"
and/or
5) Create a Profile named "Screen On Led Off"
Task-Type "Event>UI>Display>Display On", and assign it to task "Led Off"
Violá ... Tasker will turn on the LED if the display is off and a notification arrives. (Of course other triggers like "State>Battery" can also be linked to the "Led On" task).
Click to expand...
Click to collapse
Great one! Was looking for some way to turn it on and off.
BTW, you can make it blink softly (like Moto G 2014 and others) by changing the action Led On If Screen Off to the following:
1. Task-Type "Code>Run Shell"
- set Use-Root to "on"
- Command: echo 1 >/sys/class/leds/charging/brightness
- fill in the IF-section: IF %SCREEN equals off
2. Task-Type "Code>Run Shell"
- set Use-Root to "on"
- Command: echo 25 >/sys/class/leds/charging/brightness
- fill in the IF-section: IF %SCREEN equals off
3. Task-Type "Code>Run Shell"
- set Use-Root to "on"
- Command: echo 255 >/sys/class/leds/charging/brightness
- fill in the IF-section: IF %SCREEN equals off
4. Task-Type "Code>Run Shell"
- set Use-Root to "on"
- Command: echo 25 >/sys/class/leds/charging/brightness
- fill in the IF-section: IF %SCREEN equals off
4. Task-Type "Code>Run Shell"
- set Use-Root to "on"
- Command: echo 0 >/sys/class/leds/charging/brightness
- fill in the IF-section: IF %SCREEN equals off
6. Task-Type "Task>Wait"
- 10 seconds (or the desired blinking interval)
7. Task-Type "Task>Goto"
- Type "Action number"
- Action number 1
Then, just add the following to the Led Off task:
- Task-type "Task>Stop"
- Task "Led On If Screen Off"
And it should blink until you tap the notification. My hope is that it will decrease the battery consumption to a minimum level.
Hope it helps!
shimodax said:
The Use-Root flag must be set in the task.
Probably su echo 64 >/sys/class/leds/charging/brightness as a command will also work.
Or your cracked version is broken (Tasker is worth the money anyway and you can get a refund from PlayStore within a few hours if you don't like).
Otherwise see the link (in the original post) to the thread using LightFlow for the LED
Click to expand...
Click to collapse
Just bought the app, gonna try that again, thanks.
joaoeder said:
BTW, you can make it blink softly (like Moto G 2014 and others) by changing the action Led On If Screen Off to the following:
...
Click to expand...
Click to collapse
Very cool. Something learned today . Thanks!
joaoeder said:
Then, just add the following to the Led Off task:
- Task-type "Task>Stop"
- Task "Led On If Screen Off"
Click to expand...
Click to collapse
Very cool .
I did my own version so it blinks really smooth, with fade-in and fade-out, and repeating every 5 seconds.
To ensure compatibility, install busybox!
Same as @joaoeder, but put this on Led On If Screen Off
1. Task-Type "Code>Run Shell"
- set Use-Root to "on"
- Command: (ensure that you copy everything in a single line. I recommend to copy & paste )
Code:
l=1;while [ $l -ne 32 ] ;do echo $l >/sys/class/leds/charging/brightness; l=`expr $l + 1`;sleep 0.01;done;sleep 0.5;while [ $l -ne 0 ] ;do l=`expr $l - 1`;echo $l >/sys/class/leds/charging/brightness;sleep 0.01;done
- fill in the IF-section: IF %SCREEN equals off
2. Task-Type "Task>Wait"
- 5 seconds (or the desired blinking interval)
3. Task-Type "Task>Goto"
- Type "Action number"
- Action number 1
Now the led will smoothly fade in for 1/3 second, keep on 1/2 second, and fade out for 1/3 second.
No more crappy slow and noticeable brightness steps! It's almost identical to the stock notification of most phones.
I had issues with tasker, I discovered that I had to reboot the phone each time I made changes for applying them, otherwise it just didn't work
If you want the led to be on for more time, change sleep 0.5 to whatever you want (0.5=1/2 second, 1=1second, 2=2 seconds...etc)
No need to use shell, you can use the build in taster function.
It is under Alert > Set Light, from the drop down menu select charging and use the slider to set the brightness of the Led.
I thought it was said the OS couldn't access this light, nice!
Nedle said:
No need to use shell, you can use the build in taster function.
It is under Alert > Set Light, from the drop down menu select charging and use the slider to set the brightness of the Led.
Click to expand...
Click to collapse
Awesome, didn't see that. Will edit the original post. Thanks!
Nedle said:
No need to use shell, you can use the build in taster function.
It is under Alert > Set Light, from the drop down menu select charging and use the slider to set the brightness of the Led.
Click to expand...
Click to collapse
Now that's news to me. Nice to see it has a built in way to access the led. Thanks for sharing!
Could someone show how the LED looks?
Thanks.
Can this be applied to the 2013 moto x?
Haven't had any luck with tasker yet, i cant get the prompt for root to show. gonna try lightflow and see if i have any luck with it. Do i need to disable moto display and ambient display?
EDIT: Fiddled with lightflow for a while with no luck either. Finally got tasker to show the prompt for SU but it isnt working either. Can't figure what I am doing wrong.
dabyd64 said:
I did my own version so it blinks really smooth, with fade-in and fade-out, and repeating every 5 seconds.
Click to expand...
Click to collapse
Great dude!
wasnt able to get it working on moto x 1st gen either. obviously the implementation differs from the one in the moto x 2nd gen, allthough the paths and the triggers are the same. would have been great to get a notification led....
Gesendet von meinem ghost mit Tapatalk
I can't seem to get this to work on my 2nd Gen Moto X. I can get the tasks to work just fine (turns on/off the LED) but the profiles with the notification and notification click don't work. The light doesn't come on with a notification, with screen on or off, and if I manually turn the light on through the task, I can't get it to turn off with a click on a notification. Any ideas?
akates said:
I can't seem to get this to work on my 2nd Gen Moto X. I can get the tasks to work just fine (turns on/off the LED) but the profiles with the notification and notification click don't work. The light doesn't come on with a notification, with screen on or off, and if I manually turn the light on through the task, I can't get it to turn off with a click on a notification. Any ideas?
Click to expand...
Click to collapse
Using moto display? Clicking a notification through moto display isnt registered as notification click unfortunately.
Try setting notification + display state off to turn on the led for notifications.
Good luck and cheers
Sent from my XT1092 using XDA Free mobile app
Guys, I'm having some issues with the led.
First I've rooted my phone and tried to make the led blink using tasker and Stock ROM, but I have no success.
The second time, I've flashed temasek ROM (with some led options like blink duration and speed) but didn' t worked too.
The third time I've tried with tasker and the custom ROM. No success
To sum up my situation I can't make the led blink, it turns on but still on continuosly when the screen is off.
I would like to know if someone made the led blink with success.
Sorry about bad english
Sent from my victara using XDA Free mobile app