You are not logged in.

#1 2020-04-26 13:05:58

Grizzlyman
Member
From: Paris
Registered: 2020-04-26
Posts: 17

[SOLVED] DRM issues, fails at X startup

Hello good fellows,

I'm having trouble getting my NVIDIA GPU to work, indeed, when starting Xorg, drm fails. As requested, Here are the outputs of lspci -knn, dmsg and the xorg log.
here is lscpi -knn : https://pastebin.com/YNbVPGhb
here is dmsg : https://0bin.coon.fr/paste/v2Q5QG6C#zsG … w21a8dorVo
here is the xorg log : https://0bin.coon.fr/paste/OG5WRXUa#Fjb … km7QHiG4Wq

Thanks in advance!

Last edited by Grizzlyman (2020-04-28 15:50:14)


“If debugging is the process of removing software bugs, then programming must be the process of putting them in.” – Edsger Dijkstra

Offline

#2 2020-04-26 13:23:54

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,530
Website

Re: [SOLVED] DRM issues, fails at X startup

What are your symptoms?  That xorg log is incomplete - X had not exited (or the log was cut off while uploading).


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#3 2020-04-26 13:40:55

Grizzlyman
Member
From: Paris
Registered: 2020-04-26
Posts: 17

Re: [SOLVED] DRM issues, fails at X startup

I don't have any particular symptoms, and this issue may not even be related to the main one. The main problem is that i can't make Xorg use my Nvidia GPU, it uses by default the integrated intel graphics for every application. I installed the nvidia drivers some time ago, created conf files in xorg.conf.d regarding the nvidia GPU, and created another one following the instruction found in the hybrid graphics wiki (https://wiki.archlinux.org/index.php/Hybrid_graphics), trying then what was proposed in the prime wiki-page, without success.
Moreover, as you may notice, X loads the nouveau drivers, while they're blacklisted in both modprobe directories. After asking around, i ended up thinking the issue may come from drm, in the following lines :

[    19.157] (EE) [drm] Failed to open DRM device for (null): -2
[    19.170] (EE) [drm] Failed to open DRM device for pci:0000:01:00.0: -2

So I'm trying to figure out what to do with that, and how to fix this issue.
I don't know if this message is of any help, but it may help clarifiying things.

Regarding the Xorg log, i indeed sent the entire file, the Xorg.0.log file, since the .1 was 1 month outdated, if you know a way to find the complete one, feel free to point it out!

Last edited by Grizzlyman (2020-04-26 13:43:30)


“If debugging is the process of removing software bugs, then programming must be the process of putting them in.” – Edsger Dijkstra

Offline

#4 2020-04-26 14:34:27

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,530
Website

Re: [SOLVED] DRM issues, fails at X startup

Sorry - I misunderstood the issue.  I misread the title as X failing to startup but that doesn't seem to be the case.  The Xorg log is (presumably) incomplete as you posted it from within the running X session ... so it was complete up to that time.  If X is running and the problem is just that it is not using the GPU as you intended, I'll need to leave that to others with hybrid graphics experience.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#5 2020-04-26 14:57:31

seth
Member
Registered: 2012-09-03
Posts: 51,229

Re: [SOLVED] DRM issues, fails at X startup

You're using the nvidia kernel module but the xf86-video-nouveau driver (which will not work, thus the error)
Also an xorg.conf that looks smells very much like it's nvidia-xconfig generated.

Remove that config and xf86-vide-nouveau. Ensure to have nvidia-utils installed and follow https://wiki.archlinux.org/index.php/NV … phics_only

Offline

#6 2020-04-26 15:09:17

Grizzlyman
Member
From: Paris
Registered: 2020-04-26
Posts: 17

Re: [SOLVED] DRM issues, fails at X startup

I uninstalled the nouveau drivers,

seth wrote:

Remove that config

You mean the whole xorg.conf, or just the section ? (i removed the section)
I already followed the wiki for this one, i did not removed the redundant Section, i thought xorg,conf.d/ had a higher priority, mb.
After uninstalling nouveau modules, a new error appears in Xorg.0.log at 13.923, X tries to load the Nouveau drivers, which are well, not here anymore.
here is the new Xorg.0.log : https://0bin.coon.fr/paste/wGmQE51a#ovA … X2+Yi4a1Ho
Thanks!

Last edited by Grizzlyman (2020-04-26 15:41:25)


“If debugging is the process of removing software bugs, then programming must be the process of putting them in.” – Edsger Dijkstra

Offline

#7 2020-04-26 15:48:03

seth
Member
Registered: 2012-09-03
Posts: 51,229

Re: [SOLVED] DRM issues, fails at X startup

That's not a relevant error.
You're running on the intel chip, the nvidia one isn't considered.

Please post the present xorg.conf (and every xorg configlet you added to /{etc,usr/share}/X11/xorg.conf.d) and the output of "pacman -Qs '(nvidia|^linux)'"
On a sidenote, please use ix.io or any other service that allows plain text display, thanks.

Offline

#8 2020-04-26 15:56:58

Grizzlyman
Member
From: Paris
Registered: 2020-04-26
Posts: 17

Re: [SOLVED] DRM issues, fails at X startup

Thanks for your time.
Here is the current xorg.conf : http://ix.io/2jGp
From xorg.conf.d:
/10-nvidia-drm-outputclass.conf (basically the one of the wiki) : http://ix.io/2jGr
/20-nvidia.conf : http://ix.io/2jGs

And the output of pacman -Qs : http://ix.io/2jGu

By the way, i'm sorry to bother you, but could you please explain roughly what could be the isssue(s) here ? I'd really like to understand were i messed up !


“If debugging is the process of removing software bugs, then programming must be the process of putting them in.” – Edsger Dijkstra

Offline

#9 2020-04-26 16:06:49

seth
Member
Registered: 2012-09-03
Posts: 51,229

Re: [SOLVED] DRM issues, fails at X startup

Unrelated note, you've also installed the lts kernel but not the nvidia-lts package. This is however not the problem.

Remove the xorg.conf. It's a broken layout description that references an non-existing device and will likely get in the way (it trumps all other files regardless of order because there's a specific server layout description)
It's only full of useless junk anyway and you'll not lose anything by removing  it.

Then try to start the server and report back with an updated server log.

Offline

#10 2020-04-26 16:15:14

Grizzlyman
Member
From: Paris
Registered: 2020-04-26
Posts: 17

Re: [SOLVED] DRM issues, fails at X startup

Here is the new log, after removing the xorg.conf : http://ix.io/2jGz


“If debugging is the process of removing software bugs, then programming must be the process of putting them in.” – Edsger Dijkstra

Offline

#11 2020-04-27 17:04:05

seth
Member
Registered: 2012-09-03
Posts: 51,229

Re: [SOLVED] DRM issues, fails at X startup

Sorry for the delay.
Everything looks right, the nvidia chip is selected as primary GPU but then w/o any test loads the nouveau driver, fails and enxt you get the intel chip on the modesetting driver.

The head suggests that there's still some screen config around and it probably references nouveau.

grep -ri nouveau /{etc,usr/share}/X11/xorg.conf*

Offline

#12 2020-04-27 17:33:20

Grizzlyman
Member
From: Paris
Registered: 2020-04-26
Posts: 17

Re: [SOLVED] DRM issues, fails at X startup

Don't worry, your assistance is immensely helpfull, and i'm really gratefull! Indeed something references it, in /usr/share/X11/xorg.conf.d/ : http://ix.io/2jO3
I tried replacing it by "modesetting", which led to the following log : http://ix.io/2jO4 (X loads correctly, but the nvidia gpu still isn't used)
and by "nvidia", giving : http://ix.io/2jO7 (Xorg launches itselft, but the wm (i3), doesn't, as well as the dm)


“If debugging is the process of removing software bugs, then programming must be the process of putting them in.” – Edsger Dijkstra

Offline

#13 2020-04-27 17:36:23

loqs
Member
Registered: 2014-03-06
Posts: 17,372

Re: [SOLVED] DRM issues, fails at X startup

Please post an xorg.log with /usr/share/X11/xorg.conf.d/xorg.conf disabled.

Offline

#14 2020-04-27 17:36:26

seth
Member
Registered: 2012-09-03
Posts: 51,229

Re: [SOLVED] DRM issues, fails at X startup

Remove the file in http://ix.io/2jO3 completely.

Offline

#15 2020-04-27 17:43:20

Grizzlyman
Member
From: Paris
Registered: 2020-04-26
Posts: 17

Re: [SOLVED] DRM issues, fails at X startup

log with the xorg.conf removed : http://ix.io/2jOd (X doesn't seems to load)


“If debugging is the process of removing software bugs, then programming must be the process of putting them in.” – Edsger Dijkstra

Offline

#16 2020-04-27 17:50:08

seth
Member
Registered: 2012-09-03
Posts: 51,229

Re: [SOLVED] DRM issues, fails at X startup

Do you have the configlet and xrandr calls from https://wiki.archlinux.org/index.php/NV … phics_only somewhere?

Edit, if so you may want to extend the intel device w/ the busid

…
BusID          "PCI:0:2:0"
EndSection

Last edited by seth (2020-04-27 17:53:13)

Offline

#17 2020-04-27 18:02:02

Grizzlyman
Member
From: Paris
Registered: 2020-04-26
Posts: 17

Re: [SOLVED] DRM issues, fails at X startup

seth wrote:

Do you have the configlet and xrandr calls from https://wiki.archlinux.org/index.php/NV … phics_only somewhere?

Yep, indeed, in my .xinitrc.

seth wrote:

Edit, if so you may want to extend the intel device w/ the busid

You mean in the xorg.conf located in /usr/ ? If so, it is already specified if i've read it correctly, or maybe have i misunderstood.


“If debugging is the process of removing software bugs, then programming must be the process of putting them in.” – Edsger Dijkstra

Offline

#18 2020-04-27 19:08:59

seth
Member
Registered: 2012-09-03
Posts: 51,229

Re: [SOLVED] DRM issues, fails at X startup

No, the /etc/X11/xorg.conf.d/10-nvidia-drm-outputclass.conf you supposingly created.

Post all files in /{etc,usr/share}/X11/xorg.conf*

Offline

#19 2020-04-27 19:18:29

Grizzlyman
Member
From: Paris
Registered: 2020-04-26
Posts: 17

Re: [SOLVED] DRM issues, fails at X startup

10-nvidia-drm-outputclass.conf : http://ix.io/2jOS
20-nvidia.conf : http://ix.io/2jGs
Here they are, with the BusID added for the intel card.


“If debugging is the process of removing software bugs, then programming must be the process of putting them in.” – Edsger Dijkstra

Offline

#20 2020-04-27 19:29:58

seth
Member
Registered: 2012-09-03
Posts: 51,229

Re: [SOLVED] DRM issues, fails at X startup

20-nvidia.conf is pointless.
How does the X11 server behave and what does the log look like after adding the BusID?

Edit, please also post your xinitrc.
Edit #2: how do you start X11? startx or xinit?

Last edited by seth (2020-04-27 19:32:44)

Offline

#21 2020-04-27 19:46:42

Grizzlyman
Member
From: Paris
Registered: 2020-04-26
Posts: 17

Re: [SOLVED] DRM issues, fails at X startup

Neutralized 20-nvidia.conf.
X doesn't lilke the BusID in this file, log as follows : http://ix.io/2jP5
My xinitrc : http://ix.io/2jP6
I use startx.
Thanks again!


“If debugging is the process of removing software bugs, then programming must be the process of putting them in.” – Edsger Dijkstra

Offline

#22 2020-04-27 20:05:21

seth
Member
Registered: 2012-09-03
Posts: 51,229

Re: [SOLVED] DRM issues, fails at X startup

Oh, sorry.
Remove it at add a complete

Section "Device"
    Identifier 	"intel"
    Driver 	"modesetting"
    BusID	"PCI:0:2:0"
EndSection

next to the OutputClass sections.

Unrelated sidenote: "xrdb -load ~/.Xresources" will never be called.

Offline

#23 2020-04-27 20:17:28

Grizzlyman
Member
From: Paris
Registered: 2020-04-26
Posts: 17

Re: [SOLVED] DRM issues, fails at X startup

Added, the new log is : http://ix.io/2jPk (still no change)
And by the way, what does modesetting stands for ?

Last edited by Grizzlyman (2020-04-27 20:17:47)


“If debugging is the process of removing software bugs, then programming must be the process of putting them in.” – Edsger Dijkstra

Offline

#24 2020-04-28 05:05:03

seth
Member
Registered: 2012-09-03
Posts: 51,229

Re: [SOLVED] DRM issues, fails at X startup

Dude, the new log has the static server config from http://ix.io/2jO3 again (w/ the same result)
What are you doing there?

The modesetting driver is a generic driver on top of https://wiki.archlinux.org/index.php/Ke … de_setting

Offline

#25 2020-04-28 06:52:02

Grizzlyman
Member
From: Paris
Registered: 2020-04-26
Posts: 17

Re: [SOLVED] DRM issues, fails at X startup

Woops my bad, i reused it to access firefox, and forgot to put it down afterward, sorry.
Here is the new log, with this xorg.conf out (X starts correctly, but still no nvidia gpu) : http://ix.io/2jRY


“If debugging is the process of removing software bugs, then programming must be the process of putting them in.” – Edsger Dijkstra

Offline

Board footer

Powered by FluxBB