mirror of
https://github.com/phillipberndt/autorandr
synced 2025-02-20 13:57:03 +00:00
Works on my machine
This commit is contained in:
parent
adb35ed8a7
commit
56612c27f6
@ -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
|
||||
|
@ -1 +1 @@
|
||||
ACTION=="change", SUBSYSTEM=="drm", RUN+="/etc/pm/sleep.d/40autorandr thaw"
|
||||
ACTION=="change", SUBSYSTEM=="drm", RUN+="/bin/systemctl start autorandr-resume.service"
|
||||
|
Loading…
Reference in New Issue
Block a user