v18 Power off and shutdown process improvements
#1
Lightbulb 
Is it possible to stop PVR activity, video activity and etc. before shutdown process starts by default?
On my system it looks faster if I use the script with stop action before shutdown process starts. It visible when I press shutdown button while my pvr IPTV or video file is playing.
Reply
#2
if you shutdown from within kodi, everything is stopped first.
Reply
#3
I don't know if shutdown process is the same in LibreElec.
But it takes more time in LE if I do shutdown from working IPTV simple PVR. Don't know why, but several seconds difference.
Reply
#4
ofc it takes longer, it has to stop videoplayer first
Reply
#5
Ok, let me describe in more details

1. I'm watching TV via IPTV simple PVR and press shutdown button on my remote. It takes for example 10 seconds.
2. I'm watching TV via IPTV simple PVR and press shutdown button on my remote. For this button assigned script PowerOff.sh now.
sh:
#!/bin/sh
kodi-send --action "Stop"
kodi-send --action "Shutdown()"
And it takes now 7 seconds.
Reply
#6
yes, because you invoke the shutdown function of linux, which just kills kodi instead of letting it exit gracefully.
Reply
#7
Is there a correct sequence for fast and correct shutdown process?
I mean if LE is only installed.
Reply

Logout Mark Read Team Forum Stats Members Help
Power off and shutdown process improvements0