Blog‎ > ‎IT‎ > ‎

Linux mouse sensitivity is too high

posted Nov 7, 2013, 8:33 AM by Jake Vosloo
Damn XWindows on Linux is unable to scale the mouse sensitivity.  Which means that a high sensitivity mouse cannot be used, unless you use the following script which was addapted from this post by Raphael Ahrens.

#!/bin/bash

if [ "$SEARCH" = "Logitech USB Receiver" ]; then
    exit 1
fi

ids=$(xinput --list | awk -v search="$SEARCH" \
    '$0 ~ search {match($0, /id=[0-9]+/);\
                  if (RSTART) \
                    print substr($0, RSTART+3, RLENGTH-3)\
                 }'\
     )

for i in $ids
do
    xinput set-prop $i 'Device Accel Profile' -1
    xinput set-prop $i 'Device Accel Constant Deceleration' 2.0
    xinput set-prop $i 'Device Accel Velocity Scaling' 1.0
done
Comments