Fix trackpoint configuration on some systems

This commit is contained in:
Jascha Geerds 2014-07-25 13:22:33 +02:00
parent 0852d9e364
commit 49e6ef2a19

View File

@ -54,10 +54,17 @@ with lib;
task = true;
script = ''
echo -n ${toString config.hardware.trackpoint.sensitivity} \
> /sys/devices/platform/i8042/serio1/sensitivity
echo -n ${toString config.hardware.trackpoint.speed} \
> /sys/devices/platform/i8042/serio1/speed
for directory in /sys/devices/platform/i8042/serio1 \
/sys/devices/platform/i8042/serio1/serio2 \
/sys/devices/platform/i8042/serio4/serio5; do
if [ -e "$directory/speed" ]; then
echo -n ${toString config.hardware.trackpoint.speed} \
> "$directory/speed"
echo -n ${toString config.hardware.trackpoint.sensitivity} \
> "$directory/sensitivity"
break
fi
done
'';
};