You are not logged in.
SOLVED summary:
I previously had Optimus Manager installed, which interfered with the Xorg pre-start setup.
This issue led to the X server failing to start and prevented the display manager from launching. Removing Optimus Manager resolved the problem, allowing the X server to function correctly and enabling the display manager to start without issues.
As the title suggests, I was trying to swtich from the open source nvidia driver nouevea to the proprietary nvidia-dkms (the one I went with).
First, I did not modify /etc/default/grub to append nvidia-drm.modeset=1 to the GRUB_CMDLINE_LINUX_DEFAULT and then run:
sudo grub-mkconfig -o /boot/grub/grub.cfg
I was able to boot, but simpledrm was activated (resoution significantly reduced) and nvidia driver not loaded.
Running this at runtime fixes everything:
sudo modprobe nvidia_drm modeset=1
I tried this /etc/modprobe.d/ method (https://wiki.archlinux.org/title/Kernel … odprobe.d/), which did not work for some reason. It would not load at boot time.
When adding appending nvidia-drm.modeset=1 to the GRUB_CMDLINE_LINUX_DEFAULT and calling:
sudo grub-mkconfig -o /boot/grub/grub.cfg
I was stuck on clean /dev/sda1.
When switching to the tty (which keeps switching every 3 seconds or somethign back to the clean /dev/sda1), this log in /var/log/Xorg.0.log caught my attention:
[ 470.743]
X.Org X Server 1.21.1.11
X Protocol Version 11, Revision 0
[ 470.743] Current Operating System: Linux arch 6.7.0-arch3-1 #1 SMP PREEMPT_DYNAMIC Sat, 13 Jan 2024 14:37:14 +0000 x86_64
[ 470.743] Kernel command line: BOOT_IMAGE=/vmlinuz-linux root=UUID=f711d72c-8b53-43cd-b34f-03fa2120a0fd rw loglevel=3 quiet nvidia-drm.modeset=1
[ 470.743]
[ 470.743] Current version of pixman: 0.43.0
[ 470.743] Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[ 470.743] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 470.743] (==) Log file: "/var/log/Xorg.0.log", Time: Fri Jan 26 15:48:46 2024
[ 470.743] (==) Using config directory: "/etc/X11/xorg.conf.d"
[ 470.743] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[ 470.744] (==) No Layout section. Using the first Screen section.
[ 470.744] (**) |-->Screen "Screen0" (0)
[ 470.744] (**) | |-->Monitor "<default monitor>"
[ 470.744] (==) No monitor specified for screen "Screen0".
Using a default monitor configuration.
[ 470.744] (==) Automatically adding devices
[ 470.744] (==) Automatically enabling devices
[ 470.744] (==) Automatically adding GPU devices
[ 470.744] (==) Automatically binding GPU devices
[ 470.744] (==) Max clients allowed: 256, resource mask: 0x1fffff
[ 470.744] (WW) The directory "/usr/share/fonts/misc" does not exist.
[ 470.744] Entry deleted from font path.
[ 470.744] (WW) The directory "/usr/share/fonts/Type1" does not exist.
[ 470.744] Entry deleted from font path.
[ 470.744] (==) FontPath set to:
/usr/share/fonts/TTF,
/usr/share/fonts/OTF,
/usr/share/fonts/100dpi,
/usr/share/fonts/75dpi
[ 470.744] (==) ModulePath set to "/usr/lib/xorg/modules"
[ 470.744] (II) The server relies on udev to provide the list of input devices.
If no devices become available, reconfigure udev or disable AutoAddDevices.
[ 470.744] (II) Module ABI versions:
[ 470.744] X.Org ANSI C Emulation: 0.4
[ 470.744] X.Org Video Driver: 25.2
[ 470.744] X.Org XInput driver : 24.4
[ 470.744] X.Org Server Extension : 10.0
[ 470.744] (++) using VT number 1
[ 470.744] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration
[ 470.746] (--) PCI:*(1@0:0:0) 10de:1f50:103c:8574 rev 161, Mem @ 0xbb000000/16777216, 0x90000000/268435456, 0xa0000000/33554432, I/O @ 0x00004000/128, BIOS @ 0x????????/131072
[ 470.746] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[ 470.746] (II) LoadModule: "glx"
[ 470.746] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[ 470.747] (II) Module glx: vendor="X.Org Foundation"
[ 470.747] compiled for 1.21.1.11, module version = 1.0.0
[ 470.747] ABI class: X.Org Server Extension, version 10.0
[ 470.747] (==) Matched nouveau as autoconfigured driver 0
[ 470.747] (==) Matched nv as autoconfigured driver 1
[ 470.747] (==) Matched modesetting as autoconfigured driver 2
[ 470.747] (==) Matched fbdev as autoconfigured driver 3
[ 470.747] (==) Matched vesa as autoconfigured driver 4
[ 470.747] (==) Assigned the driver to the xf86ConfigLayout
[ 470.747] (II) LoadModule: "nouveau"
[ 470.747] (WW) Warning, couldn't open module nouveau
[ 470.747] (EE) Failed to load module "nouveau" (module does not exist, 0)
[ 470.747] (II) LoadModule: "nv"
[ 470.747] (WW) Warning, couldn't open module nv
[ 470.747] (EE) Failed to load module "nv" (module does not exist, 0)
[ 470.747] (II) LoadModule: "modesetting"
[ 470.747] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[ 470.748] (II) Module modesetting: vendor="X.Org Foundation"
[ 470.748] compiled for 1.21.1.11, module version = 1.21.1
[ 470.748] Module class: X.Org Video Driver
[ 470.748] ABI class: X.Org Video Driver, version 25.2
[ 470.748] (II) LoadModule: "fbdev"
[ 470.748] (WW) Warning, couldn't open module fbdev
[ 470.748] (EE) Failed to load module "fbdev" (module does not exist, 0)
[ 470.748] (II) LoadModule: "vesa"
[ 470.748] (WW) Warning, couldn't open module vesa
[ 470.748] (EE) Failed to load module "vesa" (module does not exist, 0)
[ 470.748] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[ 470.748] (EE) open /dev/dri/card0: No such file or directory
[ 470.748] (WW) Falling back to old probe method for modesetting
[ 470.748] (EE) open /dev/dri/card0: No such file or directory
[ 470.748] (EE) Screen 0 deleted because of no matching config section.
[ 470.748] (II) UnloadModule: "modesetting"
[ 470.748] (EE) Device(s) detected, but none match those in the config file.
[ 470.748] (EE)
Fatal server error:
[ 470.748] (EE) no screens found(EE)
[ 470.748] (EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
[ 470.748] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[ 470.748] (EE)
[ 470.750] (EE) Server terminated with error (1). Closing log file.
It seems odd to me that nouveau is included in any way:
Matched nouveau as autoconfigured driver 0
Matched nv as autoconfigured driver 1
Matched modesetting as autoconfigured driver 2
Matched fbdev as autoconfigured driver 3
Matched vesa as autoconfigured driver 4
Assigned the driver to the xf86ConfigLayout
LoadModule: "nouveau"
Warning, couldn't open module nouveau
Failed to load module "nouveau" (module does not exist, 0)
LoadModule: "nv"
I'm using lxdm as my display manager.
any suggestions on how to proceed?
Last edited by husseljo (2024-01-26 15:58:00)
Offline
Do you not have nvidia-utils installed?
Offline
I have nvidia-utils installed.
Offline
Let's see the output of
$ lspci -k | grep -A 3 -E "(VGA|3D)"
pacman -Qikk nvidia-utils
Offline
pacman -Qikk nvidia-utils
Name : nvidia-utils
Version : 545.29.06-1
Description : NVIDIA drivers utilities
Architecture : x86_64
URL : http://www.nvidia.com/
Licenses : custom
Groups : None
Provides : vulkan-driver opengl-driver nvidia-libgl
Depends On : libglvnd egl-wayland
Optional Deps : nvidia-settings: configuration tool [installed]
xorg-server: Xorg support [installed]
xorg-server-devel: nvidia-xconfig [installed]
opencl-nvidia: OpenCL support
Required By : libglvnd nvidia-dkms nvidia-settings
Optional For : ffmpeg ffmpeg4.4 libvdpau vulkan-icd-loader
Conflicts With : nvidia-libgl
Replaces : nvidia-libgl
Installed Size : 639.75 MiB
Packager : Sven-Hendrik Haase <svenstaro@archlinux.org>
Build Date : Wed 22 Nov 2023 06:27:38 PM EET
Install Date : Thu 25 Jan 2024 10:05:30 PM EET
Install Reason : Explicitly installed
Install Script : Yes
Validated By : Signature
note: I'm running inside arch-chroot now from a live USB
lspci -k | grep -A 2 -E "(VGA|3D)"
lspci: Unable to load libkmod resources: error -2
01:00.0 VGA compatible controller: NVIDIA Corporation TU106BM [GeForce RTX 2070 Mobile / Max-Q] (rev a1)
DeviceName: NVIDIA GeForce RTX 2070 with Max-Q Design
Subsystem: Hewlett-Packard Company TU106BM [GeForce RTX 2070 Mobile / Max-Q]
Offline
Neither of those are what I asked for, and running lspci from the live USB won't help. Boot normally and switch to TTY2 or boot directly to multi-user.target
Offline
"Neither of those are what I asked for"
I genuinely do not understand, do you mean to run it all as a separate command?
So I ran both in the tty now and the same output came, except for:
lspci -k | grep -A 2 -E "(VGA|3D)"
01:00.0 VGA compatible controller: NVIDIA Corporation TU106BM [GeForce RTX 2070 Mobile / Max-Q] (rev a1)
DeviceName: NVIDIA GeForce RTX 2070 with Max-Q Design
Subsystem: Hewlett-Packard Company TU106BM [GeForce RTX 2070 Mobile / Max-Q]
The error line at the beginning is not included.
Offline
Except I asked for -A 3, not -A 2
You also posted the output of pacman -Qi, not -Qikk.
Offline
Oh, my bad.
Here are the updated logs, however the previous log was indeed -Qikk, not Qi.
lspci -k | grep -A 3 -E "(VGA|3D)"
01:00.0 VGA compatible controller: NVIDIA Corporation TU106BM [GeForce RTX 2070 Mobile / Max-Q] (rev a1)
DeviceName: NVIDIA GeForce RTX 2070 with Max-Q Design
Subsystem: Hewlett-Packard Company TU106BM [GeForce RTX 2070 Mobile / Max-Q]
Kernel modules: nouveau, nvidia_drm, nvidia
pacman -Qikk nvidia-utils
Name : nvidia-utils
Version : 545.29.06-1
Description : NVIDIA drivers utilities
Architecture : x86_64
URL : http://www.nvidia.com/
Licenses : custom
Groups : None
Provides : vulkan-driver opengl-driver nvidia-libgl
Depends On : libglvnd egl-wayland
Optional Deps : nvidia-settings: configuration tool [installed]
xorg-server: Xorg support [installed]
xorg-server-devel: nvidia-xconfig [installed]
opencl-nvidia: OpenCL support
Required By : libglvnd nvidia-dkms nvidia-settings
Optional For : ffmpeg ffmpeg4.4 libvdpau vulkan-icd-loader
Conflicts With : nvidia-libgl
Replaces : nvidia-libgl
Installed Size : 639.75 MiB
Packager : Sven-Hendrik Haase <svenstaro@archlinux.org>
Build Date : Wed 22 Nov 2023 06:27:38 PM EET
Install Date : Thu 25 Jan 2024 10:05:30 PM EET
Install Reason : Explicitly installed
Install Script : Yes
Validated By : Signature
nvidia-utils: 229 total files, 0 altered files
Offline
So there is no driver in use for some reason. Do you have nvidia blacklisted somewhere, in /etc/modprobe.d/ maybe?
Try `modprobe nvidia`, maybe it errors out?
Notice on the -Qikk output that you were missing that last line previously
Offline
It's gonnab be #5 …
lspci: Unable to load libkmod resources: error -2
Last edited by seth (2024-01-26 15:30:28)
Online
cat /etc/modprobe.d/*
File: /etc/modprobe.d/droidcam.conf
options v4l2loopback width=1280 height=720
File: /etc/modprobe.d/nvidia-drm.conf
options nvidia-drm modeset=1
modprobe nvidia
modprobe: FATAL: Module nvidia not found in directory /lib/modules/6.6.3-arch1-1
Offline
Maybe, but then nouveau should have loaded
Offline
modprobe nvidia
modprobe: FATAL: Module nvidia not found in directory /lib/modules/6.6.3-arch1-1
AH! So you're booting an old kernel, what does pacman -Q linux show? If it's the same version, this is a partial update problem, you need to fully update your system. If it shows a different version, you're booting the wrong kernel, usually because /boot wasn't mounted when you updated.
Offline
[ 470.743] Current Operating System: Linux arch 6.7.0-arch3-1 #1 SMP PREEMPT_DYNAMIC Sat, 13 Jan 2024 14:37:14 +0000 x86_64
Why are you no running 6.6.3-arch1-1 ?
Edit: are you trying to do this from a chroot after booting the install iso?
Last edited by seth (2024-01-26 15:32:40)
Online
My bad guys I was running inside arch-chroot again and forgot your previous instructions of only running in tty.
modprobe nvidia
gives no errors
pacman -Q
linux 6.7.arch3-1
Offline
And what's lspci in that context?
Please post your complete system journal for the boot:
sudo journalctl -b | curl -F 'file=@-' 0x0.st
Online
what do you mean by "lspci in that context"?
lspci -k | grep -A 3 -E "(VGA|3D)"
01:00.0 VGA compatible controller: NVIDIA Corporation TU106BM [GeForce RTX 2070 Mobile / Max-Q] (rev a1)
DeviceName: NVIDIA GeForce RTX 2070 with Max-Q Design
Subsystem: Hewlett-Packard Company TU106BM [GeForce RTX 2070 Mobile / Max-Q]
Kernel driver in use: nvidia
Running the following:
sudo journalctl -b | curl -F 'file=@-' 0x0.st
Output= http://0x0.st/HGli.txt
Offline
Jan 26 17:33:04 arch kernel: Kernel command line: BOOT_IMAGE=/vmlinuz-linux root=UUID=f711d72c-8b53-43cd-b34f-03fa2120a0fd rw loglevel=3 quiet nvidia-drm.modeset=1
Jan 26 17:33:04 arch kernel: nvidia: loading out-of-tree module taints kernel.
…
Jan 26 17:33:06 arch python3[636]: [40] INFO: Available modules: ['nouveau', 'nvidia', 'nvidia_drm', 'nvidia_modeset', 'nvidia_uvm']
Jan 26 17:33:06 arch python3[636]: [40] INFO: Unloading modules ['nvidia_drm', 'nvidia_modeset', 'nvidia_uvm', 'nvidia'] (if loaded)
Jan 26 17:33:06 arch kernel: [drm] [nvidia-drm] [GPU ID 0x00000100] Unloading driver
Remove optimus-manager
Online
Looks like optimus-manager is the problem. Get rid of that
Edit: guess I need to read faster!
Last edited by Scimmia (2024-01-26 15:52:38)
Offline
Removing optimus-manager did it for me guys. Thank you for your help!!
Offline