You are not logged in.

#1 2021-02-05 11:15:05

floreal
Member
Registered: 2020-06-19
Posts: 7

[SOLVED] NVIDIA: no card found (no /dev/dri/card0)

Hello,


Yesterday my home PC was working fine, and when I booted it up today, lxdm refused to show up.

Here are my computer specs:

$ uname -a
Linux mars 5.10.12-arch1-1 #1 SMP PREEMPT Sun, 31 Jan 2021 00:41:06 +0000 x86_64 GNU/Linux
$ lspci
00:00.0 Host bridge: Intel Corporation 2nd Generation Core Processor Family DRAM Controller (rev 09)
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200/2nd Generation Core Processor Family PCI Express Root Port (rev 09)
00:16.0 Communication controller: Intel Corporation 6 Series/C200 Series Chipset Family MEI Controller #1 (rev 04)
00:19.0 Ethernet controller: Intel Corporation 82579V Gigabit Network Connection (rev 05)
00:1a.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #2 (rev 05)
00:1b.0 Audio device: Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller (rev 05)
00:1c.0 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 1 (rev b5)
00:1c.1 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 2 (rev b5)
00:1c.2 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 3 (rev b5)
00:1c.3 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 4 (rev b5)
00:1c.4 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 5 (rev b5)
00:1c.6 PCI bridge: Intel Corporation 82801 PCI Bridge (rev b5)
00:1c.7 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 8 (rev b5)
00:1d.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #1 (rev 05)
00:1f.0 ISA bridge: Intel Corporation P67 Express Chipset LPC Controller (rev 05)
00:1f.2 SATA controller: Intel Corporation 6 Series/C200 Series Chipset Family 6 port Desktop SATA AHCI Controller (rev 05)
00:1f.3 SMBus: Intel Corporation 6 Series/C200 Series Chipset Family SMBus Controller (rev 05)
01:00.0 VGA compatible controller: NVIDIA Corporation GM204 [GeForce GTX 970] (rev a1)
01:00.1 Audio device: NVIDIA Corporation GM204 High Definition Audio Controller (rev a1)
03:00.0 USB controller: NEC Corporation uPD720200 USB 3.0 Host Controller (rev 04)
05:00.0 SATA controller: JMicron Technology Corp. JMB362 SATA Controller (rev 10)
06:00.0 USB controller: NEC Corporation uPD720200 USB 3.0 Host Controller (rev 04)
07:00.0 PCI bridge: ASMedia Technology Inc. ASM1083/1085 PCIe to PCI Bridge (rev 01)
08:01.0 FireWire (IEEE 1394): VIA Technologies, Inc. VT6306/7/8 [Fire II(M)] IEEE 1394 OHCI Controller (rev c0)
09:00.0 SATA controller: Marvell Technology Group Ltd. 88SE9172 SATA 6Gb/s Controller (rev 11)

So I checked a few logs, and I had this in my Xorg.0.log:

[    51.694] (WW) Failed to open protocol names file lib/xorg/protocol.txt
[    51.695] 
X.Org X Server 1.20.10
X Protocol Version 11, Revision 0
[    51.696] Build Operating System: Linux Arch Linux
[    51.697] Current Operating System: Linux mars 5.10.12-arch1-1 #1 SMP PREEMPT Sun, 31 Jan 2021 00:41:06 +0000 x86_64
[    51.697] Kernel command line: BOOT_IMAGE=/vmlinuz-linux root=UUID=1a1bb112-3e87-4084-8bb1-6b8b2521b08d rw quiet
[    51.699] Build Date: 14 December 2020  12:10:29PM
[    51.699]  
[    51.700] Current version of pixman: 0.40.0
[    51.701] 	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
[    51.701] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[    51.703] (==) Log file: "/var/log/Xorg.0.log", Time: Fri Feb  5 11:31:12 2021
[    51.704] (==) Using config directory: "/etc/X11/xorg.conf.d"
[    51.705] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[    51.705] (==) No Layout section.  Using the first Screen section.
[    51.705] (==) No screen section available. Using defaults.
[    51.705] (**) |-->Screen "Default Screen Section" (0)
[    51.705] (**) |   |-->Monitor "<default monitor>"
[    51.705] (==) No monitor specified for screen "Default Screen Section".
	Using a default monitor configuration.
[    51.705] (==) Automatically adding devices
[    51.705] (==) Automatically enabling devices
[    51.705] (==) Automatically adding GPU devices
[    51.705] (==) Automatically binding GPU devices
[    51.705] (==) Max clients allowed: 256, resource mask: 0x1fffff
[    51.705] (WW) The directory "/usr/share/fonts/misc" does not exist.
[    51.705] 	Entry deleted from font path.
[    51.705] (WW) The directory "/usr/share/fonts/Type1" does not exist.
[    51.705] 	Entry deleted from font path.
[    51.705] (WW) The directory "/usr/share/fonts/100dpi" does not exist.
[    51.705] 	Entry deleted from font path.
[    51.705] (WW) The directory "/usr/share/fonts/75dpi" does not exist.
[    51.705] 	Entry deleted from font path.
[    51.705] (==) FontPath set to:
	/usr/share/fonts/TTF,
	/usr/share/fonts/OTF
[    51.705] (==) ModulePath set to "/usr/lib/xorg/modules"
[    51.705] (II) The server relies on udev to provide the list of input devices.
	If no devices become available, reconfigure udev or disable AutoAddDevices.
[    51.705] (II) Module ABI versions:
[    51.705] 	X.Org ANSI C Emulation: 0.4
[    51.705] 	X.Org Video Driver: 24.1
[    51.705] 	X.Org XInput driver : 24.1
[    51.705] 	X.Org Server Extension : 10.0
[    51.706] (--) using VT number 1

[    51.706] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration
[    51.709] (--) PCI:*(1@0:0:0) 10de:13c2:1458:367a rev 161, Mem @ 0xfa000000/16777216, 0xc0000000/268435456, 0xd0000000/33554432, I/O @ 0x0000e000/128, BIOS @ 0x????????/131072
[    51.709] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[    51.709] (II) LoadModule: "glx"
[    51.709] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[    51.711] (II) Module glx: vendor="X.Org Foundation"
[    51.711] 	compiled for 1.20.10, module version = 1.0.0
[    51.711] 	ABI class: X.Org Server Extension, version 10.0
[    51.711] (==) Matched nouveau as autoconfigured driver 0
[    51.711] (==) Matched nv as autoconfigured driver 1
[    51.711] (==) Matched modesetting as autoconfigured driver 2
[    51.711] (==) Matched fbdev as autoconfigured driver 3
[    51.711] (==) Matched vesa as autoconfigured driver 4
[    51.711] (==) Assigned the driver to the xf86ConfigLayout
[    51.711] (II) LoadModule: "nouveau"
[    51.711] (WW) Warning, couldn't open module nouveau
[    51.711] (EE) Failed to load module "nouveau" (module does not exist, 0)
[    51.711] (II) LoadModule: "nv"
[    51.711] (WW) Warning, couldn't open module nv
[    51.711] (EE) Failed to load module "nv" (module does not exist, 0)
[    51.711] (II) LoadModule: "modesetting"
[    51.711] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[    51.711] (II) Module modesetting: vendor="X.Org Foundation"
[    51.711] 	compiled for 1.20.10, module version = 1.20.10
[    51.711] 	Module class: X.Org Video Driver
[    51.711] 	ABI class: X.Org Video Driver, version 24.1
[    51.711] (II) LoadModule: "fbdev"
[    51.712] (WW) Warning, couldn't open module fbdev
[    51.712] (EE) Failed to load module "fbdev" (module does not exist, 0)
[    51.712] (II) LoadModule: "vesa"
[    51.712] (WW) Warning, couldn't open module vesa
[    51.712] (EE) Failed to load module "vesa" (module does not exist, 0)
[    51.712] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[    51.713] (EE) open /dev/dri/card0: No such file or directory
[    51.713] (WW) Falling back to old probe method for modesetting
[    51.713] (EE) open /dev/dri/card0: No such file or directory
[    51.713] (EE) Screen 0 deleted because of no matching config section.
[    51.713] (II) UnloadModule: "modesetting"
[    51.713] (EE) Device(s) detected, but none match those in the config file.
[    51.713] (EE) 
Fatal server error:
[    51.713] (EE) no screens found(EE) 
[    51.713] (EE) 
Please consult the The X.Org Foundation support 
	 at http://wiki.x.org
 for help. 
[    51.713] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[    51.713] (EE) 
[    51.714] (EE) Server terminated with error (1). Closing log file.

Using nouveau let me have a GUI but OpenGL/Vulcan apps performances are very degraded, and some games launched with proton refuse to launch.

I tried to downgrade kernel, then nvidia driver, nothing changed. I don't know where to investigate, next.

I suspect a problem with udev but I didn't add any weird rule on it.

Of course I could wipe out my whole OS but if I could avoid that, that will be great.

Does any one have a clue?

Last edited by floreal (2021-02-05 12:12:16)

Offline

#2 2021-02-05 11:21:42

seth
Member
Registered: 2012-09-03
Posts: 51,905

Offline

#3 2021-02-05 11:26:23

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,839

Re: [SOLVED] NVIDIA: no card found (no /dev/dri/card0)

First of all, don't downgrade the linux package without also downgrading the nvidia package to a matching version, that isn't going to work by basic principle that the nvidia package is built against a specific kernel version and only works there.

What's often happening happening here is that the system starts up too fast and the graphics driver not yet being initialized, can be worked around by adding the nvidia modules to your mkinitcpio.conf as detailed in https://wiki.archlinux.org/index.php/NV … de_setting
adjust the mkinitcpio.conf update your system again (you should have linux 5.10.13 and 460.39-4 ) and retry.

Online

#4 2021-02-05 12:11:49

floreal
Member
Registered: 2020-06-19
Posts: 7

Re: [SOLVED] NVIDIA: no card found (no /dev/dri/card0)

Ok, thanks, V1del, you pointed exactly what was the problem. nvidia module was installed for linux-5.10.13 (in /lib/modules/5.10.13-arch1-1), which was not provided during last update, so I was running linux-5-10-12 (which expected to find module in it's own modules directory), and well it couldn't load the modules. I finally downgraded the proper nvidia drivers version / kernel couple so that works now.

I wil wait linux 5.10.13 package version to come out (on my repo) before upgrading.

Last edited by floreal (2021-02-05 12:14:24)

Offline

#5 2021-02-05 12:45:48

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,839

Re: [SOLVED] NVIDIA: no card found (no /dev/dri/card0)

The two packages have been pushed to the primary mirrors within a minute of each other. If you are on a mirror that extrapolates this delay then you don't have a trustworthy mirror and you should recheck your mirror list and opt for one that is more up to date and/or at least consistent in the packages it provides.

Online

#6 2021-02-05 13:22:30

floreal
Member
Registered: 2020-06-19
Posts: 7

Re: [SOLVED] NVIDIA: no card found (no /dev/dri/card0)

Yep, I think that is what happened, I changed the mirror to mi own one. Thanks

Offline

Board footer

Powered by FluxBB