Active1 month ago
Can anyone tell me how to configure all the buttons on a Logitech MX 620 mouse under Ubuntu 12.04?
Logitech m560 what do all the buttons on the mouse do. Posted by Anonymous on Feb 09, 2014. If not, try pressing the receiver button and then press the button on the mouse. This should be done whenever you change batteries or glitch. Hope this helps you. Jan 16, 2009 Logitech Cordless Mouse. I opened this bug a long time ago for Ubuntu 15.10. The Logitech M560 mouse has this buttons on wheel's side, but produces codes 6 (left.
Specifically, I like to make one of them just the Ctrl key (for control clicking webpages) and another one Ctrl+W to close tabs. I also normally make the scroll wheel page down for each click (otherwise it hurts my arms to be scrolling so much). I make pushing the wheel to the left = pageback and pushing to the right = page forward.
I've searched for other answers to this and found something related here
But when I posted a followup post to solve the issue, no one responded --perhaps I made the mistake of posting to a question that had been 'solved.' I'm not sure how I'm supposed to reopen a question that is pertinent to my question but doesn't quite solve mine.
Kulfy8,1401010 gold badges3232 silver badges6060 bronze badges
RickRick51122 gold badges77 silver badges1414 bronze badges
14 Answers
You're going to need several applications for this, to install them run
or
edit: xev was merged into x11utils, as of Ubuntu 14.04 or greater.
You need to find the button numbers for the buttons on your mouse. Run
xev
. You will see a litle white windows appear, put your mouse in it and press your mouse buttons (it's best to do this one button at a time). You should get output like this for each button: (note:
xev
also capture mouse movement so you might need to sift through mouse movement events to find your button events; e.g.: xev -event mouse | grep Button --before-context=1 --after-context=2
) This is what is important from that output:
button 1
. That tells us that particular button is button one. I would store this in a .txt
file for now. Create the
xbindkeys
config file using: Next we need to add the key/button bindings to the config file. You can open this file with
gedit $HOME/.xbindkeysrc
. This is where the fun begins. We are going to use xte
to set bindings to our buttons. To make a button act as Ctrl we would add:
This would bind Ctrl to mouse button one.
If you will tell me the button numbers of your buttons and what you want each to do, I will write the script for you.
Seth♦Seth37.8k2828 gold badges121121 silver badges179179 bronze badges
I followed the @Seth's instructions, but the binding I wanted was to for the thumb button an the M705 to do
CTRL + Left-click
(for opening links in a new tab in chrome browser). The binding I needed to add was this:It waits for the thumb button to be released, and then presses control key, performs the mouse click, then releases the control key.
Community♦
CoatedMooseCoatedMoose
For anyone who wants to bind copy and paste actions to mouse buttons:
- Follow Seth answer (the one with Step 1, Step 2 and
sudo apt-get install xbindkeys xautomation xev
) - Put following lines in your
.xbindkeysrc
file:
This is for copying:
This is for pasting:
*
b:9
means button 9 on the mouse (check button numbers with xev
)- It won't work right away, you must reload
.xbindkeysrc
first or restart your machine.
zwolinzwolin
You should install Solaar, a Linux tool that allows you to manage Logitech Unifying Receiver mice and keyboards, that comes with both a GUI and command line interface. To do that add the following repository and install by executing the following commands:
This will allow you to increase and maximize you mouse's DPI, monitor battery, enable smooth scrolling and side scrolling. To get the multi window and zoom button working you can visit this site which walks you through the easy steps to get the functionality you are looking for:
Edward KennedyEdward Kennedy
You should already have these as they should come with Ubuntu, but run this just in case.
Now, download & install
- btnx In this order.
To install:
Unzip, and
cd
into each of these folders. In each of them run:
Once both of them are installed, run
In Configurations tab, click Detect Mouse & Buttons
In Buttons tab, assign your mouse button a key or functionality. Make sure you ☑ check mark enabled.
Lastly, in Configurations tab, click on Restart btx button so your changes take effect.
Kevin Bowen16k1515 gold badges6262 silver badges7373 bronze badges
No SssweatNo Sssweat
I too have the g700s gaming mouse. The good news is that it was expensive (for a mouse) and the manufacture actually built it to a high standard. The functions for the mouse are stored in the mouse. The bad news is to configure it correctly you need to use the logitech software that only runs in windows.
So...basically you need to plug the mouse into a windows box, and configure it exactly how you want it. I'd recommend utilizing the switch profiles function so you can set it up good for normal usage, ie: running your linux desktop, compiz functions (switching apps, switching workspaces, toggling maximize, etc), and then make another profile for gaming (possibly with a different refresh rate) and the gaming buttons. As for compiz consider setting the 4 side thumbs buttons to alt, ctl, shift, superkey, as this will make using switching easier with the scroll wheel. alt + scroll wheel up becomes thumb button 1 + scroll wheel up.
My scheme:
thumb button 1 (forward lower) = alt
thumb button 2 (forward upper) = shift
thumb button 3 (rear lower) = ctrl
thumb button 4 (rear upper) = superkey (windows key)
index finger middle button = ctrl + alt + numpad 5
index finger closer to you = tab
index finger farther away from you = alt-f4 (compiz/linux/winX close app)
compiz defaults:
switch workspace = alt + ctl + mouse drag = lower 2 thumb buttons together + mouse click and drag; sounds complicated when typed it out but it's very efficient to use.
switch apps = alt + tab = lower thumb forward button + index finger closer button (remember for this to work well you need to keep holding down thumb button, so you can switch past 1 app)
fading a window (transparency) = alt + scroll wheel = thumb lower forward button + scroll wheel
Then go haul it back over to your linux box and it works perfectly.
The key bindings described above works great, but consider battlefield 4 also has a terrible time recognizing the mouse as a mouse with 10 buttons so for that I had to map my 4 thumb buttons to = , and ;. But obviously in linux this is silly, and to re-bind the = key to 'next app' is a lesson in futility, especially when coding hahahaha.
MUCH NEEDED LINKS IF USING VIRTUALBOX TO RUN WINDOWS 7:
Community♦
user681010user681010
I've been trying to do something similar, and I've come across this page:http://ubuntuforums.org/showthread.php?t=65471
Hopefully it works for mx 620 as well.
sodiumnitratesodiumnitrate
I have a Logitech MX 500 and wanted to map the lateral keys with Copy and Paste actions (it is very useful).
I used this guide to understand how to configure the xbindkeysrc file and be able to map the keys.
GermanGerman
I made a solution that works with Wayland.
Its here https://github.com/mathportillo/wayland-mouse-mapper
It uses evemu to send a device event notice to the kernel, so it's not restricted by Wayland
A summarized bash script that show how it works is below (most of the commands require root privileges)
find your device:
to directly find your pointer device name use:
to list your device events use (change event5 to your pointer device name):
to bind commands to your device events use:
to trigger a mouse event use:
type can be other than keystroke, and code can be other than PageUp, value is 1 for pressed and 0 for releasedyes, your mouse can trigger keystrokes, the system will interpret it the same as keyboards, its all just events from event devices.
A script that merge all the above concepts on a working mapper, that works on Wayland and can be configured as a service to start on system startup, can be found in the git repo above.
Matheus PortilloMatheus Portillo
in Debian you have a
xbindkeys-config
package which will help you configure your key/button bindings. So do: hrvhrv
Lomoco is included in Ubuntu Software Center and specifically is designed to deal with Logitech Mouse vendor-specific customizations. It can possibly accomplish some of the things you are trying to do.
Invention1Invention1
So I have been using my performance MX on my ubuntu machine for about 6 months. I left most buttons default, but I did go ahead and make the thumb button the Super key which is handier than going to the top left corner of the screen in gnome. And I made the zoom button a control button. But it is set to turn on CTRL and turn off CTRL with separate clicks. This really helps since I have one 4K display and one 1080, so I can click the zoom button once, scroll the wheel to zoom in and out fo web pages, and when I have the web page scaled how I want, I click the zoom again. Here is my xbindkeysrc settings:
Byte Commander♦72.6k2929 gold badges196196 silver badges331331 bronze badges
JDAIIIJDAIII
btnx
might be a simple solution for button remapping with Logitech mouses as it should be working with all brands. It has an easy graphical interface and can learn about available buttons. btnx was part of the standard repositories years ago, but has been removed. It is currently available here: https://launchpad.net/~oliverstar/+archive/ubuntu/ppaw-skyw-sky
First, install the required packages:
Next, use
xev
provided by x11-utils
to detect the exact button numbers of the back and forward buttons of the mouse.For my wired vertical Anker mouse, back and forward are respectively buttons 8 and 9.
Continue by creating a hidden file named
.xbindkeysrc
in your home directory with the following contents:The
xte
command is provided by the xautomation
package.Finally, log out and in again from the desktop for these changes to take effect. You can now scroll up and down in browsers and other programs by pressing and holding the mouse back and forward buttons.
Serge StroobandtSerge Stroobandt
protected by Community♦Jul 25 at 7:11
Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?
Would you like to answer one of these unanswered questions instead?