Slow graphics, problems with nvidia driver compilation

Hi everyone,

I’ve just installed the latest Qubes, everything is fine except graphics.

It’s like in slow mode from the Matrix (especially when I drag app windows).

I think that’s because Qubes doesn’t use my GPU (Nvidia 2070 Super). Furthermore, my CPU doesn’t have integrated graphics at all.

I found instructions from the official FAQ about Nvidia drivers compilation and followed them but got an error in the last step.

Previously I’ve enabled rpm-fusion repos, updated the newly created AppVM for the driver compilation and installed yum.

Logs
bash-5.1# rpmbuild --nodeps -D "kernels 5.16.18-2.fc32.qubes.x86_64" --rebuild nvidia-kmod-510.68.02-2.fc34.src.rpm 
Installing nvidia-kmod-510.68.02-2.fc34.src.rpm
warning: nvidia-kmod-510.68.02-2.fc34.src.rpm: Header V3 RSA/SHA256 Signature, key ID 94843c65: NOKEY
warning: user mockbuild does not exist - using root
warning: group mock does not exist - using root
warning: user mockbuild does not exist - using root
warning: group mock does not exist - using root
warning: user mockbuild does not exist - using root
warning: group mock does not exist - using root
warning: user mockbuild does not exist - using root
warning: group mock does not exist - using root
setting SOURCE_DATE_EPOCH=1653523200
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.WjdrQh
+ umask 022
+ cd /root/rpmbuild/BUILD
+ echo 'kmodtool error: Don'\''t know how to handle 5.16.18-2.fc32.qubes.x86_64 -- /lib/modules/5.16.18-2.fc32.qubes.x86_64/build/Makefile not found'
kmodtool error: Don't know how to handle 5.16.18-2.fc32.qubes.x86_64 -- /lib/modules/5.16.18-2.fc32.qubes.x86_64/build/Makefile not found
+ exit 2
error: Bad exit status from /var/tmp/rpm-tmp.WjdrQh (%prep)


RPM build errors:
    nvidia-kmod-510.68.02-2.fc34.src.rpm: Header V3 RSA/SHA256 Signature, key ID 94843c65: NOKEY
    user mockbuild does not exist - using root
    group mock does not exist - using root
    user mockbuild does not exist - using root
    group mock does not exist - using root
    user mockbuild does not exist - using root
    group mock does not exist - using root
    user mockbuild does not exist - using root
    group mock does not exist - using root
    Bad exit status from /var/tmp/rpm-tmp.WjdrQh (%prep)
bash-5.1# 

I tried to search any solution for the problem but found nothing.

Also, before the topic creation I tried to search similar problems here, on the forum. Found this thread and link to a Github issue.

I did a step from the issue:

sudo qubes-dom0-update --enablerepo=qubes-dom0-unstable --action=list kernel-qubes-vm

But not sure that it somehow helped.

So, I have several questions.

  1. Is that normal that my GUI is lagging so hard? Some delays, some freezes.

  2. How to make sure that Qubes uses my GPU as fully as possible?

  3. Is everything fine with Nvidia driver?

P.S: I have fast CPU, SSD and RAM. I don’t think that the problem in them.

P.P.S: Nvidia drivers compilation and installation guide link from the official Qubes FAQ (new users are not allowed to have more than 2 links in their topics)

https://github.com/Qubes-Community/Contents/blob/master/docs/configuration/install-nvidia-driver.md

If you need any info just ask for it.

Please help me to resolve the issue. Thank you!

Have you tried ‘Xorg :1 -configure’ and using the xorg.conf with the nouveau driver selected?

1 Like

No, I haven’t. Will try today, thank for the info!