ACPI Events not triggered after booting
- by user3208188
I purchased a Convertible (Laptop and Tablet, Ubuntu 14.04 installed) and would like to execute a script when changing from laptop to tablet mode and the other way around. So I created two new files within the /etc/acpi/events folder corresponding to two new scripts in the /etc/acpi folder.
Everything works well if I create a new acpid process (e.g "sudo acpid -c /etc/acpi/events -s /var/run/acpid.socket") manually. However, if I do not initiate this process manually the scripts are not executed, even though there is a process running with the same options right after the machine has booted by default.
The only difference I can find is the parent pid. If I create the process the parent is "init --user", while the parent of the automatically initiated process is "/sbin/init".
Can anyone help me by explaining why this issue happens and how I can avoid to start an acpid process manually every time I boot the device?