The officially official Devuan Forum!

You are not logged in.

#1 2024-09-28 07:01:07

MageSlayer
Member
Registered: 2024-03-03
Posts: 5  

NVidia driver needs more hacks

Hi all

I don't know if it's the right place to report issues.
But I'd like to report.
Looks like nvidia driver needs some more attention to work properly.

Currently it requires nvidia-suspend.service, nvidia-hibernate.service, and nvidia-resume.service running to avoid crashes on resume for certain application.
Specifically Firefox with hardware acceleration enabled crashes on resume without those "services".

See https://github.com/elFarto/nvidia-vaapi … 2164389423 and https://wiki.archlinux.org/title/NVIDIA … er_suspend for details.

BR

Last edited by MageSlayer (2024-09-28 08:07:49)

Offline

#2 2024-09-28 10:48:15

fsmithred
Administrator
Registered: 2016-11-25
Posts: 2,485  

Re: NVidia driver needs more hacks

If the problem is that these .service files can't do their job without systemd running, then the solution is to fork nvidia-suspend-common, the package that supplies these .service files. Someone needs to step forward to do the work and maintain it as updates come along. (It most likely will not be someone who is already packaging for devuan - there aren't enough of us.)

Offline

#3 2024-10-14 17:40:38

MageSlayer
Member
Registered: 2024-03-03
Posts: 5  

Re: NVidia driver needs more hacks

Just in case if it's still matters.

Creating /etc/elogind/system-sleep/nvidia with following contents & making it executable:

#!/bin/sh

case "$1" in
    pre)
        /usr/bin/nvidia-sleep.sh "suspend"
        ;;
    post)
        /usr/bin/nvidia-sleep.sh "resume"
        ;;
esac

... and uncommenting following line in /etc/modprobe.d/nvidia-options.conf:

options nvidia-current NVreg_PreserveVideoMemoryAllocations=1

... seems to make it work. And Firefox becomes stable again!

Offline

Board footer