Fix trackpoint configuration on some systems
This commit is contained in:
parent
0852d9e364
commit
49e6ef2a19
|
@ -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
|
||||
'';
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue