Rockbox General > Rockbox General Discussion

iPod 4G: Settings reset with Rockbox-only bootloader when Hold Switch is toggled

(1/1)

chris_s:
i've used method number 4) described in the iPodPatcher Wiki to make sure the OSOS only contains Rockbox, i.e. no dual booting at all.

Apparently that also means that turning on the hold switch while booting (temporarily) resets Rockbox settings to their defaults. Is there any way to turn this "feature" off, so that Rockbox will boot normally, regardless of the position of the Hold Switch?

The problem is that putting my iPod into its Dock (which is connected to a charger) will automatically make the iPod turn itself on. That means I have to alway make sure the Hold Switch is not enabled, lest Rockbox reset itself to its default settings.

chris_s:
Managed to remove the offending lines in apps/main.c (around line 629). The beauty of open source. Thanks! :D


--- Code: --- #if defined(SETTINGS_RESET) || (CONFIG_KEYPAD == IPOD_4G_PAD) || \
    (CONFIG_KEYPAD == IRIVER_H10_PAD)
#ifdef SETTINGS_RESET
    /* Reset settings if holding the reset button. (Rec on Archos,
       A on Gigabeat) */
    if ((button_status() & SETTINGS_RESET) == SETTINGS_RESET)
#else
    /* Reset settings if the hold button is turned on */
    if (button_hold())
#endif
    {
        splash(HZ*2, str(LANG_RESET_DONE_CLEAR));
        settings_reset();
    }
    else
#endif
    {
        CHART(">settings_load(ALL)");
        settings_load(SETTINGS_ALL);
        CHART("<settings_load(ALL)");
    }
--- End code ---

Navigation

[0] Message Index

Go to full version