After some time I found a solution (truth is I found someone who found a solution):
https://forum.kodi.tv/showthread.php?tid=372513
now with this file kodi is allowed to poweroff and reboot.
https://forum.kodi.tv/showthread.php?tid=372513
Code:
Add in etc/polkit-1/rules.d/50-power.rulespolkit.addRule(function(action, subject) { if ((action.id == "org.freedesktop.login1.reboot" || action.id == "org.freedesktop.login1.reboot-multiple-sessions" || action.id == "org.freedesktop.login1.power-off" || action.id == "org.freedesktop.login1.power-off-multiple-sessions" || action.id == "org.freedesktop.login1.suspend" || action.id == "org.freedesktop.login1.suspend-multiple-sessions")) { return polkit.Result.YES; }});Statistics: Posted by Markus_0815 — Sat Oct 11, 2025 9:16 pm