You are not logged in.

#1 2024-06-29 22:42:57

msl09
Member
Registered: 2022-10-01
Posts: 16

[SOLVED] xorg does not suspend after upgrade (xfce and nvidia)

Sometimes, after I upgrade arch (not sure if it's just nvidia or if it's the linux kernel today, both upgraded). Suspend stops working from Xorg (I tested arch and awesomewm). Suspending from a VT works, even if X is running on a different virtual console. Once I give the suspend command the displays shutdown but nothing else happens, it seems that the computer is still running fine.

My setup is comprised of an nvidia offboard gpu and an amd onboard. I have them set so both of them are working so that I can use both monitors with hdmi ports.

cat /etc/X11/xorg.conf.d/10-nvidia-drm-outputclass.conf
Section "OutputClass"
    Identifier "amd"
    MatchDriver "amdgpu"
    Driver "modesetting"
EndSection

Section "OutputClass"
    Identifier "nvidia"
    MatchDriver "nvidia-drm"
    Driver "nvidia"
    Option "AllowEmptyInitialConfiguration"
    Option "PrimaryGPU" "yes"  #This is important
    ModulePath "/usr/lib/nvidia/xorg"
    ModulePath "/usr/lib/xorg/modules"
EndSection

That's all the configuration I think I did with my setup ly is my login manager and it starts xfce for me.

Xorg.log of a failed suspend

Last edited by msl09 (2024-06-30 13:06:46)

Offline

#2 2024-06-30 07:36:49

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,945

Online

#3 2024-06-30 13:05:59

msl09
Member
Registered: 2022-10-01
Posts: 16

Re: [SOLVED] xorg does not suspend after upgrade (xfce and nvidia)

It works! Strangely putting the overrides in /usr/lib/systemd/system/ didn't do the trick, only when I put it in /etc/systemd/system suspend started working normally again.

Offline

Board footer

Powered by FluxBB