Skip to content

Xorg output names changing on reboots.

For some reason the Xorg output names change between reboots. Seems to affect HDMI mostly.

I have 2 gpus in my system. I have set the GPUs to load in specific order in Xorg with:

$ cat /etc/X11/xorg.conf.d/30-RX.conf

#BusID is in decimal, lspci shows it in hex. format is PCI:xx:xx:x
Section "Device"
        Identifier  "AMD Radeon RX"
        Driver      "amdgpu"
        BusID       "PCI:48:00:0"
        Option      "TearFree" "true"
EndSection

$ cat /etc/X11/xorg.conf.d/40-HD.conf

Section "Device"
        Identifier  "AMD Radeon HD 6000/7000"
        Driver      "radeon"
        BusID       "PCI:44:00:0"
        Option      "TearFree" "true"
EndSection

It used to work with only that. When the display names started changing, it first did only affect xfce panels.

But now it affects even monitor layouts in xfce.

And If I switch to openbox, The xrandr script from arandr wont work because the output names have changed.

xrandr Providers:

$ xrandr --listproviders

Providers: number : 2
Provider 0: id: 0x59 cap: 0xf, Source Output, Sink Output, Source Offload, Sink Offload crtcs: 6 outputs: 4 associated providers: 1 name:AMD Radeon RX 5700 XT @ pci:0000:30:00.0
Provider 1: id: 0xa2 cap: 0xf, Source Output, Sink Output, Source Offload, Sink Offload crtcs: 4 outputs: 3 associated providers: 1 name:CAICOS @ pci:0000:2c:00.0

Monitors:

$ randr --listmonitors

Monitors: 5
 0: +*DisplayPort-0 1920/518x1200/324+1920+1200  DisplayPort-0
 1: +DisplayPort-2 1920/518x1200/324+1920+0  DisplayPort-2
 2: +HDMI-A-1 1200/518x1920/324+3840+480  HDMI-A-1
 3: +HDMI-1-0 1920/527x1080/296+0+1200  HDMI-1-0
 4: +DVI-1-0 1680/473x1050/296+0+150  DVI-1-0

And after they changed after reboot:

Monitors: 5
 0: +*DisplayPort-0 1920/518x1200/324+1920+1200  DisplayPort-0
 1: +DisplayPort-2 1920/518x1200/324+1920+0  DisplayPort-2
 2: +HDMI-A-0 1200/518x1920/324+3840+480  HDMI-A-0
 3: +DVI-1-0 1680/473x1050/296+0+150  DVI-1-0
 4: +HDMI-1-1 1920/527x1080/296+0+1200  HDMI-1-1

$ ls /sys/class/drm

card0  card0-DP-1  card0-DP-2  card0-DP-3  card0-HDMI-A-1  card1  card1-DVI-D-1  card1-HDMI-A-2  card1-VGA-1  renderD128  renderD129  ttm  version

After another reboot, these do not seem to change:

card0  card0-DP-1  card0-DP-2  card0-DP-3  card0-HDMI-A-1  card1  card1-DVI-D-1  card1-HDMI-A-2  card1-VGA-1  renderD128  renderD129  ttm  version
4 points5 comments
Open on Reddit
About this post
Posted
Archived
Score
4 · 75% up
Kind
Text
ID
mrb6ea

Author

15
posts
24
comments
0
media
View profile

6 comments

Ive also had this problem forever. It usually uses the long names but once in a while it uses the short ones. Id prefer the short names but I have jomclue how it happens or where. It happens to me with Display port and HDMI outputs.

1 points

I think I found it.

See my other comment in the thread for more details.

1 points

My problem is actually weirder. Most of the time my outputs have long names but sometimes they change to shorter ones, ie: DisplayPort-0 to DP-1 and HDMI-1 to HDMI-A-1. It also occurs on just a single GPU.

1 points

Yes I have now seen also reports of this happening with VGA/DVI/DisplayPort etc. Must be a bug, or atleast unintended consequence somewhere.

One workaround (not fix), atleast for the screen layout, would be to query with xrandr the display names, and parse the names for the script accordingly.

Of course that will not fix the problem itself, for example xfce4-panel would still be displaying on the wrong screen, as the output name is still the old one.

1 points
unknown author

Deleted before we saved it.

1 points

I think because it is only HDMI numbers changing, it must be that the outputs are detected in different order each boot.

Because I have the outputs on 2 different gpus, I can try to load the kernel modules in order:

> /etc/mkinitcpio.conf
MODULES=(amdgpu radeon ...)

So far the outputs have been same, but will report if things change.

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.