• Status Closed
  • Percent Complete
  • Task Type Patches
  • Category Plugins
  • Assigned To No-one
  • Operating System All players
  • Severity Low
  • Priority Very Low
  • Reported Version Daily build (which?)
  • Due in Version Undecided
  • Due Date Undecided
  • Votes
  • Private
Attached to Project: Rockbox
Opened by x - 2008-04-10
Last edited by Dominik Riebeling - 2011-06-04

FS#8865 - timer plugin

This is a timer plugin. After the set time the plugin stops the music and plays a tone until the user presses a button to stop the alarm.

Most of the code is copied from battery_bench.c and test_sampr.c

Closed by  Dominik Riebeling
2011-06-04 21:39
Reason for closing:  Out of Date
alex wallis commented on 2008-04-11 03:04

Hi. Just wondering what practical reasons would a person want to use this timer for? I mean if you need it you have the sleep timer for example. Maybe i’m just being dim, but I can’t see any real reason for using it. apart from maybe if you work out in a jim, and even then they usually provide there own music don’t they? plus if the player is an hd player, i should think it wouldn’t be good to be moved around like it would in a jim.

Linus Nielsen Feltzing commented on 2008-04-11 06:58

I can think of a few more uses, like a kitchen timer (egg boiling, cake baking etc), not only in the gym.

Linus Nielsen Feltzing commented on 2008-04-11 07:28

I’m not sure why you use the sleep timer for this. Wouldn’t it be easier to just count ticks in the TSR thread?

PaulJam commented on 2008-04-11 08:42

I think it is a good idea to use the sleep timer. This way you see the remaining time in the WPS (if the WPS supports that).

Linus Nielsen Feltzing commented on 2008-04-11 10:06

I think it’s a bad idea, since the sleep timer is totally unrelated.

x commented on 2008-04-11 18:20

I have a long travel to work. I use it, so I won’t miss the right station to get off the train :)

Maybe it’s more appropriate to count the ticks or using the timer provided by the api, but as PaulJam said, it would need more code to display the remaining time or to adjust the time.

- fixed: loading another plugin won’t show the dialog if timer has finished
- fixed: fully controllable via remote-control

x commented on 2008-04-18 20:09

changed alarm tone and other small changes

Vladimir Homutov commented on 2009-06-19 23:09

Updated plugin to work with latest rockbox (rev 21354, 20 June 2009)

- works with new plugin API (
- removed SIMULATOR ifdefs - i found no problems with this plugin in simulator
- tested (a little) on iriver H340 - looks like it works

Vladimir Homutov commented on 2009-06-19 23:11

oops, previous patch contains junk file, fixing

Rosso Maltese commented on 2009-10-17 08:54


Available keyboard shortcuts


Task Details

Task Editing