Setting up aditional buttons on mouse

I have Logitech Wireless Mouse M560 and basic function works fine, left and right click, scrolling and when you click both buttons you get to some kind of scrolling which I like, but I also want to be able to at least set up back and forward buttons. While I read some stuff about this online, but some are old and not sure if still work and I also don’t want to screw something up with what is currently working.

From running in terminal xinput list I got
Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Logitech Wireless Mouse M560 id=10 [slave pointer (2)]

Can anyone explain what I need to do in some hopefully easy steps please.

I do not have a m560, but ran across this and thought it may help.

https://wiki.archlinux.org/index.php/All_Mouse_Buttons_Working#Logitech_M560.2FM545.2FM546

https://forums.logitech.com/t5/Mice-and-Pointing-Devices/How-I-can-I-change-the-mouse-button-mapping-on-my-M560-on-Linux/td-p/1121153

:sparkler: Happy new year everyone! :fireworks:

Thanks for the links @anon42388993, but I’m afraid my technical knowledge isn’t good enough for setting this up as I don’t know what exactly I need to change and reading those stuff is like reading a foreign language I don’t know much about.

I get that this is mouse for WIndows 8, but sadly didn’t know that when I bought it …

So can someone explain in more details what I have to do?

And back at you :smiley:

Sorry, but without having one to play with, I have nothing else. Good luck

Well I was on the old laptop earlier that has Ubuntu MATE 14.04 and I use same mouse on it and to my surprise tilt left and tilt right had the effect of back and forward buttons there. So what change in between that it doesn’t work on Ubuntu MATE 15.10 anymore?

On the other hand the square button behind mouse wheel works in Ubuntu MATE 15.10 as some type of scrolling, could be simulating middle click, same as when pressing left and right mouse buttons together, but doesn’t have any effect in Ubuntu MATE14.04.

Any ideas why that would be or how to change it?

I have found (temporary) solution in this article or more precisely comments under.


Firstly installed sudo apt-get install imwheel

and then from

Olivier FEBWIN
It solved my problem with my Logitech M560 mouse!
imwheel -k -b “0 0 0 0 10 11” &
to make working side buttons

At least that works now :grinning::raised_hands::clap:

But can someone tell me what should I write as command to create it as a start up program as I don’t feel like it’s the same as in the link above and I don’t really want to mess something up…

See section 4 of your link:

"4. Since these settings are only applied when imwheel is running, you should add imwheel
to startup (if you use Unity, to do this, open Startup Applications, click “Add” and under both “Name” and “Command” fields, add “imwheel”).
Also, like I mentioned above, if you have back / forward mouse navigation buttons, use the following command instead of simply running “imwheel” or else those buttons won’t work: imwheel -b “4 5”

It’s important to mention that imwheel applies the settings available in ~/.imwheelrc when the application starts and it doesn’t update when changing the configuration file. So if you modify the configuration file, you’ll need to close imwheel and start it again to apply / test the changes (you can close/kill it using the following command: “killall imwheel”)."

Thank wolfman, but since I haven't create .imwheelrc and my buttons are different I try to add full command I use in terminal and after restarting pc it worked :grin:

If someone else need it

Command: imwheel -k -b "0 0 0 0 10 11" &

1 Like