Related
Since a lot of people suggest disabling the g-sensor to prevent the screen freezes I thought I'd try something.
I don't want to have my rotation disabled as it's very handy to have. So what I do is use an app called Tasker. It's not free, but there is a 7-day trial available.
Basically I have it set to disable screen rotation every time the screen is off..and so far I haven't had any screen freezes. It may be coincidence, it may not be. I'm not exactly sure if the app does disable the g-sensor or does something else, but so far so good.
For those that don't know about Tasker...it's probably the best app that will ever be made for Android. You can make your phone do almost anything.
For example, I use it to:
When I get home, Wifi turns on and 3G is turned off. When I leave home, Wifi turns off and 3G turns on....same for work.
I have it disable wifi, 3g and screen rotation at night when I'm in bed.
It enables GPS when I launch maps or navigation, and disables GPS when I close the app.
And those are very basic ones...
The Tasker wiki has many more advanced "profiles" you can use:
Code:
Lock An Application
Start the Day with a Particular Application
Battery Full Alert
Launch Music App When Headset Inserted
Launch Menu of Music Apps When Headset Inserted
Keep screen awake when using the keyboard
Speaking Clock for Android 1.5
Control Keyguard (scroll to unlock) when Power is Connected/Disconnected
Keep Multiple Backups of Tasker Config
Change Ringtone on Every New Call
Mute in Meetings
Hold Ringer Volume Down
Auto-Respond To SMSs At Night
Change Volume Levels during Different Times of the Day
Check Data/SMS/Minute Usage With Carrier While Sleeping
Temporarily max brightness of screen during Incoming Call
Auto (Silent) Sleep Mode with Exceptions
Intermediate
Power Plug In - Choose Car/Home/Night Mode
Generic Toggle Widget
Open the keyboard and start texting
Set volume then Launch menu of music apps
Alarmclock without Snooze
Alarms with Snooze and Vibrate
Geburtstagserinnerung (German)
Car Locator
Notification Reminder Pulse
Locate your phone using SMS and google maps
Lock your phone and locate it by SMS and sound
A full talking clock
Act like a docking station when plugged into USB
Auto answer calls when your bluetooth headset is connected
Extended phone profile changer with Notification and Widget
Turn your cell phone into a Voip phone
Advanced
Periodic Data Check (Juicedefender Replacement)
Creates profiles similar to S60 devices and changes them depending on variety of factors
U.S. Navy Ships Bells (Using Tasker's OR '/' feature) * Pattern Matching *
Changing background image depending on current weather (Using HTTPGet)
Or you can simply create your own...there is a learning curve, but once you get a feel for it, it's VERY powerful! It can control almost every part of your Android phone.
There's a decent thread with more examples on xda in this thread.
I realise this is a software post, but it's main aim was to point out a way of disabling rotation to help with screen freezes
Hey,
thanks for this thread, i have downloaded tasker now.
Can you post your code for disabling gsensor when screen is off?
//EDIT: Sorry, its very easy.. i think i can create it by myself
HTC_HDD said:
Hey,
thanks for this thread, i have downloaded tasker now.
Can you post your code for disabling gsensor when screen is off?
//EDIT: Sorry, its very easy.. i think i can create it by myself
Click to expand...
Click to collapse
Hehe yep, it's an easy one.
New Event profile > Display off is the Event. Action is disable rotation
I have done it like you and added a task which enables the rotation if screen is on, is this correct?
I have used the phone now and i got freezes again, but not so much.. i think.
Sent from my HTC Desire using XDA App
HTC_HDD said:
I have done it like you and added a task which enables the rotation if screen is on, is this correct?
I have used the phone now and i got freezes again, but not so much.. i think.
Sent from my HTC Desire using XDA App
Click to expand...
Click to collapse
Yep, you also have to create another to say disable screen rotation when the screen is off.
@the_scotsman
Thanks for the suggestion, I've seen a few people mention this app before but now I finally downloaded it. I'll play around a bit to figure out some combos, but one quick question..
Is this going to be something running in the background sucking up battery and memory or is it just like running scripts? What do you think? I'll run current widget once I get some tasks going to see happens, just wondering if you've found anything out yet.
tgtoys said:
@the_scotsman
Thanks for the suggestion, I've seen a few people mention this app before but now I finally downloaded it. I'll play around a bit to figure out some combos, but one quick question..
Is this going to be something running in the background sucking up battery and memory or is it just like running scripts? What do you think? I'll run current widget once I get some tasks going to see happens, just wondering if you've found anything out yet.
Click to expand...
Click to collapse
It depends on what profiles you set up...if they involve wireless, it will enable wireless every so often to check access points etc....or if you are using a location profile, it will enable gps every so often to check your location. You can change how often everything polls in the settings.
I have mine as per the first post, so it does scan for wireless every so often, and I havent seen any change in battery usage.
the_scotsman said:
Yep, you also have to create another to say disable screen rotation when the screen is off.
Click to expand...
Click to collapse
Can you go step by step what you do to set up display off and rotation off?
Hi,
the last NetRipper Kernel has no freezes!!
Is not overclocked, is not undervolted, has no axi and has no freezes.
with friendly greet
starbase64
starbase64 said:
Hi,
the last NetRipper Kernel has no freezes!!
Is not overclocked, is not undervolted, has no axi and has no freezes.
with friendly greet
starbase64
Click to expand...
Click to collapse
Thanks, but i prefer to have axi and undervolt
And I have no freezes
the_scotsman said:
Hehe yep, it's an easy one.
New Event profile > Display off is the Event. Action is disable rotation
Click to expand...
Click to collapse
I can find everything else exept "disable rotation" in Actions. I only found "display rotation" in settings. Any help?
tzic said:
I can find everything else exept "disable rotation" in Actions. I only found "display rotation" in settings. Any help?
Click to expand...
Click to collapse
Yea, thats the one..just choose that one and set it to "off" in the settings for it
ty for the quick reply scotsman, I ll report back in a day or two.
Tried this, but didnt work
I tried many different versions of kernels but in all if I keep my phone on standby (screen off) for a long time, say 20 mins, my phone freezes, My hardware buttons still glow on press, but phone never wakes up, any Ideas??
Even you disable display rotation, the sensor is still active, just use Gscript and disable sensor, you won't get any more freeze.
justwonder said:
Even you disable display rotation, the sensor is still active, just use Gscript and disable sensor, you won't get any more freeze.
Click to expand...
Click to collapse
I was just about to write exactly the same words!
Scotsman - can you tell if Tasker can run a custom written script, upon some event? Then we can use it to turn off the gsensor!
Finally seems to be workin!!I made 2 changes:
1) Upgraded my radio from 2.08 to 2.12 (I recommend this one)
2) Stopped GSensor with Gscript
Another issue,
After I restart the sensor via script, photos in album wont rotate anymore!!
I did a `ps -ef|grep akmd` and the process is running, any thoughts??
edit: it works after restart!!
did you use the free gscript? cause mine says needs su:true
Your solution is great thanks... i did something slightly different : using tasker, autorotation is enabled only for apps that I want too, like gallery. Rest of the time, its off and working great that way too.
Hi,
I know screen rotation was removed with 2.01+, but is there a way (with root rights) to force a screen layout?
As I am currently developing an app that reads out text messages and sets media volume to max after entering car mode, it would be great to have it changing the layout.
And even if it is not possible to force a mode, how can I enable "Auto Rotate"?
Thanks,
Marc
You can specify which orientations each activity can have in the manifest file
Sent from my Thunderbolt
Yes, I know how to change the layout for my app, but I want to change another's app layout ;-)
The only way I know is to change it's manifest file and repackage it
Sent from my Thunderbolt
What about spoofing the accelorometers reading... so no matter how you hold the phone it will think it is in the orientation you want
From something awesome
Yeah, I googled that before but didn't find anything. Is that actually possible?
I have the touch control app for the nexus 4, which I must say is one of the best apps ever made for this device. Dont have to use the power button at all to lock or unlock the phone. The problem I am having though is that I am unable to use the scrollable dock in my launcher in the same direction as the slide2lock function. Can anyone tell me which settings and what values to change to in the app so I can use my scrollable dock properly.
Thanks in advance
Rizy7 said:
I have the touch control app for the nexus 4, which I must say is one of the best apps ever made for this device. Dont have to use the power button at all to lock or unlock the phone. The problem I am having though is that I am unable to use the scrollable dock in my launcher in the same direction as the slide2lock function. Can anyone tell me which settings and what values to change to in the app so I can use my scrollable dock properly.
Thanks in advance
Click to expand...
Click to collapse
If you tap on the arrow next to the lock function, you can adjust the sensitive range for that particular gesture. By default the Y value is set to 2400 so try adjusting it to lower values to activate the gesture above the dock. By the looks of it, the origin is set at top left (someone correct me if I'm wrong)
yoft1 said:
If you tap on the arrow next to the lock function, you can adjust the sensitive range for that particular gesture. By default the Y value is set to 2400 so try adjusting it to lower values to activate the gesture above the dock. By the looks of it, the origin is set at top left (someone correct me if I'm wrong)
Click to expand...
Click to collapse
Sorry I probably didnt word my post correctly. The origin is at the bottom right of the phone for slide2lock. So sliding the softkeys right to left will lock the phone. Problem I am having is that the settings seem to include a little portion of the dock.
settings are currently: x,y
start point 1400,2400
end point 20,2400
threshold 350,256
Rizy7 said:
Sorry I probably didnt word my post correctly. The origin is at the bottom right of the phone for slide2lock. So sliding the softkeys right to left will lock the phone. Problem I am having is that the settings seem to include a little portion of the dock.
settings are currently: x,y
start point 1400,2400
end point 20,2400
threshold 350,256
Click to expand...
Click to collapse
Right I meant the origin as in the origin for the coordinates system. Meaning top left of the screen is 0, 0 for X and Y with the values increasing as you go down and right. So try setting the Y start and stop to 1800. That seems to set the swipe region right above the dock. Let me know if it works for you.
What app is this?
Sent from my Nexus 4 using xda app-developers app
chrisrozon said:
What app is this?
Sent from my Nexus 4 using xda app-developers app
Click to expand...
Click to collapse
If you are interested in using your screen to lock and unlock instead of physical buttons, you're in for a treat.
http://forum.xda-developers.com/showthread.php?t=2101488
yoft1 said:
If you are interested in using your screen to lock and unlock instead of physical buttons, you're in for a treat.
http://forum.xda-developers.com/showthread.php?t=2101488
Click to expand...
Click to collapse
Neato, thanks!
Sent from my Nexus 4 using xda app-developers app
yoft1 said:
Right I meant the origin as in the origin for the coordinates system. Meaning top left of the screen is 0, 0 for X and Y with the values increasing as you go down and right. So try setting the Y start and stop to 1800. That seems to set the swipe region right above the dock. Let me know if it works for you.
Click to expand...
Click to collapse
Thanks for your reply. After reading the thread that the dev posted, I instead changed the threshold settings. I changed the y threshold to 85.. Anything lower and you wont be able to lock the phone unless you swipe very accurately. Also I think the stop and start of 2400 is very close to the top of the soft keys bar instead of the bottom of the screem
pgm slide2lock settings ?
Rizy7 said:
Thanks for your reply. After reading the thread that the dev posted, I instead changed the threshold settings. I changed the y threshold to 85.. Anything lower and you wont be able to lock the phone unless you swipe very accurately. Also I think the stop and start of 2400 is very close to the top of the soft keys bar instead of the bottom of the screem
Click to expand...
Click to collapse
Would someone please post slide2lock settings for the galaxy nexus.I can't find the correct numbers to input to slide on over the soft keys.
billhilt said:
Would someone please post slide2lock settings for the galaxy nexus.I can't find the correct numbers to input to slide on over the soft keys.
Click to expand...
Click to collapse
Are you sure youve downloaded the right one.. Im sure the galaxy nexus version is different to the nexus 4 version
Yes I have the right one I'm just trying to get the lock part set up right
Sent from my Galaxy Nexus using xda app-developers app
billhilt said:
Yes I have the right one I'm just trying to get the lock part set up right
Sent from my Galaxy Nexus using xda app-developers app
Click to expand...
Click to collapse
What happens at the moment when you have the slide2lock enabled
Slide2Wake
I was wondering if someone could help me? I want to set the slide2wake feature on Touch Control Nexus 4 so that swiping up wakes the phone like in Blackberry 10 but I can't figure out the X Y start and stop points. Can anybody help me out? Apologies if this has already been answered somewhere else, I've been looking for ages.
@ OP which kernel you are using ? I really love to try this app but it drains my battery a lot
Sent from my Nexus 4 using xda premium
take a look at this thread
i had to deal with it also that the app didnt worked, but now its working on the stock rom, only touch control did downloaded a other kernel
dont know which kernel i choise. but it downloaded it rebooted my phone in recoverymode and it installed by itself,
after that it rebooted back on and slide to unlock was ready to work
Keep sliding boys
http://forum.xda-developers.com/showthread.php?t=2416388
goodnight oh and thank me if the info was usefull
And have you been able to activate Power Saving Mode automatically with it? TIA!
You'll probably just have to hunt around the for activity that starts power save mode and set it to activate whenever criteria are met.
I use Tasker for wireless charging. I have one set up in my car and nightstand, so when it gets set on them, the screen timeout is set to 7 seconds and then it starts to Daydream.
I'd love one for turning on FoxFi when it realizes it's connected to a computer... But it's impossible to contact the devs. I wish they'd make it so we could launch each activity ourselves. Or at least make a plugin for it.
dpwhitty11 said:
You'll probably just have to hunt around the for activity that starts power save mode and set it to activate whenever criteria are met.
I use Tasker for wireless charging. I have one set up in my car and nightstand, so when it gets set on them, the screen timeout is set to 7 seconds and then it starts to Daydream.
I'd love one for turning on FoxFi when it realizes it's connected to a computer... But it's impossible to contact the devs. I wish they'd make it so we could launch each activity ourselves. Or at least make a plugin for it.
Click to expand...
Click to collapse
Do you happen to know the activity?
No idea, sorry. Best guess is to find which apk the power save comes from, and from there decompile it and try each activity until it triggers.
Sent from my SM-G900P using Tapatalk
dpwhitty11 said:
No idea, sorry. Best guess is to find which apk the power save comes from, and from there decompile it and try each activity until it triggers.
Sent from my SM-G900P using Tapatalk
Click to expand...
Click to collapse
It comes from within the settings. I have the package name for it can I do it with that?
Get the app 'Activity Launcher' from the play store.
Once installed, activate the power saving option from the settings.
Open activity launcher and it should be in your "recently used" list. From here you should be able to get the procedure to call using tasker.
Joe0113 said:
And have you been able to activate Power Saving Mode automatically with it? TIA!
Click to expand...
Click to collapse
I tried with secure settings plug in, and doesn't work
http://www.reddit.com/r/tasker/comments/28x4f7/figured_out_how_to_activate_ultra_power_saver_mode/
Someone does it there with screen taps.
Not ideal, but at least it's something.
moonrakerone said:
http://www.reddit.com/r/tasker/comments/28x4f7/figured_out_how_to_activate_ultra_power_saver_mode/
Someone does it there with screen taps.
Not ideal, but at least it's something.
Click to expand...
Click to collapse
That's cool! But I want to just activate regular PSM over night!
Hi,
I'm trying to enable the comfort view with Tasker.
Does anybody know how to do that?
Regard
fanello
You'd probably have better luck asking over at the Tasker Forum.
fanello123 said:
Hi,
I'm trying to enable the comfort view with Tasker.
Does anybody know how to do that?
Regard
fanello
Click to expand...
Click to collapse
I used a java code action to set the reader_mode_enable to a 0/1 value. It works well.
art.montesinos said:
I used a java code action to set the reader_mode_enable to a 0/1 value. It works well.
Click to expand...
Click to collapse
Could you please give a quick walkthrough on how to add this code in tasker? I have an LG V20 and would like to set comfort view to turn on at 10pm and turn off at 7am everyday.
Thanks!
Thank you, I've been trying to figure this out as well. I head set a task for the AOD, so it was easy to modify for comfort view. I attached the XML export from tasker. Change the parameter in the second step to 0 to turn off.
lemmyslender said:
Thank you, I've been trying to figure this out as well. I head set a task for the AOD, so it was easy to modify for comfort view. I attached the XML export from tasker. Change the parameter in the second step to 0 to turn off.
Click to expand...
Click to collapse
So I used this xml to create an on and off profile and set it to a schedule in tasker. However, sometimes the off profile toggles the comfort view off, but the screen is still the same color.
Does anyone else have this problem?
Also, Why would you have this setting and not be able to schedule it. LG needs to fix this, along with the ability to adjust screen brightness without having to turn off the auto brightness option ( I can do it on an LG V20, why not the G6??!).
supadoggie said:
So I used this xml to create an on and off profile and set it to a schedule in tasker. However, sometimes the off profile toggles the comfort view off, but the screen is still the same color.
Does anyone else have this problem?
Also, Why would you have this setting and not be able to schedule it. LG needs to fix this, along with the ability to adjust screen brightness without having to turn off the auto brightness option ( I can do it on an LG V20, why not the G6??!).
Click to expand...
Click to collapse
I don't use it often, although I obviously have it set up in tasker, never got around to creating a task. I don't think I ever saw it not turn off though.
supadoggie said:
So I used this xml to create an on and off profile and set it to a schedule in tasker. However, sometimes the off profile toggles the comfort view off, but the screen is still the same color.
Does anyone else have this problem?
Click to expand...
Click to collapse
I have the same problem here. Did you find a solution?
Airmaxchen said:
I have the same problem here. Did you find a solution?
Click to expand...
Click to collapse
Just figured a way out using shell commands. Works beautifully. This does require root though - just so you know.
Here is a great site on using shell commands http://www.notenoughtech.com/tasker/tasker-run-shell-commands/
The setting you want is "reader_mode_enable" It takes a 0 or a 1, 1 being enabled and 0 disabled. The command you want to use is:
settings put system reader_mode_enable 1
That will turn it on. In Tasker you need to add an action Code>Run Shell and then use that Shell command and make sure "Use Root" is checked. Hope this helps the next person searching this information out!
Sent from my LGUS997 using XDA Labs
Sobek5150 said:
Just figured a way out using shell commands. Works beautifully. This does require root though - just so you know.
Here is a great site on using shell commands http://www.notenoughtech.com/tasker/tasker-run-shell-commands/
The setting you want is "reader_mode_enable" It takes a 0 or a 1, 1 being enabled and 0 disabled. The command you want to use is:
settings put system reader_mode_enable 1
That will turn it on. In Tasker you need to add an action Code>Run Shell and then use that Shell command and make sure "Use Root" is checked. Hope this helps the next person searching this information out!
Click to expand...
Click to collapse
So a quick addition to this. The screen must be on for this to work. Use Secure Settings app or possibly one of the Auto tools apps to trigger the screen to pop on just before the shell command runs.
Sent from my LGUS997 using XDA Labs