You are not logged in.
Pages: 1
From a terminal when I run "systemctl hibernate" my system hibernates and resumes as expected.
When Kodi is open, I can select shutdown and it will power off the system. However, when I select hibernate it won't go into hibernation. Not sure what logs to include. My guess is some kind of user/group or permission problem.
Thanks in advance.
Offline
systemd-inhibit --listwhile kodi is running, no idea how to configure that, but it's likely because of https://kodi.wiki/view/Settings/System/Power_saving
Offline
[family@HTPC ~]$ systemd-inhibit --list
WHO UID USER PID COMM WHAT WHY
MODE
NetworkManager 0 root 571 NetworkManager sleep NetworkManager needs to turn off networks delay
UPower 0 root 887 upowerd sleep Pause device polling delay
GNOME Shell 1000 family 770 gnome-shell sleep GNOME needs to save screen time data delay
XBMC 1000 family 1522 kodi.bin sleep delay
family 1000 family 906 gsd-media-keys handle-power-key:handle-suspend-key:handle-hibernate-key GNOME handling keypresses block
family 1000 family 906 gsd-media-keys sleep GNOME handling keypresses delay
family 1000 family 910 gsd-power sleep GNOME needs to lock the screen delaySeth, thanks for the response. Not sure what the output is telling me. Per the kodi wiki all the power options are toggled off.
Offline
kodi is inhibiting the sleep (which itself is facilitated by gnome-shell) - but only by p to 5s ("delay" default in logind.conf), except idk whether gnome will consider that delay "infinite".
Do yo have the same kodi problem on not-gnome?
Can you "systemctl suspend" while kodi is running?
Offline
Just tried "systemctl suspend" from a terminal with Kodi running and it worked fine.
Gnome is the only shell I have installed.
Offline
The inhibition would then not seem to be a problem at all anyway and it's more likely that the shortcut/button is simply dead.
I also doubt this to be a permission problem (you don't have to authenticate and are also not sudo'ing systemctl suspend?), esp. since the shutdown works.
Afaict from https://github.com/xbmc/xbmc/blob/ee1d1 … ll.cpp#L80 the logind backend uses the same process for all states.
You're not gonna be able to "qdbus6 --system org.freedesktop.login1 /org/freedesktop/login1 Suspend false" for polkit reasons, but I don't really see how Poweroff and Hibernate could differ but for a kodi bug.
Offline
Pages: 1