You are not logged in.

#1 2023-12-23 17:15:02

rafdre
Member
From: Gdansk
Registered: 2013-09-21
Posts: 79

[SOLVED] X11 issue - Failed to open DRM device for (null): -22

Hello All,
I have an issue to install archlinux on my very old laptop which is equipped with nvidia graphic card (geForce GTS 360M).

At first: I was not able to start installer, but fixed it with adding parameter 'nomodeset'.

I successfully installed archlinux, but could start it. here again I fixed this with adding in /etc/default/grub parameter 'nomodeset'

Now I can work in terminal but cannot start X (for the moment I try to work with 'blackbox').

I decided to go with 'nouveau' as I hope this will be best option.

I created following file in /etc/X11/xorg.conf.d/20-nouveau.conf and it looks like this

Section "Monitor"
   Identifier "Monitor0"
   Modeline "1920x1080_70.00" 142.40 1920 2028 2076 2100 1080 1090 110 1130 -hsync +vsync
   Option "PreferredMode" "1920x1080_70.00"
EndSection

Section "Device"
   Identifier "Device0"
   Driver "nouveau"
   Option "GLXVBlank" "true"
EndSection

Section "Screen"
   Identifier "Screen0"
   Device "Device0"
   Monitor "Monitor0"
   DefaultDepth 24
   SubSection "Display"
   Modes "1920x1080_70.00"
   EndSubSection
EndSection

in /etc/mkinitcpio.conf I added 'nouveau' as well and run afterwards 'mkinitcpio -p linux

MODULE=(nouveau)

Here is X11 Log  with error:

[   183.521] 
X.Org X Server 1.21.1.10
X Protocol Version 11, Revision 0
[   183.522] Current Operating System: Linux archlinux 6.6.7-arch1-1 #1 SMP PREEMPT_DYNAMIC Thu, 14 Dec 2023 03:45:42 +0000 x86_64
[   183.522] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=ee1b768d-2782-40a8-b5e2-9604824cae4b rw loglevel=3 nomodeset
[   183.522]  
[   183.522] Current version of pixman: 0.42.2
[   183.522] 	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
[   183.522] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[   183.523] (==) Log file: "/home/rafal/.local/share/xorg/Xorg.0.log", Time: Sat Dec 23 10:11:07 2023
[   183.591] (==) Using config directory: "/etc/X11/xorg.conf.d"
[   183.591] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[   183.618] (==) No Layout section.  Using the first Screen section.
[   183.618] (**) |-->Screen "Screen0" (0)
[   183.618] (**) |   |-->Monitor "Monitor0"
[   183.619] (**) |   |-->Device "Device0"
[   183.619] (==) Automatically adding devices
[   183.619] (==) Automatically enabling devices
[   183.619] (==) Automatically adding GPU devices
[   183.619] (==) Automatically binding GPU devices
[   183.619] (==) Max clients allowed: 256, resource mask: 0x1fffff
[   183.621] (WW) The directory "/usr/share/fonts/misc" does not exist.
[   183.621] 	Entry deleted from font path.
[   183.621] (WW) The directory "/usr/share/fonts/TTF" does not exist.
[   183.621] 	Entry deleted from font path.
[   183.621] (WW) The directory "/usr/share/fonts/OTF" does not exist.
[   183.621] 	Entry deleted from font path.
[   183.621] (WW) The directory "/usr/share/fonts/Type1" does not exist.
[   183.621] 	Entry deleted from font path.
[   183.621] (WW) The directory "/usr/share/fonts/100dpi" does not exist.
[   183.621] 	Entry deleted from font path.
[   183.622] (WW) The directory "/usr/share/fonts/75dpi" does not exist.
[   183.622] 	Entry deleted from font path.
[   183.622] (==) FontPath set to:
	
[   183.622] (==) ModulePath set to "/usr/lib/xorg/modules"
[   183.622] (II) The server relies on udev to provide the list of input devices.
	If no devices become available, reconfigure udev or disable AutoAddDevices.
[   183.622] (II) Module ABI versions:
[   183.622] 	X.Org ANSI C Emulation: 0.4
[   183.622] 	X.Org Video Driver: 25.2
[   183.622] 	X.Org XInput driver : 24.4
[   183.622] 	X.Org Server Extension : 10.0
[   183.623] (++) using VT number 1

[   183.628] (II) systemd-logind: took control of session /org/freedesktop/login1/session/_31
[   183.630] (II) xfree86: Adding drm device (/dev/dri/card0)
[   183.630] (II) Platform probe for /sys/devices/platform/simple-framebuffer.0/drm/card0
[   183.631] (II) systemd-logind: got fd for /dev/dri/card0 226:0 fd 13 paused 0
[   183.651] (--) PCI:*(1@0:0:0) 10de:0cb1:1043:203c rev 162, Mem @ 0xf2000000/16777216, 0xe0000000/268435456, 0xf0000000/33554432, I/O @ 0x0000d000/128, BIOS @ 0x????????/131072
[   183.651] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[   183.651] (II) LoadModule: "glx"
[   183.652] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[   183.748] (II) Module glx: vendor="X.Org Foundation"
[   183.748] 	compiled for 1.21.1.10, module version = 1.0.0
[   183.748] 	ABI class: X.Org Server Extension, version 10.0
[   183.748] (II) LoadModule: "nouveau"
[   183.751] (II) Loading /usr/lib/xorg/modules/drivers/nouveau_drv.so
[   183.783] (II) Module nouveau: vendor="X.Org Foundation"
[   183.783] 	compiled for 1.21.1.1, module version = 1.0.17
[   183.783] 	Module class: X.Org Video Driver
[   183.783] 	ABI class: X.Org Video Driver, version 25.2
[   183.783] (II) NOUVEAU driver 
[   183.783] (II) NOUVEAU driver for NVIDIA chipset families :
[   183.783] 	RIVA TNT            (NV04)
[   183.783] 	RIVA TNT2           (NV05)
[   183.783] 	GeForce 256         (NV10)
[   183.783] 	GeForce 2           (NV11, NV15)
[   183.783] 	GeForce 4MX         (NV17, NV18)
[   183.783] 	GeForce 3           (NV20)
[   183.783] 	GeForce 4Ti         (NV25, NV28)
[   183.783] 	GeForce FX          (NV3x)
[   183.783] 	GeForce 6           (NV4x)
[   183.784] 	GeForce 7           (G7x)
[   183.784] 	GeForce 8           (G8x)
[   183.784] 	GeForce 9           (G9x)
[   183.784] 	GeForce GTX 2xx/3xx (GT2xx)
[   183.784] 	GeForce GTX 4xx/5xx (GFxxx)
[   183.784] 	GeForce GTX 6xx/7xx (GKxxx)
[   183.784] 	GeForce GTX 9xx     (GMxxx)
[   183.784] 	GeForce GTX 10xx    (GPxxx)
[   183.784] (EE) [drm] Failed to open DRM device for (null): -22
[   184.455] (EE) [drm] Failed to open DRM device for pci:0000:01:00.0: -19
[   184.455] (EE) [drm] Failed to open DRM device for (null): -22
[   184.455] (EE) [drm] Failed to open DRM device for (null): -22
[   184.455] (EE) No devices detected.
[   184.455] (EE) 
Fatal server error:
[   184.455] (EE) no screens found(EE) 
[   184.456] (EE) 
Please consult the The X.Org Foundation support 
	 at http://wiki.x.org
 for help. 
[   184.456] (EE) Please also check the log file at "/home/rafal/.local/share/xorg/Xorg.0.log" for additional information.
[   184.456] (EE) 
[   184.459] (EE) Server terminated with error (1). Closing log file.

I found something similar but no solution
https://www.reddit.com/r/techsupport/co … ll_2_when/
https://bbs.archlinux.org/viewtopic.php?id=255103 (in this post somebody added links to another pages like pastebin, but they are not available anymore, so its difficult to say what was inside)

What can I do in order to solve the issue?

Last edited by rafdre (2023-12-25 21:13:03)

Offline

#2 2023-12-23 17:46:26

rafdre
Member
From: Gdansk
Registered: 2013-09-21
Posts: 79

Re: [SOLVED] X11 issue - Failed to open DRM device for (null): -22

I have found two places which clearly say that I should not use 'nomodeset':
https://wiki.archlinux.org/title/nouveau

Make sure you do not have nomodeset or vga= as a kernel parameter, since Nouveau requires kernel mode-setting.

https://nouveau.freedesktop.org/TroubleShooting.html

The problem is that when I remove it, then system does not boot and ends with last message

Triggering uevents

Maybe the problem is then not with nouveau itself but with the booting.
Whatever it is - how can I solve it?

Offline

#3 2023-12-24 00:01:30

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,265

Re: [SOLVED] X11 issue - Failed to open DRM device for (null): -22

Modesetting is mandatory for a sane GUI session (you could use the VESA driver, but you don't want to)

Can you boot the multi-user.target w/o "nomodeset"?
(2nd link below)

Ceterum censeo: add "initcall_blacklist=simpledrm_platform_driver_init" to the https://wiki.archlinux.org/title/Kernel_parameters

Offline

#4 2023-12-25 21:12:15

rafdre
Member
From: Gdansk
Registered: 2013-09-21
Posts: 79

Re: [SOLVED] X11 issue - Failed to open DRM device for (null): -22

hi,
thanks for response.
no. I was not able to do it.
But after so many tries I gave up with nouveau and following this approach:
I installed fresh Archlinux (booting with 'nomodeset')
after this and some basic settings like network I installed from AUR two packages which seems to work with such old card:
nvidia-340xx
nvidia-340xx-utils

When I tried with package 'nvidia' from standard repositories it didn't work, but I think this was expected since I read somewhere that they do not work with older nvidia cards like mine.

After installing old drivers nvidia-340xx I saw the first sign of success: I was able to log in to archlinux without setting 'nomodeset'.
I assumed that after this installing X11 and the rest will be easy. It was not so much, but manageable.

The main issue I had afterwards was changing resolution of the screen. I installed MATE but was not able to work with any other solution that 640x480.
After 'startx' MATE was staring without issues, but in low resolution.
So in order to resolve it I tried to create own X11 configuration file. Every time I started X11 there were some issue which I always tried to solve with adjusting config file.
One of the last I remember was strange message saying something like 'module ramdac already built-in'.

At the end solution was simple: my X11 started well if I had no config file at all. I read the new X11 server should not need any config.
And screen resolution I solved another way which works fine for me.
Since I am using GRUB I manipulated there parameter 'GRUB_GFXMODE' (in /etc/default/grub) and set desired resolution which also works fine for MATE.

For me the learning I have from all this is:
In case of older nvidia cards is better to install old drivers from AUR and not try with nvidia from main repo or nouveau.

I close this topic as solved.

Offline

Board footer

Powered by FluxBB