View previous topic :: View next topic |
Author |
Message |
shieldoxacillin n00b
Joined: 10 Mar 2024 Posts: 11
|
Posted: Sat Mar 16, 2024 3:59 pm Post subject: Xorg having trouble loading in with custom kernel |
|
|
Hello,
I think it has to do with the NVIDIA driver not being able to be loaded but I can't exactly pinpoint what's causing it.
Code: | [ 34.986]
X.Org X Server 1.21.1.11
X Protocol Version 11, Revision 0
[ 34.999] Current Operating System: Linux localhost 6.6.21-gentoo #9 SMP Thu Mar 14 18:39:33 CET 2024 x86_64
[ 34.999] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-6.6.21-gentoo root=UUID=0ade7595-655d-4d65-af94-d3ba97296fc4 ro
[ 35.008]
[ 35.013] Current version of pixman: 0.43.2
[ 35.022] Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[ 35.022] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 35.041] (==) Log file: "/home/bonjour/.local/share/xorg/Xorg.0.log", Time: Sat Mar 16 11:45:32 2024
[ 35.054] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[ 35.056] (==) No Layout section. Using the first Screen section.
[ 35.056] (==) No screen section available. Using defaults.
[ 35.056] (**) |-->Screen "Default Screen Section" (0)
[ 35.056] (**) | |-->Monitor "<default monitor>"
[ 35.056] (==) No monitor specified for screen "Default Screen Section".
Using a default monitor configuration.
[ 35.056] (==) Automatically adding devices
[ 35.056] (==) Automatically enabling devices
[ 35.056] (==) Automatically adding GPU devices
[ 35.056] (==) Automatically binding GPU devices
[ 35.056] (==) Max clients allowed: 256, resource mask: 0x1fffff
[ 35.064] (WW) The directory "/usr/share/fonts/TTF" does not exist.
[ 35.064] Entry deleted from font path.
[ 35.064] (WW) The directory "/usr/share/fonts/OTF" does not exist.
[ 35.064] Entry deleted from font path.
[ 35.064] (WW) The directory "/usr/share/fonts/Type1" does not exist.
[ 35.064] Entry deleted from font path.
[ 35.064] (WW) The directory "/usr/share/fonts/100dpi" does not exist.
[ 35.064] Entry deleted from font path.
[ 35.064] (WW) The directory "/usr/share/fonts/75dpi" does not exist.
[ 35.064] Entry deleted from font path.
[ 35.064] (==) FontPath set to:
/usr/share/fonts/misc
[ 35.064] (==) ModulePath set to "/usr/lib64/xorg/modules"
[ 35.064] (II) The server relies on udev to provide the list of input devices.
If no devices become available, reconfigure udev or disable AutoAddDevices.
[ 35.064] (II) Module ABI versions:
[ 35.064] X.Org ANSI C Emulation: 0.4
[ 35.064] X.Org Video Driver: 25.2
[ 35.064] X.Org XInput driver : 24.4
[ 35.064] X.Org Server Extension : 10.0
[ 35.066] (++) using VT number 1
[ 35.068] (II) systemd-logind: took control of session /org/freedesktop/login1/session/c1
[ 35.128] (--) PCI:*(8@0:0:0) 10de:1c03:1043:8619 rev 161, Mem @ 0xfb000000/16777216, 0xd0000000/268435456, 0xe0000000/33554432, I/O @ 0x0000e000/128, BIOS @ 0x????????/131072
[ 35.128] (II) LoadModule: "glx"
[ 35.134] (II) Loading /usr/lib64/xorg/modules/extensions/libglx.so
[ 35.155] (II) Module glx: vendor="X.Org Foundation"
[ 35.155] compiled for 1.21.1.11, module version = 1.0.0
[ 35.155] ABI class: X.Org Server Extension, version 10.0
[ 35.155] (==) Matched nouveau as autoconfigured driver 0
[ 35.155] (==) Matched nv as autoconfigured driver 1
[ 35.155] (==) Matched modesetting as autoconfigured driver 2
[ 35.155] (==) Matched fbdev as autoconfigured driver 3
[ 35.155] (==) Matched vesa as autoconfigured driver 4
[ 35.155] (==) Assigned the driver to the xf86ConfigLayout
[ 35.155] (II) LoadModule: "nouveau"
[ 35.157] (WW) Warning, couldn't open module nouveau
[ 35.157] (EE) Failed to load module "nouveau" (module does not exist, 0)
[ 35.157] (II) LoadModule: "nv"
[ 35.158] (WW) Warning, couldn't open module nv
[ 35.159] (EE) Failed to load module "nv" (module does not exist, 0)
[ 35.159] (II) LoadModule: "modesetting"
[ 35.159] (II) Loading /usr/lib64/xorg/modules/drivers/modesetting_drv.so
[ 35.171] (II) Module modesetting: vendor="X.Org Foundation"
[ 35.171] compiled for 1.21.1.11, module version = 1.21.1
[ 35.171] Module class: X.Org Video Driver
[ 35.171] ABI class: X.Org Video Driver, version 25.2
[ 35.171] (II) LoadModule: "fbdev"
[ 35.173] (WW) Warning, couldn't open module fbdev
[ 35.173] (EE) Failed to load module "fbdev" (module does not exist, 0)
[ 35.173] (II) LoadModule: "vesa"
[ 35.174] (WW) Warning, couldn't open module vesa
[ 35.174] (EE) Failed to load module "vesa" (module does not exist, 0)
[ 35.174] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[ 35.175] (EE) open /dev/dri/card0: No such file or directory
[ 35.175] (WW) Falling back to old probe method for modesetting
[ 35.175] (EE) open /dev/dri/card0: No such file or directory
[ 35.175] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[ 35.175] (EE) Screen 0 deleted because of no matching config section.
[ 35.175] (II) UnloadModule: "modesetting"
[ 35.175] (EE) Device(s) detected, but none match those in the config file.
[ 35.175] (EE)
Fatal server error:
[ 35.175] (EE) no screens found(EE)
[ 35.175] (EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
[ 35.175] (EE) Please also check the log file at "/home/bonjour/.local/share/xorg/Xorg.0.log" for additional information.
[ 35.175] (EE)
[ 35.201] (EE) Server terminated with error (1). Closing log file. |
Kernel .config: https://gist.githubusercontent.com/functionexpression/74bfd7eff314cb2e8bc5c4d4f1efee78/raw
It works just fine with the distribution kernel (gentoo-kernel-bin)
Nvidia package version:
x11-drivers/nvidia-drivers-535.161.07::gentoo
Thank you |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54270 Location: 56N 3W
|
Posted: Sat Mar 16, 2024 4:15 pm Post subject: |
|
|
shieldoxacillin,
Is the nvidia-drivers module built for 6.6.21-gentoo ?
Run eselect kernel and ensure that 6.6.21-gentoo is selected as that's the kernel that out of tree modules will be built for.
If nvidia-drivers is already installed, run Code: | emerge @module-rebuild | to rebuild all of the out of tree modules against the eselected kernel.
Code: | [ 35.155] (==) Matched nouveau as autoconfigured driver 0
[ 35.155] (==) Matched nv as autoconfigured driver 1
[ 35.155] (==) Matched modesetting as autoconfigured driver 2
[ 35.155] (==) Matched fbdev as autoconfigured driver 3
[ 35.155] (==) Matched vesa as autoconfigured driver 4 |
says that the nvidia binary blob was not considered by Xorg as a possible driver, so in may not be the kernel module ... or it may be several things _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
shieldoxacillin n00b
Joined: 10 Mar 2024 Posts: 11
|
Posted: Sat Mar 16, 2024 5:02 pm Post subject: |
|
|
NeddySeagoon wrote: | shieldoxacillin,
Is the nvidia-drivers module built for 6.6.21-gentoo ?
Run eselect kernel and ensure that 6.6.21-gentoo is selected as that's the kernel that out of tree modules will be built for.
If nvidia-drivers is already installed, run Code: | emerge @module-rebuild | to rebuild all of the out of tree modules against the eselected kernel.
Code: | [ 35.155] (==) Matched nouveau as autoconfigured driver 0
[ 35.155] (==) Matched nv as autoconfigured driver 1
[ 35.155] (==) Matched modesetting as autoconfigured driver 2
[ 35.155] (==) Matched fbdev as autoconfigured driver 3
[ 35.155] (==) Matched vesa as autoconfigured driver 4 |
says that the nvidia binary blob was not considered by Xorg as a possible driver, so in may not be the kernel module ... or it may be several things |
Code: | * Messages for package x11-drivers/nvidia-drivers-535.161.07:
* CONFIG_DRM_KMS_HELPER: is not set but needed for Xorg auto-detection
* of drivers (no custom config), and for wayland / nvidia-drm.modeset=1.
* Cannot be directly selected in the kernel's menuconfig, and may need
* selection of a DRM device even if unused, e.g. CONFIG_DRM_AMDGPU=m or
* DRM_I915=y, DRM_NOUVEAU=m also acceptable if a module and not built-in.
* Please check to make sure these options are set correctly.
* Failure to do so may cause unexpected problems.
*
* The kernel modules in x11-drivers/nvidia-drivers are being built for
* kernel version 6.6.21-gentoo. But this does not match the
* installed version of virtual/dist-kernel.
*
* If this is not intentional, the problem may be corrected by
* using "eselect kernel" to set the default kernel version to
* the same version as the installed version of virtual/dist-kernel.
*
* If the distribution kernel is being downgraded, ensure that
* virtual/dist-kernel is also downgraded to the same version
* before rebuilding external kernel modules.
*
* GNU info directory index is up-to-date. |
DRM_KMS_HELPER is automatically selected as n because I do not want to have nouvea, even as module so I don't think that's the reason.
THe warning regarding dist-kernel confuses me a little because i have gentoo-sources selected in eselect kernel
Code: | eselect kernel list
Available kernel symlink targets:
[1] linux-6.6.16-gentoo-dist
[2] linux-6.6.21-gentoo * |
Code: | emerge -pv nvidia-drivers
These are the packages that would be merged, in order:
Calculating dependencies... done!
Dependency resolution took 3.29 s (backtrack: 0/20).
[ebuild R ] x11-drivers/nvidia-drivers-535.161.07:0/535::gentoo USE="X dist-kernel modules static-libs strip tools -kernel-open -modules-compress -modules-sign -persistenced -powerd -wayland" ABI_X86="32 (64)" 0 KiB
Total: 1 package (1 reinstall), Size of downloads: 0 KiB |
This shows that nvidia-drivers are being compiled for dist-kernel but I have -dist-kernel in my make.conf?
Code: | # These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.
COMMON_FLAGS="-march=native -O2 -pipe"
CFLAGS="${COMMON_FLAGS}"
CXXFLAGS="${COMMON_FLAGS}"
FCFLAGS="${COMMON_FLAGS}"
FFLAGS="${COMMON_FLAGS}"
MAKEOPTS="-j12"
USE=-"-egl -dist-kernel grub -doc -gpm -cups -systemd xinerama -bluetooth -pipewire -gtk-qt4 -qt5 -qt nvidia alsa pulseaudio pulse -wayland X"
VIDEO_CARDS="nvidia"
ACCEPT_LICENSE="@FREE"
GRUB_PLATFORMS="efi-64"
L10N='uk'
# NOTE: This stage was built with the bindist Use flag enabled
# This sets the language of build output to English.
# Please keep this setting intact when reporting bugs.
LC_MESSAGES=C.utf8
# EMERGE_DEFAULT_OPTS is set automatically by livecd-tools autoconfig during first live boot.
# This should be equal to number of processors, see "man emerge" for details. |
How can I "force" the nvidia-drivers to not be rebuilt with the dist-kernel use flag? Would that be a good idea at all? |
|
Back to top |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21648
|
Posted: Sat Mar 16, 2024 5:15 pm Post subject: |
|
|
shieldoxacillin wrote: | Code: | emerge -pv nvidia-drivers
[ebuild R ] x11-drivers/nvidia-drivers-535.161.07:0/535::gentoo USE="X dist-kernel modules static-libs strip tools -kernel-open -modules-compress -modules-sign -persistenced -powerd -wayland" ABI_X86="32 (64)" 0 KiB
Total: 1 package (1 reinstall), Size of downloads: 0 KiB | This shows that nvidia-drivers are being compiled for dist-kernel but I have -dist-kernel in my make.conf? | No, you don't, because your USE directive is ill-formed. shieldoxacillin wrote: | Code: | USE=-"-egl -dist-kernel grub -doc -gpm -cups -systemd xinerama -bluetooth -pipewire -gtk-qt4 -qt5 -qt nvidia alsa pulseaudio pulse -wayland X" |
| You have an errant dash between the = and ", which appears to cause Portage to ignore the entire line. Remove the errant dash and try again. |
|
Back to top |
|
|
shieldoxacillin n00b
Joined: 10 Mar 2024 Posts: 11
|
Posted: Sat Mar 16, 2024 6:20 pm Post subject: |
|
|
Hu wrote: | shieldoxacillin wrote: | Code: | emerge -pv nvidia-drivers
[ebuild R ] x11-drivers/nvidia-drivers-535.161.07:0/535::gentoo USE="X dist-kernel modules static-libs strip tools -kernel-open -modules-compress -modules-sign -persistenced -powerd -wayland" ABI_X86="32 (64)" 0 KiB
Total: 1 package (1 reinstall), Size of downloads: 0 KiB | This shows that nvidia-drivers are being compiled for dist-kernel but I have -dist-kernel in my make.conf? | No, you don't, because your USE directive is ill-formed. shieldoxacillin wrote: | Code: | USE=-"-egl -dist-kernel grub -doc -gpm -cups -systemd xinerama -bluetooth -pipewire -gtk-qt4 -qt5 -qt nvidia alsa pulseaudio pulse -wayland X" |
| You have an errant dash between the = and ", which appears to cause Portage to ignore the entire line. Remove the errant dash and try again. |
Thank you very much. I recompiled nvidia-drivers and unfortunately, there is no difference and I still get the same error message from the xorg log.I made sure to regenerate the initramfs just incase. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|