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?
Has anyone figured out a way to launch Daydream using NFC launcher, either directly or using Tasker or any other shortcut app?
I am using a wireless charging solution and would love to launch Daydream using NFC as I put the phone on the charger, but do not want to have daydream on all the time when it is plugged in to a wired charger.
I tried Daydream Launcher in the app store but it does not work on the S4.
Thanks.
Reviving an older post I know but....I'd also like to see this possible rather than having to go through the Settings>Display>Daydream rigmarole
I also would like to know if there is a quick or even automatic way to start daydream rather than lock screen.
Yes, daydream mode is a nice feature of Samsung, but very cumbersome to activate.
I'd like to see quick way to activate too.
Hummmm that gives me an idea, maybe a custom shortcut maker might help. Will give it a go..
Edit, I used quick shortcut maker and made a shortcut easy.
In quick shortcut maker you can do a search, so I just typed "day" and daydream showed up on the list all on its alone I hope this is what your all looking for.
Sent from my GT-I9505 using xda app-developers app
ranger4740 said:
Yes, daydream mode is a nice feature of Samsung, but very cumbersome to activate.
I'd like to see quick way to activate too.
Hummmm that gives me an idea, maybe a custom shortcut maker might help. Will give it a go..
Edit, I used quick shortcut maker and made a shortcut easy.
In quick shortcut maker you can do a search, so I just typed "day" and daydream showed up on the list all on its alone I hope this is what your all looking for.
Sent from my GT-I9505 using xda app-developers app
Click to expand...
Click to collapse
Thanks ranger4740. :good: A shortcut sure does help.
I moved from a Galaxy Nexus to the Galaxy S4. The pogo-pin desktop dock was one of my favorite things about the GN. With Daydream, it made it into a perfect clock. So one of the first things I did when I got the GS4 was to figure out how to get as close as possible to what the GN was like in the dock.
The app Daydream Launcher launches Daydream and I was able to set up an NFC task for it using NFC Task Launcher. I also installed a clock replacement called Clock Plus that has more features than the stock clock app, such as allowing an adjustable brightness range for night mode that allows for extreme dimness--which I prefer.
I place my phone into a little plastic stand in landscape mode on my nightstand and was having problems getting Daydream to go into landscape, so I use an app called Rotate to make sure I have landscape Daydream mode when I plug in my phone and set it in the stand.
So now, I plug in my phone, unlock it, and touch an NFC tag to get where I was with my old GN and the pogo dock. Not quite as elegant, but it works fairly well.
The Secure Settings Tasker plugin allows you to toggle daydream too.
The best I was able to do with Secure Settings was go directly to the Daydream Settings page, but not launch Daydream directly, which was exactly what Quick Shortcut Maker did. This thread is about the GS4, so it shouldn't be Touchwiz that's the problem. Am I missing something?
I know there's a problem with Touchwiz messing up the simple way other versions of Android get to Daydream. Daydream Launcher is listed as incompatible with the GS4 and would not let me download it. Daydream Launcher Pro force closed. The only other daydream launching app I found let me download it and then gave me a message saying my device was not supported.
I tried using a touch-recording macro that could possibly be used in a Tasker task, but the stop button was hidden by Daydream's fullscreen window, so it wasn't useful.
I've even been looking for Xposed Framework mods to make a direct path and I couldn't find anything.
Just found this thread because I wanted to do the same
Found a solution:
Tasker + Secure Settings (https://play.google.com/store/apps/details?id=com.intangibleobject.securesettings.plugin&hl=de)
--> Install Secure Settings, Enbale System+, Set DayDream to "always", Set a Task in Tasker if Power + Wireless --> SecureSettings Toggle DayDream
So it will be on if you wireless charge and if you don't charge wirless the DayDream gets deactivated.
chrisonline said:
Just found this thread because I wanted to do the same
Found a solution:
Tasker + Secure Settings (https://play.google.com/store/apps/details?id=com.intangibleobject.securesettings.plugin&hl=de)
--> Install Secure Settings, Enbale System+, Set DayDream to "always", Set a Task in Tasker if Power + Wireless --> SecureSettings Toggle DayDream
So it will be on if you wireless charge and if you don't charge wirless the DayDream gets deactivated.
Click to expand...
Click to collapse
And I just found your post because I want to do the same! I have DayDream set to activate while charging or docked on my Nexus 6. The problem is that when the phone is fully charged, the current stops on my wireless charger and so does DayDream. Does your Tasker task fix that or does the Toggle keep it active until you manually toggle it off?
Puh.. Good question.
I don't use it anymore because my Nexus 5 are getting extremly hot if I do this...
So I can't remember how it was if the battery was full charged... But I think it worked all the time.
chrisonline said:
Puh.. Good question.
I don't use it anymore because my Nexus 5 are getting extremly hot if I do this...
So I can't remember how it was if the battery was full charged... But I think it worked all the time.
Click to expand...
Click to collapse
Thanks Chris, I guess all I can do is try it. Ideally I'd like it to activate for my wireless charger at home, but not for my wired chargers at home and in my car. If just that part works, it will be worth it.
Yeah with Tasker this should work of you have Bluetooth in your car. Tasker can than check if in car.
chrisonline said:
Yeah with Tasker this should work of you have Bluetooth in your car. Tasker can than check if in car.
Click to expand...
Click to collapse
you can also launch it from home screen its easy you have to have nova launcher installed...go to gestures & input now select a swipe gesture for example swipe up now head to shortcuts then activities now scroll down until you see system ui now tap on system ui and select day dream and you're done
as the title says - how to enable double tap to sleep (screen off) using gestures in Nova Launcher prime?
i know it has something to do with assigning an activity via Nova Launcher gestures, but i can't find any activity that relates to screen off or sleep...
any help is appreciated...
note:
i know how to do this using an extra app "Screen Off and Lock", but i just wanted to know is there a posibility to avoid any extra apps to achieve the same thing...
Download Turn Off Screen from play store and assign it to Double Tap on Nova launcher in Gesture Settings.
https://play.google.com/store/apps/details?id=com.cmcm.screenoff
Vlad Paul said:
Download Turn Off Screen from play store and assign it to Double Tap on Nova launcher in Gesture Settings.
Click to expand...
Click to collapse
i think you posted this in the same time i was writing the "note" part in my post
I think not. If i remember, it worked well without 3rd party app, but now it is "disabled". Anyway, here is another guide:
"The Nova Launcher option
Another app that functions very similarly to the way you’d use Apex Launcher is*Nova Launcher. The same as you did for the first method, you will only be able to use this one if you also installed Greenify on the device. Therefore, you should go to the Google Play store and look for these two tools and install them.
Whenever you’re ready, check the steps below:
Open Nova Launcher and go to its Settings.Click on Gestures and Buttons and scroll down to Gestures.Select Double Tap and wait for the Choose Action menu to load.Go to Shortcuts, and then click on Hibernate and Lock Screen.
You may have noticed before that selecting the right settings in the first application is going to automatically send you to the second app you need to use. In this case,*Greenify will open*a new discussion and ask you to authorize Nova to use your screen.
You should go under the Automator and click on Allow Greenfy, and then confirm this option by pressing Activate. You’re now good to go and can test if the display is working properly by double tapping to send it to sleep."
http://techpp.com/2015/03/13/android-double-tap-screen-wake-sleep-guide/
Sent from my LG-D802 using XDA Premium 4 mobile app
krija said:
I think not. If i remember, it worked well without 3rd party app, but now it is "disabled". Anyway, here is another guide
Click to expand...
Click to collapse
thanks, but i don't use greenify and this guide is more complicated than "nova + screen off&lock" option which i already use...
Easy, you don't need to use a 3rd party app. Just doubletap the status bar to sleep
You can do this in every app, whenever you want to sleep just double tap status bar
TheHaso said:
Easy, you don't need to use a 3rd party app. Just doubletap the status bar to sleep
You can do this in every app, whenever you want to sleep just double tap status bar
Click to expand...
Click to collapse
i know that but it's not confortable enough...
i even had double tap navbar to sleep (g3twb) which worked well until i started using 5 buttons navbar making it harder to hit the blank area...
It looks like you may need first of all nova launcher prime, after that , you may need greenify as well.Here is what i did and it works.
1 . Go to Nova settings>gestures and input>double tap
2 . swipe right to the shortcuts tab and then go down you may find "hibernate + lockscreen"
3 . Assign it and it works!
double tap to sleep is working for me.
hope this helps.
EvilKing009 said:
It looks like you may need first of all nova launcher prime, after that , you may need greenify as well.Here is what i did and it works.
1 . Go to Nova settings>gestures and input>double tap
2 . swipe right to the shortcuts tab and then go down you may find "hibernate + lockscreen"
3 . Assign it and it works!
double tap to sleep is working for me.
hope this helps.
Click to expand...
Click to collapse
thanks, but please read all the posts again before posting what i (we) already know and wrote
1. i already have nova prime (else - i won't be asking because gestures don't work with free version anyway)
2. i've said that i got it working with "screen off & lock" app
cheers
Screen turns off if knocked on or close to status bar when I do it.
But what is the problem with having another app installed? Its size is ridiculous and it solves your problem, and always you can hide if u dont want to see it.
fersago said:
But what is the problem with having another app installed? Its size is ridiculous and it solves your problem, and always you can hide if u dont want to see it.
Click to expand...
Click to collapse
not a problem... just wanted to know was there a way to do it without an extra app... nothing more
Hoy could use greenify to
i love when people post without reading...
Mate,
Variant: D802
ROM: @zg8 Unofficial temasek-14.51-20150708-082930
Launcher: Nova
im using Pre-Built sLim Action Screen Off for DT2S for my AOSP ROM
60nine said:
not a problem... just wanted to know was there a way to do it without an extra app... nothing more
Click to expand...
Click to collapse
Greenify is the only solution for you if your using Stock ROM
i don't plan to use aosp rom...
people - please read the posts before you suggest something already solved or written...
From the apps that I have Tasker and GravityBox can do screen off/sleep. And if you are using them already that doesn't count as an extra app, right?
Just realized this myself, one less app in my phone. I think I will go with tasker since I already run a lot of stuff with it.
MilanStojkovic said:
And if you are using them already that doesn't count as an extra app, right?
Click to expand...
Click to collapse
i don't use any of those apps
but it's nice to see extra suggestions coming in... it will surely help someone to pick a perfect app combo for this purpose...
60nine said:
i don't use any of those apps
but it's nice to see extra suggestions coming in... it will surely help someone to pick a perfect app combo for this purpose...
Click to expand...
Click to collapse
Oh man, you should try tasker. It's what puts SMART in smartphone. Was messing around today with it. I found an old buss ticket that can work as nfc tag and put it on my phone holder on bicycle. I have set it to trigger launching Strava app, turning on GPS, setting brightness to max and forcing landscape mode for that app. And when I exit app, BAM, it reverts everything back the way it was. It's like slide and click instead of multiple actions. Might be overly excited about it right now, and definitely off topic here, but had to mention it hehe. I hope you will find a way to use that gesture the way you want, everything is possible on android
MilanStojkovic said:
I hope you will find a way to use that gesture the way you want, everything is possible on android
Click to expand...
Click to collapse
if you knew how i use my device you'd be asking "why don't i use nokia 3310 instead?"
no gps, no bluetooth, no location of any kind, no gaming, half of google services blocked etc...
no vibers, no hangouts, no skypes, no syncs - some calls, few sms messages... (i mostly communicate through google chat and emails while on pc since most of my work depends on beeing on pc anyway)
i read articles, browse and listen to music 90% of the time...
call me old fashioned - but i still love to have some "human manual control" over things on my device
Many people like me are used to easily change the volume profile from Normal to Silent in the quick toggles menu on top. However this is my first Google phone and I've noticed that this option is missing. Instead we're supposed to use Do Not Disturb which is not the same thing.
Other threads suggested using a home screen widget which does the trick but it's still not very convenient as you have to unlock the phone to click it.
After I've spent some time looking and testing apps from Google Play store I found what we need! It's called "Ringer Modes - Quick Tile" and it works as intended. Don't forget to open it after the installation and to give it the required permission.
Google Play store link
P.S. Don't forget to check the attached screenshots.
Thanks, this seems ideal, this should be built into the OS.
Thanks. Very useful
Thank you. Very useful
App last update, August 29, 2016.
Can you edit the sound profile? Or add?
gogol said:
App last update, August 29, 2016.
Can you edit the sound profile? Or add?
Click to expand...
Click to collapse
The profiles are fixed:
Normal - sound & vibration
Vibrate - vibration only
Silent - sound off & vibration off
For widget, what would be your recommendation?
I like something which is already available in the home screen.
gogol said:
For widget, what would be your recommendation?
I like something which is already available in the home screen.
Click to expand...
Click to collapse
I've tried several widgets but only one of them worked properly every time. It's called Sound Mode Toggle Widget:
Google Play store link
https://play.google.com/store/apps/details?id=bassmans.apps.sound.toggle
Thanks for sharing!