From: Mathias Svensson Date: Wed, 3 Feb 2016 15:36:05 +0000 (+0100) Subject: Works on my machine X-Git-Tag: 1.0~28^2~1 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=56612c27f66f78fd3622f6715f062e883939bc9a;p=deb_pkgs%2Fautorandr.git Works on my machine --- diff --git a/contrib/pm-utils/40autorandr b/contrib/pm-utils/40autorandr index 8a66f39..4197224 100755 --- a/contrib/pm-utils/40autorandr +++ b/contrib/pm-utils/40autorandr @@ -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 diff --git a/contrib/udev/40-monitor-hotplug.rules b/contrib/udev/40-monitor-hotplug.rules index 4c48ffb..116bf86 100644 --- a/contrib/udev/40-monitor-hotplug.rules +++ b/contrib/udev/40-monitor-hotplug.rules @@ -1 +1 @@ -ACTION=="change", SUBSYSTEM=="drm", RUN+="/etc/pm/sleep.d/40autorandr thaw" +ACTION=="change", SUBSYSTEM=="drm", RUN+="/bin/systemctl start autorandr-resume.service"