Posts: 45
Joined: Feb 2014
Reputation:
0
I've been testing my HTPC/DVR build and I decided to test power loss scenarios.
My mobo is set to power on after a power loss/power restore.
I've tested this 5 times by turning off the power supply switch.
2 of the 5 times my guisettings.xml are reset to default and I have
to rebuild all my settings.
What is causing this and is there a fix or workaround?
Posts: 478
Joined: Feb 2013
Reputation:
15
2014-06-08, 11:42
(This post was last modified: 2014-06-08, 11:43 by DBMandrake.)
guisettings.xml is written to relatively frequently when XBMC is running even if it appears idle (total system uptime is recorded in guisettings.xml for example) and if you pull the plug while changes are being written and the file becomes corrupted, on next boot XBMC will detect corruption of the file and will throw it away to generate a new default guisettings.xml.
Not really much that you can do about it except (a) keep a backup of the file and (b) don't pull the power on it all the time.
PS you don't say what platform you're running on or which file system you're using - different file systems have varying degrees of robustness against corruption on power loss, for example NTFS is a lot better than FAT32.
Kodi 18.3 - Mid 2007 Mac Mini, 4GB, 2TB HD, Windows 7 SP1
Kodi 18.3 - Vero4k, Raspberry Pi 2. OSMC.
Posts: 5,292
Joined: Jul 2012
Reputation:
345
My HTPC is on an UPS.
I would consider starting XBMC with a batch file that first copies your good guisettings and then starts XBMC.
scott s.
.