Score:0

Make setup for two external monitors permanent (nvidia/xorg)

ni flag

I have a HP Zbook G15 running Ubuntu 22.04 with a Quadro M1000M GPU and two external monitors: One connected to HDMI, one connected with a usb-c to HDMI adapter to the usb-c port. Problem is that I cannot get the setup permanent. I'd like

Laptop screen (DP-3) Monitor 1 (DP-0) Monitor 2 (DP-4)

Currently I'm getting:

Monitor 1 (DP-0) Laptop screen (DP-3) Monitor 2 (DP-4)

Nice.

I've tried:

  • /etc/X11/xorg.conf editing the line of "screens" section

Option "metamodes" "DP-3: nvidia-auto-select +0+0, DP-0: nvidia-auto-select +1920+0, DP-4: nvidia-auto-select +3840+0" which gets fully ignored.

  • Running the xrandr command

xrandr --output DP-3 --pos 0x0 --output DP-0 --pos 1920x0 --output DP-4 --pos 3840x0

This actually works, but I don't know how to make it permanent. Tried .xsession, .xprofile and .xinit but I don't know if done so correctly. Which should work? And how to do it correctly? Thanks.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.