I want to save the volume level across Kodi restarts and system reboots. This is not possible, even when using the Audio Profiles add-on and configuring it to save the volume level. After restarts, it will always default back to 0.0 db. I’d say this is a bug, since this is no problem using Kodi under Windows for example (even without any add-ons).
I’m using 19.5-Matrix_rc2 running after a clean install on an ODroid N2+.
Just tried it with the nightly for the ODroid_N2 following the link you posted. Same result. After reboot and going back into the movie and the audio settings, the volume is reset.
It is really very confusing as to why this is not reproducible for you, since for me it is so easily and reliably reproducible. Therefore I have recorded a video to show exactly what I’m doing. I started, as you suggested, to wipe the SD card entirely and flash it again with 19.5-Matrix_rc2. On my main SD card it is the same issue so I don’t think the card itself is responsible for this.
I follow exactly same steps but can’t replicate the issue. Which doesn’t mean there is one.
After set the value and reboot check if you have any crash kodi log. This would explain why setting is not saved. But on clean install this is not very likely.
I’m not sure what to say, how can the issue not be reproducible for others on a completely clean install if for me that is apparently reliably possible? What can I do to try and find the cause of this issue?
So far can’t find any kodi crash logs. Where would they be? In the ./kodi/temp directory there’s just the kodi.log.
Could the sound device be relevant here? I have the ODroid connected via HDMI to an LG TV and the LG TV is outputting audio via HDMI ARC to a Yamaha soundbar. Passthrough is disabled.
Setting a fvolumelevel e.g. 0.0.880000 in the guisettings.xml seems to be ignored in the video player.
This is a really annoying issue for me, any help is really appreciated!
Can you enable Kodi debug logging, change again the setting and then go back to Kodi home window. After that restart Kodi and post complete kodi.log to see if Kodi was shutdown correctly.
Btw: I think you need to stop Kodi before editing guisettings.xml like
Can you enable Kodi debug logging, change again the setting and then go back to Kodi home window. After that restart Kodi and post complete kodi.log to see if Kodi was shutdown correctly.
Did that, find the logs attached.
First log: starting up the system, launching a movie, changing the volume, set as default for all media, back to Kodi home, restart Kodi.
Second log: Kodi restarts, launch movie again, go to Audio settings and see that volume is reset (also audible even before going into the settings), close player and go back to home. kodi1.log (406.7 KB) kodi2.log (285.3 KB)
Thanks about the reminder to stop Kodi before making changes to the guisettings but I’m already aware of that.
When you change the setting is the value in /storage/.kodi/userdata/guisettings.xml changed?
Yes the value changes in the guisettings after changing it in the ui. After restarting Kodi, it is still saved in the guisettings but apparently ignored. Once you launch and quit the video player again the setting is reset to 1 in the guisettings.
Just to note again, everything is fine as long as I don’t restart Kodi. The setting is saved and I can watch multiple movies etc. without issue,
@freddy unfortunately I already did it this way, else I wouldn’t be able to close the dialog properly.
Okay
Have reset audio, to see what method of madness I have been using.
I used remote control to perform all functions
Settings/System
Change to Expert
Audio / enable passthrough
Exit
Start Playback
Enter Settings
Audio Settings
Volume/circle is solid white
Hit OK button
Circle is transparent
Adjust with d pad to -27.0 db
Hit OK button
Circle is solid white again
Move to Volume amplification
Repeat procedure…
Adjust with d pad to 27.0 db
Hit OK
Circle is solid white again
Move to
Set as default for all media
Close Settings
Stop Playback
Reboot CoreELEC to apply changes
*** Note Volume level can be affected/changed by keys on remote,or keys on keyboard. Possibly adjustment on TV remote/with Cec enabled.
You know what: maybe I was thinking wrong. Restart Kodi and post kodi.old.log or whatever is called. This one should has everything inside. Because service status looks ok.