Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Mouse button confusion / xmodmap/imwheel
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Kvetch
Guru
Guru


Joined: 29 Apr 2004
Posts: 318
Location: /dev/null, VA

PostPosted: Tue Jun 22, 2010 3:33 pm    Post subject: Mouse button confusion / xmodmap/imwheel Reply with quote

I have a wireless 7 button mouse I just bought for my laptop running XFCE. I connected it to the laptop I looked up the event # and other Handlers as such.

Code:
# cat /proc/bus/input/devices
I: Bus=0003 Vendor=099a Product=2515 Version=0110
N: Name="        USB Receiver"
P: Phys=usb-0000:00:1d.2-2/input1
S: Sysfs=/devices/pci0000:00/0000:00:1d.2/usb8/8-2/8-2:1.1/input/input7
U: Uniq=
H: Handlers=kbd mouse0 event7
B: EV=17
B: KEY=1f0000 2000000 3878d801d001 1e000000000000 0
B: REL=143
B: MSC=10


Edited my xorg.conf to have the following
Code:
Section "InputDevice"
    Identifier     "USB Mouse"
    Driver         "evdev"
    Option         "Buttons" "7"
    Option         "Device" "/dev/input/event7"
    Option         "Protocol" "auto"
    Option         "ZAxisMapping" "6 7"
    Option         "Sensitivity" "0.14"
EndSection


The scroll wheel is working fine but the thumb buttons (I believe buttons 6 and 7) are reversed. The normal thumb back button goes "forward" and the normal forward button goes "back".
I changed my ZAxisMapping to "4 5" but that didn't seem to affect anything. I tried playing around with xmodmap but I couldn't get the buttons reversed but I could disable my scroll when playing with xmodmap. I read a bunch of threads saying you have to use xmodmap and imwheel to remap your buttons but that didn't seem to make sense to me. I installed imwheel and tried messing with it but it didn't seem to fix it for me. Why do you even need to use xmodmap? Can I not remap my 2 side buttons in X? Is using imwheel and xmodmap together really the way to achieve this?

Thanks
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 6196

PostPosted: Tue Jun 22, 2010 4:51 pm    Post subject: Reply with quote

Did you bother to look at the driver's manpage ?
Also, what version of xorg-server are you talking about ?
Back to top
View user's profile Send private message
Kvetch
Guru
Guru


Joined: 29 Apr 2004
Posts: 318
Location: /dev/null, VA

PostPosted: Tue Jun 22, 2010 6:20 pm    Post subject: Reply with quote

Hey VoidMage, thanks for replying. Sorry I am running xorg 1.7.6. I did look at the manpage for evdev and if you are referring to the ButtonMapping option, I had tried playing around with that too but that didn't seem to do it for me.
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 6196

PostPosted: Tue Jun 22, 2010 7:12 pm    Post subject: Reply with quote

No, I was talking about YAxisMapping.
Also, hal settings may interfere, though I'd try going straight to 1.8
and InputClass.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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