Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
xmodmap with multiple mice [solved]
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
miketigerwoods
n00b
n00b


Joined: 02 Jan 2005
Posts: 17

PostPosted: Sat Feb 14, 2009 6:05 pm    Post subject: xmodmap with multiple mice [solved] Reply with quote

I have a laptop with a synaptics touchpad setup just fine. However, I also like to use a Logitech MX610 when I'm not mobile. The MX610 I use is the left-handed model and unfortunately Logitech thought it was a good idea to swap the left and right mouse buttons in the hardware which is not the style I am used to.

The Xmodmap file is setup to swap the left and right mouse buttons, however this also swaps the touchpad buttons. Is there a way to specify only a certain device's xmodmap?

I'm using KDE 4.2 and xorg-server-1.5.3.

/etc/X11/Xmodmap
Code:
! MX610 button mappings
pointer = 3 2 1 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20


Last edited by miketigerwoods on Sat Feb 14, 2009 7:39 pm; edited 1 time in total
Back to top
View user's profile Send private message
spupy
Tux's lil' helper
Tux's lil' helper


Joined: 08 May 2007
Posts: 102
Location: Germany

PostPosted: Sat Feb 14, 2009 6:41 pm    Post subject: Reply with quote

Interesting. I use
Code:
xmodmap -e 'pointer = 3 2 1 4 5 6 7 8 9'

and it only swaps the buttons on my mouse. Touchpad is unaffected. Maybe there is something wrong with my setup. :)
_________________
Make install - not war!
Back to top
View user's profile Send private message
miketigerwoods
n00b
n00b


Joined: 02 Jan 2005
Posts: 17

PostPosted: Sat Feb 14, 2009 7:39 pm    Post subject: Reply with quote

I figured it out. The new HAL/FDI setup with Xorg is great!

The standard synaptics fdi in the /usr/share/hal/fdi/policy along with this one for the MX610 works:
Code:
<?xml version="1.0" encoding="ISO-8859-1"?>
<deviceinfo version="0.2">
  <device>
    <match key="info.product" contains="Logitech USB Receiver">
      <merge key="input.x11_driver" type="string">evdev</merge>
      <!-- Mouse setup -->
      <match key="info.capabilities" contains="input.mouse">
        <merge key="input.x11_options.Emulate3Buttons" type="string">no</merge>
        <merge key="input.x11_options.ZAxisMapping" type="string">4 5</merge>
        <merge key="input.x11_options.ButtonMapping" type="string">3 2 1 4 5 6 7 8 9</merge>
      </match>
      <!-- Button mapping -->
      <match key="info.capabilities" contains="input.keys">
        <merge key="input.x11_driver" type="string">evdev</merge>
      </match>
    </match>
  </device>
</deviceinfo>
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum