Skip to content

Commit

Permalink
Works on my machine
Browse files Browse the repository at this point in the history
  • Loading branch information
Mathias Svensson committed Feb 3, 2016
1 parent adb35ed commit 56612c2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions contrib/pm-utils/40autorandr
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -42,6 +38,6 @@ detect_display()

case "$1" in
thaw|resume)
detect_display &
detect_display
;;
esac
2 changes: 1 addition & 1 deletion contrib/udev/40-monitor-hotplug.rules
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ACTION=="change", SUBSYSTEM=="drm", RUN+="/etc/pm/sleep.d/40autorandr thaw"
ACTION=="change", SUBSYSTEM=="drm", RUN+="/bin/systemctl start autorandr-resume.service"

0 comments on commit 56612c2

Please sign in to comment.