[PLUG] Trackball issues
Rich Shepard
rshepard at appl-ecosys.com
Sat Sep 26 17:31:01 UTC 2026
I've been using a Kensington Orbit trackball for years on my desktop and
decided to replace it with a wireless one to reduce wire clutter on the
desk.
Bought a Kensington K2765WW wireless version of the Orbit.
Unplugged the wired trackball and inserted the wireless USB receiver. Had no
middle button and did not scroll smoothly. A web search found this script
(Kensington_Expert_setup.sh*):
-----
#!/usr/bin/env bash
# xinput list
# Default layout
# "Button Middle" "Button Wheel Up" "Button Horiz Wheel Left" "Button Side"
# 2 4 6 8 "Button Extra"
# 9
# "Button Left" "Button Wheel Down" "Button Horiz Wheel Right" "Button Right"
# 1 5 7 3
# "Button Left" "Button Middle" "Button Right" "Button Wheel Up" "Button Wheel Down" "Button Horiz Wheel Left" "Button Horiz Wheel Right" "Button Side" "Button Extra"
# 1 2 3 4 5 6 7 8 9
#
mouse_name="Kensington Expert Wireless TB Mouse"
check=$(xinput | grep "$mouse_name")
if [[ ! -z "$check" ]]; then
mouse_id=$(xinput | grep "$mouse_name" | sed 's/^.*id=\([0-9]*\)[ \t].*$/\1/')
# swap right and back button then swap middle and back button
xinput set-button-map $mouse_id 1 8 2 4 5 6 7 3 9
# enable better scrolling
xinput set-prop $mouse_id "libinput Natural Scrolling Enabled" 1
# disable acceliration for the ball
xinput set-prop $mouse_id "libinput Accel Profile Enabled" 0, 1
# allow scrolling by holding middle mouse button and using the ball to scroll ( really smooth and fast ).
xinput set-prop $mouse_id "libinput Scroll Method Enabled" 0, 0, 1
# allow the remmaped middle mouse to be used for middle mouse scroll
xinput set-prop $mouse_id "libinput Button Scrolling Button" 3
fi
# read more here https://askubuntu.com/questions/492744/how-do-i-automatically-remap-buttons-on-my-mouse-at-startup
# Default properties, so if you change yours around alot you can refer here for default config.
# xinput list-props
# Device 'Kensington Expert Wireless TB Mouse':
# Device Enabled (153): 1
# Coordinate Transformation Matrix (155): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
# libinput Natural Scrolling Enabled (289): 0
# libinput Natural Scrolling Enabled Default (290): 0
# libinput Scroll Methods Available (291): 0, 0, 1
# libinput Scroll Method Enabled (292): 0, 0, 0
# libinput Scroll Method Enabled Default (293): 0, 0, 0
# libinput Button Scrolling Button (294): 2
# libinput Button Scrolling Button Default (295): 2
# libinput Button Scrolling Button Lock Enabled (296): 0
# libinput Button Scrolling Button Lock Enabled Default (297): 0
# libinput Middle Emulation Enabled (298): 0
# libinput Middle Emulation Enabled Default (299): 0
# libinput Accel Speed (300): 0.000000
# libinput Accel Speed Default (301): 0.000000
# libinput Accel Profiles Available (302): 1, 1
# libinput Accel Profile Enabled (303): 1, 0
# libinput Accel Profile Enabled Default (304): 1, 0
# libinput Left Handed Enabled (305): 0
# libinput Left Handed Enabled Default (306): 0
# libinput Send Events Modes Available (274): 1, 0
# libinput Send Events Mode Enabled (275): 0, 0
# libinput Send Events Mode Enabled Default (276): 0, 0
# Device Node (277): "/dev/input/event9"
# Device Product ID (278): 1149, 32792
# libinput Drag Lock Buttons (307): <no items>
# libinput Horizontal Scroll Enabled (308): 1
-----
Still had no middle button and the cursor movement was not smooth. The
wireless trackball has a DPI switch that appently works only with a
bluetooth connection, not the USB connection.
Unplugged the wireless receiver and plugged the wired trackball in.
Now the middle button on the wired trackball no longer works, despite having
this line in ~/.profile:
xinput --set-prop --type=int --format=8 "Primax Kensington Eagle Trackball" "Evdev Middle Button Emulation" "1"
and this has worked before.
Running xinit shows the trackball detected (and scrolling smoothly.)
My web searches haven't been productive. Many are for the 4-button trackball
(wired or wireless) and the
I need help, preferably to have a smooth scrolling, middle button wireless
trackball.
TIA,
Rich
More information about the PLUG
mailing list