View previous topic :: View next topic |
Author |
Message |
Armand Karlsen n00b
Joined: 18 Aug 2005 Posts: 59 Location: London, UK
|
Posted: Sun Sep 15, 2024 7:03 pm Post subject: [SOLVED] Trying to setup Xorg, fails to run |
|
|
I'm trying to setup Gentoo with a DE on my desktop machine with Nvidia graphics card, after ditching Windows. Going through the Xorg/Guide instructions I get to the first test run of startx, but X fails to run with an error about "..no screens found..". This seems to happen with both the open-source nouveau drivers and proprietary nvidia-drivers, and in particular the 'nvidia' kernel module fails to load with Code: | modprobe: ERROR: could not insert 'nvidia': Unknown symbol in module, or unknown parameter (see dmesg) | and then dmesg shows Code: | [ 2649.885066] nvidia: Unknown symbol drm_gem_object_free (err -2) | To be honest I'm pretty lost, so I'd appreciate any help I can get.
For background, the desktop is running a Threadripper 1900X CPU, nvidia RTX 2080 Ti GPU. Kernel is linux-6.6.47-gentoo. Current xorg-server that was pulled in is 21.1.13-r1. Nvidia-drivers is 550.107.02-r1.
Last edited by Armand Karlsen on Sat Sep 21, 2024 2:34 pm; edited 1 time in total |
|
Back to top |
|
|
Banana Moderator
Joined: 21 May 2004 Posts: 1720 Location: Germany
|
|
Back to top |
|
|
Armand Karlsen n00b
Joined: 18 Aug 2005 Posts: 59 Location: London, UK
|
Posted: Sun Sep 15, 2024 9:08 pm Post subject: |
|
|
So far, I've been trying to go through the "NVIDIA/nvidia-drivers" guide on the wiki, following the manually-configured kernel section (that's how I did the base system). As far as I can see, I've set the mentioned kernel options; I've set VIDEO_CARDS="nvidia" in make.conf; nvidia-drivers emerged without obvious failure
If I had to guess, it feels like something broke further back in the overall process of installing Linux, but I don't know quite where to look. |
|
Back to top |
|
|
flexibeast Guru
Joined: 04 Apr 2022 Posts: 440 Location: Naarm/Melbourne, Australia
|
Posted: Sun Sep 15, 2024 11:45 pm Post subject: Re: Trying to setup Xorg, fails to run |
|
|
Armand Karlsen wrote: | Code: | [ 2649.885066] nvidia: Unknown symbol drm_gem_object_free (err -2) |
|
`drm_gem_object_free` is provided by the kernel, so i'm wondering whether the issue is related to your kernel config. i'm not using Nvidia hardware, but two GEM-related lines in my running kernel config are:
Code: | CONFIG_DRM_GEM_SHMEM_HELPER=m
# CONFIG_DRM_VGEM is not set |
|
|
Back to top |
|
|
grknight Retired Dev
Joined: 20 Feb 2015 Posts: 1909
|
Posted: Sun Sep 15, 2024 11:57 pm Post subject: |
|
|
flexibeast wrote: | Armand Karlsen wrote: | Code: | [ 2649.885066] nvidia: Unknown symbol drm_gem_object_free (err -2) |
|
`drm_gem_object_free` is provided by the kernel, so i'm wondering whether the issue is related to your kernel config. i'm not using Nvidia hardware, but two GEM-related lines in my running kernel config are: |
That symbol is provided by CONFIG_DRM. DRM support is required for any graphics card. |
|
Back to top |
|
|
flexibeast Guru
Joined: 04 Apr 2022 Posts: 440 Location: Naarm/Melbourne, Australia
|
Posted: Mon Sep 16, 2024 12:58 am Post subject: |
|
|
grknight wrote: | That symbol is provided by CONFIG_DRM. |
Ah okay. - This might be a long shot, but is there any straightforward (or even "relatively straightforward") way of determining which kernel config option is associated with a given symbol? |
|
Back to top |
|
|
Banana Moderator
Joined: 21 May 2004 Posts: 1720 Location: Germany
|
|
Back to top |
|
|
Armand Karlsen n00b
Joined: 18 Aug 2005 Posts: 59 Location: London, UK
|
Posted: Mon Sep 16, 2024 7:17 pm Post subject: |
|
|
- As a test, I tried compiling the kernel with CONFIG_DRM unset and that spat out a whole heap of "DEPMOD: WARNING:..." complaining that nvidia.ko "..needs unknown symbol..." for various "drm_..." symbols.
- Booting with that kernel and re-emerging nvidia-drivers gives a red-starred notice at the end about "..CONFIG_DRM_KMS_HELPER: is not set but needed for Xorg auto-detection..." and suggests selecting a DRM device "even if not used".
- That didn't sound so good, so I enabled DRM once more and added the Intel i915 item. Boot with that and re-emerge nvidia drivers. No red-starred notice, and Xorg still fails with an error about "no screens"; HOWEVER, the nvidia module _does_ now show up in lsmod, and there is no "nvidia: unknown symbol..." line in dmesg. So that's progress, I hope
EDIT: ...aaand the module broke again, for some reason that's not clear to me... I'm getting more of a feeling that something's more deeply mucked up in this installation. I'm starting to lean more towards scrubbing and starting again |
|
Back to top |
|
|
Amity88 Apprentice
Joined: 03 Jul 2010 Posts: 265 Location: Third planet from the Sun
|
Posted: Tue Sep 17, 2024 9:14 am Post subject: |
|
|
Could you link me to a pastebin of your kernel .config? I just brought up a system with a GTX1050Ti using the proprietary drivers. _________________
Ant P. wrote: | The enterprise distros sell their binaries. Canonical sells their users. |
Also... Be ignorant... Be happy! |
|
Back to top |
|
|
Armand Karlsen n00b
Joined: 18 Aug 2005 Posts: 59 Location: London, UK
|
Posted: Tue Sep 17, 2024 8:42 pm Post subject: |
|
|
Amity88 wrote: | Could you link me to a pastebin of your kernel .config? I just brought up a system with a GTX1050Ti using the proprietary drivers. |
Here's the .config of what's currently in /usr/src/linux: https://pastebin.com/SExLFvW8 |
|
Back to top |
|
|
pietinger Moderator
Joined: 17 Oct 2006 Posts: 5091 Location: Bavaria
|
Posted: Tue Sep 17, 2024 9:42 pm Post subject: |
|
|
What happens if you disable CONFIG_SYSFB_SIMPLEFB=y ?
(this is NOT Simple framebuffer support (CONFIG_FB_SIMPLE); this is also NOT Simple framebuffer driver (CONFIG_DRM_SIMPLEDRM); it is the option in DeviceDriver->FirmwareDrivers->Mark VGA/VBE/EFI FB as generic system framebuffer; I recommend to keep all 3 disabled)
(Yes, the trick to enable i915 as module to get DRM_DISPLAY_HELPER [=y] && DRM_KMS_HELPER [=y] is well known and you should keep it.) _________________ https://wiki.gentoo.org/wiki/User:Pietinger |
|
Back to top |
|
|
Armand Karlsen n00b
Joined: 18 Aug 2005 Posts: 59 Location: London, UK
|
Posted: Wed Sep 18, 2024 5:42 pm Post subject: |
|
|
pietinger wrote: | What happens if you disable CONFIG_SYSFB_SIMPLEFB=y ?
(this is NOT Simple framebuffer support (CONFIG_FB_SIMPLE); this is also NOT Simple framebuffer driver (CONFIG_DRM_SIMPLEDRM); it is the option in DeviceDriver->FirmwareDrivers->Mark VGA/VBE/EFI FB as generic system framebuffer; I recommend to keep all 3 disabled)
(Yes, the trick to enable i915 as module to get DRM_DISPLAY_HELPER [=y] && DRM_KMS_HELPER [=y] is well known and you should keep it.) |
I tried disabling CONFIG_SYSFB_SIMPLEFB, compile and boot on that, but sadly no luck Xorg still fails with no screens, "nvidia" module won't load, and the dmesg error "nvidia: Unknown symbol drm_gem_object_free (err -2)" is still there |
|
Back to top |
|
|
Armand Karlsen n00b
Joined: 18 Aug 2005 Posts: 59 Location: London, UK
|
Posted: Fri Sep 20, 2024 8:10 pm Post subject: |
|
|
Update: I was getting more and more annoyed with things, so I eventually used the nuclear option and redid the whole handbook install using the distribution kernel route instead.
Early indications seem better already. I'm getting an actual FB instead of ugly textmode for login on that first reboot after exiting the chroot. I'll try getting Xorg up once more later on, and see how it goes.
EDIT: Success! Xorg now comes up as normal |
|
Back to top |
|
|
|