]> git.donarmstrong.com Git - deb_pkgs/autorandr.git/commitdiff
Works on my machine
authorMathias Svensson <idolf@pwnies.dk>
Wed, 3 Feb 2016 15:36:05 +0000 (16:36 +0100)
committerMathias Svensson <idolf@pwnies.dk>
Wed, 3 Feb 2016 16:43:55 +0000 (17:43 +0100)
contrib/pm-utils/40autorandr
contrib/udev/40-monitor-hotplug.rules

index 8a66f3971f84d408e322e8ef0c692e0f892c8d43..419722474a90278edd71b0f767722e8b4954702e 100755 (executable)
@@ -7,10 +7,6 @@ AUTORANDR="autorandr -c --default default"
 
 detect_display()
 {
-       # Wait for the system to recognize the changed state, see bug #30
-       # Note the ampersand below, this runs asynchroneously.
-       sleep 5
-
        for X in /tmp/.X11-unix/X*; do
                D="${X##/tmp/.X11-unix/X}"
                # Prefer w to who, see bug #39
@@ -42,6 +38,6 @@ detect_display()
 
 case "$1" in
        thaw|resume)
-               detect_display &
+               detect_display
                ;;
 esac
index 4c48ffb0f7ce0ad7116d43a34e18dc7966502579..116bf86f0e1f77b20fc4a52791624de487314333 100644 (file)
@@ -1 +1 @@
-ACTION=="change", SUBSYSTEM=="drm", RUN+="/etc/pm/sleep.d/40autorandr thaw"
+ACTION=="change", SUBSYSTEM=="drm", RUN+="/bin/systemctl start autorandr-resume.service"