You are not logged in.

#1 2025-09-05 18:57:34

x_driver
Member
Registered: 2019-02-05
Posts: 17

Can't hibernate from Kodi

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

#2 2025-09-05 19:26:52

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 71,624

Re: Can't hibernate from Kodi

systemd-inhibit --list

while kodi is running, no idea how to configure that, but it's likely because of https://kodi.wiki/view/Settings/System/Power_saving

Offline

#3 2025-09-05 20:17:13

x_driver
Member
Registered: 2019-02-05
Posts: 17

Re: Can't hibernate from Kodi

[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            delay

Seth, thanks for the response.  Not sure what the output is telling me.  Per the kodi wiki all the power options are toggled off.

Offline

#4 2025-09-05 20:33:28

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 71,624

Re: Can't hibernate from Kodi

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

#5 2025-09-05 20:43:03

x_driver
Member
Registered: 2019-02-05
Posts: 17

Re: Can't hibernate from Kodi

Just tried "systemctl suspend" from a terminal with Kodi running and it worked fine.
Gnome is the only shell I have installed.

Offline

#6 2025-09-05 21:14:08

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 71,624

Re: Can't hibernate from Kodi

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

Board footer

Powered by FluxBB