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:

Welcome to the Rockbox Technical Forums!

+  Rockbox Technical Forums
|-+  Rockbox General
| |-+  Rockbox General Discussion
| | |-+  iPod 4G: Settings reset with Rockbox-only bootloader when Hold Switch is toggled
« previous next »
  • Print
Pages: [1]

Author Topic: iPod 4G: Settings reset with Rockbox-only bootloader when Hold Switch is toggled  (Read 721 times)

Offline chris_s

  • Member
  • *
  • Posts: 86
iPod 4G: Settings reset with Rockbox-only bootloader when Hold Switch is toggled
« on: December 01, 2018, 08:21:33 AM »
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.
Logged

Offline chris_s

  • Member
  • *
  • Posts: 86
Re: iPod 4G: Settings reset with Rockbox-only bootloader when Hold Switch is toggled
« Reply #1 on: December 08, 2018, 10:52:07 PM »
Managed to remove the offending lines in apps/main.c (around line 629). The beauty of open source. Thanks! :D

Code: [Select]
	#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)");
    }
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox General
| |-+  Rockbox General Discussion
| | |-+  iPod 4G: Settings reset with Rockbox-only bootloader when Hold Switch is toggled
 

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

Page created in 0.046 seconds with 15 queries.