monitor hotplug resolution switch

Felix Miata mrmazda at earthlink.net
Wed Dec 13 22:42:49 UTC 2017


Johann Obermayr composed on 2017-12-13 15:07 (UTC):

> now i have compile 2.99.917 and enable VirtualHeads in the xorg.conf.

> xrandr --newmode "1920x1080" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 
> xrandr --addmode VIRTUAL1 "1920x1080"
> xrandr --output VIRTUAL1 --mode "1920x1080"

> now it looks like it works.
> The resolution is always 1920x1080, even if I connect / disconnect DisplayPort or HDMI Monitor.

> Can I put this settings into the xorg.conf ?
> Or is xrandr the only way ?                            

Setting in xorg.conf was the only way before xrandr existed. Setting in
xorg.conf may cause those settings to be applied sooner as well, so that they
affect any GUI login manager that might be starting, instead of at later window
manager startup.

Also, you *should* need *no* modelines if you include valid values for these
three options:

VertRefresh
HorizSync
PreferredMode

I've *never* needed to include modelines to produce the resolution I want. Xorg
knows how to auto-generate modelines quite well given those basic substitutes
for a display's EDID.
-- 
"Wisdom is supreme; therefore get wisdom. Whatever else you
get, get wisdom." Proverbs 4:7 (New Living Translation)

 Team OS/2 ** Reg. Linux User #211409 ** a11y rocks!

Felix Miata  ***  http://fm.no-ip.com/


More information about the xorg mailing list