Short and Long
March 30, 2019 2:29 PM   Subscribe

I want an icon (widget?) on my (android) home screen that toggles Setup -> Display -> Advanced -> Sleep -> 1m / 30 minutes. I can't seem to figure out what to search for in the Play store. Recommendations on a app that enables this?

Also any recommendations on a forum that is good for asking these sorts of questions? Using AskMe feels like swatting a fly with a sledge hammer.
posted by Mitheral to Computers & Internet (7 answers total)
 
I've used QuickShortcutMaker for things like this in the past, but I can't find this one in the list to get directly there. I can get to the Display page in one tap, but still need the tap on Advanced and then on the amount of time.

Tasker might also be able to do this, but I have no idea how, quite honest.
posted by deezil at 3:03 PM on March 30, 2019


This isn't a widget, but I just say, 'ok google, set alarm for x minutes?'
posted by speakeasy at 6:24 AM on March 31, 2019


Response by poster: Unfortunately I need this function in my car and don't have a network connection.
posted by Mitheral at 8:44 AM on March 31, 2019


I'm not sure what you're asking. What's the end result you're looking for? Are you looking to disable the phone for 90 minutes?
posted by dobbs at 5:59 PM on March 31, 2019


My understanding is that Mitheral wants to put a widget on the homescreen that toggles the Display Timeout setting between 1minute and 30 minutes, without having to go into Settings to do so. This does seem to be doable with Tasker, (it has a Set Display Timeout action) but it's been a while since I've used it, so it's taking me a while to make it work right. I'll play with it a bit later - if I get it to work, Mitheral, I should be able to send you the recipe.
posted by quinndexter at 6:22 PM on March 31, 2019 [1 favorite]


Response by poster: quinndexter has it. I normally have my screen time out at 30 seconds or 1 minute. When I use my phone to play music in my car I set it to 30 minutes. For some reason I invariably forget to reset the display when I start driving and the 5 step process interacting with very tiny bits of the screen is too dangerous to do when driving. Hitting an icon is doable though. My phone is mounted so I'm not running afoul of hand held device laws.
posted by Mitheral at 6:29 PM on March 31, 2019


Hopefully the following isn't too complicated; let me know if anything's not clear enough. I don't know how familiar you are with Tasker - it can do almost anything, but it's not the most intuitive. I'm assuming you can do step 2 on a PC. Hopefully you can manage if your environment is different.

1. Install Tasker on your phone; I have the paid version, can't remember if there's a free version, but it is a prerequisite for the rest of this.

2. There's some xml you can find here:
https://pastebin.com/H5bSAhKM

Scroll down to the "RAW Paste Data" section, double-click in there somewhere, then CTRL-A to select all. Copy & Paste that into a new text file you just opened, and save it somewhere as "whateveryoulike.xml", and then get that xml file onto your phone, somewhere you'll be able to find easily. ("Downloads" is usually readily accessible.)

3. Once it's on the phone, open Tasker, hit the little house icon at the bottom-left, and select import. Browse to find the xml file you created. I'm assuming this should simply & successfully import the task, but haven't actually tested it. If all went well, hopefully you've now got "toggleTimeout" listed under "Tasks" in Tasker, and that should be all the faffing about in Tasker required.

4. Go to your homescreen, and add a widget however you do that in your Android version/launcher. There should be a way to add a 1x1 Tasker widget. If you select that, (and probably need to drop it on the homescreen first), it should then ask you to select a task for the widget. Select "toggleTimeout", and hopefully, you're done!

The actual task could use some cleaning up (ie. it says how many seconds it has set the timeout to, rather than minutes, because Tasker thinks in seconds, and a better icon would be nice) but the core functionality should be there.

Let me know if you get stuck.

Edit: Here's a video of adding the Tasker widget: https://imgur.com/U3kVsK3
posted by quinndexter at 12:21 AM on April 1, 2019


« Older I want him to give up already   |   Breaking up with someone nice, without a "good"... Newer »
This thread is closed to new comments.