You are not logged in.

#1 2024-08-05 03:00:22

barney
Member
Registered: 2020-12-14
Posts: 130

[Solved]Problems with suspend after upgrade

I have upgraded my system simply by starting paru. After the restart suspend stopped to work. I suspect that the problem is the linux kernel or nvidia-340xx-dkms package, but I don't know how do diagnose the problem. I don't know which log file should I post. Please help.

Last edited by barney (2024-08-06 18:53:21)

Offline

#2 2024-08-05 03:38:41

johnpiers
Member
From: Somerset West, Cape Town
Registered: 2012-07-22
Posts: 51

Re: [Solved]Problems with suspend after upgrade

Paru is not an official tool. Paru is an AUR helper. You don't "simply start" paru, You run it. You run it for specific things. (My opinion anyway.)  Pacman should be used for system updates

As regards the suspend issue, have a look at the link, perhaps it will help.

https://download.nvidia.com/XFree86/Lin … ement.html

Below, this helped a person on this platform . Basically what he did was the part listed below, this might not necessarily be exactly the same for you.

The NVIDIA systemd services that need to be enabled:

    sudo systemctl enable nvidia-suspend.service

    sudo systemctl enable nvidia-hibernate.service

    sudo systemctl enable nvidia-resume.service

Last edited by johnpiers (2024-08-06 02:03:31)

Offline

#3 2024-08-05 11:29:32

barney
Member
Registered: 2020-12-14
Posts: 130

Re: [Solved]Problems with suspend after upgrade

johnpiers wrote:

Paru is not an official tool. Paru is an AUR helper. You don't "simply start" paru, You run it. You run it for specific things. (My opinion anyway.)  Pacman should be used for system updates

I have used paru for system upgrades for more then a year, never have problems. This is the first time.

As regards the suspend issue, have a look at the link, perhaps it will help.

https://download.nvidia.com/XFree86/Lin … ement.html

The link is incomplete/incorrect.

Below, this helped a person on this platform . Basically what he did was the part listed below, this might not necessarily be exactly the same for you.

The NVIDIA systemd services that need to be enabled:

    sudo systemctl enable nvidia-suspend.service

    sudo systemctl enable nvidia-hibernate.service

    sudo systemctl enable nvidia-resume.service

I don't have any of these services.

Offline

#4 2024-08-05 21:58:20

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

Re: [Solved]Problems with suspend after upgrade

I have used paru for system upgrades for more then a year, never have problems.

Yes, but most certainly not by "simply starting" it… AUR helpers are for convenience, they don't excuse having no idea about what's actually going on.

On topic: the problem might be the systemd userspace freeze, it doesn't work w/ nvidia
https://bbs.archlinux.org/viewtopic.php?id=296954

But also the nvidia modules failed to build against 6.10

dkms status
uname -a
modinfo nvidia 2>&1 | head -10

Online

#5 2024-08-06 15:32:46

barney
Member
Registered: 2020-12-14
Posts: 130

Re: [Solved]Problems with suspend after upgrade

seth wrote:

I have used paru for system upgrades for more then a year, never have problems.

Yes, but most certainly not by "simply starting" it… AUR helpers are for convenience, they don't excuse having no idea about what's actually going on.

What is the advice here? Use pacman -Syu for system update and after that use paru to update the packages from AUR?

On topic: the problem might be the systemd userspace freeze, it doesn't work w/ nvidia
https://bbs.archlinux.org/viewtopic.php?id=296954

I know nothing about systemd drop in files. What I have understand from context from the link you have posted. I have made two directories in /etc/systemd/system, one systemd-suspend.service.d and the second systemd-homed.service.d. In these directories I have placed two files, one disable_freeze_user_session.conf and the second systemd_home_lock_freeze_sesion.conf with contents:

[Service]
Environment="SYSTEMD_SLEEP_FREEZE_USER_SESSIONS=false"

and

[Service]
Environment="SYSTEMD_HOME_LOCK_FREEZE_SESSION=false"

This didn't helped.

But also the nvidia modules failed to build against 6.10

dkms status
uname -a
modinfo nvidia 2>&1 | head -10
dkms status
nvidia/340.108, 6.10.2-arch1-2, x86_64: installed

uname -a
Linux living 6.10.2-arch1-2 #1 SMP PREEMPT_DYNAMIC Sat, 03 Aug 2024 17:56:17 +0000 x86_64 GNU/Linux


modinfo nvidia 2>&1 | head -10
filename:       /lib/modules/6.10.2-arch1-2/updates/dkms/nvidia.ko.zst
alias:          char-major-195-*
version:        340.108
supported:      external
license:        GPL
srcversion:     07387C7C5FD301C178C304A
alias:          pci:v000010DEd00000E00sv*sd*bc04sc80i00*
alias:          pci:v000010DEd00000AA3sv*sd*bc0Bsc40i00*
alias:          pci:v000010DEd*sv*sd*bc03sc02i00*
alias:          pci:v000010DEd*sv*sd*bc03sc00i00*

Offline

#6 2024-08-06 18:44:33

barney
Member
Registered: 2020-12-14
Posts: 130

Re: [Solved]Problems with suspend after upgrade

Update:
After pacman -Syu and added two drop in files suspend works again.

Offline

Board footer

Powered by FluxBB