You are not logged in.

#1 2024-06-21 14:05:50

antux18
Member
From: France
Registered: 2024-06-21
Posts: 20
Website

[SOLVED] Suspend fails with NVIDIA driver 470

Hello,

I just switched from Manjaro to Arch Linux, and I'm having issues with the proprietary NVIDIA driver on my Dell Inspiron 3650 desktop (see signature for specs).

I installed "nvidia-470xx-dkms" from AUR (because my GeForce GT 730 isn't supported by the latest driver apparently), then removed "kms" from the "HOOKS" array in /etc/mkinitcpio.conf, and finally regenerated the initramfs. Then I wrote "options nvidia_drm modeset=1" in /etc/modprobe.d/nvidia.conf and rebooted.

Now suspend isn't working anymore (it works perfectly with the "nouveau" driver, and it worked with the proprietary NVIDIA driver version 470 on Manjaro): when I suspend the system, monitors turn black, but stay on, and my PC never goes to sleep. I tried to disable nvidia-resume, -suspend and -hibernate services as suggested here, but it didn't change anything. I also set the "NVreg_PreserveVideoMemoryAllocations=1" option in modprobe configuration, but it didn't change anything either.

Here is a portion of the output of journalctl that appears multiple times, and that may be related to my problem:

/usr/lib/gdm-x-session[2614]: Fatal server error:
/usr/lib/gdm-x-session[2614]: (EE) xf86OpenConsole: Cannot open virtual console 1 (Permission denied)
/usr/lib/gdm-x-session[2614]: (WW) xf86CloseConsole: KDSETMODE failed: Bad file descriptor
/usr/lib/gdm-x-session[2614]: (WW) xf86CloseConsole: VT_GETMODE failed: Bad file descriptor
/usr/lib/gdm-x-session[2614]: (EE) Server terminated with error (1). Closing log file.
/usr/lib/gdm-x-session[2612]: Unable to run X server

I thank you in advance for your help!

Last edited by antux18 (2024-06-21 18:37:02)


Dell Inspiron 3650 Desktop: CPU: Intel i5-6400 ; GPU: NVIDIA GeForce GT 730 ; RAM: 8 GB ; OS: Arch Linux (GNOME) + Windows 10
Asus VivoBook X509FA Laptop: CPU: Intel i5-8265U ; GPU: Intel UHD Graphics 620 ; RAM: 8 GB ; OS: Arch Linux (GNOME) + Windows 11

Offline

#2 2024-06-21 14:13:05

gromit
Package Maintainer (PM)
From: Germany
Registered: 2024-02-10
Posts: 848
Website

Re: [SOLVED] Suspend fails with NVIDIA driver 470

Which systemd version do you have installed? ("pacman -Q systemd")

This could also be related to https://gitlab.archlinux.org/archlinux/ … -/issues/9

Last edited by gromit (2024-06-21 14:13:34)

Offline

#3 2024-06-21 14:18:07

antux18
Member
From: France
Registered: 2024-06-21
Posts: 20
Website

Re: [SOLVED] Suspend fails with NVIDIA driver 470

Hello gromit,

My systemd version is 256.1-1

Regarding the link you sent: are you suggesting that I add 'Environment="SYSTEMD_SLEEP_FREEZE_USER_SESSIONS=false"' to nvidia-resume, -suspend and -hibernate service files?


Dell Inspiron 3650 Desktop: CPU: Intel i5-6400 ; GPU: NVIDIA GeForce GT 730 ; RAM: 8 GB ; OS: Arch Linux (GNOME) + Windows 10
Asus VivoBook X509FA Laptop: CPU: Intel i5-8265U ; GPU: Intel UHD Graphics 620 ; RAM: 8 GB ; OS: Arch Linux (GNOME) + Windows 11

Offline

#4 2024-06-21 15:52:59

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

Re: [SOLVED] Suspend fails with NVIDIA driver 470

No.
https://gitlab.archlinux.org/archlinux/ … 4b45a60708
/etc/systemd/system/systemd-homed.service.d/override.conf & /etc/systemd/system/systemd-suspend.service.d/override.conf

Offline

#5 2024-06-21 18:36:27

antux18
Member
From: France
Registered: 2024-06-21
Posts: 20
Website

Re: [SOLVED] Suspend fails with NVIDIA driver 470

Thank you both a lot, your solution seems to have fixed my problem!

What I did exactly to solve it:
- Creating folders /etc/systemd/system/systemd-homed.service.d/ and /etc/systemd/system/systemd-suspend.service.d/
- Copying the following in /etc/systemd/system/systemd-homed.service.d/override.conf:

[Service]
Environment="SYSTEMD_HOME_LOCK_FREEZE_SESSION=false"

- Copying the following in /etc/systemd/system/systemd-suspend.service.d/override.conf:

[Service]
Environment="SYSTEMD_SLEEP_FREEZE_USER_SESSIONS=false"

Dell Inspiron 3650 Desktop: CPU: Intel i5-6400 ; GPU: NVIDIA GeForce GT 730 ; RAM: 8 GB ; OS: Arch Linux (GNOME) + Windows 10
Asus VivoBook X509FA Laptop: CPU: Intel i5-8265U ; GPU: Intel UHD Graphics 620 ; RAM: 8 GB ; OS: Arch Linux (GNOME) + Windows 11

Offline

#6 2024-07-09 11:15:41

lux94
Member
Registered: 2020-04-22
Posts: 5

Re: [SOLVED] Suspend fails with NVIDIA driver 470

antux18 wrote:

Thank you both a lot, your solution seems to have fixed my problem!

What I did exactly to solve it:
- Creating folders /etc/systemd/system/systemd-homed.service.d/ and /etc/systemd/system/systemd-suspend.service.d/
- Copying the following in /etc/systemd/system/systemd-homed.service.d/override.conf:

[Service]
Environment="SYSTEMD_HOME_LOCK_FREEZE_SESSION=false"

- Copying the following in /etc/systemd/system/systemd-suspend.service.d/override.conf:

[Service]
Environment="SYSTEMD_SLEEP_FREEZE_USER_SESSIONS=false"

after installing nvidia driver 470, i had the same issue. system freezes when i tried to suspend.
your solution worked for me. thank you smile

Offline

Board footer

Powered by FluxBB