Created attachment 354054 [details, diff] Replace "/sbin/udevadm" with "which udevadm" In one place laptop-mode-tools locates udevadm using "which udevadm", but in another line there is hardcoded path. This causes problems with systemd. Attached patch fixes the problem.
You might want to upstream it, too. https://github.com/rickysarraf/laptop-mode-tools
I think that it can be even mode reduced to udevadm...
I can't find the email now but from what I recollect there were some differences in the behavior of `which` on different distributions. On Debian, `which` is shipped as part of the debianutils package. I believe a user reported a differently behaving `which` from Arch. The patch looks good and I'll pull it. It'd just help if you can confirm which's origin and behavior on your distribution
(In reply to Ritesh Raj Sarraf from comment #3) > I can't find the email now but from what I recollect there were some > differences in the behavior of `which` on different distributions. > > On Debian, `which` is shipped as part of the debianutils package. I believe > a user reported a differently behaving `which` from Arch. > > The patch looks good and I'll pull it. It'd just help if you can confirm > which's origin and behavior on your distribution sys-apps/which-2.20 (/usr/bin/which) HOMEPAGE="http://www.xs4all.nl/~carlo17/which/" You can try using POSIX sh command.
(In reply to Alon Bar-Lev from comment #4) > (In reply to Ritesh Raj Sarraf from comment #3) > > I can't find the email now but from what I recollect there were some > > differences in the behavior of `which` on different distributions. > > > > On Debian, `which` is shipped as part of the debianutils package. I believe > > a user reported a differently behaving `which` from Arch. > > > > The patch looks good and I'll pull it. It'd just help if you can confirm > > which's origin and behavior on your distribution > > sys-apps/which-2.20 (/usr/bin/which) > HOMEPAGE="http://www.xs4all.nl/~carlo17/which/" > > You can try using POSIX sh command. Ritesh, Status?
This is committed. Was committed on July 30th. Will be part of next release.
(In reply to Ritesh Raj Sarraf from comment #6) > This is committed. Was committed on July 30th. Will be part of next release. Thanks! Fixed in laptop-mode-tools-1.63-r3