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:

Rockbox Ports are now being developed for various digital audio players!

+  Rockbox Technical Forums
|-+  Rockbox General
| |-+  Rockbox General Discussion
| | |-+  settings lost, config corruption?
« previous next »
  • Print
Pages: [1]

Author Topic: settings lost, config corruption?  (Read 2170 times)

Offline tax

  • Member
  • *
  • Posts: 2
settings lost, config corruption?
« on: July 18, 2007, 10:30:23 AM »
Hello everyone,

I have had repeated instances of settings that would reset to default on every power on. Thanks to the helpful folks on this forum, I learned the quick fix:

1  set your savings as you like them
2  write a cfg file, say "config01.cfg"
3  delete the "config.cfg" file
4  rename "config01.cfg" to "config.cfg"
5  reboot the player

The problem is that rockbox does not remember settings changes, and reverts to the default settings. The quickfix makes the default settings fit the user's needs, but does not help rockbox remember further settings changes. Since this was on the forum already, and I'm still getting the problem using the latest build, this looks like it could be an open bug.

Does anyone have ideas about what causes this problem and how it might be prevented / fixed in future versions?



I am not familiar with rockbox' inner workings, so I'm hoping a more knowledgeable member can help me out, but I'll start the ball rolling:

Where are the last-session settings saved during power-off? Where is the pointer to that location written? Is it hard-coded, or can it be modified by other rockbox functions?

Where does rockbox read settings from first? Where is that pointer written? Is it hard-coded, or can it be modified by other rockbox functions?

Does rockbox have a back-up location to load settings from, in case last-session settings are absent or corrupted?

If settings are written to and loaded from hard drive, could it be a lack of disk space in the sector being accessed?

Could the last-setting writing utility have a bug?
Could the config file writing utility have a bug?

Should this post go in the Flyspray forum instead?
Logged

Offline Llorean

  • Member
  • *
  • Posts: 12931
Re: settings lost, config corruption?
« Reply #1 on: July 18, 2007, 10:37:40 AM »
First: Bug reports ALWAYS belong on Flyspray. But you need to include a lot more information about what exactly you're doing.

Rockbox writes its settings to config.cfg on shutdown, and loads them from it on bootup. Disk space could prevent this, in theory, if you had absolutely none remaining (text files are very small, and I'm fairly certain once the file is present, it's already taking up more space than it'll need, though I'm not certain on this one).

Rockbox does not access a single sector, it simply writes a file (or reads the file).
Logged

Offline LambdaCalculus

  • Member
  • *
  • Posts: 2257
  • Dreaming of Turing Machines...
    • The Nostalgia Roadtrip
Re: settings lost, config corruption?
« Reply #2 on: July 18, 2007, 10:50:40 AM »
I don't know what device you're using, but on my iPod, I've never had a problem with losing settings on shutdown.

What Llorean said does prove a good theory; if your player is filled to the brink (i.e. you have next to no free space on your player's hard drive or in flash), then this may cause problems. Try freeing up some space on your player and try again.
Logged
Former Rockbox dev. Rising from the ashes...

Players: iPod Video /w 128GB SSD mod, H320 /w 128GB SSD mod

Offline GodEater

  • Member
  • *
  • Posts: 2829
Re: settings lost, config corruption?
« Reply #3 on: July 18, 2007, 11:28:46 AM »
I've seen instances of this, particularly with ipod owners who mistakenly believe they should shut down by using Menu+Select, instead of a really long hold on play. I assume this *isn't* the case here ?
Logged

Read The Manual Please

Offline LambdaCalculus

  • Member
  • *
  • Posts: 2257
  • Dreaming of Turing Machines...
    • The Nostalgia Roadtrip
Re: settings lost, config corruption?
« Reply #4 on: July 18, 2007, 11:42:34 AM »
He hasn't even mentioned what device he's using. I know that the config files are usually saved in /.rockbox/config.cfg, but the problem is that he needs to supply us with more information about what he's using and what settings he's trying to save.
Logged
Former Rockbox dev. Rising from the ashes...

Players: iPod Video /w 128GB SSD mod, H320 /w 128GB SSD mod

Offline GodEater

  • Member
  • *
  • Posts: 2829
Re: settings lost, config corruption?
« Reply #5 on: July 18, 2007, 11:58:47 AM »
A chkdsk /f may prove useful too.
Logged

Read The Manual Please

Offline JdGordon

  • Member
  • *
  • Posts: 1817
  • Constantly breaking stuff
Re: settings lost, config corruption?
« Reply #6 on: July 19, 2007, 05:30:12 AM »
sorry, this is caused by a bug i introduced about a week ago.. all fixed now
Logged


Using PMs to annoy devs about bugs/patches is not a good way to have the issue looked at.

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox General
| |-+  Rockbox General Discussion
| | |-+  settings lost, config corruption?
 

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

Page created in 0.091 seconds with 15 queries.