I just installed Arch on my thinkpad and wanted to enable the mousepad at launch automatically which is not working by itself. So I creted a unit file with the command in it. When running it manually it does work flawlessy but on boot I get an access denied.
Unit File :
Code:
GNU nano 4.4 /etc/systemd/system/elantech.service
[Unit]
Description=Enable elantech touchpad and trackpoint of thinkpad at boot
After=default.target
[Service]
User=root
Type=oneshot
ExecStart=/bin/bash -c 'echo -n "elantech" > /sys/bus/serio/devices/serio1/protocol'
[Install]
WantedBy=default.target
I tried with different typrs or other targets none of which worked.
Systemctl status :
Code:
● elantech.service - Enable elantech touchpad and trackpoint of thinkpad at boot
Loaded: loaded (/etc/systemd/system/elantech.service; enabled; vendor preset>
Active: failed (Result: exit-code) since Thu 2019-09-12 19:57:01 CEST; 35s a>
Process: 503 ExecStart=/bin/bash -c echo -n "elantech" > /sys/bus/serio/devic>
Main PID: 503 (code=exited, status=1/FAILURE)
Sep 12 19:57:01 archlinux systemd[1]: Starting Enable elantech touchpad and tra>
Sep 12 19:57:01 archlinux bash[503]: /bin/bash: /sys/bus/serio/devices/serio1/p>
Sep 12 19:57:01 archlinux systemd[1]: elantech.service: Main process exited, co>
Sep 12 19:57:01 archlinux systemd[1]: elantech.service: Failed with result 'exi>
Sep 12 19:57:01 archlinux systemd[1]: Failed to start Enable elantech touchpad >
I would be really thankful for any ideas since I dont know what else I could try.