The Cookie Machine - Click here to drag window

DUMMY TEXT - Real text set in assets/js/theCookieMachine.js

Views: 2,485โ€…    Votes:  0โ€…    โœ… Solution
Tags: 16.04   drivers   intel-graphics   hdmi   xrandr  
Link: ๐Ÿ” See Original Answer on Ask Ubuntu ๐Ÿ”—

URL: https://askubuntu.com/q/1079356
Title: Xrandr shows HDMI1 disconnect w/ HDMI2 as primary with only one monitor
ID: /2018/09/28/Xrandr-shows-HDMI1-disconnect-w_-HDMI2-as-primary-with-only-one-monitor
Created: September 28, 2018    Edited:  March 21, 2022
Upload: November 24, 2022    Layout:  post
TOC: false    Navigation:  false    Copy to clipboard:  false


No cause for concern with extra HDMI monitor names

As long as everything works, you neednโ€™t worry how xrandr assigns monitor names.

In my setup for example:

$ xrandr | grep connected

HDMI-0 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 1107mm x 623mm
eDP-1-1 connected primary 1920x1080+0+1080 (normal left inverted right x axis y axis) 382mm x 215mm
DP-1-1 connected 1920x1080+1920+532 (normal left inverted right x axis y axis) 708mm x 398mm
HDMI-1-1 disconnected (normal left inverted right x axis y axis)
DP-1-2 disconnected (normal left inverted right x axis y axis)
HDMI-1-2 disconnected (normal left inverted right x axis y axis)

Everything works and Iโ€™m not concerned there are duplicate names for HDMI-1 that show as โ€œdisconnectedโ€.

A better technique is to use:

$ xrandr | grep " connected "

HDMI-0 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 1107mm x 623mm
eDP-1-1 connected primary 1920x1080+3840+2160 (normal left inverted right x axis y axis) 382mm x 215mm
DP-1-1 connected 3840x2160+1920+0 (normal left inverted right x axis y axis) 1600mm x 900mm

This technique spares you from sifting through โ€œdisconnectedโ€ monitors and more importantly is less confusing.

โ‡ง Does my system clock automatically sync to the hardware clock? No more 4K Screen Resolution after Kernel Upgrade  โ‡ฉ