Can't stop suspend, 22.04

Hi. I tried many things to get the display from going blank (a trouble when I'm playing a game)--installing Caffeine, Power Manager settings in Startup Programs, BIOS settings. I was hoping someone could help because I'm out of ideas--

gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-ac-timeout '0' && gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-battery-timeout '0'
sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target

Is it an external monitor? Perhaps it has its own settings. Check if there's a "menu" switch on it somewhere.

This worked:

1fallen Regular

3h

Stop Screen Blanking
Please try this:

xset -dpms s off s noblank s 0 0 s noexpose

Let us know if that helped.

3 Likes

The display is a Sceptre 20 inch connected by HDMI to a Nvidia GTX 1650. I don't think the monitor is the problem because when the screen blanked, Io turned off the screen, then back on, and the blank screen was still there. Maybe it's some Nvidia setting--I think I set it for performance.