You are not logged in.

#1 2023-09-13 20:38:43

PleasureToKill
Member
Registered: 2023-09-13
Posts: 6

Xrandr output order keep changing between reboots

For some reason the order of the outputs from `xrandr --listactivemonitors` keeps changing between reboots.

Is there a way to affect that or at least understand the algorithm?

Thanks.

I'm running the latest proprietary `nvidia` driver.

Offline

#2 2023-09-14 07:19:35

seth
Member
Registered: 2012-09-03
Posts: 53,203

Re: Xrandr output order keep changing between reboots

Is it only the order of the list or also the primary output or do the output names even change?
Please post your Xorg log, https://wiki.archlinux.org/title/Xorg#General - I've a feeling that this is just another simpledrm related issue…

Offline

#3 2023-09-14 08:52:37

PleasureToKill
Member
Registered: 2023-09-13
Posts: 6

Re: Xrandr output order keep changing between reboots

Thanks for your reply.

`Xorg.0.log`:

https://pastebin.com/HkSrEL7b


HDMI and DisplayPort output names are stable (HDMI-0 and DP-0), but the laptop internal display output name changes (eDP-1 <-> eDP-1-1).

Last edited by PleasureToKill (2023-09-14 09:14:56)

Offline

#4 2023-09-14 14:33:42

seth
Member
Registered: 2012-09-03
Posts: 53,203

Re: Xrandr output order keep changing between reboots

1. this is a hybrid system and you're currently running on the nvidia chip, though I see no typical config to enforce that, so it might be a race condition that selectes the primary GPU.
https://wiki.archlinux.org/title/PRIME
Please elaborate on your desired use of the hardware, we might have to nudge it to prefer the intel chip.

2.

[    13.918] (II) xfree86: Adding drm device (/dev/dri/card0)
[    13.918] (II) Platform probe for /sys/devices/platform/simple-framebuffer.0/drm/card0

You want to get rid of that: https://wiki.archlinux.org/title/NVIDIA … de_setting

Offline

#5 2023-09-14 15:31:17

PleasureToKill
Member
Registered: 2023-09-13
Posts: 6

Re: Xrandr output order keep changing between reboots

1. I'm not sure what exactly do I need to look at.

2. I've added the modesetting flag to the kernel parameters and added the modules to the mkinitcpio configuration. The lines you've highlighted are still present in the log:

https://pastebin.com/M5DWvMpF

Offline

#6 2023-09-14 15:36:15

seth
Member
Registered: 2012-09-03
Posts: 53,203

Re: Xrandr output order keep changing between reboots

I've added the modesetting flag to the kernel parameters

[    13.908] Kernel command line: BOOT_IMAGE=/vmlinuz-linux root=/dev/mapper/vg-root rw loglevel=3 quiet cryptdevice=UUID=0b974d54-3d72-4d38-9995-e33cc37324b1:cryptlvm resume=UUID=a0e07cee-d74c-494b-a11c-712126bc2c0c

Forgot to grub-mkconfig?
Adding the modules to the initramfs isn't necessary for this.

The wiki provides a lot of information about configuring options for your hardware.
Primarily be aware of that and figure how you want to use the system.

Offline

#7 2023-09-14 19:23:39

PleasureToKill
Member
Registered: 2023-09-13
Posts: 6

Re: Xrandr output order keep changing between reboots

The thing is, I didn't forget to grub-mkconfig. Here's the grub.cfg:

https://pastebin.com/Vyt0sPTD

nvidia_drm.modeset is there.

And here's the /etc/default/grub the config is generated from for good measure:

https://pastebin.com/NT2DpWUe

Maybe it's X that's ignoring the parameter in the log?

Offline

#8 2023-09-14 19:28:44

seth
Member
Registered: 2012-09-03
Posts: 53,203

Re: Xrandr output order keep changing between reboots

X11 just posts the kernel commandline, but the xorg log you posted in #5 is from teh same server as the one in #3
iow you posted an Xorg log that was likely dated, did you not reboot?

=> Post an updated xorg log.

Offline

#9 2023-09-15 08:22:07

PleasureToKill
Member
Registered: 2023-09-13
Posts: 6

Re: Xrandr output order keep changing between reboots

Sorry, I didn't know it was moved to .local. Here it is:

https://pastebin.com/GbxXbE0a

Offline

#10 2023-09-15 14:36:00

seth
Member
Registered: 2012-09-03
Posts: 53,203

Re: Xrandr output order keep changing between reboots

The simplydumb device is gone, you're still running on the nvidia GPU.
Do the output names/order still change?
If so, please post the different outputs along the x11 log of the at the time running server.

Offline

#11 2023-09-18 08:12:47

PleasureToKill
Member
Registered: 2023-09-13
Posts: 6

Re: Xrandr output order keep changing between reboots

The names still change, now I have eDP-1-2 for some reason.

Xorg.0.log:
https://pastebin.com/T58gHXXa

xrandr --listactivemonitors:
https://pastebin.com/DgbNQt6D

Offline

#12 2023-09-18 08:29:40

seth
Member
Registered: 2012-09-03
Posts: 53,203

Re: Xrandr output order keep changing between reboots

Introduced

[    30.515] (--) NVIDIA(GPU-0): DELL SE2216H (DFP-4): connected
[    30.515] (--) NVIDIA(GPU-0): DELL SE2216H (DFP-4): Internal TMDS
[    30.515] (--) NVIDIA(GPU-0): DELL SE2216H (DFP-4): 600.0 MHz maximum pixel clock

I assume this happens because the eDP is attached to the intel chip and available through reverse prime on the nvidia chip running the server and the nvidia driver alters the "foreign" output names depending on the present directly attached outputs.

Offline

Board footer

Powered by FluxBB