Suspend doesn't work after upgrade to Xubuntu 26.04

Ubuntu Version: Xubuntu-core 26.04

Problem Description:
Hi all. Just upgraded from 24.04 to 26.04 ‘in the box’ and all working pretty much perfectly, except …

In 24.04, when I closed the laptop lid, both the laptop and the attached monitor went into suspend. Laptop went to sleep (light pulsing) and both screens became blank with monitor in standby (power light flashing).

After the upgrade to 26.04, close lid, laptop screen goes off but laptop stays on and so does attached monitor.

Relevant System Information: Using an ASUS TUF Gaming A15 laptop with NVIDIA GeForce GTX 1650 Ti GPU. I have a Samsung monitor plugged into a HDMI port on the laptop.

What I’ve Tried: I installed 26.04 on my wife’s laptop recently and it fixed the opposite issue for her - closing the laptop lid had never worked on her machine - so I made sure all settings in my xfce-power-manager and screensaver matched hers, which are known to work, and … despite the fact they matched, hers works, mine doesn’t.

Which makes me think maybe vid card/driver issue preventing monitor from suspending.

Anyhow, I fiddled with the /etc/systemd/logind.conf file and changed these lines to ‘suspend’:

HandleLidSwitch=suspend
HandleLidSwitchExternalPower=suspend
HandleLidSwitchDocked=suspend

No diff. Tried a few combinations and also tried ‘hibernate’ at the end. Also no diff.

Read a gazillion web pages, been at it for hours over three days and at a dead end.

1 Like

After further digging around, I’m wondering if perhaps changing from the Nvidia 595 driver to the 580 might help.

Wondering if this has something to do with the driver and card combination preventing suspend rather than Power Manager or any app setting in Ubuntu directly.

Thinking out loud, really. Could be worth a try, despite the fact that when I ran

sudo ubuntu-drivers install

… in a terminal, the 595 driver was the one recommended and installed. Just a note: as I’ve been fiddling over the last few days, I noticed that the 610 driver has now popped up when I run

sudo ubuntu-drivers list

EDIT: I also ran ‘systemd-inhibit --list --mode=block’ to find what was holding things up and this is a cobbled together version of the output.

WHO
xfce4-power-manager

WHAT     
xfce4-power-man handle-power-key:handle-suspend-key:handle-hibernate-key:handle-lid-switch   

WHY
xfce4-power-manager handles the 1 inhibitors listed.

Appears the info is all there but I haven’t got the skills to know what to do with it. I’ll keep digging.

1 Like

According to AI, try the boot options:

nvidia-drm.modeset=1 mem_sleep_default=deep

May help

1 Like

Thanks.

May I ask what data/question you shoved in to AI for it to spit out that response?

As far as I’m starting to tell, this issue goes beyond that and it appears the Nvidia drivers aren’t installed properly. (Nvidia settings has things missing and there is no Nvidia audio option available in Pulseaudio.)

So, up another gum tree. And incidentally; I can manually suspend the machine if I choose ‘suspend’ from the log out menu. Everything works exactly as it should.

In other words, there’s no issue with the machine actually suspending under certain circumstances. It’s just closing the lid that’s the issue.

2 Likes

Just your entire OP. Nothing flashy

1 Like

Sorry. No idea what ‘OP’ is.

1 Like

OP = Original Poster
OP = Original Post

Plenty of other acronyms listed here

2 Likes

Just a gentle reminder to all users regarding our guidelines:

We ask that you please test AI-generated “solutions” whenever possible before suggesting them to other users. If needs be, do it in a virtual machine or other test environment.

Thanks

1 Like