How to disable Sleep/Suspend entirely?

Hello All. Installed Qubes 4.2.4 on my headless laptop hooked on to external monitor. My Laptop is Asus G713RM . I have successfully used Qubes 4.1 before on the same notebook.

Problem
System goes to sleep even after a short duration, unaffected by xfce power settings. On resuming(with mouse or keyboard) , disk encryption password is asked, after entering, system resets itself.

I didnot have this issue with 4.1 . After inactivity and resuming, it would go to unlock screen rather than disk encryption password.

What i have tried -

  1. tried changing settings with xfce-power-manager
  2. Tried to change grub settings - mem_sleep_default=deep and other as suggested by search engines
    Switched to KDE, which reduced the frequency, but still it happens.

How do i disable the sleep entirely ?

EDIT :
this is the screen i get .

This is really weird. How is it prompted? From a try, a gui, login manager?

2 Likes

When the system goes idle, i try to wake up the screen give or take 4-5s, this happens. Its that UI screen that asks for disk encryption password on boot. When i enter, it hard reboots.

I had tried this method with a debian, I don’t know if it also works with Fedora.
In the /etc/systemd/logind.conf file, i modified this line like that:
HandleLidSwitch=ignore .
Then sudo systemctl restart systemd-logind

It’s a long time ago so perhaps i don’t reminder well :confused:
PS: don’t forget to delete the “#”.

Thank you, tried this and it didnt work. dom0 is fedora right?

Could you try Xfce’s presentation mode?

https://docs.xfce.org/xfce/xfce4-power-manager/panel-plugin

hi, I tried that, it didnt work either!

1 Like

Any way to use a script to turn sleep off? Or maybe Qubes is crashing when idle so it is restarting? If so how do i find it out. Please help. Thanks in advance

This maybe? sudo systemctl mask sleep.target suspend.target

tried that also, didnt work. this happens around 10 mins idle. it just crashes - asks for disk pasword, reboots.

And did you try sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target? Perhaps in bios you have something about the sleeping/hibernation?
Have desactivate xscreensaver in xfce system settings?

Thanks! tried ‘systemctl mask …’ as suggested, that didnt work either. Nothing in my BIOS (its Asus ROG strix G713RM laptop, all settings related to sleep are disabled. as far as xscreensaver - i have killed the daemon. Nothing works so far. :frowning:

One thing to note is it is headless ( faulty display that was removed and now connected to Ext display via HDMI only)

Could you try a small experiment and play some sound like a long music or video file, locally. And turn the speaker volume to make it audible and wait for the suspend to happen, then tell us if the sound still play on resume.

The fact you have the disk encryption screen display is impossible to me, and you mention that typing makes the system hard reset, this makes me think the system is already crashed on resume and shows an old framebuffer value: the boot screen. Under normal circumstances, audio playback should immediately resume when you resume the computer, but not of it has already crashed, you might hear a 100ms loop noise.

Are you sure you went into “System” tab then switched from “battery” to “AC connected”, I have a French text version, texts might differ but that battery/AC stuff is not really great UX and you may have missed it. Move the slider to the left so it say “never”.