Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SLVD]X nouveau '[drm] Failed to load DRM device for pci...'
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Kaleidoscope06
n00b
n00b


Joined: 26 May 2017
Posts: 14

PostPosted: Thu Jun 08, 2017 2:33 pm    Post subject: [SLVD]X nouveau '[drm] Failed to load DRM device for pci...' Reply with quote

I was having some unrelated issues with the proprietary driver, so I switched to nouveau.

The relevant error message:
https://paste.pound-python.org/show/PuEcrZMPkktUXQ5JQtU2/

Details:
I compiled all programs with the nouveau VIDEO_CARDS value in make.conf.
I compiled the kernel with nouveau flags enabled, and no other nvidia flags.
I re-installed X. I deleted xorg.conf so that defaults would be loaded.
I deleted /etc/udev (after unmerge) then re-installed udev.
xf86-video-nouveau is installed.

Relevant card info:
Code:
01:00.0 VGA compatible controller: NVIDIA Corporation G96 [GeForce GT 120] (rev a1)


Has anyone encountered this error before? Nouveau seems to work in puppylinux and other distros I tried with this graphics card, so I don't think it's an official support problem.

Any help would be greatly appreciated.


Last edited by Kaleidoscope06 on Thu Jun 08, 2017 8:41 pm; edited 1 time in total
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Thu Jun 08, 2017 2:41 pm    Post subject: Reply with quote

This is only a snippet of the log, next time please pastebin the whole log. Anyhow, it seems like your kernel is missing nouveau DRI.
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
Kaleidoscope06
n00b
n00b


Joined: 26 May 2017
Posts: 14

PostPosted: Thu Jun 08, 2017 3:02 pm    Post subject: Reply with quote

Jaglover wrote:
This is only a snippet of the log, next time please pastebin the whole log. Anyhow, it seems like your kernel is missing nouveau DRI.


My apologies, here is the full log:
https://paste.pound-python.org/show/MOTwQ3D2e7Q73KHblzs3/

And here is the config I used to compile linux:
https://paste.pound-python.org/show/gznvTRgLVeTnJGiavQSH/

It appears all nouveau drivers were selected in the kernel config.
Back to top
View user's profile Send private message
Kaleidoscope06
n00b
n00b


Joined: 26 May 2017
Posts: 14

PostPosted: Thu Jun 08, 2017 3:09 pm    Post subject: Reply with quote

Jaglover wrote:
kernel is missing nouveau DRI.

If this is case, how would one rectify this?
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Thu Jun 08, 2017 3:14 pm    Post subject: Reply with quote

I noticed you have also Intel DRI enabled, is this on Optimus hardware?
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
Kaleidoscope06
n00b
n00b


Joined: 26 May 2017
Posts: 14

PostPosted: Thu Jun 08, 2017 3:18 pm    Post subject: Reply with quote

Jaglover wrote:
I noticed you have also Intel DRI enabled, is this on Optimus hardware?


No, but I occasionally switch the harddrive into another machine with intel graphics, so I decided to enable both options. Is that normally a problem?
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Thu Jun 08, 2017 4:11 pm    Post subject: Reply with quote

No, I do not think it would be a problem. Are you running the kernel you think you are?
Code:
uname -a

_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
Kaleidoscope06
n00b
n00b


Joined: 26 May 2017
Posts: 14

PostPosted: Thu Jun 08, 2017 4:39 pm    Post subject: Reply with quote

Jaglover wrote:
No, I do not think it would be a problem. Are you running the kernel you think you are?
Code:
uname -a


Yes, the kernel is installed correctly after compiling.

I have decided to have another go at the proprietary drivers, and after removing the Intel DRI (which you brought to my attention) the error I was receiving in the nvidia setup binary is gone (the message was very vague and said something along the lines of: the proprietary drivers can't be installed alongside X,Y, Z...). So, it appears their proprietary legacy install process fails if there are installed graphics drivers in the kernel already (even non-nvidia drivers it appears, but don't quote me on that). I recompiled the kernel without intel/nouveau, then installed the legacy drivers from their website. Alas, I will try again with nouveau in a few years times, when things run a little smoother.
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Thu Jun 08, 2017 4:45 pm    Post subject: Reply with quote

There is Gentoo wiki covering both proprietary driver and nouveau, have you looked at it? In any case, do not install drivers you downloaded by hand, this is not the Gentoo way.
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
Kaleidoscope06
n00b
n00b


Joined: 26 May 2017
Posts: 14

PostPosted: Thu Jun 08, 2017 5:08 pm    Post subject: Reply with quote

Jaglover wrote:
There is Gentoo wiki covering both proprietary driver and nouveau, have you looked at it?


Yes, several times, in great detail.

Jaglover wrote:
In any case, do not install drivers you downloaded by hand, this is not the Gentoo way.


Unfortunately, the proprietary nvidia drivers provided in the Gentoo mirrors do not cover my old card; the legacy drivers are required for my card. When things go wrong, they actually provide a URL in the xorg log files from which the driver can be downloaded, which is quite neat.
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Thu Jun 08, 2017 5:15 pm    Post subject: Reply with quote

Code:
* x11-drivers/nvidia-drivers
     Available versions:  [M]96.43.23-r1(0/96)^msd [M]173.14.39-r1(0/173)^msd [M]173.14.39-r2(0/173)^msd 304.135(0/304)^md (~)304.135-r1(0/304)^md 340.102(0/340)^md (~)340.102-r1(0/340)^md 375.39(0/375)^md 375.66(0/375)^md (~)375.66-r1(0/375)^md 378.13(0/378)^md (~)378.13-r1(0/378)^md (~)381.09(0/381)^md 381.22(0/381)^md (~)381.22-r1(0/381)^md {+X acpi compat custom-cflags +driver gtk gtk3 +kms multilib pax_kernel static-libs (+)tools uvm wayland ABI_MIPS="n32 n64 o32" ABI_PPC="32 64" ABI_S390="32 64" ABI_X86="32 64 x32" KERNEL="FreeBSD linux"}
     Homepage:            http://www.nvidia.com/ http://www.nvidia.com/Download/Find.aspx
     Description:         NVIDIA Accelerated Graphics Driver

Yes Gentoo has drivers for your card.
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
Kaleidoscope06
n00b
n00b


Joined: 26 May 2017
Posts: 14

PostPosted: Thu Jun 08, 2017 8:40 pm    Post subject: Reply with quote

Jaglover wrote:
Code:
* x11-drivers/nvidia-drivers
     Available versions:  [M]96.43.23-r1(0/96)^msd [M]173.14.39-r1(0/173)^msd [M]173.14.39-r2(0/173)^msd 304.135(0/304)^md (~)304.135-r1(0/304)^md 340.102(0/340)^md (~)340.102-r1(0/340)^md 375.39(0/375)^md 375.66(0/375)^md (~)375.66-r1(0/375)^md 378.13(0/378)^md (~)378.13-r1(0/378)^md (~)381.09(0/381)^md 381.22(0/381)^md (~)381.22-r1(0/381)^md {+X acpi compat custom-cflags +driver gtk gtk3 +kms multilib pax_kernel static-libs (+)tools uvm wayland ABI_MIPS="n32 n64 o32" ABI_PPC="32 64" ABI_S390="32 64" ABI_X86="32 64 x32" KERNEL="FreeBSD linux"}
     Homepage:            http://www.nvidia.com/ http://www.nvidia.com/Download/Find.aspx
     Description:         NVIDIA Accelerated Graphics Driver

Yes Gentoo has drivers for your card.


I momentarily tried this before receiving a wall of dependency conflicts.

Anyway, I went back to have another stab at nouveau, and the problem I was having turns out to be face-palm-level embarrassing: So I had /boot on sdc1 because I foresaw using RAID0 at some point, and I had forgotten to add /boot to the fstab. Thus, every time I was installing the newly compiled kernel, I was writing to sdc2, where / is mounted (essentially putting my changes into a sort of limbo, rather than the actual /boot). So, I added /boot to the fstab, did mount -a, then installed the new kernel again.

I apologize for miss-stating earlier that the kernel was installing correctly: I was using `ls -l /boot` to check the dates, rather than `uname -a`, as you suggested; I was, in fact, still using a kernel from yesterday. Lesson learned.

nouveau and X are now working fine, thank you :D
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Thu Jun 08, 2017 8:57 pm    Post subject: Reply with quote

Kaleidoscope06,

you are doing great. I'm sure you will enjoy your Gentoo. :)
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
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