Difference between revisions of "Logitech MX Revolution"

From ArchWiki
Jump to: navigation, search
Line 34: Line 34:
 
     "/usr/bin/xvkbd -text "\[Control_L]\[Page_Down]""
 
     "/usr/bin/xvkbd -text "\[Control_L]\[Page_Down]""
 
       m:0x0 + b:7
 
       m:0x0 + b:7
 +
 +
For some reason some combinations of keyboard events refuse to work with certain buttons for me.
  
 
m:0x0 refers to your first mouse. The "+b:8" refers to the button you push. Here is a list of all the buttons:
 
m:0x0 refers to your first mouse. The "+b:8" refers to the button you push. Here is a list of all the buttons:
Line 56: Line 58:
 
     # b:17 - media wheel press
 
     # b:17 - media wheel press
  
To remap the seach key to something instead of search, put something along the lines of the following into ~/.xbindkeysrc
+
To remap the seach button to something instead of search, put something along the lines of the following into ~/.xbindkeysrc
 
Example here is to remap it to alt+f4 to close a window.
 
Example here is to remap it to alt+f4 to close a window.
  
Line 62: Line 64:
 
     c:0xE1
 
     c:0xE1
  
Lastly, add xbindkeys to your startup.
+
Alternatively, Gnome will recognize the small middle search button as a keyboard event. Thus, you just have to go into keyboard shortcuts and remap that to something. This is probably the most reliable way to go about using this key.
 +
 
 +
Lastly, add xbindkeys to your startup and you should be good to go.

Revision as of 22:08, 29 April 2009

Xorg is able to auto-detect this mouse just fine. However, it has a 17 key mapping:

   nano /etc/X11/xorg.conf

Edit your mouse section to say something like:

   Section "InputDevice"
       Identifier  "Mouse0"
       Driver      "mouse"
       Option      "Protocol" "auto"
       Option      "Device" "/dev/input/mice"
       Option      "ZAxisMapping" "4 5"
       Option      "Buttons"    "17"
   EndSection

Next install the following packages

   pacman -S xbindkeys xvkbd

We'll put all of the settings into ~/.xbindkeysrc

   touch ~/.xbindkeysrc
   nano ~/.xbindkeysrc


You'll want to put in ~/.xbindkeysrc events to send to xvkbd. Here is a sample:

   "/usr/bin/xvkbd -text "\[Alt_L]\[Left]""
     m:0x0 + b:8
   "/usr/bin/xvkbd -text "\[Alt_L]\[Right]""
     m:0x0 + b:9
   "/usr/bin/xvkbd -text "\[Control_L]\[Page_Up]""
     m:0x0 + b:6
   "/usr/bin/xvkbd -text "\[Control_L]\[Page_Down]""
     m:0x0 + b:7

For some reason some combinations of keyboard events refuse to work with certain buttons for me.

m:0x0 refers to your first mouse. The "+b:8" refers to the button you push. Here is a list of all the buttons:

   # Mappings for keys for MX Revo
   # b:1	-	left mouse button
   # b:2	-	left and right mouse button together
   # b:3 	-	right mouse button
   # b:4	-	mouse wheel up
   # b:5	-	mouse wheel down
   # b:6	-	mouse wheel left
   # b:7	-	mouse wheel right
   # b:8	-	back button
   # b:9	-	forward button
   # b:10	-	-none-
   # b:11	-	-none-
   # b:12	-	-none-
   # b:13	-	media wheel up
   # b:14	-	-none-
   # b:15	-	media wheel down
   # b:16	-	-none-
   # b:17	-	media wheel press

To remap the seach button to something instead of search, put something along the lines of the following into ~/.xbindkeysrc Example here is to remap it to alt+f4 to close a window.

   "/usr/bin/xvkbd -text "\[Alt_L]\[F4]""
   c:0xE1

Alternatively, Gnome will recognize the small middle search button as a keyboard event. Thus, you just have to go into keyboard shortcuts and remap that to something. This is probably the most reliable way to go about using this key.

Lastly, add xbindkeys to your startup and you should be good to go.