FS#39583 - [acpid] cannot open input layer error
Attached to Project:
Community Packages
Opened by Francesco Antonacci (punkeroso) - Saturday, 22 March 2014, 08:59 GMT
Last edited by Sébastien Luttringer (seblu) - Sunday, 23 November 2014, 23:39 GMT
Opened by Francesco Antonacci (punkeroso) - Saturday, 22 March 2014, 08:59 GMT
Last edited by Sébastien Luttringer (seblu) - Sunday, 23 November 2014, 23:39 GMT
|
Details
I've enabled acpid service but, once the pc starts, some key
doesn't work.
If show the service status i get: acpid[163]: cannot open input layer acpid[163]: inotify_add_watch() failed: No such file or directory (2) If I restart the service, everything works just fine. I guess that the service starts too soon so that some file is not yet present. Additional info: * package version(s) acpid 2.0.22-1 * config and/or log files etc. no Steps to reproduce: Just enable acpid service, restart the pc and show service status. |
This task depends upon
Closed by Sébastien Luttringer (seblu)
Sunday, 23 November 2014, 23:39 GMT
Reason for closing: Fixed
Additional comments about closing: acpid 2.0.22-3
Sunday, 23 November 2014, 23:39 GMT
Reason for closing: Fixed
Additional comments about closing: acpid 2.0.22-3
Workaround -> In the config file, under [Unit] section, adding
After=multi-user.target
and under [Service] adding
Type=simple
Enabled acpid to function as expected.
The .service file are not provided by upstream (http://sourceforge.net/p/acpid2/tickets/3/), so you should update the packege with the new .service file.
Regards
I added a comment 8 days ago to upstream ticket. W&S
Type=idle
to the default .service file, seems to solve the problem (so, without After=multi-user.target).
As man systemd.service explains, idle "is very similar to simple, however actual execution of the service binary is delayed until all jobs are dispatched. This may be used to avoid interleaving of output of shell services with the status output on the console."
Thanks
I added a Require=systemd-udev-settle.service to fix the issue.