Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux? |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
09-08-2017, 06:16 AM
|
#1
|
Member
Registered: Oct 2009
Distribution: Scientific Linux 6
Posts: 193
Rep:
|
Linux kernel support for Logitech MX Ergo trackball mouse?
Hello,
I just stumbled upon the next Logitech MX Ergo trackball mouse.
Unsurprisingly, the official website doesn't say anything about the trackball's Linux compatibility. Can anyone confirm if this mouse work well with Linux? Do all of the buttons work? Thank you.
|
|
|
09-09-2017, 02:21 AM
|
#2
|
Senior Member
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian Stable
Posts: 2,546
|
I don't know whether all of the buttons will do what you want out-of-box, but it uses Logitech's Unifying Receiver which works in Linux out-of-box. At that point, you can use "xinput" to reassign any buttons if necessary for the desired functionality.
That's assuming you have a spare USB port or an already plugged in Unifying Receiver on some USB port (it has the ability to pair with many mice and keyboards so they all work using the same Unifying Receiver at once).
If you want to connect up with bluetooth, it might be a bit more complex. I haven't had any issues with compatibility, but the procedure for establishing a persistent bluetooth pairing in Linux is odd and it has changed.
|
|
1 members found this post helpful.
|
09-10-2017, 05:42 PM
|
#3
|
Member
Registered: Oct 2009
Distribution: Scientific Linux 6
Posts: 193
Original Poster
Rep:
|
Thank you IsaacKuo!
Sounds like - with the Unifying Receiver - basic functionality (e.g. left/right clicks, scrolling with scollwheel, etc.) will work, but the other buttons may or may not. I will keep this in mind!
|
|
|
09-10-2017, 05:43 PM
|
#4
|
Member
Registered: Oct 2009
Distribution: Scientific Linux 6
Posts: 193
Original Poster
Rep:
|
Thank you IsaacKuo!
Sounds like - with the Unifying Receiver - basic functionality (e.g. left/right clicks, scrolling with scollwheel, etc.) will work, but the other buttons may or may not. I will keep this in mind!
|
|
|
09-10-2017, 07:01 PM
|
#5
|
Senior Member
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian Stable
Posts: 2,546
|
The other buttons will work in the sense that button down/up signals are received and the click events passed onto whatever application window is active. But most applications won't do anything with those click events by default.
You can use xinput to customize what they do (such as scroll up/down/left/right or send a keypress or zoom in/out or rotate or something).
|
|
|
10-03-2017, 08:29 AM
|
#6
|
LQ Newbie
Registered: Aug 2005
Location: Karlshamn, Sweden
Distribution: Ubuntu 16.04
Posts: 6
Rep:
|
Working fine in Ubuntu 16.04
I have been using the MX Ergo at work for the last two weeks on my Ubuntu 16.04 LTS machine and I have to say it really is great! I had no problem getting the device recognized by the system. The only thing I changed was the sensitivity of the mouse pointer. Since I'm using i3 as my window manager I made the necessary adjustments through xinput.
Two minor things that I'm still struggling a bit with is that the horizontal scrolling by tilting the wheel isn't working, and the vertical scrolling distance is not large enough. If anyone has any suggestions for how to adjust this I would be very happy
If you have any other questions about the MX Ergo and how it behaves - just ask!
|
|
|
10-03-2017, 05:07 PM
|
#7
|
Senior Member
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian Stable
Posts: 2,546
|
Take a look at this page:
https://superuser.com/questions/3088...lling-on-linux
This tells how to do the opposite with xinput. I'll adapt the instructions for doing what you want to do. I once had a mouse where mouse tilt actually did "forward/back" on web browsing, which was ANNOYING. I replaced it with left/right scroll, which is what I thought I wanted...until I realized that was also more annoying than actually useful. I ended up deactivating left/right mousewheel tilt.
I don't remember the precise things I did, but roughly:
0) List xinput devices with "xinput"
1) Find out what numbers correspond to tilt left/tilt right with "xinput test <device>"
2) Map those to "6" and "7" with:
Code:
xinput set-button-map <ID> 1 2 3 4 5 6 7 8 9 6 7
This example maps 10->6 and 11->7
As for increasing vertical scrolling distance, I'm not sure.
|
|
1 members found this post helpful.
|
10-05-2017, 07:09 AM
|
#8
|
LQ Newbie
Registered: Aug 2005
Location: Karlshamn, Sweden
Distribution: Ubuntu 16.04
Posts: 6
Rep:
|
Thanks for your answer!
When I run xinput test i get this output:
where # is an integer which either increases (right tilt) or decreases (left tilt) one value at a time.
How do I use this information?
|
|
|
10-05-2017, 09:37 PM
|
#9
|
Senior Member
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian Stable
Posts: 2,546
|
You don't also get button presses with each tilt?
|
|
|
10-06-2017, 02:12 AM
|
#10
|
LQ Newbie
Registered: Aug 2005
Location: Karlshamn, Sweden
Distribution: Ubuntu 16.04
Posts: 6
Rep:
|
Quote:
Originally Posted by IsaacKuo
You don't also get button presses with each tilt?
|
No, unfortunately not. The system seems to see it like an additional trackball. If I use the real trackball i get similar output like this:
Code:
motion a[0]=3171 a[1]=636
motion a[0]=3169 a[1]=635
motion a[0]=3167 a[1]=634
motion a[0]=3168 a[1]=634
|
|
|
11-03-2017, 09:31 PM
|
#11
|
LQ Newbie
Registered: Nov 2017
Posts: 3
Rep: 
|
I've had no issues with my MX Ergo in Linux with two minor exceptions.. First is the 1/2 button and the precision button do not generate events; they are internal to the device. Not a problem, just is what it is. Second there appear to be no battery indications on the device so without the Windows software to alert you, you might not realize your battery is almost dead. However, it might be generating an event in dmesg so that might be something that could be used. I plan on looking into that more. But as for tilt and up/down, those can all be readily mapped as F buttons using xbindkeys.
Code:
# Mouse wheel right
"xte 'key F14'"
b:7
# Mouse wheel left
"xte 'key F15'"
b:6
# Top button
"xte 'key F16'"
b:9
# Bottom button
"xte 'key F17'"
b:8
Once that is done, your buttons should now generate F14-F17. Adjust this if you already do this with other things. You should then be able to map actions using your desktop environment to those buttons. I personally map them to two scripts. I have 3 monitors so I've made a script to make the mouse 'skip' between the three using tilt so I can quickly move between monitors. The other script rotates through my Chrome windows as I often have 3-4 open when I'm working.
If anyone is interested in those specific scripts I could post them, but they are fairly specific to my needs. However, what I am doing is using two packages, xautomation and xdotool, to do all the work. For example in the script to move the mouse around I use xdotool to get my mouse location and to then change its location. In the script to flip through my Chrome windows, I use xdotool to find the Chrome window, then xdotool also activates and focuses on it. To adjust my mouse speed the way I want, I use xinput
Code:
# USB Unified Marble
xinput --set-prop 17 'libinput Accel Speed' -.3 # -1 means no acceleration at all, 1 means most acceleration, so here I want just a little with -.3
xinput --set-prop 17 'Coordinate Transformation Matrix' 1 0 0 0 1 0 0 0 .4 # adjust the last number to alter mouse speed
I hope this helps someone!
|
|
|
08-21-2018, 06:57 AM
|
#12
|
Member
Registered: Mar 2008
Posts: 141
Rep:
|
I was wondering if there has been any updates with this trackball, if any newer version os linux have "dropped support", as I found with my M570, it worked in a few older versions of Kubuntu then after an upgrade it didn't work (I believe it worked on 14.04LTS then 14.10, 15.10 did work.
I'm planning on trying 18.04 though I wasn't thrilled with 16.04 and loved 14.04, but that is getting close to the EOL of support. Still got about 3.5 years on one install with SUPER heavy use and never had to re-install!
Any comments on the trackball now after it's been out for some time?
|
|
|
08-21-2018, 07:51 AM
|
#13
|
LQ Newbie
Registered: Nov 2017
Posts: 3
Rep: 
|
Quote:
Originally Posted by cilbuper
I was wondering if there has been any updates with this trackball, if any newer version os linux have "dropped support", as I found with my M570, it worked in a few older versions of Kubuntu then after an upgrade it didn't work (I believe it worked on 14.04LTS then 14.10, 15.10 did work.
I'm planning on trying 18.04 though I wasn't thrilled with 16.04 and loved 14.04, but that is getting close to the EOL of support. Still got about 3.5 years on one install with SUPER heavy use and never had to re-install!
Any comments on the trackball now after it's been out for some time?
|
How would Linux "drop support" of a USB HID device? That doesn't make any sense. It just works, out of the box, USB or Bluetooth.
|
|
|
08-22-2018, 05:00 PM
|
#14
|
Member
Registered: Mar 2008
Posts: 141
Rep:
|
Quote:
Originally Posted by khaytsus
How would Linux "drop support" of a USB HID device? That doesn't make any sense. It just works, out of the box, USB or Bluetooth.
|
Well when you find a mouse (wireless that uses "proprietary" connectivity) and it doesn't work with any linux system, think back to this thread. This was a common issue years ago and there were many wireless keyboards and mice that didn't work. The new mouse uses a combination of 2.4Ghz RF and Bluetooth, and that isn't going to work the same as a standard RF mouse or a bluetooth mouse on it's own. HENCE, some OS's support these.
I've had one version of Ubuntu work with a mouse and then a few releases later it wouldn't and I had to install special repositories/packages to make it work.
That is what I mean by "dropping" support.
Thanks!
|
|
|
08-22-2018, 10:52 PM
|
#15
|
LQ Newbie
Registered: Nov 2017
Posts: 3
Rep: 
|
Quote:
Originally Posted by cilbuper
Well when you find a mouse (wireless that uses "proprietary" connectivity)
|
That is not the case.. It is USB hid, works with anything.
|
|
|
All times are GMT -5. The time now is 03:45 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|