Am 05.07.2015 um 19:58 schrieb Ritesh Raj Sarraf: > Control: reassign -1 laptop-mode-tools > > > Hello Michael, > > > On Sunday 05 July 2015 07:18 PM, Michael Biebl wrote: >>> LMT can be invoked multiple ways. Through systemd, through acip and >>> through udev, which is the most common invoking parent. >> >> >> Even if the trigger is e.g. acpid or udev, the activation should go >> through systemd, e.g. by using systemctl or SYSTEMD_WANTS. >> >> > > Thanks. Then I'm doing the right thing here already.
Well, a quick look at /usr/lib/pm-utils/sleep.d/01laptop-mode, /lib/udev/lmt-udev and /etc/acpi/*/lm_* shows, that you are calling /usr/sbin/laptop-mode directly instead of triggering laptop-mode.service /lib/udev/lmt-udev also shows, that you are backgrounding the subshell, that your polling inside a while loop waiting for /usr etc. All this wouldn't be necessary, if you simply triggered a start request (e.g. via systemctl --no-block). -- Why is it that all of the instruments seeking intelligent life in the universe are pointed away from Earth?
signature.asc
Description: OpenPGP digital signature