Mouse configuration

With a normal mouse (2 buttons + a wheel) there is usually no configuration problem but when you are using a more buttons mouse you need to configure it to use some other functions.

I explain here how I configured my mouse .- TRUST 20718 (https://forum.puppylinux.com/viewtopic.php?t=8699)

Configure your mouse is really easy when you know the procedure.
It takes me 7 months, till one user (@MochiMoppel ) told me the procedure, that I wanna share with you, just in case:

1.- Open TERMINAL and run the “xinput” command, which will tell you the ID of your mouse

2.- Once you identify the identity of your mouse , then use this ID with the “xinput –get-button-map ” command
(the ID is the number you obtained when you first run the “xinput” command.
It is identified because you see the name “mouse” on it).

In my case:

When I run “xinput” from the terminal, the answer is:


root  pp4mnkpuppy  ~/Desktop  xinput
⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ YK 2.4G Wireless Device Mouse id=8 [slave pointer (2)]
⎜ ↳ YK 2.4G Wireless Device Consumer Control id=10 [slave pointer (2)]
⎜ ↳ Telink Trust Wireless Mouse id=13 [slave pointer (2)]
⎜ ↳ Telink Trust Wireless Mouse Consumer Control id=14 [slave pointer (2)]
⎣ Virtual core keyboard id=3 [master keyboard (2)]
↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
↳ Power Button id=6 [slave keyboard (3)]
↳ Power Button id=7 [slave keyboard (3)]
↳ YK 2.4G Wireless Device System Control id=9 [slave keyboard (3)]
↳ YK 2.4G Wireless Device id=11 [slave keyboard (3)]
↳ Telink Trust Wireless Mouse System Control id=12 [slave keyboard (3)]
↳ YK 2.4G Wireless Device Consumer Control id=15 [slave keyboard (3)]
↳ Telink Trust Wireless Mouse Consumer Control id=16 [slave keyboard (3)]

……………………………………………………

AND THE ID MUST BE 13 or 14

Then I run the second command, with the ID 13 OR 14… IN THIS CASE 13 gives this result


xinput –get-button-map 13
1 2 3 4 5 6 7 8 9


let’s try this with ID 13 first:

CODE: SELECT ALL

xinput –set-button-map 13 1 2 3 4 5 2 3 2 3
Button numbers 1 to 5 should remain unchanged because you reported that your middle
button and the scroll-up and scroll-down buttons (= the wheel) work normallly.
Button numbers 6 and 7 refer to the scroll-left and scroll-right buttons and 8 and 9 are something

I haven’t figured out apart from noticing that the scroll bars can be shifted with them.
So what this command does is assigning the left and right button values (number 1 and 3) also to number 6 and 7 buttons and

  • just in case – to 8 and 9. If all goes well your red side buttons will act as additional left and right buttons.

You can switch back to your present state with

CODE: SELECT ALL

xinput –set-button-map 13 1 2 3 4 5 6 7 8 9


Now you have set your button map, and must do this action to be executed each timne you start your computer, so you need to create d file with this instructions:
xinput –set-button-map 13 1 2 3 4 5 2 3 2 3

And it should be somethink like….

!/bin/bash

xinput –set-button-map 13 1 2 3 4 5 2 3 2 3

PUT THIS FILE INTO YOUR START UP FOLDER (root – start up) and thats all.

n.b.- It’s possible you wanna identify this order so you can find it so you can do this instruction:

!/bin/bash

xinput –set-button-map ‘ WRITE HERE THE NAME OF YOUR MOUSE’ 1 2 3 4 5 2 3 2 3

Design a site like this with WordPress.com
Get started