You are not logged in.

#1 2021-05-18 13:43:07

gufide
Member
Registered: 2013-05-23
Posts: 12

[SOLVED] startx command system freeze nvidia

I had a stable system for about 6 years without major problems. After an update, it was freezing on boot. I figured it was a problem with X, but I did not managed to fix it. I needed to reinstall it anyway, since I wanted to switch to EFI  boot instead of the legacy bios.

Now that I have reinstalled it, xserver still fail. Surprise surprise, I have an nvidia card.

My system is a i7 4790k, with an Nvidia GTX 1060. It's a desktop PC, I don't have optimus or that kind of things.

When I did all my other Arch installation, simply installing the nvidia package was good enough. Now when I install it, it freezes again! It works with nouveau, but only running the window manager is hitting the limit for that driver, and the apps I develop need a working OpenGL 4.6 installation.

I swore to myself to pick an AMD card next, but with the current market, it's not really possible for me.

Anyways, here's the Xorg.0.log file:

[   340.918] (WW) Failed to open protocol names file lib/xorg/protocol.txt
[   340.919]
X.Org X Server 1.20.11
X Protocol Version 11, Revision 0
[   340.919] Build Operating System: Linux Archlinux
[   340.919] Current Operating System: Linux comput1 5.11.16-arch1-1 #1 SMP PREEMPT Wed, 21 Apr 2021 17:22:13 +0000 x86_64
[   340.919] Kernel command line: initrd=\initramfs-linux.img root=PARTUUID=51d02ab9-adc1-40bb-92a5-1625c33b412b rw intel_pstate=no_hwp
[   340.919] Build Date: 13 April 2021  03:12:10PM
[   340.919]
[   340.919] Current version of pixman: 0.40.0
[   340.919] 	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
[   340.919] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[   340.919] (==) Log file: "/home/master/.local/share/xorg/Xorg.0.log", Time: Tue May 18 09:27:19 2021
[   340.920] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[   340.921] (==) No Layout section.  Using the first Screen section.
[   340.921] (==) No screen section available. Using defaults.
[   340.921] (**) |-->Screen "Default Screen Section" (0)
[   340.921] (**) |   |-->Monitor "<default monitor>"
[   340.921] (==) No monitor specified for screen "Default Screen Section".
	Using a default monitor configuration.
[   340.921] (==) Automatically adding devices
[   340.921] (==) Automatically enabling devices
[   340.921] (==) Automatically adding GPU devices
[   340.921] (==) Automatically binding GPU devices
[   340.921] (==) Max clients allowed: 256, resource mask: 0x1fffff
[   340.922] (WW) The directory "/usr/share/fonts/misc" does not exist.
[   340.922] 	Entry deleted from font path.
[   340.922] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/TTF".
[   340.922] 	Entry deleted from font path.
[   340.922] 	(Run 'mkfontdir' on "/usr/share/fonts/TTF").
[   340.922] (WW) The directory "/usr/share/fonts/OTF" does not exist.
[   340.922] 	Entry deleted from font path.
[   340.922] (WW) The directory "/usr/share/fonts/Type1" does not exist.
[   340.922] 	Entry deleted from font path.
[   340.922] (WW) The directory "/usr/share/fonts/100dpi" does not exist.
[   340.922] 	Entry deleted from font path.
[   340.922] (WW) The directory "/usr/share/fonts/75dpi" does not exist.
[   340.922] 	Entry deleted from font path.
[   340.922] (==) FontPath set to:

[   340.922] (==) ModulePath set to "/usr/lib/xorg/modules"
[   340.922] (II) The server relies on udev to provide the list of input devices.
	If no devices become available, reconfigure udev or disable AutoAddDevices.
[   340.922] (II) Module ABI versions:
[   340.922] 	X.Org ANSI C Emulation: 0.4
[   340.922] 	X.Org Video Driver: 24.1
[   340.922] 	X.Org XInput driver : 24.1
[   340.922] 	X.Org Server Extension : 10.0
[   340.922] (++) using VT number 1

[   340.923] (II) systemd-logind: took control of session /org/freedesktop/login1/session/_31
[   340.923] (II) xfree86: Adding drm device (/dev/dri/card0)
[   340.923] (II) systemd-logind: got fd for /dev/dri/card0 226:0 fd 10 paused 0
[   340.924] (**) OutputClass "nvidia" ModulePath extended to "/usr/lib/nvidia/xorg,/usr/lib/xorg/modules,/usr/lib/xorg/modules"
[   340.925] (--) PCI:*(2@0:0:0) 10de:1c02:1043:863b rev 161, Mem @ 0xde000000/16777216, 0xc0000000/268435456, 0xd0000000/33554432, I/O @ 0x0000e000/128, BIOS @ 0x????????/131072
[   340.925] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[   340.925] (II) LoadModule: "glx"
[   340.926] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[   340.932] (II) Module glx: vendor="X.Org Foundation"
[   340.932] 	compiled for 1.20.11, module version = 1.0.0
[   340.932] 	ABI class: X.Org Server Extension, version 10.0
[   340.932] (II) Applying OutputClass "nvidia" to /dev/dri/card0
[   340.932] 	loading driver: nvidia
[   340.932] (==) Matched nvidia as autoconfigured driver 0
[   340.932] (==) Matched nouveau as autoconfigured driver 1
[   340.932] (==) Matched nv as autoconfigured driver 2
[   340.932] (==) Matched modesetting as autoconfigured driver 3
[   340.932] (==) Matched fbdev as autoconfigured driver 4
[   340.932] (==) Matched vesa as autoconfigured driver 5
[   340.932] (==) Assigned the driver to the xf86ConfigLayout
[   340.932] (II) LoadModule: "nvidia"
[   340.932] (II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
[   340.936] (II) Module nvidia: vendor="NVIDIA Corporation"
[   340.936] 	compiled for 1.6.99.901, module version = 1.0.0
[   340.936] 	Module class: X.Org Video Driver
[   340.937] (II) LoadModule: "nouveau"
[   340.937] (WW) Warning, couldn't open module nouveau
[   340.937] (EE) Failed to load module "nouveau" (module does not exist, 0)
[   340.937] (II) LoadModule: "nv"
[   340.937] (WW) Warning, couldn't open module nv
[   340.937] (EE) Failed to load module "nv" (module does not exist, 0)
[   340.937] (II) LoadModule: "modesetting"
[   340.937] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[   340.939] (II) Module modesetting: vendor="X.Org Foundation"
[   340.939] 	compiled for 1.20.11, module version = 1.20.11
[   340.939] 	Module class: X.Org Video Driver
[   340.939] 	ABI class: X.Org Video Driver, version 24.1
[   340.939] (II) LoadModule: "fbdev"
[   340.939] (WW) Warning, couldn't open module fbdev
[   340.939] (EE) Failed to load module "fbdev" (module does not exist, 0)
[   340.939] (II) LoadModule: "vesa"
[   340.939] (WW) Warning, couldn't open module vesa
[   340.939] (EE) Failed to load module "vesa" (module does not exist, 0)
[   340.939] (II) NVIDIA dlloader X Driver  465.24.02  Thu Apr  8 17:55:59 UTC 2021
[   340.939] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[   340.939] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[   340.939] xf86EnableIOPorts: failed to set IOPL for I/O (Operation not permitted)
[   340.939] (II) systemd-logind: releasing fd for 226:0
[   340.940] (II) Loading sub module "fb"
[   340.940] (II) LoadModule: "fb"
[   340.940] (II) Loading /usr/lib/xorg/modules/libfb.so
[   340.941] (II) Module fb: vendor="X.Org Foundation"
[   340.941] 	compiled for 1.20.11, module version = 1.0.0
[   340.941] 	ABI class: X.Org ANSI C Emulation, version 0.4
[   340.941] (II) Loading sub module "wfb"
[   340.941] (II) LoadModule: "wfb"
[   340.941] (II) Loading /usr/lib/xorg/modules/libwfb.so
[   340.942] (II) Module wfb: vendor="X.Org Foundation"
[   340.942] 	compiled for 1.20.11, module version = 1.0.0
[   340.942] 	ABI class: X.Org ANSI C Emulation, version 0.4
[   340.942] (II) Loading sub module "ramdac"
[   340.942] (II) LoadModule: "ramdac"
[   340.942] (II) Module "ramdac" already built-in
[   340.944] (WW) Falling back to old probe method for modesetting
[   340.944] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[   340.944] (II) NVIDIA(0): Creating default Display subsection in Screen section
	"Default Screen Section" for depth/fbbpp 24/32
[   340.944] (==) NVIDIA(0): Depth 24, (==) framebuffer bpp 32
[   340.944] (==) NVIDIA(0): RGB weight 888
[   340.944] (==) NVIDIA(0): Default visual is TrueColor
[   340.944] (==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
[   340.945] (II) Applying OutputClass "nvidia" options to /dev/dri/card0
[   340.945] (**) NVIDIA(0): Option "AllowEmptyInitialConfiguration"
[   340.945] (**) NVIDIA(0): Enabling 2D acceleration
[   340.945] (II) Loading sub module "glxserver_nvidia"
[   340.945] (II) LoadModule: "glxserver_nvidia"
[   340.945] (II) Loading /usr/lib/nvidia/xorg/libglxserver_nvidia.so
[   340.982] (II) Module glxserver_nvidia: vendor="NVIDIA Corporation"
[   340.982] 	compiled for 1.6.99.901, module version = 1.0.0
[   340.982] 	Module class: X.Org Server Extension
[   340.982] (II) NVIDIA GLX Module  465.24.02  Thu Apr  8 17:53:33 UTC 2021
[   340.983] (II) NVIDIA: The X server supports PRIME Render Offload.

If you need any other informations, please let me know. I really want arch to work again on this machine.

Last edited by gufide (2021-05-18 15:40:58)

Offline

#2 2021-05-18 13:50:37

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

Re: [SOLVED] startx command system freeze nvidia

That log shows a couple of outdated system versions in particular the nvidia driver and the kernel, run an actual upgrade.

In case that doesn't help, there is currently a known issue with a few display adapter and current driver combinations, in which case you'd need to downgrade nvidia to the 460xx iteration of the driver, see the following thread in general and the linked post in particular: https://bbs.archlinux.org/viewtopic.php … 6#p1968236 for how to downgrade the driver.

Last edited by V1del (2021-05-18 13:51:11)

Offline

#3 2021-05-18 14:16:50

gufide
Member
Registered: 2013-05-23
Posts: 12

Re: [SOLVED] startx command system freeze nvidia

Thank you for the quick response.

For the records, here's the xorg server log with the updated system:

[   340.918] (WW) Failed to open protocol names file lib/xorg/protocol.txt
[   340.919]
X.Org X Server 1.20.11
X Protocol Version 11, Revision 0
[   340.919] Build Operating System: Linux Archlinux
[   340.919] Current Operating System: Linux comput1 5.11.16-arch1-1 #1 SMP PREEMPT Wed, 21 Apr 2021 17:22:13 +0000 x86_64
[   340.919] Kernel command line: initrd=\initramfs-linux.img root=PARTUUID=51d02ab9-adc1-40bb-92a5-1625c33b412b rw intel_pstate=no_hwp
[   340.919] Build Date: 13 April 2021  03:12:10PM
[   340.919]
[   340.919] Current version of pixman: 0.40.0
[   340.919] 	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
[   340.919] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[   340.919] (==) Log file: "/home/master/.local/share/xorg/Xorg.0.log", Time: Tue May 18 09:27:19 2021
[   340.920] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[   340.921] (==) No Layout section.  Using the first Screen section.
[   340.921] (==) No screen section available. Using defaults.
[   340.921] (**) |-->Screen "Default Screen Section" (0)
[   340.921] (**) |   |-->Monitor "<default monitor>"
[   340.921] (==) No monitor specified for screen "Default Screen Section".
	Using a default monitor configuration.
[   340.921] (==) Automatically adding devices
[   340.921] (==) Automatically enabling devices
[   340.921] (==) Automatically adding GPU devices
[   340.921] (==) Automatically binding GPU devices
[   340.921] (==) Max clients allowed: 256, resource mask: 0x1fffff
[   340.922] (WW) The directory "/usr/share/fonts/misc" does not exist.
[   340.922] 	Entry deleted from font path.
[   340.922] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/TTF".
[   340.922] 	Entry deleted from font path.
[   340.922] 	(Run 'mkfontdir' on "/usr/share/fonts/TTF").
[   340.922] (WW) The directory "/usr/share/fonts/OTF" does not exist.
[   340.922] 	Entry deleted from font path.
[   340.922] (WW) The directory "/usr/share/fonts/Type1" does not exist.
[   340.922] 	Entry deleted from font path.
[   340.922] (WW) The directory "/usr/share/fonts/100dpi" does not exist.
[   340.922] 	Entry deleted from font path.
[   340.922] (WW) The directory "/usr/share/fonts/75dpi" does not exist.
[   340.922] 	Entry deleted from font path.
[   340.922] (==) FontPath set to:

[   340.922] (==) ModulePath set to "/usr/lib/xorg/modules"
[   340.922] (II) The server relies on udev to provide the list of input devices.
	If no devices become available, reconfigure udev or disable AutoAddDevices.
[   340.922] (II) Module ABI versions:
[   340.922] 	X.Org ANSI C Emulation: 0.4
[   340.922] 	X.Org Video Driver: 24.1
[   340.922] 	X.Org XInput driver : 24.1
[   340.922] 	X.Org Server Extension : 10.0
[   340.922] (++) using VT number 1

[   340.923] (II) systemd-logind: took control of session /org/freedesktop/login1/session/_31
[   340.923] (II) xfree86: Adding drm device (/dev/dri/card0)
[   340.923] (II) systemd-logind: got fd for /dev/dri/card0 226:0 fd 10 paused 0
[   340.924] (**) OutputClass "nvidia" ModulePath extended to "/usr/lib/nvidia/xorg,/usr/lib/xorg/modules,/usr/lib/xorg/modules"
[   340.925] (--) PCI:*(2@0:0:0) 10de:1c02:1043:863b rev 161, Mem @ 0xde000000/16777216, 0xc0000000/268435456, 0xd0000000/33554432, I/O @ 0x0000e000/128, BIOS @ 0x????????/131072
[   340.925] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[   340.925] (II) LoadModule: "glx"
[   340.926] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[   340.932] (II) Module glx: vendor="X.Org Foundation"
[   340.932] 	compiled for 1.20.11, module version = 1.0.0
[   340.932] 	ABI class: X.Org Server Extension, version 10.0
[   340.932] (II) Applying OutputClass "nvidia" to /dev/dri/card0
[   340.932] 	loading driver: nvidia
[   340.932] (==) Matched nvidia as autoconfigured driver 0
[   340.932] (==) Matched nouveau as autoconfigured driver 1
[   340.932] (==) Matched nv as autoconfigured driver 2
[   340.932] (==) Matched modesetting as autoconfigured driver 3
[   340.932] (==) Matched fbdev as autoconfigured driver 4
[   340.932] (==) Matched vesa as autoconfigured driver 5
[   340.932] (==) Assigned the driver to the xf86ConfigLayout
[   340.932] (II) LoadModule: "nvidia"
[   340.932] (II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
[   340.936] (II) Module nvidia: vendor="NVIDIA Corporation"
[   340.936] 	compiled for 1.6.99.901, module version = 1.0.0
[   340.936] 	Module class: X.Org Video Driver
[   340.937] (II) LoadModule: "nouveau"
[   340.937] (WW) Warning, couldn't open module nouveau
[   340.937] (EE) Failed to load module "nouveau" (module does not exist, 0)
[   340.937] (II) LoadModule: "nv"
[   340.937] (WW) Warning, couldn't open module nv
[   340.937] (EE) Failed to load module "nv" (module does not exist, 0)
[   340.937] (II) LoadModule: "modesetting"
[   340.937] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[   340.939] (II) Module modesetting: vendor="X.Org Foundation"
[   340.939] 	compiled for 1.20.11, module version = 1.20.11
[   340.939] 	Module class: X.Org Video Driver
[   340.939] 	ABI class: X.Org Video Driver, version 24.1
[   340.939] (II) LoadModule: "fbdev"
[   340.939] (WW) Warning, couldn't open module fbdev
[   340.939] (EE) Failed to load module "fbdev" (module does not exist, 0)
[   340.939] (II) LoadModule: "vesa"
[   340.939] (WW) Warning, couldn't open module vesa
[   340.939] (EE) Failed to load module "vesa" (module does not exist, 0)
[   340.939] (II) NVIDIA dlloader X Driver  465.24.02  Thu Apr  8 17:55:59 UTC 2021
[   340.939] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[   340.939] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[   340.939] xf86EnableIOPorts: failed to set IOPL for I/O (Operation not permitted)
[   340.939] (II) systemd-logind: releasing fd for 226:0
[   340.940] (II) Loading sub module "fb"
[   340.940] (II) LoadModule: "fb"
[   340.940] (II) Loading /usr/lib/xorg/modules/libfb.so
[   340.941] (II) Module fb: vendor="X.Org Foundation"
[   340.941] 	compiled for 1.20.11, module version = 1.0.0
[   340.941] 	ABI class: X.Org ANSI C Emulation, version 0.4
[   340.941] (II) Loading sub module "wfb"
[   340.941] (II) LoadModule: "wfb"
[   340.941] (II) Loading /usr/lib/xorg/modules/libwfb.so
[   340.942] (II) Module wfb: vendor="X.Org Foundation"
[   340.942] 	compiled for 1.20.11, module version = 1.0.0
[   340.942] 	ABI class: X.Org ANSI C Emulation, version 0.4
[   340.942] (II) Loading sub module "ramdac"
[   340.942] (II) LoadModule: "ramdac"
[   340.942] (II) Module "ramdac" already built-in
[   340.944] (WW) Falling back to old probe method for modesetting
[   340.944] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[   340.944] (II) NVIDIA(0): Creating default Display subsection in Screen section
	"Default Screen Section" for depth/fbbpp 24/32
[   340.944] (==) NVIDIA(0): Depth 24, (==) framebuffer bpp 32
[   340.944] (==) NVIDIA(0): RGB weight 888
[   340.944] (==) NVIDIA(0): Default visual is TrueColor
[   340.944] (==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
[   340.945] (II) Applying OutputClass "nvidia" options to /dev/dri/card0
[   340.945] (**) NVIDIA(0): Option "AllowEmptyInitialConfiguration"
[   340.945] (**) NVIDIA(0): Enabling 2D acceleration
[   340.945] (II) Loading sub module "glxserver_nvidia"
[   340.945] (II) LoadModule: "glxserver_nvidia"
[   340.945] (II) Loading /usr/lib/nvidia/xorg/libglxserver_nvidia.so
[   340.982] (II) Module glxserver_nvidia: vendor="NVIDIA Corporation"
[   340.982] 	compiled for 1.6.99.901, module version = 1.0.0
[   340.982] 	Module class: X.Org Server Extension
[   340.982] (II) NVIDIA GLX Module  465.24.02  Thu Apr  8 17:53:33 UTC 2021
[   340.983] (II) NVIDIA: The X server supports PRIME Render Offload.

EDIT: I'll try downgrading my packages as they suggest in the thread you posted. I'll keep you updated on how it goes.

Last edited by gufide (2021-05-18 14:17:39)

Offline

#4 2021-05-18 15:03:07

gufide
Member
Registered: 2013-05-23
Posts: 12

Re: [SOLVED] startx command system freeze nvidia

Okay, I downgraded the kernel and the nvidia packages.

I installed those:

linux-5.11.13.arch1-1-x86_64.pkg.tar.zst
linux-headers-5.11.13.arch1-1-x86_64.pkg.tar.zst
nvidia-460.67-5-x86_64.pkg.tar.zst
nvidia-dkms-460.67-1-x86_64.pkg.tar.zst
nvidia-settings-460.67-1-x86_64.pkg.tar.zst
nvidia-utils-460.67-1-x86_64.pkg.tar.zst

And also lib32-nvidia-utils-460.67-1-x86_64.pkg.tar.zst.

XServer still won't start, but at least it won't hang my machine.

Here's the new log:

[    11.891] (WW) Failed to open protocol names file lib/xorg/protocol.txt
[    11.891]
X.Org X Server 1.20.11
X Protocol Version 11, Revision 0
[    11.891] Build Operating System: Linux Archlinux
[    11.892] Current Operating System: Linux comput1 5.11.13-arch1-1 #1 SMP PREEMPT Sat, 10 Apr 2021 20:47:14 +0000 x86_64
[    11.892] Kernel command line: initrd=\initramfs-linux.img root=PARTUUID=51d02ab9-adc1-40bb-92a5-1625c33b412b rw intel_pstate=no_hwp
[    11.892] Build Date: 13 April 2021  03:12:10PM
[    11.892]
[    11.892] Current version of pixman: 0.40.0
[    11.892] 	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
[    11.892] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[    11.892] (==) Log file: "/home/master/.local/share/xorg/Xorg.0.log", Time: Tue May 18 10:57:48 2021
[    11.893] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[    11.894] (==) No Layout section.  Using the first Screen section.
[    11.894] (==) No screen section available. Using defaults.
[    11.894] (**) |-->Screen "Default Screen Section" (0)
[    11.894] (**) |   |-->Monitor "<default monitor>"
[    11.894] (==) No monitor specified for screen "Default Screen Section".
	Using a default monitor configuration.
[    11.894] (==) Automatically adding devices
[    11.894] (==) Automatically enabling devices
[    11.894] (==) Automatically adding GPU devices
[    11.894] (==) Automatically binding GPU devices
[    11.894] (==) Max clients allowed: 256, resource mask: 0x1fffff
[    11.895] (WW) The directory "/usr/share/fonts/misc" does not exist.
[    11.895] 	Entry deleted from font path.
[    11.895] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/TTF".
[    11.895] 	Entry deleted from font path.
[    11.895] 	(Run 'mkfontdir' on "/usr/share/fonts/TTF").
[    11.895] (WW) The directory "/usr/share/fonts/OTF" does not exist.
[    11.895] 	Entry deleted from font path.
[    11.895] (WW) The directory "/usr/share/fonts/Type1" does not exist.
[    11.895] 	Entry deleted from font path.
[    11.895] (WW) The directory "/usr/share/fonts/100dpi" does not exist.
[    11.895] 	Entry deleted from font path.
[    11.895] (WW) The directory "/usr/share/fonts/75dpi" does not exist.
[    11.895] 	Entry deleted from font path.
[    11.895] (==) FontPath set to:

[    11.895] (==) ModulePath set to "/usr/lib/xorg/modules"
[    11.895] (II) The server relies on udev to provide the list of input devices.
	If no devices become available, reconfigure udev or disable AutoAddDevices.
[    11.895] (II) Module ABI versions:
[    11.895] 	X.Org ANSI C Emulation: 0.4
[    11.895] 	X.Org Video Driver: 24.1
[    11.895] 	X.Org XInput driver : 24.1
[    11.895] 	X.Org Server Extension : 10.0
[    11.895] (++) using VT number 1

[    11.896] (II) systemd-logind: took control of session /org/freedesktop/login1/session/_31
[    11.897] (--) PCI:*(2@0:0:0) 10de:1c02:1043:863b rev 161, Mem @ 0xde000000/16777216, 0xc0000000/268435456, 0xd0000000/33554432, I/O @ 0x0000e000/128, BIOS @ 0x????????/131072
[    11.897] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[    11.897] (II) LoadModule: "glx"
[    11.898] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[    11.903] (II) Module glx: vendor="X.Org Foundation"
[    11.903] 	compiled for 1.20.11, module version = 1.0.0
[    11.903] 	ABI class: X.Org Server Extension, version 10.0
[    11.903] (==) Matched nouveau as autoconfigured driver 0
[    11.903] (==) Matched nv as autoconfigured driver 1
[    11.903] (==) Matched modesetting as autoconfigured driver 2
[    11.903] (==) Matched fbdev as autoconfigured driver 3
[    11.903] (==) Matched vesa as autoconfigured driver 4
[    11.903] (==) Assigned the driver to the xf86ConfigLayout
[    11.903] (II) LoadModule: "nouveau"
[    11.903] (WW) Warning, couldn't open module nouveau
[    11.903] (EE) Failed to load module "nouveau" (module does not exist, 0)
[    11.903] (II) LoadModule: "nv"
[    11.903] (WW) Warning, couldn't open module nv
[    11.903] (EE) Failed to load module "nv" (module does not exist, 0)
[    11.903] (II) LoadModule: "modesetting"
[    11.903] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[    11.905] (II) Module modesetting: vendor="X.Org Foundation"
[    11.905] 	compiled for 1.20.11, module version = 1.20.11
[    11.905] 	Module class: X.Org Video Driver
[    11.905] 	ABI class: X.Org Video Driver, version 24.1
[    11.905] (II) LoadModule: "fbdev"
[    11.905] (WW) Warning, couldn't open module fbdev
[    11.905] (EE) Failed to load module "fbdev" (module does not exist, 0)
[    11.905] (II) LoadModule: "vesa"
[    11.905] (WW) Warning, couldn't open module vesa
[    11.905] (EE) Failed to load module "vesa" (module does not exist, 0)
[    11.905] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[    11.905] (EE) open /dev/dri/card0: No such file or directory
[    11.905] (WW) Falling back to old probe method for modesetting
[    11.905] (EE) open /dev/dri/card0: No such file or directory
[    11.905] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[    11.905] (EE) Screen 0 deleted because of no matching config section.
[    11.905] (II) UnloadModule: "modesetting"
[    11.905] (EE) Device(s) detected, but none match those in the config file.
[    11.905] (EE)
Fatal server error:
[    11.905] (EE) no screens found(EE)
[    11.905] (EE)
Please consult the The X.Org Foundation support
	 at http://wiki.x.org
 for help.
[    11.905] (EE) Please also check the log file at "/home/master/.local/share/xorg/Xorg.0.log" for additional information.
[    11.905] (EE)
[    11.911] (EE) Server terminated with error (1). Closing log file.

Would it be because nvidia-dkms needs kernel parameters to work properly?

Thank you very much for the help.

Offline

#5 2021-05-18 15:26:29

gufide
Member
Registered: 2013-05-23
Posts: 12

Re: [SOLVED] startx command system freeze nvidia

Okay, so I tried to make DKMS to work, but the mkinitcpio did not found the nvidia modules:

$ sudo mkinitcpio -p linux
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'default'
  -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
==> Starting build: 5.11.13-arch1-1
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [autodetect]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: xhci_pci
  -> Running build hook: [filesystems]
  -> Running build hook: [keyboard]
  -> Running build hook: [fsck]
==> ERROR: module not found: `nvidia'
==> ERROR: module not found: `nvidia_modeset'
==> ERROR: module not found: `dvidia_uvm'
==> ERROR: module not found: `nvidia_drm'
==> Generating module dependencies
==> Creating zstd-compressed initcpio image: /boot/initramfs-linux.img
==> WARNING: errors were encountered during the build. The image may not be complete.
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'fallback'
  -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-fallback.img -S autodetect
==> Starting build: 5.11.13-arch1-1
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: wd719x
==> WARNING: Possibly missing firmware for module: aic94xx
==> WARNING: Possibly missing firmware for module: xhci_pci
  -> Running build hook: [filesystems]
  -> Running build hook: [keyboard]
  -> Running build hook: [fsck]
==> ERROR: module not found: `nvidia'
==> ERROR: module not found: `nvidia_modeset'
==> ERROR: module not found: `dvidia_uvm'
==> ERROR: module not found: `nvidia_drm'
==> Generating module dependencies
==> Creating zstd-compressed initcpio image: /boot/initramfs-linux-fallback.img
==> WARNING: errors were encountered during the build. The image may not be complete.

So I tried to manually build the modules, but it also fails:

$ sudo dkms install -m nvidia -v 460.67
Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area...
'make' -j8 IGNORE_PREEMPT_RT_PRESENCE=1 NV_EXCLUDE_BUILD_MODULES='__EXCLUDE_MODULES' KERNEL_UNAME=5.11.13-arch1-1 IGNORE_CC_MISMATCH='__IGNORE_CC_MISMATCH' modules......(bad exit status: 2)
Error! Bad return status for module build on kernel: 5.11.13-arch1-1 (x86_64)
Consult /var/lib/dkms/nvidia/460.67/build/make.log for more information.
[master@comput1 ~]$ cat /var/lib/dkms/nvidia/460.67/build/make.log
DKMS make.log for nvidia-460.67 for kernel 5.11.13-arch1-1 (x86_64)
Tue May 18 11:20:34 AM EDT 2021
make[1]: Entering directory '/usr/lib/modules/5.11.13-arch1-1/build'
scripts/Makefile.lib:8: 'always' is deprecated. Please use 'always-y' instead
  SYMLINK /var/lib/dkms/nvidia/460.67/build/nvidia/nv-kernel.o
  SYMLINK /var/lib/dkms/nvidia/460.67/build/nvidia-modeset/nv-modeset-kernel.o
 CONFTEST: hash__remap_4k_pfn
 CONFTEST: set_pages_uc
 CONFTEST: list_is_first
 CONFTEST: set_memory_uc
 CONFTEST: set_memory_array_uc
 CONFTEST: set_pages_array_uc
 CONFTEST: acquire_console_sem
 CONFTEST: console_lock
 CONFTEST: ioremap_cache
 CONFTEST: ioremap_wc
 CONFTEST: acpi_walk_namespace
 CONFTEST: sg_alloc_table
 CONFTEST: pci_get_domain_bus_and_slot
 CONFTEST: get_num_physpages
 CONFTEST: efi_enabled
 CONFTEST: pde_data
 CONFTEST: proc_remove
 CONFTEST: pm_vt_switch_required
 CONFTEST: xen_ioemu_inject_msi
 CONFTEST: phys_to_dma
 CONFTEST: get_dma_ops
 CONFTEST: dma_attr_macros
 CONFTEST: dma_map_page_attrs
 CONFTEST: write_cr4
 CONFTEST: of_get_property
 CONFTEST: of_find_node_by_phandle
 CONFTEST: of_node_to_nid
 CONFTEST: pnv_pci_get_npu_dev
 CONFTEST: of_get_ibm_chip_id
 CONFTEST: node_end_pfn
 CONFTEST: pci_bus_address
 CONFTEST: pci_stop_and_remove_bus_device
 CONFTEST: pci_remove_bus_device
 CONFTEST: register_cpu_notifier
 CONFTEST: cpuhp_setup_state
 CONFTEST: dma_map_resource
 CONFTEST: backlight_device_register
 CONFTEST: get_backlight_device_by_name
 CONFTEST: timer_setup
 CONFTEST: pci_enable_msix_range
 CONFTEST: kernel_read_has_pointer_pos_arg
 CONFTEST: kernel_write
 CONFTEST: kthread_create_on_node
 CONFTEST: of_find_matching_node
 CONFTEST: dev_is_pci
 CONFTEST: dma_direct_map_resource
 CONFTEST: tegra_get_platform
 CONFTEST: tegra_bpmp_send_receive
 CONFTEST: flush_cache_all
 CONFTEST: vmf_insert_pfn
 CONFTEST: jiffies_to_timespec
 CONFTEST: ktime_get_raw_ts64
 CONFTEST: ktime_get_real_ts64
 CONFTEST: hlist_for_each_entry
 CONFTEST: full_name_hash
 CONFTEST: pci_enable_atomic_ops_to_root
 CONFTEST: vga_tryget
 CONFTEST: pgprot_decrypted
 CONFTEST: iterate_fd
 CONFTEST: seq_read_iter
 CONFTEST: address_space_init_once
 CONFTEST: kbasename
 CONFTEST: vzalloc
 CONFTEST: wait_on_bit_lock_argument_count
 CONFTEST: bitmap_clear
 CONFTEST: usleep_range
 CONFTEST: radix_tree_empty
 CONFTEST: radix_tree_replace_slot
 CONFTEST: pnv_npu2_init_context
 CONFTEST: cpumask_of_node
 CONFTEST: drm_dev_unref
 CONFTEST: drm_reinit_primary_mode_group
 CONFTEST: get_user_pages_remote
 CONFTEST: get_user_pages
 CONFTEST: drm_gem_object_lookup
 CONFTEST: drm_atomic_state_ref_counting
 CONFTEST: drm_driver_has_gem_prime_res_obj
 CONFTEST: drm_atomic_helper_connector_dpms
 CONFTEST: drm_connector_funcs_have_mode_in_name
 CONFTEST: drm_framebuffer_get
 CONFTEST: drm_gem_object_get
 CONFTEST: drm_format_num_planes
 CONFTEST: drm_dev_put
 CONFTEST: drm_connector_for_each_possible_encoder
 CONFTEST: drm_rotation_available
 CONFTEST: drm_vma_offset_exact_lookup_locked
 CONFTEST: drm_gem_object_put_unlocked
 CONFTEST: is_export_symbol_gpl_of_node_to_nid
 CONFTEST: is_export_symbol_gpl_sme_active
 CONFTEST: is_export_symbol_present_swiotlb_map_sg_attrs
 CONFTEST: is_export_symbol_present_swiotlb_dma_ops
 CONFTEST: is_export_symbol_present___close_fd
 CONFTEST: is_export_symbol_present_close_fd
 CONFTEST: is_export_symbol_present_get_unused_fd
 CONFTEST: is_export_symbol_present_get_unused_fd_flags
 CONFTEST: is_export_symbol_present_screen_info
 CONFTEST: is_export_symbol_present_nvhost_get_default_device
 CONFTEST: is_export_symbol_present_nvhost_syncpt_unit_interface_get_byte_offset
 CONFTEST: is_export_symbol_present_nvhost_syncpt_unit_interface_get_aperture
 CONFTEST: is_export_symbol_present_tegra_dce_register_ipc_client
 CONFTEST: is_export_symbol_present_tegra_dce_unregister_ipc_client
 CONFTEST: is_export_symbol_present_tegra_dce_client_ipc_send_recv
 CONFTEST: is_export_symbol_present_dram_clk_to_mc_clk
 CONFTEST: is_export_symbol_present_get_dram_num_channels
 CONFTEST: is_export_symbol_present_tegra_dram_types
 CONFTEST: is_export_symbol_present_kthread_create_on_node
 CONFTEST: acpi_op_remove
 CONFTEST: outer_flush_all
 CONFTEST: file_operations
 CONFTEST: file_inode
 CONFTEST: kuid_t
 CONFTEST: dma_ops
 CONFTEST: swiotlb_dma_ops
 CONFTEST: noncoherent_swiotlb_dma_ops
 CONFTEST: vm_fault_has_address
 CONFTEST: backlight_properties_type
 CONFTEST: vm_insert_pfn_prot
 CONFTEST: vmf_insert_pfn_prot
 CONFTEST: vm_ops_fault_removed_vma_arg
 CONFTEST: vmbus_channel_has_ringbuffer_page
 CONFTEST: device_driver_of_match_table
 CONFTEST: device_of_node
 CONFTEST: node_states_n_memory
 CONFTEST: kmem_cache_has_kobj_remove_work
 CONFTEST: sysfs_slab_unlink
 CONFTEST: proc_ops
 CONFTEST: timespec64
 CONFTEST: vmalloc_has_pgprot_t_arg
 CONFTEST: acpi_fadt_low_power_s0
 CONFTEST: mm_has_mmap_lock
 CONFTEST: pci_channel_state
 CONFTEST: address_space
 CONFTEST: backing_dev_info
 CONFTEST: mm_context_t
 CONFTEST: vm_fault_t
 CONFTEST: mmu_notifier_ops_invalidate_range
 CONFTEST: drm_bus_present
 CONFTEST: drm_bus_has_bus_type
 CONFTEST: drm_bus_has_get_irq
 CONFTEST: drm_bus_has_get_name
 CONFTEST: drm_driver_has_device_list
 CONFTEST: drm_driver_has_legacy_dev_list
 CONFTEST: drm_driver_has_set_busid
 CONFTEST: drm_crtc_state_has_connectors_changed
 CONFTEST: drm_init_function_args
 CONFTEST: drm_helper_mode_fill_fb_struct
 CONFTEST: drm_master_drop_has_from_release_arg
 CONFTEST: drm_driver_unload_has_int_return_type
 CONFTEST: drm_atomic_helper_crtc_destroy_state_has_crtc_arg
 CONFTEST: drm_mode_object_find_has_file_priv_arg
 CONFTEST: dma_buf_owner
 CONFTEST: drm_connector_list_iter
 CONFTEST: drm_atomic_helper_swap_state_has_stall_arg
 CONFTEST: drm_driver_prime_flag_present
 CONFTEST: drm_gem_object_has_resv
 CONFTEST: drm_crtc_state_has_async_flip
 CONFTEST: drm_crtc_state_has_pageflip_flags
 CONFTEST: drm_format_modifiers_present
 CONFTEST: drm_vma_node_is_allowed_has_tag_arg
 CONFTEST: drm_vma_offset_node_has_readonly
 CONFTEST: drm_display_mode_has_vrefresh
 CONFTEST: drm_driver_master_set_has_int_return_type
 CONFTEST: drm_driver_has_gem_free_object
 CONFTEST: drm_prime_pages_to_sg_has_drm_device_arg
 CONFTEST: drm_driver_has_gem_prime_callbacks
 CONFTEST: drm_crtc_atomic_check_has_atomic_state_arg
 CONFTEST: drm_gem_object_vmap_has_map_arg
 CONFTEST: dom0_kernel_present
 CONFTEST: nvidia_vgpu_kvm_build
 CONFTEST: nvidia_grid_build
 CONFTEST: nvidia_grid_csp_build
 CONFTEST: pm_runtime_available
 CONFTEST: pci_class_multimedia_hd_audio
 CONFTEST: drm_available
 CONFTEST: drm_atomic_available
 CONFTEST: is_export_symbol_gpl_refcount_inc
 CONFTEST: is_export_symbol_gpl_refcount_dec_and_test
 CONFTEST: drm_alpha_blending_available
  CC [M]  /var/lib/dkms/nvidia/460.67/build/nvidia/nv-frontend.o
  CC [M]  /var/lib/dkms/nvidia/460.67/build/nvidia/nv.o
  CC [M]  /var/lib/dkms/nvidia/460.67/build/nvidia/nv-pci.o
  CC [M]  /var/lib/dkms/nvidia/460.67/build/nvidia/nv-acpi.o
  CC [M]  /var/lib/dkms/nvidia/460.67/build/nvidia/nv-cray.o
cc1: error: incompatible gcc/plugin versions
cc1: error: failed to initialize plugin ./scripts/gcc-plugins/structleak_plugin.so
  CC [M]  /var/lib/dkms/nvidia/460.67/build/nvidia/nv-dma.o
cc1: error: incompatible gcc/plugin versions
cc1: error: failed to initialize plugin ./scripts/gcc-plugins/structleak_plugin.so
make[2]: *** [scripts/Makefile.build:279: /var/lib/dkms/nvidia/460.67/build/nvidia/nv-frontend.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [scripts/Makefile.build:279: /var/lib/dkms/nvidia/460.67/build/nvidia/nv.o] Error 1
  CC [M]  /var/lib/dkms/nvidia/460.67/build/nvidia/nv-i2c.o
cc1: error: incompatible gcc/plugin versions
cc1: error: failed to initialize plugin ./scripts/gcc-plugins/structleak_plugin.so
make[2]: *** [scripts/Makefile.build:279: /var/lib/dkms/nvidia/460.67/build/nvidia/nv-pci.o] Error 1
  CC [M]  /var/lib/dkms/nvidia/460.67/build/nvidia/nv-mmap.o
cc1: error: incompatible gcc/plugin versions
cc1: error: failed to initialize plugin ./scripts/gcc-plugins/structleak_plugin.so
make[2]: *** [scripts/Makefile.build:279: /var/lib/dkms/nvidia/460.67/build/nvidia/nv-acpi.o] Error 1
cc1: error: incompatible gcc/plugin versions
cc1: error: failed to initialize plugin ./scripts/gcc-plugins/structleak_plugin.so
cc1: error: incompatible gcc/plugin versions
cc1: error: failed to initialize plugin ./scripts/gcc-plugins/structleak_plugin.so
make[2]: *** [scripts/Makefile.build:279: /var/lib/dkms/nvidia/460.67/build/nvidia/nv-cray.o] Error 1
make[2]: *** [scripts/Makefile.build:279: /var/lib/dkms/nvidia/460.67/build/nvidia/nv-dma.o] Error 1
cc1: error: incompatible gcc/plugin versions
cc1: error: failed to initialize plugin ./scripts/gcc-plugins/structleak_plugin.so
make[2]: *** [scripts/Makefile.build:279: /var/lib/dkms/nvidia/460.67/build/nvidia/nv-i2c.o] Error 1
cc1: error: incompatible gcc/plugin versions
cc1: error: failed to initialize plugin ./scripts/gcc-plugins/structleak_plugin.so
make[2]: *** [scripts/Makefile.build:279: /var/lib/dkms/nvidia/460.67/build/nvidia/nv-mmap.o] Error 1
make[1]: *** [Makefile:1820: /var/lib/dkms/nvidia/460.67/build] Error 2
make[1]: Leaving directory '/usr/lib/modules/5.11.13-arch1-1/build'
make: *** [Makefile:80: modules] Error 2

It seems like I would need to also downgrade GCC, I but I'm not sure if it would actually solve the problem.

Offline

#6 2021-05-18 15:29:23

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

Re: [SOLVED] startx command system freeze nvidia

Modules have to be built with the same compiler that the kernel was built with. You'd have to downgrade more things, but they're likely to break a whole lot of other things.

Offline

#7 2021-05-18 15:39:51

gufide
Member
Registered: 2013-05-23
Posts: 12

Re: [SOLVED] startx command system freeze nvidia

Okay! I fixed it!

What I did was to add the required dkms modules. In /etc/mkinitcpio.conf, I added the nvidia modules:

MODULES=(nvidia nvidia_modeset nvidia_uvm nvidia_drm)

Then, I downloaded GCC 10 from this archlinux archive page. Here's the two files I downloaded and installed:

gcc-10.2.0-6-x86_64.pkg.tar.zst
gcc-libs-10.2.0-6-x86_64.pkg.tar.zst

Then, I built the modules using this command:

dkms install -m nvidia -v 460.67

Then, the mkinitcpio:

mkinitcpio -p linux

I reinstalled GCC to the current version, to not cause any problems:

pacman -S gcc gcc-libs

Then simply rebooted and xserver worked again.

Thank you for all the help!

Offline

#8 2021-05-18 16:40:17

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,635
Website

Re: [SOLVED] startx command system freeze nvidia

Mod note: Not an installation issue, moving to NC.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

Board footer

Powered by FluxBB