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
| | |-+  database refreshing
« previous next »
  • Print
Pages: [1] 2 3

Author Topic: database refreshing  (Read 4957 times)

Offline pizza4me

  • Member
  • *
  • Posts: 25
database refreshing
« on: September 11, 2008, 01:04:19 PM »
Sansa e260v1

The database on my player is struggling with refreshing.  I usually try to turn Auto update on (I have to re-select it every time - maybe a bug?), because I change SD cards frequently.  Usually this worked well and way quicker than the Sansa firmware version.  However, I put a good amount of files on a card yesterday, and the player still thinks it has files from other cards on it, and is only recognizing part of the new card.  Each restart is resulting with a few more files being listed, and now finally has removed the files from the other card.

Am I waiting long enough for it to refresh?  The opening screen has a progress bar, but not the "Update Now" function (that I am aware of).

Card details: 2gb, with 1.5gb used, approx. 950 files.
I did make sure that no file has more than 80 subfiles, and I have changed the Max Files/directory already.

Any ideas??
Logged

Offline MarcGuay

  • Rockbox Expert
  • Member
  • *
  • Posts: 1065
Re: database refreshing
« Reply #1 on: September 11, 2008, 01:48:25 PM »
If you turn on the status bar or have a WPS that displays the drive activity, you can monitor when the device has finished processing the data, and only check the database afterwards.

As for having to set auto-update repeatedly, could you describe what you're doing step-by-step?
Logged

Offline pizza4me

  • Member
  • *
  • Posts: 25
Re: database refreshing
« Reply #2 on: September 11, 2008, 02:16:50 PM »
Quote from: MarcGuay on September 11, 2008, 01:48:25 PM
If you turn on the status bar or have a WPS that displays the drive activity,

My status bar is on when it auto-updates in startup (although even after that went 1/9 through 9/9 it still was not completely updated), but I don't see one for when I select "Update Now."  It only says "updating in the background."
So I guess this theme does not have that display...
Any WPS suggestions?

Quote from: MarcGuay on September 11, 2008, 01:48:25 PM
As for having to set auto-update repeatedly, could you describe what you're doing step-by-step?

Main menu/settings/general settings/database/auto update/yes

It usually will only give me the progress screen on startup, if I re-select "yes" (even though it is already highlighted) and restart it immediately.
This could also be a theme deal where I just don't see it happening, although I've used 3-4 different themes and still had the same issue.
Logged

Offline MarcGuay

  • Rockbox Expert
  • Member
  • *
  • Posts: 1065
Re: database refreshing
« Reply #3 on: September 11, 2008, 02:36:24 PM »
The status bar is the little info section at the top of the screen.  It contains an icon which is shown when there is disk activity.  You can turn it off and on in the settings.
Logged

Offline pizza4me

  • Member
  • *
  • Posts: 25
Re: database refreshing
« Reply #4 on: September 11, 2008, 02:48:34 PM »
I did actually see that like 5 minutes ago, but it was not as obvious as a progress bar...
now I know

thanks for your help
Logged

Offline MarcGuay

  • Rockbox Expert
  • Member
  • *
  • Posts: 1065
Re: database refreshing
« Reply #5 on: September 11, 2008, 02:59:53 PM »
So was it simply a matter of waiting for the update to finish before browsing the database?
Logged

Offline pizza4me

  • Member
  • *
  • Posts: 25
Re: database refreshing
« Reply #6 on: September 11, 2008, 04:04:57 PM »
Apparently.  What's the difference between the startup "committing database"
and the icon that runs in the background?  ie. Why does "committing database" only appear sometimes (I assume that the icon in the background is always working - auto updating)?
Logged

Offline bluebrother

  • Developer
  • Member
  • *
  • Posts: 3421
  • creature
Re: database refreshing
« Reply #7 on: September 11, 2008, 04:30:05 PM »
The icon in the statusbar is a disc activity icon -- it will show up on every disc access.
Logged
Rockbox Utility development binaries (updated infrequently) · How to ask questions the smart way · We do not estimate timeframes.

Offline nloewen

  • Member
  • *
  • Posts: 34
Re: database refreshing
« Reply #8 on: September 11, 2008, 05:23:52 PM »
I was haveing a simmilar problem with the internal memory on the same player. it would give me multiple listings of the same file. is this the same solution?
Logged

Offline MarcGuay

  • Rockbox Expert
  • Member
  • *
  • Posts: 1065
Re: database refreshing
« Reply #9 on: September 11, 2008, 05:40:11 PM »
It's a nice feature that the database updates in the background, but I agree that it would be handy to be told when it is ready.  I haven't looked into the code to see if this is feasible, but perhaps a splash "database ready" after the update is complete would be useful.
Logged

Offline Strife89

  • Member
  • *
  • Posts: 354
  • Michael Carr
    • Strife89's blog
Re: database refreshing
« Reply #10 on: September 11, 2008, 05:57:21 PM »
If feasible, I'd actually like a small splash in the bottom right corner, displaying estimated percentage or number of files processed. It wouldn't be large at all, and maybe the user could keep going through the menus, etc. while it's there. When it's done, it simply vanishes (maybe showing "Done" before doing so).

I assume this would need a complete rewrite of the splash code to work, however. :(
Logged
Rockbox: Sansa Clip Zip, iPod Color, iRiver H320

Android: Moto X4, Galaxy Tab S2 T710

Offline MarcGuay

  • Rockbox Expert
  • Member
  • *
  • Posts: 1065
Re: database refreshing
« Reply #11 on: September 11, 2008, 06:01:47 PM »
I believe there is an entry in the debug menu that you can watch the database process data and get some other information as well.  Perhaps even whether or not the database update is complete. 
Logged

Offline pizza4me

  • Member
  • *
  • Posts: 25
Re: database refreshing
« Reply #12 on: September 12, 2008, 01:32:43 PM »
Quote from: Strife89 on September 11, 2008, 05:57:21 PM
If feasible, I'd actually like a small splash in the bottom right corner, displaying estimated percentage or number of files processed.

I agree.

Quote from: bluebrother on September 11, 2008, 04:30:05 PM
The icon in the statusbar is a disc activity icon -- it will show up on every disc access.

so what does the "committing database" on startup represent?
Logged

Offline MarcGuay

  • Rockbox Expert
  • Member
  • *
  • Posts: 1065
Re: database refreshing
« Reply #13 on: September 12, 2008, 02:11:58 PM »
Here's a little tidbit from the manual that was probably the answer to your original question:

"If Auto update is set to on, each time the player boots, the database will automatically be updated.

Note: The Auto Update will only check for deleted files if the Directory Cache (Settings → General Settings → System → Disk → Directory Cache) is enabled. Update now includes that check whether dircache has been enabled or not. "

P.S. I assumed that simply waiting a bit longer had fixed your problem because you answered vaguely.
« Last Edit: September 12, 2008, 02:15:16 PM by MarcGuay »
Logged

Offline pizza4me

  • Member
  • *
  • Posts: 25
Re: database refreshing
« Reply #14 on: September 12, 2008, 04:21:22 PM »
right, it did fix it.  I was just asking what "committing database" is doing, because it has a progress bar, but when it's done the player is still updating (per the icon in the corner).  So I'm seeing it as a different function.
Logged

  • Print
Pages: [1] 2 3
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox General
| |-+  Rockbox General Discussion
| | |-+  database refreshing
 

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

Page created in 0.094 seconds with 14 queries.