Both Displays on Startup Mess up

Hey there,

I’m trying to figure out something. I have an older macbook air and a secondary display connected via mini-display port. If the 2nd display is connected when booting the computer, both screens resolutions display incorrectly, plus some other weird stuff. The laptop display itself is shrunken in the screen, pushed to the top left, like maybe taking yp 80% of the actual screen - while the rest of the screen along the right and bottom still displays what the screen would actually display. Then the 2nd display has a resolution smaller that what it should be.

When I unplug then plug back in both displays work properly at the correct resolutions.

Another weird behavior is that if I leave the 2nd display plugged in and log in, then certain display settings are saved, like icons on the desktop are now on the left instead of the right, for example.

Has anyone experienced something like this?

Have you tried using xrandr and setting the second display.
Query the output

xrandr -q

Example output:

LVDS-0 connected primary 1280x800+0+0 (normal left inverted right x axis y axis) 286mm x 179mm
   1280x800       60.2+
DP-0 disconnected (normal left inverted right x axis y axis)
DP-1 disconnected (normal left inverted right x axis y axis)
   2560x1440      60.0+
   1280x720       59.9

Then set the output:

Example setting:

xrandr --output DP-0 --mode 2560x1440 --right-of LVDS-0

Read the man pages for xrandr:

man xrandr


There’s a patch applied in Arch’s qt5-base 5.15.1-2 now.