After do-release-upgrade xubuntu 26.04.1 wants to do unwanted suspend

Hi, this is Xubuntu recently upgraded to 26.04.01 via do-release-upgrade. It is a desktop, which was never suspended nor hibernated. Now, after some inactivity and screensaver lock, there are several messages: None of the screen lock tools run successfully, the screen will not be locked. Do you still want to continue to suspend the system?

I don’t want to suspend. The message is annoying. The screensaver works as does the screen lock.

The xfce4-power-manager-settings shows System power saving: System sleep mode: Suspend (can be changed to Hibernate or Hybrid Sleep), When inactive for 14 minutes. The slider is grayed out, I can’t change the 14 minutes to never.

What to do?

Edit: Similar desktop with xubuntu 26.04.01 recently upgraded via do-release-upgrade shows in When inactive for Never. And it is also grayed out, cannot be moved. How do I get Never in my settings?

Moved from Flavors & Remixes to a more appropriate location for Support and Help

Flavors & Remixes is for discussion rather than technical help

1 Like

Compare the inactivity value stored on this desktop with the one on the desktop that shows Never by running this on both:

xfconf-query -c xfce4-power-manager -lv | grep -i inactivity

Then set inactivity-on-ac on this desktop to the value the other one has:

xfconf-query -c xfce4-power-manager -p /xfce4-power-manager/inactivity-on-ac -s <value>

If this desktop should never sleep at all, turn suspend off for the whole system. Create the folder with sudo mkdir -p /etc/systemd/sleep.conf.d, then create /etc/systemd/sleep.conf.d/nosleep.conf containing:

[Sleep]
AllowSuspend=no
AllowHibernation=no
AllowHybridSleep=no
AllowSuspendThenHibernate=no

Then reboot.

Drafted with AI.

1 Like

Thanks, that helped. Indeed, the problematic machine had inactivity-on-ac set to 14. The working machine didn’t have the field at all. Tried to set it to 0. But then decided to delete it completely in ~/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-power-manager.xml

Hope, it works. Sleep is already disabled in /etc/systemd/sleep.conf.

Any idea why the value inactivity-on-ac set cannot be changed using xfce4-power-manager-settings? It is now never, but still grayed out.

It’s likely grayed out because suspend is turned off in /etc/systemd/sleep.conf. The power manager disables the system sleep slider when the system reports it can neither suspend nor hibernate.

Check what it sees with this:

busctl call org.freedesktop.login1 /org/freedesktop/login1 org.freedesktop.login1.Manager CanSuspend

A result of s "no" means the slider stays grayed out while sleep is disabled.

Drafted with AI.

This topic was automatically closed 18 hours after the last reply. New replies are no longer allowed.