Implemented the suggestions

This commit is contained in:
Mathias Svensson 2016-02-04 12:56:20 +01:00
parent 56612c27f6
commit 7d127f5879
2 changed files with 5 additions and 1 deletions

View File

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

View File

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