You are not logged in.

#1 2022-08-31 19:33:38

iSpicyCurry
Member
Registered: 2018-11-20
Posts: 11

Nvidia Gnome Wayland display does not suspend

Hi all,

Apologies if this has been posted already. I am running Gnome (gnome-shell 1:42.4-1) under Wayland with a 1080ti and can't get the screens to go to sleep. When I lock the screen, let the screen time out or manually try to suspend the display, the screens show the "Display Going to Sleep" message and then turn back on with a black display. I can see the back light of the panel turned on. When running X11, my screens suspend as expected. I tried putting the following:

#!/bin/sh

# Get the on/off display status
stat=$(busctl --user get-property org.gnome.Mutter.DisplayConfig /org/gnome/Mutter/DisplayConfig org.gnome.Mutter.DisplayConfig PowerSaveMode | cut -d ' ' -f 2)

if [ "$stat" -eq 0 ]
then
    # Turning screen off...
    busctl --user set-property org.gnome.Mutter.DisplayConfig /org/gnome/Mutter/DisplayConfig org.gnome.Mutter.DisplayConfig PowerSaveMode i 1
else
    # Turning screen on...
    busctl --user set-property org.gnome.Mutter.DisplayConfig /org/gnome/Mutter/DisplayConfig org.gnome.Mutter.DisplayConfig PowerSaveMode i 0
fi

under

/usr/local/bin

and assigned it to a keyboard shortcut, but the screen still turns back on automatically after a couple seconds.

I'm using two monitors, one on HDMI  and the other DP. The issue happens even with just the one monitor on HDMI as well.

Does anyone have a solution for this?

Offline

Board footer

Powered by FluxBB