LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 08-12-2008, 03:49 AM   #1
simopal6
Member
 
Registered: Jun 2006
Location: Italy
Distribution: Slackware 13.1
Posts: 230

Rep: Reputation: 30
evdev mouse driver: ZAxisMapping doesn't influence button mapping


I hope the title is clear enough.
Hello!
I've started using the evdev driver for my Logitech v220 mouse, which has a wheel that can move horizontally.
The problem is that if I move the wheel to the right, the horizontal scrollbar scrolls to the left, and vice versa.
Using xev, I've found out that:
- vertical scroll up: event 4
- vertical scroll down: event 5
- horizontal scroll left: event 7
- horizontal scroll right: event 6.
However, whatever I set "ZAxisMapping" to, this doens't influence the behaviour of the mouse buttons - that is, the behaviour remains the one I described.
For example, I tried "4 5 7 6" and "4 5 6 7", but horizontal scroll works always the same way.
I even tried "7 6 4 5", but the moving the wheel still caused vertical scrolling.
It seems that ZAxisMapping doesn't work.
Does anybody know what the problem might be?
Thanks!
 
Old 08-12-2008, 04:24 AM   #2
indeliblestamp
Member
 
Registered: Feb 2006
Distribution: Fedora
Posts: 341
Blog Entries: 3

Rep: Reputation: 40
Try fiddling with the Protocol values (something like IMPS/2 might help, although mine's just a single scroll wheel mouse).
*edit*- Actually nevermind, I just reread your post and I don't see how my suggestion will help. Your mouse wheel does respond, only in opposite directions. Sorry.

Last edited by indeliblestamp; 08-12-2008 at 04:27 AM.
 
Old 08-13-2008, 01:24 AM   #3
simopal6
Member
 
Registered: Jun 2006
Location: Italy
Distribution: Slackware 13.1
Posts: 230

Original Poster
Rep: Reputation: 30
But shouldn't ZAxisMapping configure how the mouse wheel events should be used?
I mean, if moving the mouse wheel to the left generates the event 7 and moving it to the right generates the event 6, shouldn't I be able to tell the mouse driver that 7 means "scroll left" and 6 means "scroll right"? Isn't this the reason why ZAxisMapping exist?
Thank you!
 
Old 08-13-2008, 02:43 AM   #4
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Arch + Xfce
Posts: 6,852

Rep: Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037
It's my understanding that the evdev driver doesn't accept many of the regular xorg options, like ZAxisMapping. Most devices are supposed to "just work" under it.

But searching around, I found this page, and if I'm reading it and some other comments right, it looks like using:
Code:
Option      "HWHEELRelativeAxisButtons" "7 6"
or similar, should give you the effect you want.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
horizontal mouse wheel scrolling config in Slack 11 [evdev driver instead of mouse] arcanex Slackware 8 12-12-2007 07:18 AM
Mapping the mouse wheel button jfranks214 *BSD 1 12-19-2004 08:50 PM
Mouse button mapping beyond 4-5 Nichole_knc Slackware 1 07-02-2004 06:26 AM
mapping mouse button to keystroke? ldhertert Linux - General 2 11-19-2003 10:24 AM
Mouse Button Mapping in X Windows ascii2k Linux - General 4 07-27-2001 01:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 11:26 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration