• 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 vmh - 2008-04-10
Last edited by bluebrother - 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  bluebrother
2011-06-04 21:39
Reason for closing:  Out of Date

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.

Project Manager

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

Project Manager

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?

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).

Project Manager

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

vmh 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

vmh commented on 2008-04-18 20:09

changed alarm tone and other small changes

VL 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

VL commented on 2009-06-19 23:11

oops, previous patch contains junk file, fixing


Available keyboard shortcuts


Task Details

Task Editing