You are not logged in.

#1 2024-06-18 01:14:21

Dragin
Member
Registered: 2024-06-15
Posts: 35

Arch not detecting Nvidia GPU

I recently installed Arch on my laptop with an Nvidia GPU. Using the latest kernel, it worked perfectly, but today it just stopped working after a restart. It still shows up in lspci, but not in games or fastfetch.
I'm not entirely sure what the cause was but I believe it was either updating my kernel (which doesn't make much sense, since that should INcrease compatibility) trying to install DaVinci Resolve (I installed some packages to try to get it to work, and those may have caused something to go wrong. The packages I installed are listed below.)

Packages from Resolve: nvidia-utils, opencl-nvidia, libxcrypt-compat, pango,expac, mesa-utils, python-distro, cuda, gstreamer, gtk2, ocl-icd, qt5-base, qt5-webengine, qt5-websockets, fuse2, glu, libpng12

Offline

#2 2024-06-18 01:18:24

cryptearth
Member
Registered: 2024-02-03
Posts: 2,186

Re: Arch not detecting Nvidia GPU

more information about the hardware (model number) would be hlpful

Offline

#3 2024-06-18 01:19:52

Dragin
Member
Registered: 2024-06-15
Posts: 35

Re: Arch not detecting Nvidia GPU

Do you mean the laptop or the GPU? The laptop is an Alienware m16 R2 and the GPU is an RTX 4070.

Last edited by Dragin (2024-06-18 01:22:52)

Offline

#4 2024-06-18 01:22:34

cryptearth
Member
Registered: 2024-02-03
Posts: 2,186

Re: Arch not detecting Nvidia GPU

Dragin wrote:

on my laptop

manufacturer and modelnumber of the laptop

Offline

#5 2024-06-18 01:39:27

Dragin
Member
Registered: 2024-06-15
Posts: 35

Re: Arch not detecting Nvidia GPU

It's an Alienware m16 R2.
Is there a specific log file or something I should be looking for to try to fix the issue?

Offline

#6 2024-06-18 01:45:08

Dragin
Member
Registered: 2024-06-15
Posts: 35

Re: Arch not detecting Nvidia GPU

It might have something to do with nouveau? Running lspci -k shows me this:

0000:01:00.0 VGA compatible controller: NVIDIA Corporation AD106M [GeForce RTX 4070 Max-Q / Mobile] (rev a1)
    Subsystem: Dell Device 0c91
    Kernel modules: nouveau

Offline

#7 2024-06-18 03:11:21

cryptearth
Member
Registered: 2024-02-03
Posts: 2,186

Re: Arch not detecting Nvidia GPU

https://wiki.archlinux.org/title/NVIDIA

also: don't edit after reply

Offline

#8 2024-06-18 04:28:33

Dragin
Member
Registered: 2024-06-15
Posts: 35

Re: Arch not detecting Nvidia GPU

I tried to install the nvidia package, and I'm not sure what I did, but somehow it's now detecting and working... despite me literally uninstalling the nvidia package. It works now, but I'm very confused.

Offline

#9 2024-06-18 05:14:45

pand4
Member
Registered: 2024-05-29
Posts: 3

Re: Arch not detecting Nvidia GPU

What's the output of

 dkms status 

Last edited by pand4 (2024-06-18 05:14:56)

Offline

#10 2024-06-18 07:41:40

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

Re: Arch not detecting Nvidia GPU

Packages from Resolve: nvidia-utils, opencl-nvidia, libxcrypt-compat, pango,expac, mesa-utils, python-distro, cuda, gstreamer, gtk2, ocl-icd, qt5-base, qt5-webengine, qt5-websockets, fuse2, glu, libpng12

so you had nvidia-utils which is gonna blacklist nouveau but you had no nvidia kernel module to replace that.

I tried to install the nvidia package, and I'm not sure what I did, but somehow it's now detecting and working... despite me literally uninstalling the nvidia package. It works now, but I'm very confused.

Install or uninstall? Which one is it?
If you installed the kernel module, it's now standing in for the blacklisted nouveau. If you removed nvidia-utils, nouveau got unblacklisted.

lspci -k

can tell and then please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Online

#11 2024-06-18 16:49:29

Dragin
Member
Registered: 2024-06-15
Posts: 35

Re: Arch not detecting Nvidia GPU

Sorry if my message was confusing. What I meant to say was that I tried to install the nvidia package using the method shown on the wiki page, but it kept giving me a black screen. After trying to fix it, I eventually gave up and uninstalled the nvidia and nvidia-utils, which removed the black screen, but somehow it now detects my GPU.

I think Nouveau got disabled when I was either updating or installing DaVinci Resolve, and my failure to install the proprietary driver somehow RE-enabled it. Now Resolve is giving me an error, but I'll make a new post for that since it's a different issue.

Offline

#12 2024-06-18 17:46:05

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

Re: Arch not detecting Nvidia GPU

Ie. you removed nvidia-utils and nouveau got un-blacklisted.

If you want to address the situation w/ the nvidia binary driver (because of DVR) you'll most likely be able to boot the multi-user.target (2nd link below) and post your complete system journal from there:

sudo journalctl -b | curl -F 'file=@-' 0x0.st

to illustrate the status quo.

if your GUI target fails you'll have to specify what that actually is.
For some X11 environment please post your Xorg log, https://wiki.archlinux.org/title/Xorg#General

Online

#13 2024-06-18 19:06:08

Dragin
Member
Registered: 2024-06-15
Posts: 35

Re: Arch not detecting Nvidia GPU

Offline

#14 2024-06-18 19:12:33

Dragin
Member
Registered: 2024-06-15
Posts: 35

Re: Arch not detecting Nvidia GPU

Actually, I just realized that's only for this session, and I have rebooted since trying to install the nvidia driver. How can I get the logs from the GUI mode, while using the command-only mode? (Adding 3 at the end)

Offline

#15 2024-06-18 19:14:52

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

Re: Arch not detecting Nvidia GPU

Jun 18 13:27:51 blippy kernel: nouveau: detected PR support, will not use DSM
Jun 18 13:27:51 blippy kernel: nouveau 0000:01:00.0: enabling device (0006 -> 0007)
Jun 18 13:27:51 blippy kernel: nouveau 0000:01:00.0: NVIDIA AD106 (196000a1)
Jun 18 13:27:51 blippy kernel: nouveau 0000:01:00.0: bios: version 95.06.31.00.9a
Jun 18 13:27:52 blippy kernel: nouveau 0000:01:00.0: DRM: VRAM: 8188 MiB
Jun 18 13:27:52 blippy kernel: nouveau 0000:01:00.0: DRM: GART: 536870912 MiB
Jun 18 13:27:52 blippy kernel: nouveau 0000:01:00.0: DRM: MM: using COPY for buffer copies
Jun 18 13:27:52 blippy kernel: snd_hda_intel 0000:01:00.1: bound 0000:01:00.0 (ops nv50_audio_component_bind_ops [nouveau])
Jun 18 13:27:52 blippy kernel: [drm] Initialized nouveau 1.4.0 20120801 for 0000:01:00.0 on minor 0
Jun 18 13:27:52 blippy kernel: nouveau 0000:01:00.0: [drm] Cannot find any crtc or sizes
Jun 18 13:27:52 blippy kernel: nouveau 0000:01:00.0: [drm] Cannot find any crtc or sizes
Jun 18 13:27:52 blippy kernel: nouveau 0000:01:00.0: [drm] Cannot find any crtc or sizes
Jun 18 13:27:52 blippy kernel: nouveau 0000:01:00.0: [drm] Cannot find any crtc or sizes
Jun 18 13:27:52 blippy kernel: nouveau 0000:01:00.0: [drm] Cannot find any crtc or sizes
Jun 18 13:27:53 blippy gnome-shell[930]: Added device '/dev/dri/card0' (nouveau) using non-atomic mode setting.
Jun 18 13:32:25 blippy gnome-shell[1527]: Added device '/dev/dri/card0' (nouveau) using non-atomic mode setting.Jun 18 13:27:51 blippy kernel: nouveau: detected PR support, will not use DSM
Jun 18 13:27:51 blippy kernel: nouveau 0000:01:00.0: enabling device (0006 -> 0007)
Jun 18 13:27:51 blippy kernel: nouveau 0000:01:00.0: NVIDIA AD106 (196000a1)
Jun 18 13:27:51 blippy kernel: nouveau 0000:01:00.0: bios: version 95.06.31.00.9a
Jun 18 13:27:52 blippy kernel: nouveau 0000:01:00.0: DRM: VRAM: 8188 MiB
Jun 18 13:27:52 blippy kernel: nouveau 0000:01:00.0: DRM: GART: 536870912 MiB
Jun 18 13:27:52 blippy kernel: nouveau 0000:01:00.0: DRM: MM: using COPY for buffer copies
Jun 18 13:27:52 blippy kernel: snd_hda_intel 0000:01:00.1: bound 0000:01:00.0 (ops nv50_audio_component_bind_ops [nouveau])
Jun 18 13:27:52 blippy kernel: [drm] Initialized nouveau 1.4.0 20120801 for 0000:01:00.0 on minor 0
Jun 18 13:27:52 blippy kernel: nouveau 0000:01:00.0: [drm] Cannot find any crtc or sizes
Jun 18 13:27:52 blippy kernel: nouveau 0000:01:00.0: [drm] Cannot find any crtc or sizes
Jun 18 13:27:52 blippy kernel: nouveau 0000:01:00.0: [drm] Cannot find any crtc or sizes
Jun 18 13:27:52 blippy kernel: nouveau 0000:01:00.0: [drm] Cannot find any crtc or sizes
Jun 18 13:27:52 blippy kernel: nouveau 0000:01:00.0: [drm] Cannot find any crtc or sizes
Jun 18 13:27:53 blippy gnome-shell[930]: Added device '/dev/dri/card0' (nouveau) using non-atomic mode setting.
Jun 18 13:32:25 blippy gnome-shell[1527]: Added device '/dev/dri/card0' (nouveau) using non-atomic mode setting.

That's just booting with the nouveau module?
However you're using GDM and gnome and therefore make sure to see https://wiki.archlinux.org/title/GDM#Wa … DIA_driver for some peculiar behavior.

Sidebar: you've networkmanager and iwd enabled, if you want to use iwd as NM backend follow https://wiki.archlinux.org/title/Networ … Fi_backend and disable the iwd.service

Online

#16 2024-06-18 19:33:18

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

Re: Arch not detecting Nvidia GPU

Ah, crosspost.
You can access older journals w/ … -b -n … eg.

sudo journalctl -b -1 | curl -F 'file=@-' 0x0.st

for the previous boot.
Still, see the GDM wiki

Online

#17 2024-06-19 17:40:27

Dragin
Member
Registered: 2024-06-15
Posts: 35

Re: Arch not detecting Nvidia GPU

OK, I tried reinstalling the Nvidia driver, same issue. Here are the journalctls for my last 2 boots (first one is when I tried installing via console mode, second is when I tried to boot into Gnome and it gave me a black screen)
http://0x0.st/XTLZ.txt
http://0x0.st/XTLN.txt

Offline

#18 2024-06-19 18:06:28

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,726

Re: Arch not detecting Nvidia GPU

Do you have xorg-server installed

Offline

#19 2024-06-19 18:13:56

Dragin
Member
Registered: 2024-06-15
Posts: 35

Re: Arch not detecting Nvidia GPU

No, do I need that?

Offline

#20 2024-06-19 18:18:06

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,223

Re: Arch not detecting Nvidia GPU

For GNOME/GDM to show you anything in it's default configuration yes.

Otherwise see the previously posted https://wiki.archlinux.org/title/GDM#Wa … DIA_driver and if you want to enable modesetting/wayland make sure you use the kernel parameter method with nvidia_drm.modeset=1

Offline

#21 2024-06-19 19:01:56

Dragin
Member
Registered: 2024-06-15
Posts: 35

Re: Arch not detecting Nvidia GPU

Installing xorg-server seems to have fixed it... except it's SLOWER than before? I previously was getting a little under 240fps in my games, but I'm now barely getting 60.
Also, I can't use fractional scaling because the patch doesn't build.

Offline

#22 2024-06-19 19:12:11

Dragin
Member
Registered: 2024-06-15
Posts: 35

Re: Arch not detecting Nvidia GPU

Note: running lspci confirms that it is running on the nvidia driver, rather than the nouveau driver:
0000:01:00.0 VGA compatible controller: NVIDIA Corporation AD106M [GeForce RTX 4070 Max-Q / Mobile] (rev a1)
    Subsystem: Dell Device 0c91
    Kernel driver in use: nvidia
    Kernel modules: nouveau, nvidia_drm, nvidia

Offline

#23 2024-06-19 19:18:24

Dragin
Member
Registered: 2024-06-15
Posts: 35

Re: Arch not detecting Nvidia GPU

I found this in my journalctl which might be what's making it less performant:

Jun 19 14:14:51 blippy /usr/lib/gdm-x-session[1039]: (WW) NVIDIA(G0): Failed to set the display configuration
Jun 19 14:14:51 blippy /usr/lib/gdm-x-session[1039]: (WW) NVIDIA(G0):  - Setting a mode on head 0 failed: Insufficient permissions
Jun 19 14:14:51 blippy /usr/lib/gdm-x-session[1039]: (WW) NVIDIA(G0):  - Setting a mode on head 1 failed: Insufficient permissions
Jun 19 14:14:51 blippy /usr/lib/gdm-x-session[1039]: (WW) NVIDIA(G0):  - Setting a mode on head 2 failed: Insufficient permissions
Jun 19 14:14:51 blippy /usr/lib/gdm-x-session[1039]: (WW) NVIDIA(G0):  - Setting a mode on head 3 failed: Insufficient permissions
Jun 19 14:14:51 blippy /usr/lib/gdm-x-session[1039]: (II) NVIDIA(GPU-0): Deleting GPU-0
Jun 19 14:14:51 blippy /usr/lib/gdm-x-session[1039]: (II) Server terminated successfully (0). Closing log file.

Full journalctl: http://0x0.st/XT9N.txt

Last edited by Dragin (2024-06-19 19:19:01)

Offline

#24 2024-06-19 20:56:46

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

Re: Arch not detecting Nvidia GPU

Please don't bump, edit your previous post if nobody has replied yet.
What's the output of

xrandr -q

?

I previously was getting a little under 240fps in my games, but I'm now barely getting 60.

1. You're running on the intel chip, do you "prime-run superturboturkeypuncher³"?
2. your monitor has a 60Hz and a 240Hz mode - you're probably currently running 60Hz?

Jun 19 14:14:39 blippy kernel: nvidia-modeset: WARNING: GPU:0: Unable to read EDID for display device DP-2
Jun 19 14:14:39 blippy kernel: nvidia-modeset: WARNING: GPU:0: Unable to read EDID for display device DP-2

Adding "nvidia_drm.modeset=1" to the kernel commandline will also expose the edid to the drm subsystem what might help you to get the desired refresh rate.

Online

Board footer

Powered by FluxBB