Getting Ubuntu 9.04 to play nice with the MX Revolution

By robrt on Sunday 21 June 2009 15:00
Categories: Howto, Ubuntu, Views: 2.107

Support for the MX Revolution in 9.04 is pretty basic; left, middle and right-mousebutton works and that's about it.

What I'd like to accomplish is the same setup I used to have with Vista;
- Auto free spin in all applications after a quick slam on the scrollwheel
- Button 4 / 5 (thumb button) volume up / down / mute
- Button 6 (quick find) CTRL+F

The first issue can be tackled rather easily; all we need is a little utility written by Edgar Toernig called "revoco".

• Download revoco 0.5 here (mirror here)
• Untar it by issuing "tar zxvf revoco-0.5.tar.gz"
• Compile it by running "sudo make"
• Move the compiled file to a new folder; .e.g /usr/local/bin/ (sudo mv revoco /usr/local/bin/)
• Run sudo /usr/local/bin/revoco to verify all works.

As you can tell straight away after running it, it only supports a few basic parameters, tilt-to-tilt, free-spin, auto and manually specified. I'm quite content with the "auto" option, but it's up to you whichever one you use.
For the purposes of this blog post we'll assume you want to use "auto" as well.

• Run: sudo /usr/local/bin/revoco auto
Try and scroll somewhere now; lo and behold! Scrolling as it's supposed to be!

Next, we'll need to try and tie this into the system somehow; toosweettobesour.com came up with few awesome bash scripts that'll do the job nicely:

• Create a new file in /etc/init.d called "revoco". Like so: sudo nano /etc/init.d/revoco
• Paste the following, be sure to replace "auto" for the mode you wish to use.


Bash:
1
2
#!/bin/bash
/usr/local/bin/revoco click



• CTRL+X and "Y" to save the file
• chmod +x /etc/init.d/revoco
• That's that! Revoco will now be automtically called on boot with your desired argument. Now we need to ensure it's called after hibernate/standby as well:

• sudo nano /etc/pm/sleep.d/10revoco:
• Paste the following:


Bash:
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash
case "$1" in
        hibernate|suspend)
                /usr/local/bin/revoco click
                ;;
        thaw|resume)
                /usr/local/bin/revoco click
                ;;
        *) exit $NA
                ;;
esac



• CTRL+X and "Y".
• sudo chmod +x /etc/pm/sleep.d/10revoco

That's that! Revoco is now called on boot and after hibernate/standby.

Next; getting all buttons to play nice! :)
I've looked a bit deeper into it and don't have a solution yet, but I'll update this post as soon as I do.

Original post: here

Volgende: Ubuntu & GOpenVPN: Tunnelblick for *nix! 06-'09 Ubuntu & GOpenVPN: Tunnelblick for *nix!
Volgende: Evolution <> Google Calendar two-way sync 06-'09 Evolution <> Google Calendar two-way sync

Comments

Comments are closed