Posts: 6
Joined: Jun 2017
Reputation:
0
I have an RPi3 with (I believe) the latest Kodi updated. I start manually with "kodi-standalone &" from command line because I ran into problems with auto-launching (different story). The weird and very annoying behavior I experience is that Kodi restarts about every 30 minutes, not precisely however, because it always waits for a video to finish and restart afterwards. This is true even if the video is longer than 30 minutes - Kodi very courteously does not restart mid-video, only after it's finished. I've gone through all the config files, but cannot figure out what's happening.. Can you please help?
Posts: 688
Joined: Feb 2015
Reputation:
21
Are you starting via ssh? If so if the connection gets closed, Kodi exits!
Posts: 6
Joined: Jun 2017
Reputation:
0
I start it once with "kodi-standalone &" so it keeps running in the background, then I exit ssh, and Kodi keeps working, but restarts periodically, independent of the ssh connection.
Posts: 688
Joined: Feb 2015
Reputation:
21
Process started via ssh, even on background like with &, are closed as soon as the ssh session closes. You have to use something lile "screen" for that.
Posts: 19,982
Joined: May 2009
Reputation:
451
nickr
Retired Team-Kodi Member
Posts: 19,982
May I suggest that for best results use libreelec or osmc.
If I have helped you or increased your knowledge, click the 'thumbs up' button to give thanks :) (People with less than 20 posts won't see the "thumbs up" button.)
Posts: 6
Joined: Jun 2017
Reputation:
0
Thank you all, I seem to have fixed it, using a combination of your tips.
Using ssh to start kodi-standalone was indeed one of the root causes, so I switched to a auto-launch at boot. However, this brought back my previous problem: no remote control. It wasn't straightforward to figure out that I was running ssh with user "pi" while the auto-launched kodi was running with user "kodi" using different configs, disabling the web interface that I had to re-enable.
I don't know if the suggestion about using a different OS than raspbian may have made the whole thing easier, but the current launch scripts are more complicated than should be..