Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Thank You for your continued support and contributions!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  User Interface and Voice
| | |-+  Shortcut to start sleep timer with default duration?
« previous next »
  • Print
Pages: [1]

Author Topic: Shortcut to start sleep timer with default duration?  (Read 220 times)

Offline iPodVT

  • Member
  • *
  • Posts: 102
Shortcut to start sleep timer with default duration?
« on: September 25, 2022, 03:20:35 PM »
I want to add an item to my shortcuts menu that will turn on the sleep timer for the amount of time that is currently set as the default duration.  But the 'data' field in the shortcut specification calls for "sleep X", where X is the number of minutes from 1 to 300 for the timer to run, or 0 to cancel the currently running timer.  Does anyone here know of a way I can specify that the shortcut should use the default duration?

FYI:  I tried "-1" but that was interpreted the same as "0" and cancelled the timer.  Then I tried a number greater than "300", specifically "600", but that started the timer at 10hrs, so I guess the "300" in the spec is not the real upper limit.  I also tried not specifying a number but that resulted in the shortcut being omitted from the shortcuts menu.

Thanks.
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  User Interface and Voice
| | |-+  Shortcut to start sleep timer with default duration?
 

  • SMF 2.0.19 | SMF © 2021, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.017 seconds with 17 queries.