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.


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

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
    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