Post details: Getting MX Revolution setup in Gentoo

26 November, 2006

Permalink 16:26 UTC, by Petteri Räty Email , 525 words, 8508 views   English (US)
Categories: Gentoo

Getting MX Revolution setup in Gentoo

I recently bought a Logitech MX Revolution mouse. This is a very nice cordless laser mouse with plenty of buttons. See Gizmodo review for pictures. As usual I first googled to find what others have done to get everything working with this mouse. Of course the usual functionality was there without anything special. The first link Google gave me was http://andy.hillhome.org/blog/2006/09/27/logitech-mx-revolution-in-linux/ Based on this information I set out to setup my new mouse. First I changed my xorg.conf to have the following:

Section "InputDevice"
        Identifier  "Mx Rev"
        Driver      "evdev"
        Option      "Protocol"  "Auto"
        Option      "Name"      "Logitech USB Receiver"
        Option      "Phys"      "usb-*/input0
EndSection

This gives evdev control of my mouse and still keeps my other stuff working using the normal /dev/mice/input. This at least makes it possible to control this mouse specifically if I need to. The hotplug input framework should hopefully make this kind of stuff obsolete in the future.

Having evdev working and handling the mouse I got xev to recognize all my mouse buttons nicely. I have been using imwheel with my previous mouses and have found it an able tool to map mouse events to keyboard events. Here is my .imwheelrc:

"Firefox"
None, Thumb1, Alt_L|Left
None, Thumb2, Alt_L|Right
None, Left, Control_L|W
None, Right, Control_L|T

"Thunderbird"
None, Thumb1, N
None, Thumb2, B

"Konsole"
None, Thumb1, Shift_L|Right
None, Thumb2, Shift_L|Left

What this does:

  • Makes back/forward work in Firefox with Thumb buttons
  • Makes creating/deleting tabs work by tilting the scroll wheel
  • Makes Thunderbird go to next unread message / previous message using Thumb buttons
  • Makes Konsole change tabs using Thumb buttons

Using the same pattern you should be able to adjust the rest of the buttons to your liking. I will probably look into using the Thumb wheel to control beryl.

The last thing I didn't like about the default behavior of the MX in Linux was the scroll wheel. By default it is in the Free-spin mode which means that clicking the wheel does not generate Button2 events. I found a handy tool to control the features of this mouse in the comments of that blog post and I made an ebuild for it http://overlays.gentoo.org/svn/dev/betelgeuse/app-misc/revoco/. Using this tool I can just issue revoco manual=6 and after that I can use the One-Touch Search button to change the scrolling mode of the mouse. I don't know yet if this is good enough for the main tree as it atm must be run setuid because of default /dev/usb/hiddevN permissions. Will probably add it if I find the time to rewrite it using libhid.

The final touch to glue all this together is to have my .xprofile start the necessary programs for me:

revoco manual=6
#xmodmap -e "keycode 122 = XF86Search"
/usr/bin/imwheel -k -b "007689"

Notice that you can use xmodmap to map the One-Touch search to XF86Search if you like. It's quite weird how the button is handled. To the OS it is shown as a keyboard with one button. Well engineers are creative.

Trackback address for this post:

http://planet.gentoo.org/developers/htsrv/trackback.php/1091

Comments, Trackbacks:

Comment from: Thomas Lindroth [Visitor] Email
Thanks for the info. I was planning to get one of these myself but I was not sure I would be able to get the third button to work. I think I'll go ahead and order one now.
PermalinkPermalink 26 November, 2006 @ 18:36
Comment from: Jay K [Visitor] Email · http://jk3.us/
Nice... I've been looking for something to contol the scroll wheel.... It's been the one thing keeping me from calling the mx revolution the best mouse I've ever used. Now I can't wait to go home for lunch to give it a shot :) Thanks for pointing me to revoco
PermalinkPermalink 27 November, 2006 @ 16:39
Comment from: PirAh [Visitor] Email
Hi from Spain!
It seems that Froese’s site is down, or at least i cannot reach it. Can anyone send it to me, or put it somewhere i or anyone else can donwload it, please!
PermalinkPermalink 20 December, 2006 @ 10:37
Comment from: Petteri Räty [Member] Email · http://dev.gentoo.org/~betelgeuse/
http://overlays.gentoo.org/dev/betelgeuse/browser/app-misc/revoco

Just use that. There source file is included in svn.
PermalinkPermalink 20 December, 2006 @ 19:00
Comment from: Zhenech [Visitor] Email · http://www.die-welt.net
Hi,

@PirAh: you can get revoco at http://overlays.gentoo.org/svn/dev/betelgeuse/app-misc/revoco/files/revoco-0.2.c

Just download the file, gcc -Wall -O2 revoco-0.2.c -o revoco, chown root:root revoco, chmod 4755 revoco (the last two you must run as root) and it will work ;-)

I also get a MX Revolution for Christmas and the tool helped me. Unix/Linux without wheel-click is bad ;-)
PermalinkPermalink 25 December, 2006 @ 15:44
Comment from: PirAh [Visitor] Email
Ok! I got it. I'll be trying it out tonight, as long as i got home! Hmmm, i cant wait to get home! :P

And yes, *nix without wheel click is nasty :D

Thak you very much!
PermalinkPermalink 27 December, 2006 @ 08:58
Comment from: DrDrew [Visitor] Email
Zhenech,

Thank you SOOOO much for that link! I did all of the stuff you have written here, but revoco returns this: "revoco: No Logitech MX-Revolution (046d:c51a) found." Rest assured I have one and it is plugged in! Any help is appreciated! Also, I'm not sure where to put the revoco file after gcc. I am running Ubuntu 6.10.

Thanks!!!
PermalinkPermalink 27 December, 2006 @ 21:01
Comment from: Zhenech [Visitor] Email · http://www.die-welt.net
Sittin here in Berlin at the 23c3 ;-)
Did you run revoco as root? The place you put the binary doesnt change anything.
Do you have a /dev/usv/hiddevX, where X is some number between 1 and 16. If not, you need hiddev support in your kernel (and the proper rights to read and write to this device).
Just a thought, do you use udev? If not, you maybe need to create the char-devs by-hand (cannot tell you the device adress, my MX is somewhere outside this building ;).

Regards
Zhenech
PermalinkPermalink 28 December, 2006 @ 12:22
Comment from: DrDrew [Visitor] Email
Zhenech,

Well after trying everything I could, I finally went to google and started searching for another download location and finally came upon this:
http://www.ibiblio.org/pub/Linux/Incoming/

Revoco 0.3 is located there (3 times). I downloaded it, and ran the gcc command on it as root. Gcc snagged on the spot where version is defined, but I cleared it up w/ some quotes (although the version does not display correctly because of this). In any case, the resulting program works like a charm! I'm opening new tabs like a champ now! I hope the link helps others. I am e-mailing Edgar to ask if I can host it so we will have yet another source for downloading it. Thanks!

Drew
PermalinkPermalink 28 December, 2006 @ 13:55
Comment from: Petteri Räty [Member] Email · http://dev.gentoo.org/~betelgeuse/
Had you taken the source from my overlay, the issue would have been fixed there.
http://overlays.gentoo.org/dev/betelgeuse/browser/app-misc/revoco/files/revoco-0.3.c
PermalinkPermalink 28 December, 2006 @ 13:58
Comment from: Froese [Visitor] Email · http://goron.de/~froese
Sorry about the server failure - I hope it's fixed next week. One backup location is

http://www.missingreality.com/revoco/

(thanks Petri!)

Don't spread the ibiblio link. The tar.gz file is broken and URL won't be valid for too long (it's the incoming directory).

About the compilation issue: just call make instead of calling gcc directly. The makefile passes the right version string to the compiler. (The backslashes in -DVERSION=\"0.3\" are required.)

With version 0.3 it's no longer necessary to invoke revoke each time you login. The settings are permanent.

Also, v0.3 looks in /dev and /dev/usb for the hiddev devices (it seems there's some disagreement on where these have to be located). And if it can't find an RX Revolution it gives some trouble-shooting advice.

Ciao, ET.
PermalinkPermalink 28 December, 2006 @ 18:38
Comment from: Froese [Visitor] Email · http://goron.de/~froese
Btw, I'm disappointed by the MX Revolution. My wheel doesn't spin freely any more :-( It stops spinning within one second. Some googling showed that I'm not alone with that: in Logitech's forum there are a couple of people with similar problems - but no reply from Logitech staff yet.

IMHO a pretty meager performance for such a pricy mouse - loses its main feature in less than two months ...

Ciao, ET.
PermalinkPermalink 28 December, 2006 @ 18:49
Comment from: DrDrew [Visitor] Email
Well, my linux noobness shines through now. Using make is a much better solution...thanks again ET! It was because I was using gcc that it snagged. What I meant to say before was that it snagged where VERSION is in the usage section. Now, its obvious why.

Petteri, I didn't notice the link for the v0.3 source. I went straight to the link from Zhenech that took me to the v0.2 source, which didn't work...probably because of what ET said above about where it looks for hiddev devices.

In any case, I am at best a noob, and am much more educated on it now...and it works. Thanks for all the help!

Drew
PermalinkPermalink 30 December, 2006 @ 22:54
Comment from: john [Visitor] Email
I have a laptop with an embedded
bluetooth device.

Is MX Revolution capable of working through my own bluetooth
device rather then the wired usb bluetooth that it comes with?

Has anybody done any tests?
PermalinkPermalink 14 July, 2007 @ 13:02
Comment from: Petteri Räty [Member] Email · http://dev.gentoo.org/~betelgeuse/
Is it even able to operate as a normal bluetooth adapter?
PermalinkPermalink 14 July, 2007 @ 13:54
Comment from: john [Visitor] Email
Yes, it is able to work as normal
bluetooth adapter.
Logically it should work cause bluetooth is standart technology but you never know till you try it.

Before I spend my money on it just want to make sure it works directly. But still it's good news it works with gentoo.
PermalinkPermalink 14 July, 2007 @ 18:23
Comment from: Petteri Räty [Member] Email · http://dev.gentoo.org/~betelgeuse/
Well I doubt you can make it work with any other bt devices as the mouse for example lacks a connect button.
PermalinkPermalink 14 July, 2007 @ 18:32
Comment from: john [Visitor] Email
Hi There!

Any chance you can make any tests with another bluetooth dongle?

cheers!
PermalinkPermalink 15 July, 2007 @ 05:12

Leave a comment:

Your email address will not be displayed on this site.
Your URL will be displayed.

Allowed XHTML tags: <p, ul, ol, li, dl, dt, dd, address, blockquote, ins, del, span, bdo, br, em, strong, dfn, code, samp, kdb, var, cite, abbr, acronym, q, sub, sup, tt, i, b, big, small>
(Line breaks become <br />)
(Set cookies for name, email and url)
(Allow users to contact you through a message form (your email will NOT be displayed.))

Petteri Räty

May 2008
Mon Tue Wed Thu Fri Sat Sun
<< <     
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31  

Search

Categories

Misc

XML Feeds

What is RSS?

Who's Online?

  • Guest Users: 81

powered by
b2evolution