Performance MX

  8 years ago
  Logitech (Mouse)
  Mint (older version)
  Works fine with some minor problems
What works:

The mouse works just fine as a normal mouse.
Left and right button work.
Scroll wheel works.
Scroll wheel click works.

What doesn't work:

Thumb button 'Forward' doesn't work.
Thumb button 'Backward' doesn't work.
Thumb button 'Zoom' doesn't work.
Thumb button 'Menu' doesn't work.

What was done to make it work:

There is a write-up on customizing your own x-key-bindings with 'xbindkeys' and xte. (NOTE: xte is provided by 'xautomation'. Replace 'apt-get install xte' with 'apt-get install xautomation'.)

This should work for more than the subjected 'KDE'.

Below is a summary of the post: (Credit to hugOh)

Use 'xev' to sniff the event when keys are pressed.

ButtonPress event, serial 35, synthetic NO, window 0x5800001,
root 0x15a, subw 0x0, time 64521438, (84,117), root88,144),
state 0x10, button 13, same_screen YES

Button 13 is the button used in that example.

Install 'xbindkeys' to re-map mouse and keyboard inputs.

$ sudo apt-get install xbindkeys

Create the configuration file:

$ xbindkeys --defaults > ~/.xbindkeysrc

Edit the file to specify your button's mapping:

$ vi ~/.xbindkeysrc

Add button-to-key configurations. Example:

# Back
"xte 'keydown Alt_L' 'key Left' 'keyup Alt_L'"

# Forward
"xte 'keydown Alt_L' 'key Right' 'keyup Alt_L'"

# Present desktops
"xte 'keydown Control_L' 'key F8' 'keyup Control_L'"

# Present windows
"xte 'keydown Control_L' 'key F10' 'keyup Control_L'"

Install 'xte' to simulate user key press combinations.

$ sudo apt-get install xautomation

Configure 'xbindkeys' on system startup. Go to System settings / Startup and Shutdown / Autostart / Add program button and type '/usr/bin/xbindkeys' on the dialog.