This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#6733 - Shutdown in menu
Attached to Project:
Rockbox
Opened by Jacco Koning (menollo) - Monday, 05 March 2007, 01:24 GMT+2
Last edited by Steve Bavin (pondlife) - Monday, 20 August 2007, 10:07 GMT+2
Opened by Jacco Koning (menollo) - Monday, 05 March 2007, 01:24 GMT+2
Last edited by Steve Bavin (pondlife) - Monday, 20 August 2007, 10:07 GMT+2
|
DetailsI think it would be nice if there is an option/submenu shutdown in the main menu.
This can contain the following things - Shutdown player - Reboot player (execute the rockbox.iriver file) - Sleep timer (which is now under info) I'm owning the iRiver H340, but i think its the same for the other players |
This task depends upon
I guess it will also reduce wear on similar buttons on other DAP's.
(one small issue: the option 'shut down' isn't correct translated to dutch, it says 'uitgeschakeld' (what means 'disabled') in stead of 'uitschakelen' (= shut down)), but nevertheless it looks very good :)
I think i've added reboot the patch from obo
It works on my H340, but i can't test it on other devices
(rolo doesn't work in the simulator)
#EDIT#
Binary size increase is 472 bytes for a 5g.
1. There is an error with power_menu.c about the lang_shutdown. (I have fixed this in my patch)
2. "Shutting down" is broken when turning off the player. I hope to fix this.
3. I can't really see the point of "Reboot" Can't we just add an option "Shuttingdown" to the main menu and forget the other stuff?
That way the patch will be smaller and so will the voice file. Why would someone want too reboot there player?
And then just put the sleep timer back where it was before. This way only one option has been added. Of course we could add a quick menu maybe to the main menu and put "Shutdown" in there. And maybe other options later. But I don't understand why we need "Reboot" as an option.
So if I remove this will that be ok?
I will post my updated patch soon. Just about done. If you aren't happy with it let me know and I will maybe change it.
As to the point of reboot - it can be useful to get back to the OF, or for a handful of settings that require a reboot of Rockbox to become active. If that is enough to justify the feature or not is another matter.
I hope to at some stage make the "Rebooting" splash talk. It shouldn't be too hard I just need to find where the code should go.
But if someone beats me to it I won't worry about it.
Does the rebooting function work on any players? If so what players. I got the patch working but I needed to remove something like if(reboot) from it so the rebooting didn't work it just shutdown the player. But if it is working let me know.
Also if you just want a "shutdown" option in the main menu and no reboot option and the sleep timer to stay where it is then try
FS#7639: Shutdown item in main menu.Thanks.
I thought it would work with it. I just quickly looked at the code.
Anyway maybe try
FS#7639rolo.c: In function 'rolo_load':
rolo.c:330: error: too few arguments to function 'sys_poweroff'
make[1]: *** [/rockbox/build/firmware/rolo.o] Error 1
make: *** [build] Error 2
Also what happens if you build for the h300?
http://www.rockbox.org/tracker/task/7113
it's usefull
But if you change sys_poweroff() to sys_poweroff(false) it compiles.
hey yes this works fine compiled at svn.17873, compiles perfect for h10[20GB]