Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Is Gentoo's xorg hardware output detection deprecated?
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
Marlo
Veteran
Veteran


Joined: 26 Jul 2003
Posts: 1591

PostPosted: Thu Feb 11, 2021 5:44 pm    Post subject: Is Gentoo's xorg hardware output detection deprecated? Reply with quote

edit: bump with new headline


Hi @

My goal is to get my PC working with 2 video cards and 2 monitors.
But it seems that gentoo xorg has a faulty hardware output detection. So I ask here if anyone has a clue for me.
Here are the facts:
Quote:

OS: Gentoo/Linux x86_64
Kernel: 5.4.96-gentoo
CPU: AMD Ryzen 5 3600 (12) @ 3.600GHz
GPU: AMD ATI Radeon RX 460/560D / Pro 450/455/460/555/555X/560/560X
GPU: AMD ATI Radeon RX 550 640SP / RX 560/560X
Resolution: 3840x2160 LG Ultra HD (Display-0) , 1920x1080 Visio 230Ws (HDMI A-0)
DE: Plasma 5.20.5
WM: KWin
Memory: 4337MiB / 64308MiB


$ lspci | grep VGA
Quote:

04:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Baffin [Radeon RX 550 640SP / RX 560/560X] (rev cf)
0a:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Baffin [Radeon RX 460/560D / Pro 450/455/460/555/555X/560/560X] (rev c1)

On a second harddisk suse Tumbleweed is installed. When I start Tumbleweed the configuration is automatically detected.
Neither in /etc/X11/ nor in /etc/X11/xorg.conf.de/ is a configuration file.
The monitors and screens are automatically detected and associated with Card(0) or Card(1). I can swap the cables or use adapters,
everything works excelent and both graphic cards are in use.
/var/log/Xorg.0.log does not show any errors or warnings.

When I start gentoo without a xorg config, only one monitor and one screen is detected and assigned to the graphics card on PCI:a.
When I swap the cables or use adapters, the result is always the same. Only PCI:04 is used. (attach an Xorg.0.log)

So I made a minimalistic xorg.conf. When I create an xorg.conf-new in Suse or Gentoo with the command X -configure or Xorg -configure,
PCI:a is counted as PCI:10 in the configs. I have continued to work with PCI:10.

All input devices are automatically configured with elogind at bootlevel. Therefore, they are not included in xorg.conf.

Quote:

$ rc-update | grep elogind
elogind | boot


$ cat /etc/X11/xorg.conf #gentoo
Code:

Section "ServerLayout"
        Identifier     "X.org-Gentoo-Configured"
        Screen      0  "Screen0" 0 0
        Screen      1  "Screen1"  LeftOf "Screen0" #RightOf "Screen0"
EndSection
Section "Monitor"
        Identifier   "LG-Ultra-HD"
        VendorName   "LG Electronics"
        ModelName    "LG-32UD89-W"
EndSection
Section "Monitor"
        Identifier   "Packard-Bell"
        VendorName   "Packard Bell is a brand of Acer Inc"
        ModelName    "Viseo230Ws"
EndSection
Section "Device"
        Identifier  "Card0"
        Driver      "amdgpu"
        BusID       "PCI:4:0:0"
EndSection
Section "Device"
        Identifier  "Card1"
        Driver      "amdgpu"
        BusID       "PCI:10:0:0"
EndSection
Section "Screen"
        Identifier "Screen0"
        Device     "Card0"
        Monitor    "LG-Ultra-HD"
        DefaultDepth     24
                SubSection "Display"
                        Depth     24
                        Modes           "3840x2160" "2560x1440" "1920x1200" "1920x1080" "1600x1200" "1680x1050" "1600x900" "1280x1024" "1280x960" "1152x864" "1024x768" "800x600" "640x480"
                EndSubSection
        EndSection
Section "Screen"
        Identifier "Screen1"
        Device     "Card1"
        Monitor    "Packard-Bell"
        DefaultDepth     24
                SubSection "Display"
                       Depth     24
                       Modes           "1920x1080" "1280x1024" "1024x768" "800x600" "640x480"
                EndSubSection
EndSection
Section "DRI"
        Group        "video"
        Mode         0666
EndSection


After restarting gentoo with this xorg.conf I get the following values:
Xorg.0.log shows no relevant errors
Quote:
$ grep -E 'WW|EE' /var/log/Xorg.0.log #gentoo

(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 9.175] (II) Initializing extension MIT-SCREEN-SAVER
[ 9.584] (EE) Failed to open authorization file "/var/run/sddm/{4ce1c43b-a3c0-45b0-86fe-ed92f15afa1a}": No such file or directory


Quote:

$ xrandr --listproviders #gentoo
Providers: number : 1
Provider 0: id: 0x57 cap: 0xf, Source Output, Sink Output, Source Offload, Sink Offload crtcs: 5 outputs: 3 associated providers: 0 name:Radeon RX 560 Series @ pci:0000:04:00.0


But a proper initialization should look like this:
Quote:
$ xrandr --listproviders #suse

Providers: number : 2
Provider 0: id: 0x57; cap: 0xf (Source Output, Sink Output, Source Offload, Sink Offload); crtcs: 5; outputs: 3; associated providers: 1; name: Radeon RX 56>
output DisplayPort-0
output HDMI-A-0
output DVI-D-0
Provider 1: id: 0x94; cap: 0xf (Source Output, Sink Output, Source Offload, Sink Offload); crtcs: 5; outputs: 3; associated providers: 1; name: AMD Radeon (>
output DisplayPort-1-1
output HDMI-A-1-1
output DVI-D-1-1


The monitors are also not recognized correctly:
Gentoo
Quote:
$ xrandr --listmonitors #gentoo

Monitors: 1
0: +*DisplayPort-0 3840/600x2160/340+0+0 DisplayPort-0

Suse:
Quote:
$ xrandr --listmonitors #suse

Monitors: 2
0: +*DisplayPort-0 3840/600x2160/340+1920+0 DisplayPort-0
1: +HDMI-A-1-1 1920/509x1080/286+0+0 HDMI-A-1-1

Other controls look normal:
Quote:
$ ls -la /sys/class/graphics/ #gentoo

insgesamt 0
drwxr-xr-x 2 root root 0 8. Feb 21:53 .
drwxr-xr-x 76 root root 0 8. Feb 21:53 ..
lrwxrwxrwx 1 root root 0 8. Feb 21:53 fb0 -> ../../devices/pci0000:00/0000:00:01.2/0000:02:00.0/0000:03:02.0/0000:04:00.0/graphics/fb0
lrwxrwxrwx 1 root root 0 8. Feb 21:53 fb1 -> ../../devices/pci0000:00/0000:00:03.1/0000:0a:00.0/graphics/fb1
lrwxrwxrwx 1 root root 0 8. Feb 21:53 fbcon -> ../../devices/virtual/graphics/fbcon


status in /sys/class/drm/ #gentoo
Quote:
$ for p in /sys/class/drm/*/status; do con=${p%/status}; echo -n "${con#*/card?-}: "; cat $p; done

DP-1: connected
DVI-D-1: disconnected
HDMI-A-1: disconnected
DP-2: disconnected
DVI-D-2: disconnected
HDMI-A-2: connected


Quote:
$ dmesg | grep Initialized #gentoo

[ 4.312132] [drm] Initialized amdgpu 3.35.0 20150101 for 0000:04:00.0 on minor 0
[ 5.251508] [drm] Initialized amdgpu 3.35.0 20150101 for 0000:0a:00.0 on minor 1

Quote:
$ cat /var/log/Xorg.0.log | grep Output


[ 9.099] (II) AMDGPU(0): Output DisplayPort-0 using monitor section LG-Ultra-HD
[ 9.099] (II) AMDGPU(0): Output HDMI-A-0 has no monitor section
[ 9.099] (II) AMDGPU(0): Output DVI-D-0 has no monitor section
[ 9.116] (II) AMDGPU(0): Output DisplayPort-0 connected
[ 9.116] (II) AMDGPU(0): Output HDMI-A-0 disconnected
[ 9.116] (II) AMDGPU(0): Output DVI-D-0 disconnected
[ 9.117] (II) AMDGPU(0): Output DisplayPort-0 using initial mode 3840x2160 +0+0
[ 9.127] (II) AMDGPU(1): Output DisplayPort-1 using monitor section Packard-Bell
[ 9.127] (II) AMDGPU(1): Output HDMI-A-1 has no monitor section
[ 9.127] (II) AMDGPU(1): Output DVI-D-1 has no monitor section
[ 9.141] (II) AMDGPU(1): Output DisplayPort-1 disconnected
[ 9.141] (II) AMDGPU(1): Output HDMI-A-1 connected
[ 9.141] (II) AMDGPU(1): Output DVI-D-1 disconnected
[ 9.141] (II) AMDGPU(1): Output HDMI-A-1 using initial mode 1920x1080 +0+0


As I said, the result is a fully working screen on DisplayPort-0.
But the second screen is black and shows a big X mouse pointer. I can move the mouse between the screens.
When I start a application in Plasma, the bouncing application start icon appears on the black screen.

In plasma system settings "Display and monitor" there is only one screen.
This behaviour is the same for kernels of the 4 series.

In both operating systems I have installed radeon-profile. https://github.com/marazmista/radeon-profile

This program shows a very interesting difference. In suse only one virtuel screen is displayed.
In gentoo there are two virtual screens. Here are two pictures to show the difference of the virtual monitors.
radeon-profile in suse https://ibb.co/S0V0Nbz
radeon-profile in gentoo https://ibb.co/0KHsHF1

When plasma is started after logging into sddm, the kde logo appears in the middle of the screen and again in the upper left fourth.
It seems that the second screen starts inside the first one.
Code:

        DisplayPort-0
        kde logo: @
        __________________
        !        !       !
        !   @    !       !
        !________!       !
        !         @      !
        !                !
        !                !
        ------------------



When I use my xorg.conf in Suse, I get the same error messages as in Gentoo. This means that my xorg-conf is incomplete.
My research on the internet did not find any solutions for me. But I think this just proves my lack of expertise.

Here are some more complete files:

emerge --info https://pastebin.com/N3GiRcgG
Full-xorg-stack-gentoo https://pastebin.com/41umjmu0
lshw-c-video-gentoo-10 https://pastebin.com/jimPJsXZ
Xorg.0.log-gentoo https://pastebin.com/LVBWgews
full-xrandr-gentoo https://pastebin.com/3ctbUg8C
full-dmesg-gentoo https://pastebin.com/JSxdSdeq
glxinfo-l-GL_MAX_TEXTURE_SIZE-gentoo https://pastebin.com/Jz5QejgS

If you need further information please let me know.

I would appreciate for any advice on how to solve this problem.

Ma
_________________
------------------------------------------------------------------
http://radio.garden/
Back to top
View user's profile Send private message
Marlo
Veteran
Veteran


Joined: 26 Jul 2003
Posts: 1591

PostPosted: Sat Feb 13, 2021 10:45 am    Post subject: Reply with quote

bump
_________________
------------------------------------------------------------------
http://radio.garden/
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54304
Location: 56N 3W

PostPosted: Sat Feb 13, 2021 11:33 am    Post subject: Reply with quote

Marlo,

There is a very old Wiki page.
Don't do the automatic thing. Its been broken for a long time. The xorg.conf should be good for a template for you though.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
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