You are not logged in.

#1 2024-07-01 06:31:15

californium98
Member
Registered: 2024-06-28
Posts: 2

Xfce4 - black screen after wake up from suspend

Hello there,

Xfce4 uses xfce4-session-logout --suspend as suspend command, on my system however, it causes black screen after wake up.
To be more clear, xfce4-screensaver is shown on wake up, when i enter the password it shows me a black screen with the cursor (and i am able to move it). Disabling screen saver also ends up int the very same black screen. Other ttys work fine and i have to kill xfce or xorg completely after each sleep so that i can start a new session.

Also systemctl suspend works fine and wakes up with no problem. I was unable to find any solution to set it as default suspend command.

I have nvidia 1660ti running nouveau drivers and system is up to date. Since I am new to arch and xfce4, I will be happy to provide any needed logs.

Offline

#2 2024-07-01 07:08:46

seth
Member
Registered: 2012-09-03
Posts: 60,792

Re: Xfce4 - black screen after wake up from suspend

What if you disable the compositor?
https://wiki.archlinux.org/title/Xfwm#Composite_manager (nb the commands there show how to enable it, but that's the default state)

Offline

#3 2024-07-01 07:42:32

californium98
Member
Registered: 2024-06-28
Posts: 2

Re: Xfce4 - black screen after wake up from suspend

seth wrote:

What if you disable the compositor?
https://wiki.archlinux.org/title/Xfwm#Composite_manager (nb the commands there show how to enable it, but that's the default state)

Thank you for replying this quickly;

Disabling the compositor did solve the black screen but how can I find out what is wrong with compositing?

Offline

#4 2024-07-01 07:49:22

seth
Member
Registered: 2012-09-03
Posts: 60,792

Re: Xfce4 - black screen after wake up from suspend

XOrg log or system journal - most likely nouveau resp. VRAM decay.
The nvidia drivers use userspace services to mitigate that, https://wiki.archlinux.org/title/NVIDIA … er_suspend
In case you consider switching, head straight for the 535xx drivers from the AUR, there've been frequent issues w/ the 550xx drivers and the 555xx ones start out to look even worse roll

Edit: otherwise as mitigational effort you could add systemd sleep hooks that toggle the compositor around the S3, nb. that they'll run as root and w/o the relevant environment variables.
See eg. https://gist.github.com/AladW/de1c5676d93d05a5a0e1 for an example on how to import the relevant environment (in that example from xinit)

Last edited by seth (2024-07-01 07:51:10)

Offline

Board footer

Powered by FluxBB