mirror of
https://github.com/phillipberndt/autorandr
synced 2025-02-20 13:57:03 +00:00
Implemented the suggestions
This commit is contained in:
parent
56612c27f6
commit
7d127f5879
@ -36,6 +36,10 @@ detect_display()
|
||||
done
|
||||
}
|
||||
|
||||
if grep -q systemd $(readlink -f $(awk '{print $1}' /proc/1/cmdline)) && [ "$2" = "udev" ]; then
|
||||
exec /bin/systemctl start autorandr-resume.service
|
||||
fi
|
||||
|
||||
case "$1" in
|
||||
thaw|resume)
|
||||
detect_display
|
||||
|
@ -1 +1 @@
|
||||
ACTION=="change", SUBSYSTEM=="drm", RUN+="/bin/systemctl start autorandr-resume.service"
|
||||
ACTION=="change", SUBSYSTEM=="drm", RUN+="/etc/pm/sleep.d/40autorandr thaw udev"
|
||||
|
Loading…
Reference in New Issue
Block a user