From aad63c5058e3d15ea3a671a604bdc95140d4c4fe Mon Sep 17 00:00:00 2001 From: Phillip Berndt Date: Wed, 7 Jun 2017 10:31:01 +0200 Subject: [PATCH] Call systemctl with `--no-block` from udev rule (Fixes #61) --- Makefile | 2 +- README.md | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 7125730..1af39a3 100644 --- a/Makefile +++ b/Makefile @@ -111,7 +111,7 @@ endif install_udev: $(if $(UDEV_RULES_DIR),,$(error UDEV_RULES_DIR is not defined)) mkdir -p ${DESTDIR}/${UDEV_RULES_DIR}/ - echo 'ACTION=="change", SUBSYSTEM=="drm", RUN+="$(if $(findstring systemd, $(TARGETS)),/bin/systemctl start autorandr.service,${PREFIX}/bin/autorandr --batch --change --default default)"' > ${DESTDIR}/${UDEV_RULES_DIR}/40-monitor-hotplug.rules + echo 'ACTION=="change", SUBSYSTEM=="drm", RUN+="$(if $(findstring systemd, $(TARGETS)),/bin/systemctl start --no-block autorandr.service,${PREFIX}/bin/autorandr --batch --change --default default)"' > ${DESTDIR}/${UDEV_RULES_DIR}/40-monitor-hotplug.rules @echo @echo "To activate the udev rules, run this command as root:" @echo " udevadm control --reload-rules" diff --git a/README.md b/README.md index 728def6..2c08d50 100644 --- a/README.md +++ b/README.md @@ -135,6 +135,7 @@ The most useful one is `$AUTORANDR_CURRENT_PROFILE`. ## Changelog +* *2017-06-07* Call systemctl with `--no-block` from udev rule (See #61) * *2017-01-20* New script hook, `predetect` * *2017-01-18* Accept comments (lines starting with `#`) in config/setup files -- 2.39.2