Making MST work for me

Keith Packard keithp at keithp.com
Sun Dec 27 19:39:05 PST 2015


I finally dug a 4k monitors out and plugged it into my laptop. Of
course, my laptop needs to use MST to drive it at 60Hz.

I got to fix version 2.24 of gtk+:

	https://bugzilla.gnome.org/show_bug.cgi?id=759912

Next, I wanted to automatically configure things when I plugged and
unplugged the external monitor.

A long time ago, I wrote a simple C program that monitored randr events
and ran scripts when things changed; this moves the policy out of the C
program and into a "simple" shell script:

        git://people.freedesktop.org/~keithp/x-on-resize.git

I'd had a workable shell script for a long time. I started trying to
hack that to also support MST configuration, but eventually decided to
abandon that and start over. I've added my new 'xrandr-auto' script to
the x-on-resize git repository. The MST monitor configuration bits are
general purpose, but there's a bit of policy about which monitor should
be primary, and how to lay monitors out in the screen.

This works for me; and can probably be hacked to work for others.

-- 
-keith
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 810 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg-devel/attachments/20151227/82db2dce/attachment.sig>


More information about the xorg-devel mailing list