wertarbyte/autorandr — pull request #7 by maciex (2012-02-12 13:22:08+00:00)
Title: Added one fix and two new features

Feature 1:
I added a pm-utils hook, using it user will get autorandr's profile detected on resume from hibernation/suspend.

Feature 2:
Detecting which output is primary and saving it to config. It's done using xdpyinfo. This is the only working command line solution I figured out.
I plan to write a patch for xrandr to report which output is primary. Then ask xrandr developers if it's OK and if they can merge it. So there will be a cleaner solution.

Fix:
My xrandr is reporting "unknown connection" for one of the outputs, so I added it as "off" to config:
[code]
$ xrandr
Screen 0: minimum 320 x 200, current 1920 x 1200, maximum 8192 x 8192
LVDS-1 unknown connection (normal left inverted right x axis y axis)
1680x1050 60.1 + 60.0 50.1

VGA-1 disconnected (normal left inverted right x axis y axis)
DVI-D-1 connected 1920x1200+0+0 (normal left inverted right x axis y axis) 518mm x 324mm
1920x1200 60.0*+

[/code]