]> git.donarmstrong.com Git - deb_pkgs/autorandr.git/blobdiff - contrib/pm-utils/40autorandr
Implemented the suggestions
[deb_pkgs/autorandr.git] / contrib / pm-utils / 40autorandr
index 419722474a90278edd71b0f767722e8b4954702e..0c107486113bb7552134831877fa9f49a33bbfec 100755 (executable)
@@ -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