KVM switch & remapped mouse buttons...?

esuhl
esuhl Posts: 9,409 Forumite
Part of the Furniture 1,000 Posts Name Dropper
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?

Comments

  • that
    that Posts: 1,532 Forumite
    not sure if it will work, try x-mouse button control

    There is no creator or source page - sorry
  • John_Gray
    John_Gray Posts: 5,837 Forumite
    Part of the Furniture 1,000 Posts Name Dropper Photogenic
    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?
  • esuhl
    esuhl Posts: 9,409 Forumite
    Part of the Furniture 1,000 Posts Name Dropper
    that wrote: »
    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... :)
    John_Gray wrote: »
    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)...?

    Cheers :)
  • esuhl
    esuhl Posts: 9,409 Forumite
    Part of the Furniture 1,000 Posts Name Dropper
    edited 6 November 2018 at 11:54PM
    esuhl wrote: »
    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.conf
    Section "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
    
This discussion has been closed.
Meet your Ambassadors

🚀 Getting Started

Hi new member!

Our Getting Started Guide will help you get the most out of the Forum

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

Is this how you want to be seen?

We see you are using a default avatar. It takes only a few seconds to pick a picture.