You are not logged in.

#1 2024-11-07 01:51:27

Omarz2012
Member
From: Oshawa, Canada
Registered: 2024-10-19
Posts: 64
Website

[SOLVED]Sleeping in arch linux is broken on nvidia gpus

I have an acer nitro 5 with an amd ryzen 7 with integrated graphics and a discrete rtx 3050 and have recently installed arch linux with plasma wayland but whenever i put my computer to sleep and then wake it up, it just has a blinking cursor and then just freezes. is there anything i need to do. the journalctl logs only go up to when it was commanded to sleep with the last log being

kernel: PM: suspend entry (deep)

Last edited by Omarz2012 (2024-11-12 00:25:40)

Offline

#2 2024-11-07 12:33:14

ZeliosCraft
Member
Registered: 2023-09-30
Posts: 4

Re: [SOLVED]Sleeping in arch linux is broken on nvidia gpus

Hi there. It looks like something related to graphics drivers or, maybe, power management configuration.
Try disabling Wayland and using X11 session. Restart your computer and during login screen choose a X11 plasma session. Put computer to sleep and see if problem persists.
I hope this can help you to get more details of your issue.

Offline

#3 2024-11-07 13:29:04

Omarz2012
Member
From: Oshawa, Canada
Registered: 2024-10-19
Posts: 64
Website

Re: [SOLVED]Sleeping in arch linux is broken on nvidia gpus

update: restarting sddm seem to help a bit

ZeliosCraft wrote:

Hi there. It looks like something related to graphics drivers or, maybe, power management configuration.
Try disabling Wayland and using X11 session. Restart your computer and during login screen choose a X11 plasma session. Put computer to sleep and see if problem persists.
I hope this can help you to get more details of your issue.

why disable wayland

Offline

#4 2024-11-07 14:00:56

ZeliosCraft
Member
Registered: 2023-09-30
Posts: 4

Re: [SOLVED]Sleeping in arch linux is broken on nvidia gpus

The issue could be related to Wayland's power management integration. This is a guess only. Did you tryied? Does it change anything?

Offline

#5 2024-11-07 16:13:15

Omarz2012
Member
From: Oshawa, Canada
Registered: 2024-10-19
Posts: 64
Website

Re: [SOLVED]Sleeping in arch linux is broken on nvidia gpus

I will once I come home

ZeliosCraft wrote:

The issue could be related to Wayland's power management integration. This is a guess only. Did you tryied? Does it change anything?

Edit: It has nothing to do with the display manager

Last edited by Omarz2012 (2024-11-07 23:10:35)

Offline

#6 2024-11-07 23:09:39

Omarz2012
Member
From: Oshawa, Canada
Registered: 2024-10-19
Posts: 64
Website

Re: [SOLVED]Sleeping in arch linux is broken on nvidia gpus

restarting sddm seems to fix the issue? but then it breaks again when i set it to sleep for a second time
my journalctl

Nov 07 17:37:07 omarscoolarchernitro5 org_kde_powerdevil[1209]: Sleep event. connector=card2-eDP-1, dref not set
Nov 07 17:37:06 omarscoolarchernitro5 wpa_supplicant[708]: wlan0: CTRL-EVENT-SIGNAL-CHANGE above=1 signal=-41 noise=9999 txrate=175600
Nov 07 17:37:06 omarscoolarchernitro5 kernel: ACPI: button: The lid device is not compliant to SW_LID.

at this point should i just reinstall

Last edited by Omarz2012 (2024-11-07 23:32:58)

Offline

#7 2024-11-08 08:33:14

seth
Member
Registered: 2012-09-03
Posts: 58,997

Re: [SOLVED]Sleeping in arch linux is broken on nvidia gpus

at this point should i just reinstall

Spoiler: that will achieve nothing w/ 99.98% probability.


https://bbs.archlinux.org/viewtopic.php?id=300676
https://wiki.archlinux.org/title/NVIDIA … er_suspend
Disable those services and add

nvidia_drm.fbdev=0 nvidia.NVreg_PreserveVideoMemoryAllocations=0

to the https://wiki.archlinux.org/title/Kernel_parameters (both currently default to 1)
You might also wanna try https://aur.archlinux.org/packages/nvidia-535xx-dkms

Offline

#8 2024-11-10 21:27:56

Omarz2012
Member
From: Oshawa, Canada
Registered: 2024-10-19
Posts: 64
Website

Re: [SOLVED]Sleeping in arch linux is broken on nvidia gpus

so i disabl nvidia-suspend, nvidia-hibernate and nvidia-resume right?

seth wrote:

at this point should i just reinstall

Spoiler: that will achieve nothing w/ 99.98% probability.


https://bbs.archlinux.org/viewtopic.php?id=300676
https://wiki.archlinux.org/title/NVIDIA … er_suspend
Disable those services and add

nvidia_drm.fbdev=0 nvidia.NVreg_PreserveVideoMemoryAllocations=0

to the https://wiki.archlinux.org/title/Kernel_parameters (both currently default to 1)
You might also wanna try https://aur.archlinux.org/packages/nvidia-535xx-dkms

Offline

#9 2024-11-10 21:50:34

seth
Member
Registered: 2012-09-03
Posts: 58,997

Re: [SOLVED]Sleeping in arch linux is broken on nvidia gpus

If you don't disable "nvidia.NVreg_PreserveVideoMemoryAllocations=0" you'll get an error from that.

Offline

#10 2024-11-11 22:23:25

Omarz2012
Member
From: Oshawa, Canada
Registered: 2024-10-19
Posts: 64
Website

Re: [SOLVED]Sleeping in arch linux is broken on nvidia gpus

so i disable preserve meory allocations and fbdev then reboot, and then i disable the services right?

seth wrote:

If you don't disable "nvidia.NVreg_PreserveVideoMemoryAllocations=0" you'll get an error from that.

Last edited by Omarz2012 (2024-11-11 22:59:52)

Offline

#11 2024-11-11 22:39:53

seth
Member
Registered: 2012-09-03
Posts: 58,997

Re: [SOLVED]Sleeping in arch linux is broken on nvidia gpus

Yes.

Offline

#12 2024-11-12 00:25:14

Omarz2012
Member
From: Oshawa, Canada
Registered: 2024-10-19
Posts: 64
Website

Re: [SOLVED]Sleeping in arch linux is broken on nvidia gpus

Thx it works.

Offline

Board footer

Powered by FluxBB