LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-30-2022, 06:28 AM   #1
SafetyPotato
LQ Newbie
 
Registered: Apr 2022
Posts: 2

Rep: Reputation: 0
xrandr - Issues using --left-of to set up a second display


I have two monitors, DP-3 with 2560x1440 resolution, and HDMI-1 with 1920x1200 resolution. I want HDMI-1 to be displayed to the left of DP-3. When I run xrandr --output HDMI-1 --auto --right-of DP-3 everything displays as intended, but when I use --left-of the entirety of what originally displayed on HDMI-1 gets displayed on the DP-3 monitor and the rest of what was originally displayed on DP-3 extends into the monitor of HDMI-1.

I don't know if this helps, but I'm using i3 and LightDM as my windowing and display managers
 
Old 04-30-2022, 03:33 PM   #2
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,813
Blog Entries: 1

Rep: Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068
What does inxi -GSaz report? (install inxi if not already installed)

What does xrandr --output DP-3 --auto --right-of HDMI-1 do?

What does xrandr --output HDMI-1 --primary --output DP-3 --auto --right-of HDMI-1 do?
 
Old 05-01-2022, 08:49 AM   #3
SafetyPotato
LQ Newbie
 
Registered: Apr 2022
Posts: 2

Original Poster
Rep: Reputation: 0
reply

What does inxi -GSaz report? (install inxi if not already installed):

System:
Kernel: 5.17.3-arch1-1 arch: x86_64 bits: 64 compiler: gcc v: 11.2.0
parameters: BOOT_IMAGE=/boot/vmlinuz-linux
root=UUID=b00c167a-dc98-4d36-a3c1-0ded6d8fbc0e rw nouveau.modset=0
loglevel=3 quiet
Desktop: i3 v: 4.20.1 info: i3bar vt: 7 dm: LightDM v: 1.30.0
Distro: Arch Linux
Graphics:
Device-1: NVIDIA GA102 [GeForce RTX 3080 Ti] driver: nouveau v: kernel
pcie: gen: 4 speed: 16 GT/s lanes: 16 ports: active: DP-3,HDMI-A-1
empty: DP-1,DP-2 bus-ID: 0b:00.0 chip-ID: 10de:2208 class-ID: 0300
Display: x11 server: X.org v: 1.21.1.3 driver: X: loaded: modesetting
alternate: fbdev,nouveau,nv,vesa gpu: nouveau display-ID: :0 screens: 1
Screen-1: 0 s-res: 4480x1440 s-size: <missing: xdpyinfo>
Monitor-1: DP-3 pos: primary,left model: LG (GoldStar) ULTRAGEAR
serial: <filter> built: 2021 res: 2560x1440 hz: 165 dpi: 93 gamma: 1.2
size: 697x392mm (27.44x15.43") diag: 800mm (31.5") ratio: 16:9 modes:
max: 2560x1440 min: 640x480
Monitor-2: HDMI-A-1 mapped: HDMI-1 pos: right model: Asus VS24A
serial: <filter> built: 2014 res: 1920x1200 hz: 60 dpi: 94 gamma: 1.2
size: 518x324mm (20.39x12.76") diag: 611mm (24.1") ratio: 16:10 modes:
max: 1920x1200 min: 640x480

What does xrandr --output DP-3 --auto --right-of HDMI-1 do?

Gives same exact issue I described when I used xrandr --output HDMI-1 --auto --left-of DP-3

What does xrandr --output HDMI-1 --primary --output DP-3 --auto --right-of HDMI-1 do?

Gives same exact issue I described when I used xrandr --output HDMI-1 --auto --left-of DP-3

I think it's also worth mentioning that while the displays are messed up, it seems like the environment still thinks the windows are in their original positions. So, say a terminal screen on that was originally displayed on DP-3 gets shifted into the display of HDMI-1, I still have to click on the area where it originally was on DP-3 in order for me to interact with it.
 
Old 05-02-2022, 07:18 AM   #4
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,813
Blog Entries: 1

Rep: Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068
Same results if you leave out --auto? It's not needed here, and both right-of and left-of produce expected results:
Code:
# inxi -GSaz
System:
  Kernel: 5.17.4-1-default arch: x86_64 bits: 64 compiler: gcc v: 11.2.1
    parameters: root=LABEL=<filter> ipv6.disable=1 net.ifnames=0 noresume
    mitigations=auto consoleblank=0 5
  Desktop: KDE v: 3.5.10 tk: Qt v: 3.3.8c info: kicker wm: kwin vt: 7
    dm: KDM Distro: openSUSE Tumbleweed 20220428
Graphics:
  Device-1: NVIDIA GF119 [NVS 310] vendor: Hewlett-Packard driver: nouveau
    v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 16 ports: active: DP-1,DP-2
    empty: none bus-ID: 01:00.0 chip-ID: 10de:107d class-ID: 0300
  Display: x11 server: X.Org v: 21.1.3 driver: X: loaded: modesetting
    unloaded: fbdev,vesa alternate: nouveau,nv,nvidia gpu: nouveau
    display-ID: :0 screens: 1
  Screen-1: 0 s-res: 4480x1440 s-dpi: 120 s-size: 948x304mm (37.32x11.97")
    s-diag: 996mm (39.19")
  Monitor-1: DP-1 pos: primary,left model: Acer K272HUL serial: <filter>
    built: 2018 res: 2560x1440 hz: 60 dpi: 109 gamma: 1.2
    size: 598x336mm (23.54x13.23") diag: 686mm (27") ratio: 16:9 modes:
    max: 2560x1440 min: 720x400
  Monitor-2: DP-2 pos: right model: NEC EA243WM serial: <filter>
    built: 2011 res: 1920x1200 hz: 60 dpi: 94 gamma: 1.2
    size: 519x324mm (20.43x12.76") diag: 612mm (24.1") ratio: 16:10 modes:
    max: 1920x1200 min: 640x480
  OpenGL: renderer: NVD9 v: 4.3 Mesa 22.0.2 direct render: Yes
# ls -1 /sys/class/drm
card0
card0-DP-1
card0-DP-2
renderD128
version
Above is from my newest NVidia GPU, 10+ years old, with no hdmi outputs. My older ones only have HDMI + DVI + VGA, e.g.:
Code:
# inxi -GSaz
System:
  Kernel: 5.17.4-1-default arch: x86_64 bits: 64 compiler: gcc v: 11.2.1
    parameters: root=LABEL=<filter> ipv6.disable=1 net.ifnames=0 noresume
    mitigations=auto consoleblank=0 vga=791 video=1440x900@60 5
  Desktop: KDE Plasma v: 5.24.4 tk: Qt v: 5.15.2 wm: kwin_x11 vt: 7 dm: KDM
    Distro: openSUSE Tumbleweed 20220428
Graphics:
  Device-1: NVIDIA GT218 [GeForce 210] vendor: eVga.com. driver: nouveau
    v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 16 ports:
    active: DVI-I-1,HDMI-A-1 empty: VGA-1 bus-ID: 01:00.0 chip-ID: 10de:0a65
    class-ID: 0300
  Display: x11 server: X.Org v: 21.1.3 compositor: kwin_x11 driver: X:
    loaded: modesetting unloaded: fbdev,vesa alternate: nouveau,nv,nvidia
    gpu: nouveau display-ID: :0 screens: 1
  Screen-1: 0 s-res: 4480x1440 s-dpi: 120 s-size: 948x304mm (37.32x11.97")
    s-diag: 996mm (39.19")
  Monitor-1: DVI-I-1 pos: primary,left model: Acer K272HUL serial: <filter>
    built: 2018 res: 2560x1440 hz: 60 dpi: 109 gamma: 1.2
    size: 598x336mm (23.54x13.23") diag: 686mm (27") ratio: 16:9 modes:
    max: 2560x1440 min: 720x400
  Monitor-2: HDMI-A-1 mapped: HDMI-1 pos: right model: NEC EA243WM
    serial: <filter> built: 2011 res: 1920x1200 hz: 60 dpi: 94 gamma: 1.2
    size: 519x324mm (20.43x12.76") diag: 612mm (24.1") ratio: 16:10 modes:
    max: 1920x1200 min: 640x480
  OpenGL: renderer: NVA8 v: 3.3 Mesa 22.0.2 direct render: Yes
# ls -1 /sys/class/drm
card0
card0-DVI-I-1
card0-HDMI-A-1
card0-VGA-1
renderD128
version
This too behaves as expected.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Display not turning off when using xrandr --output <display> --off. Instead it just turns black. bluesk Linux - Newbie 5 07-18-2020 10:24 AM
Computer detecting right-click as left-click, left-click as left-click and middle with 2 fingers pressed as right-click Festerdam Linux - Newbie 5 06-19-2017 05:41 PM
Using 2 android phones for second & third display monitors with xrandr and x11vnc Lop3 Linux - Software 1 12-03-2015 12:41 PM
CentOS Display Problems, your display needs tweaking, here you go, no xrandr needed.. damiank Linux - Desktop 0 08-09-2012 02:14 AM
radeon and dual head, to xrandr or not to xrandr, that's the question i92guboj Linux - Desktop 1 06-17-2009 05:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:10 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration