Du bist nicht angemeldet.

#1 12.09.2019 20:12:11

feelindumb
Mitglied

Permission denied for service starting at boot

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 :

  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 :

● elantech.service - Enable elantech touchpad and trackpoint of thinkpad at boot
   Loaded: loaded (/etc/systemd/system/elantech.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Thu 2019-09-12 19:57:01 CEST; 35s ago
  Process: 503 ExecStart=/bin/bash -c echo -n "elantech" > /sys/bus/serio/devices/serio1/protocol (code=exited, status=1/FAILURE)
 Main PID: 503 (code=exited, status=1/FAILURE)

Sep 12 19:57:01 archlinux systemd[1]: Starting Enable elantech touchpad and trackpoint of thinkpad at boot...
Sep 12 19:57:01 archlinux bash[503]: /bin/bash: /sys/bus/serio/devices/serio1/protocol: Keine Berechtigung
Sep 12 19:57:01 archlinux systemd[1]: elantech.service: Main process exited, code=exited, status=1/FAILURE
Sep 12 19:57:01 archlinux systemd[1]: elantech.service: Failed with result 'exit-code'.
Sep 12 19:57:01 archlinux systemd[1]: Failed to start Enable elantech touchpad and trackpoint of thinkpad at boot.

I would be really thankful for any ideas since I dont know what else I could try.

Beitrag geändert von feelindumb (12.09.2019 20:29:22)

Offline

#2 13.09.2019 12:10:21

schard
Moderator

Re: Permission denied for service starting at boot

Möglicherweise ist /sys oder ein entspannter Unterordner zu dem Zeitpunkt noch nicht rw gemountet. Gegebenenfalls hilft ein Requires=multi-user.target als Abhängigkeit.
Des weiteren ist die Amtssprache in diesem Forum hier Deutsch.

Offline

Schnellantwort auf dieses Thema

Schreibe deinen Beitrag und versende ihn
Deine Antwort

Fußzeile des Forums