Linux Shutdown of Ubuntu 18.04 - no consolekit available
#1
Hi to all,

I have upgraded my old Ubuntu 14.04 to 18.04 a couple of days ago. Although it took some tweaking everything should be running by now except one thing:
I cannot shutdown the complete PC from Kodi.

I have searched all threads and also used the how-to. But all of them are referencing the package consolekit which as it seems has been removed from Ubuntu (link).
Therefore I am missing the system stop command.

Does any of you have an idea on how to give Kodi the rights to shutdown?

Thanks in advance.
Reply
#2
https://forum.kodi.tv/showthread.php?tid=231955 <- login1 see the example for the polkit file
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Reply
#3
Hi fritsch,

thanks for the input. I added the policy file and I am able to shut down kodi via the "s" context menu.

Maybe you can help me with an additional question regarding shutdown. I am using a remote and using the power button only opens the "s" context menu and does not shut down immediately.
I am using the following configuration in my remote.xml:
xml:
<power>XBMC.ShutDown()</power>

But instead of shutting down it opens the context menu. Is there a different call I should use? In the power settings it is defined that the default shutdown process is a complete power off.
Reply
#4
use XBMC.Powerdown(), see https://codedocs.xyz/AlwinEsch/kodi/page...nctions_15
Reply
#5
Hi Rechi,

thanks for the link, I will give it a try.
Reply

Logout Mark Read Team Forum Stats Members Help
Shutdown of Ubuntu 18.04 - no consolekit available0