Rockbox General > Rockbox General Discussion

settings lost, config corruption?

(1/2) > >>

tax:
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?

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

LambdaCalculus:
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.

GodEater:
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 ?

LambdaCalculus:
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.

Navigation

[0] Message Index

[#] Next page

Go to full version