Sample Header Ad - 728x90

Is there a way to restart acpid on reboot?

2 votes
1 answer
1910 views
I've installed a package called thinkpad-scripts. Simply put its a bunch of scripts that activate various functionalities on thinkpad devices on linux that wouldn't work out of the box on fresh installations. I've got the script to work and etc, but whenever I reboot my machine. The auto rotate functionality doesn't work when converting my laptop into tablet mode. I noticed the culprit has to do with acpid. When I restart acpid in terminal, it works again. Is there a way I can automate restarting acpid when I reboot, so I won't have to tediously do this over and over again ? I'm running 64-bit Debian EDIT: I tried making a cronjob with crontab -e And wrote at the end of my file leaving a newline at the end @reboot sh $HOME/acpid_restart.sh The script acpid_restart.sh includes
#!/bin/sh 
systemctl restart acpid
But this still fails....
Asked by PrimRock (133 rep)
Jul 14, 2019, 01:10 AM
Last activity: Jul 14, 2019, 05:34 AM