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:

Rockbox Ports are now being developed for various digital audio players!

+  Rockbox Technical Forums
|-+  Rockbox General
| |-+  Rockbox General Discussion
| | |-+  Remember Sleep-Timer on boot
« previous next »
  • Print
Pages: [1] 2

Author Topic: Remember Sleep-Timer on boot  (Read 7035 times)

Offline DanRock

  • Member
  • *
  • Posts: 12
Remember Sleep-Timer on boot
« on: February 19, 2008, 06:40:04 AM »
I've been using RockBox for about 8 months on a Sansa.

The functionality of the Sleep-Timer currently resets upon booting, or to that effect.  90% of the time I need the Sleep-Timer to be set.  I'd like to have the option of setting a default Sleep-Timer value upon boot.

If this feature is not widely desired to be incorporated, would a patch be difficult for an experienced RockBox coder?

Thanks,
Dan
Logged

Offline AlexP

  • Global Moderator
  • Member
  • *
  • Posts: 3688
  • ex-BigBambi
Re: Remember Sleep-Timer on boot
« Reply #1 on: February 19, 2008, 07:04:33 AM »
Feature requests belong on flyspray.
Logged
H140, F60, S120, e260, c240, Clip, Fuze v2, Connect, MP170, Meizu M3, Nano 1G, Android

Offline DanRock

  • Member
  • *
  • Posts: 12
Re: Remember Sleep-Timer on boot
« Reply #2 on: February 19, 2008, 07:21:53 AM »
Thanks for he reply and direction.  I found a similar but old request  FS#1831 from Dec 2003.   Can users request vote on requests to show one's support for a request?  
Logged

Offline AlexP

  • Global Moderator
  • Member
  • *
  • Posts: 3688
  • ex-BigBambi
Re: Remember Sleep-Timer on boot
« Reply #3 on: February 19, 2008, 07:29:42 AM »
Not sure, but it is pointless anyway.  All the developers are volunteers that do what they want in their spare time.  Feature requests are good for ideas for them, or reminders etc.
Logged
H140, F60, S120, e260, c240, Clip, Fuze v2, Connect, MP170, Meizu M3, Nano 1G, Android

Offline DanRock

  • Member
  • *
  • Posts: 12
Re: Remember Sleep-Timer on boot
« Reply #4 on: February 19, 2008, 07:37:25 AM »
Ok thanks.  If I were a developer I want to know how all users rank feature requests and bugs.  It's a great incentive to work on items that have the most impact.  

I now have some incentive to learn the development procedures for RockBox though.  A bit of a learning curve for me coming from the C# windows side.  I'd like to contribute if I can come up to speed on it though.
Logged

Offline AlexP

  • Global Moderator
  • Member
  • *
  • Posts: 3688
  • ex-BigBambi
Re: Remember Sleep-Timer on boot
« Reply #5 on: February 19, 2008, 07:38:48 AM »
Cool, please do.  I'm sure you've spotted it, but rockbox is written in C with bits of ASM here and there.
Logged
H140, F60, S120, e260, c240, Clip, Fuze v2, Connect, MP170, Meizu M3, Nano 1G, Android

Offline dana7

  • Member
  • *
  • Posts: 11
Re: Remember Sleep-Timer on boot
« Reply #6 on: February 19, 2008, 06:29:07 PM »
DanRock,

I wish you well, because I would love to see that feature too.  

Most useful.

Please hurry! :)
Logged

Offline DanRock

  • Member
  • *
  • Posts: 12
Re: Remember Sleep-Timer on boot
« Reply #7 on: February 19, 2008, 10:24:45 PM »
Progress.  I have managed to build the baseline system ok.  I also have a working test build which defaults the sleep_timer to some positive value.  

That was the easy part.  Now I need to figure out reading/writing the config file and adding a new menu option.
Logged

Offline Llorean

  • Member
  • *
  • Posts: 12931
Re: Remember Sleep-Timer on boot
« Reply #8 on: February 19, 2008, 10:31:38 PM »
One easy solution: Set the config loading to *load* a sleep timer value, but prevent the "manage config" from saving a sleep timer value. That way the current behaviour of "don't save sleep timer settings on manual poweroff" is kept, but you can add a sleep timer line to your fixed.cfg if you want it to load at boot every time.
Logged

Offline DanRock

  • Member
  • *
  • Posts: 12
Re: Remember Sleep-Timer on boot
« Reply #9 on: February 19, 2008, 10:35:14 PM »
I think that's exactly the behaviour we're all looking to have.  Thank you for the guidance.  I'll do as you suggest.  
Logged

Offline DanRock

  • Member
  • *
  • Posts: 12
Re: Remember Sleep-Timer on boot
« Reply #10 on: February 19, 2008, 10:55:43 PM »
Would what you suggest require a user to manually create the fixed.cfg and not have a menu option?
Logged

Offline Llorean

  • Member
  • *
  • Posts: 12931
Re: Remember Sleep-Timer on boot
« Reply #11 on: February 19, 2008, 11:24:12 PM »
Yes. This is the current case with fixed.cfg, anyway.
Logged

Offline LinusN

  • Member
  • *
  • Posts: 1914
Re: Remember Sleep-Timer on boot
« Reply #12 on: February 20, 2008, 02:27:31 AM »
I think Rockbox should always remember the last Sleep Timer value instead of having to edit fixed.cfg.
Logged
Archos Jukebox 6000, Recorder, FM Recorder/iAudio X5/iriver H1x0, H3x0/Toshiba Gigabeat F20/iPod G5, G5.5

Offline Llorean

  • Member
  • *
  • Posts: 12931
Re: Remember Sleep-Timer on boot
« Reply #13 on: February 20, 2008, 02:33:51 AM »
I don't know. If you set the sleep timer for 15 minutes, and it goes to sleep, next time on do you want to have to remember to unset it before you can play normally? It seems, at the very least, there should need to be one extra step to make it "permanent". This could be saving a fixed.cfg file, or it could simply be an option in the menu "Persistent Sleep".

My suggestion, though, was for the solution I thought might be easiest to code as a once-off for someone to use for themselves. If included, I think the option is more useful.
Logged

Offline fml2

  • Member
  • *
  • Posts: 157
Re: Remember Sleep-Timer on boot
« Reply #14 on: February 20, 2008, 03:40:19 AM »
Quote from: Llorean on February 20, 2008, 02:33:51 AM
It seems, at the very least, there should need to be one extra step to make it "permanent".
This is an issue that, in general, applies to each and every setting. I.e. should the changes to a setting made manually after boot be persisted on shut down? I.e. each setting could have a 'shadow' flag that would tell if the changes should be persisted.

This is of course an overkill. The general approach now is that almost all changes are persisted. But there are also exceptions. E.g. pitch. I've created a patch (FS#8521) to make it '50%' persistent (read the description in the FS to see what I mean by '50%').

So the question is: what setting category (persisted/non persisted) should the sleep timer belong to?
« Last Edit: February 20, 2008, 03:43:55 AM by fml2 »
Logged

  • Print
Pages: [1] 2
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox General
| |-+  Rockbox General Discussion
| | |-+  Remember Sleep-Timer on boot
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.102 seconds with 14 queries.