linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Johannes Berg <johannes@sipsolutions.net>
To: Barton C Massey <bart@cs.pdx.edu>
Cc: linux-input <linux-input@atrey.karlin.mff.cuni.cz>,
	"Antonio-M. Corbi Bellot" <antonio.corbi@ua.es>,
	Jiri Kosina <jkosina@suse.cz>
Subject: Re: [PATCH] don't invert mightymouse hwheel
Date: Thu, 26 Apr 2007 10:24:51 +0200	[thread overview]
Message-ID: <1177575892.6814.9.camel@johannes.berg> (raw)
In-Reply-To: <200704130021.l3D0LvVM008180@adara.cs.pdx.edu>

[-- Attachment #1: Type: text/plain, Size: 2073 bytes --]

On Thu, 2007-04-12 at 17:21 -0700, Barton C Massey wrote:

>   2) You can use an xorg.conf entry as simple as

[as corrected by your subsequent mail]

>   Section "InputDevice"
>     Identifier  "EvMightyMouse0"
>     Driver "evdev"
>     Option "Name" "Mitsumi Electric Apple Optical USB Mouse"
>   EndSection

The only way I've been able to make it work with evdev is this:
 
Section "InputDevice"
        Identifier      "EvDev"
        Driver          "evdev"
        Option          "SendCoreEvents"        "true"
        Option          "evBits"                "+1-2"
        Option          "keyBits"               "~272-287"
        Option          "relBits"               "~0-2 ~6 ~8"
        Option          "Pass"                  "3"
#(optional)
#       Option          "WHEELRelativeAxisButtons"      "4 5"
        Option          "HWHEELRelativeAxisButtons"     "7 6"
EndSection

(You use Name to match, I used the *Bits stuff but that doesn't matter,
I tried your version too, albeit with SendCoreEvents or I get nothing at
all)

This seems really strange since we both use the evdev driver and all I
do is some matching on which devices are allowed. What version of evdev
are you using? It surely wasn't built before Jan 2005, was it? :)

Oh and before I forget to ask this, are you using a big or little endian
machine? I've had stupid input layer endianness bugs because the kernel
exports the bits there in a strange way... The changelog indicates it
was fixed in May 2006 for evdev though.

What programs are you using for testing? In xev now, I get:
move finger up: button 4
move finger down: button 5
move finger left: button 6
move finger right: button 7

Is that wrong? It seems to indicate that the coordinate system is rooted
at the upper left corner which seems sane. But this is with the
inversion programmed into my X config.

I can live with this inversion in there, but it seems very strange that
the same hardware and same driver should give different results for you
and me.

johannes

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 190 bytes --]

  parent reply	other threads:[~2007-04-26  8:24 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-13  0:21 [PATCH] don't invert mightymouse hwheel Barton C Massey
2007-04-13  6:45 ` Johannes Berg
2007-04-13  7:43 ` Jiri Kosina
2007-04-13  9:30 ` Johannes Berg
2007-04-23 10:27 ` Barton C Massey
2007-04-23 13:13   ` Jiri Kosina
2007-04-23 13:43     ` Johannes Berg
2007-04-23 14:07       ` Jiri Kosina
2007-04-23 14:13         ` Johannes Berg
2007-04-26  8:24 ` Johannes Berg [this message]
  -- strict thread matches above, loose matches on Subject: below --
2007-04-13  0:32 Barton C Massey
2007-04-11 22:23 Johannes Berg
2007-04-12 16:04 ` Jiri Kosina
2007-04-12 21:25 ` Barton C Massey
2007-04-13  6:40   ` Johannes Berg
2007-04-25 20:06     ` Zephaniah E. Hull
2007-04-25 23:09     ` Barton C Massey
2007-04-26  0:00       ` Zephaniah E. Hull
2007-04-26 18:35       ` Barton C Massey

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1177575892.6814.9.camel@johannes.berg \
    --to=johannes@sipsolutions.net \
    --cc=antonio.corbi@ua.es \
    --cc=bart@cs.pdx.edu \
    --cc=jkosina@suse.cz \
    --cc=linux-input@atrey.karlin.mff.cuni.cz \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).