You are not logged in.

#1 2024-01-12 12:39:29

markbel
Member
Registered: 2024-01-12
Posts: 1

Thinkpad X220 Trackpoint systemd.path unit not triggering.

Hi everyone! I'm trying to apply the trackpoint configuration at boot, udev rule didn't work for me, so I went with systemd path unit (https://wiki.archlinux.org/title/TrackP … .path_unit).

Here are the config files:

/etc/systemd/system/trackpoint_parameters.service:

[Unit]
Description=Set TrackPoint attributes

[Service]
ExecStart=/usr/local/bin/trackpoint_configuration.sh
/etc/systemd/system/trackpoint_parameters.path:

[Unit]
Description=Watch for, and modify, Trackpoint attributes

[Path]
PathExists=/sys/devices/platform/i8042/serio1/serio2/

[Install]
WantedBy=default.target
/usr/local/bin/trackpoint_configuration.sh:

#!/bin/bash
echo -n 200 > /sys/devices/platform/i8042/serio1/serio2/sensitivity
echo -n 60 > /sys/devices/platform/i8042/serio1/serio2/speed

After I reboot the laptop, changes are not applied;

# systemctl status trackpoint_parameters.path

● trackpoint_parameters.path - Watch for, and modify, Trackpoint attributes
     Loaded: loaded (/etc/systemd/system/trackpoint_parameters.path; enabled; preset: disabled)
     Active: active (waiting) since Fri 2024-01-12 14:30:15 EET; 52s ago
   Triggers: ● trackpoint_parameters.service

Jan 12 14:30:15 thickpadx220 systemd[1]: Started Watch for, and modify, Trackpoint attributes.

Though, the path monitored exists:

# ls /sys/devices/platform/i8042/serio1/serio2/

shows that the directory is not empty.

But after i run

# systemctl daemon-reload

the setting are applied.

# systemctl status trackpoint_parameters.path

× trackpoint_parameters.path - Watch for, and modify, Trackpoint attributes
     Loaded: loaded (/etc/systemd/system/trackpoint_parameters.path; enabled; preset: disabled)
     Active: failed (Result: unit-start-limit-hit) since Fri 2024-01-12 14:36:32 EET; 1min 16s ago
   Duration: 6min 16.562s
   Triggers: ● trackpoint_parameters.service

Jan 12 14:30:15 thickpadx220 systemd[1]: Started Watch for, and modify, Trackpoint attributes.
Jan 12 14:36:32 thickpadx220 systemd[1]: trackpoint_parameters.path: Failed with result 'unit-start-limit-hit'.

Any ideas regarding the issue? Thx.

Offline

Board footer

Powered by FluxBB