Works on my machine

This commit is contained in:
Mathias Svensson 2016-02-03 16:36:05 +01:00
parent adb35ed8a7
commit 56612c27f6
2 changed files with 2 additions and 6 deletions

View File

@ -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

View 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"