[SOLVED] What's my device name; how to setup the 7 button+wheel configuration
SlackwareThis Forum is for the discussion of Slackware Linux.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
What's my device name; how to setup the 7 button+wheel configuration
Have attached a Kensington Orbit Optical Trackball to my 13.37 OS.
I ran xinput --list --long hoping to find my device's name but got:
Virtual Core Pointer, Virtual Core XTEST Pointer, and ImPS/2 Generic Wheel Mouse. The trackball has 2 physical buttons. Somehow I got xinput --list-props to divulge the buttons: left, middle, right, up, down, horizontal left and horizontal right. But forgot what I used and unable to find it in "history".
What is this device's name???
Note: I ran lspci, lsusb, & lsdev but could not find any device that looked like the trackball, i.e. description or mfgr:devid.
I am looking for a way to get Xinput to give me a middle buttoon, and horizontal and vertical button+ball. Can someone provide this?
BTW it is hooked up to PS/2 because I need all the currently available USB slots.
Isn't it amazing that a company can provide a cd with M$ & RT drivers and in 21 languages in 32 pages say congratulations if U have a problem reboot and try again but can't be bothered to print 7-10 Linux commands about the core of their product? They claim telephone support but could not find a phone number for it. Must have been lost in translation. LOL Their web support didn't look that great either.
Note: I ran lspci, lsusb, lsdev but could not find anything with mfgr:dev number or description.
I found thru xinput --list the master and 2 slaves with their id.
There is some question about using the Master as a device name as other Kensington's use the ImPS/2 perhaps they too were connected via PS/2. This is quite uncertain. I have created a script which will allow me to change the device name and will experiment with each device name. My plan is to try with creating the middle button first then after that try vertical and horizontal scrolling with the ball+button.
BTW using the above command then xinput --list-prop <dev> (which allows use of id or device name for <dev>) was helpful
Found the button numbers using "xev".
Here is script:
DEVNAM=4 # Use dev id (2, 4, 11) or name
# Enable Vertical Scrolling
#xinput set-prop "$DEVNAM" "Evdev Wheel Emulation" 1
#xinput set-prop "$DEVNAM" "Evdev Wheel Emulation Button" 2
#xinput set-prop "$DEVNAM" "Evdev Wheel Emulation Timeout" 200
# Enable Horizontal Scrolling (addition to vertical)
# The orbit optical has buttons 1 & 3 no clue as to what to use for ball
#xinput set-prop "$DEVNAM" "Evdev Wheel Emulation Axes" 2 try 4 5
After further testing it appears what is in the DEVNAM is irrelevant. I have an emulated middle button using buttons 1&2 press simultaneously which turns out to be not too bad.
The only vertical scrolling is if one points at the scroll handle and presses button 1 (left) when one is provided else was not able to just point anywhere for this action.
# Enable Middle Button Emulation (uses left+right button click)
# To disable set it to 0 instead of 1.
xinput set-prop "$DEVNAM" "Evdev Middle Button Emulation" 1
xinput set-prop "$DEVNAM" "Evdev Middle Button Timeout" 50