We'd like to remind Forumites to please avoid political debate on the Forum... Read More »
KVM switch & remapped mouse buttons...?

esuhl
Posts: 9,409 Forumite


in Techie Stuff
I've been using a KVM switch to share my trackball amongst multiple PCs. The two extra buttons on the trackball toggle scroll-mode on/off in Firefox, etc., making up for the lack of a scroll-wheel. Perfect.
However, when I plug the trackball directly into my PC, the two extra buttons now work as page back/forward buttons.
This happens in both Linux and Windows. And whether I connect the trackball to the PC via USB or via the PS/2 adaptor (as I did with my PS/2 KVM).
Does anyone know how I can get rid of the KVM, and keep using the extra trackball buttons to toggle scrolling?
However, when I plug the trackball directly into my PC, the two extra buttons now work as page back/forward buttons.

This happens in both Linux and Windows. And whether I connect the trackball to the PC via USB or via the PS/2 adaptor (as I did with my PS/2 KVM).
Does anyone know how I can get rid of the KVM, and keep using the extra trackball buttons to toggle scrolling?
0
Comments
-
not sure if it will work, try x-mouse button control
There is no creator or source page - sorry0 -
Unless I'm missing something, it seems that the KVM is doing 'different things' with your trackball. Removing the KVM causes matters to return to 'normal'.
Have you an up-to-date driver for the trackball and/or can you reprogram it to do what you want?0 -
not sure if it will work, try x-mouse button control
There is no creator or source page - sorry
Oooh -- nice one! :T
It took a bit of playing about, but remapping buttons 4 and 5 as a "middle-button click" is exactly what I need!
I think this is the homepage if anyone else needs it:
https://www.highrez.co.uk/downloads/xmousebuttoncontrol.htm
And knowing that's the remapping I need, I "should" be able to figure out how to do that in Linux. I think xorg.conf is deprecated in favour of systemd in Arch(?)... I'll have a read up...Unless I'm missing something, it seems that the KVM is doing 'different things' with your trackball. Removing the KVM causes matters to return to 'normal'.
Yeah -- it's strange. I guess the KVM is "designed" for three-button mice, and remaps buttons 4, 5, (and beyond) to button 3 (middle-click)...?
Cheers0 -
It took a bit of playing about, but remapping buttons 4 and 5 as a "middle-button click" is exactly what I need!
...
And knowing that's the remapping I need, I "should" be able to figure out how to do that in Linux.
In case it helps anyone, if you're using systemd you can install the libinput driver and create (or append to) this file to remap the buttons in Linux, like this (for example):
/etc/X11/xorg.conf.d/10-libinput.confSection "InputClass" Identifier "Marble Mouse via USB" MatchProduct "Logitech USB Trackball" Driver "libinput" Option "ButtonMapping" "1 2 3 0 0 0 0 2 2" EndSection Section "InputClass" Identifier "Marble Mouse via PS/2" MatchProduct "ImExPS/2 Logitech Explorer Mouse" Driver "libinput" Option "ButtonMapping" "1 2 3 0 0 0 0 2 2" EndSection
0
This discussion has been closed.
Confirm your email address to Create Threads and Reply

Categories
- All Categories
- 350.1K Banking & Borrowing
- 252.8K Reduce Debt & Boost Income
- 453.1K Spending & Discounts
- 243.1K Work, Benefits & Business
- 597.5K Mortgages, Homes & Bills
- 176.5K Life & Family
- 256.1K Travel & Transport
- 1.5M Hobbies & Leisure
- 16.1K Discuss & Feedback
- 37.6K Read-Only Boards