Griffin Powermate evdev setup

Dan Nicholson dbn.lists at gmail.com
Tue Apr 28 06:42:08 PDT 2009


On Tue, Apr 28, 2009 at 2:33 AM, Phil Endecott
<spam_from_xorg at chezphil.org> wrote:
> Peter Hutterer wrote:
>> On Mon, Apr 27, 2009 at 12:09:17AM +0100, Phil Endecott wrote:
>
>>>      Option          "DIALRelativeAxisButtons" "4 5"
>> This option isn't supported anymore.
>
> OK.  I think something like this is needed, though.  If you have an
> application that actually "knows" about the dial axis that's fine, but
> in most cases you'll want to do some sort of mapping.  I don't see any
> mention of the mouse scroll wheel in the new evdev man page; how is
> that managed?

Read the description for EmulateWheel in evdev(4). The options are
just like the mouse driver now.

> The old driver was ugly (bitmasks etc) but useful.  I hope the new
> version hasn't "thrown the baby out with the bath water".

I wouldn't worry about it. Looking at the evtest trace, I think what
you're going to get once the probing stops dropping your device is a
left mouse button and a hwheel for the dial.

>> As Dan said, the device doesn't advertise a known combination of axes +
>> buttons. Please run http://people.freedesktop.org/~whot/evtest.c against the
>> device file and attach the output to a bug on bugs.freedesktop.org.
>
> Here's the output, also filed as
> http://bugs.freedesktop.org/show_bug.cgi?id=21457 :
>
> Input driver version is 1.0.0
> Input device ID: bus 0x3 vendor 0x77d product 0x410 version 0x400
> Input device name: "Griffin PowerMate"
> Supported events:
>   Event type 0 (Sync)
>   Event type 1 (Key)
>     Event code 256 (Btn0)
>   Event type 2 (Relative)
>     Event code 7 (Dial)
>   Event type 4 (Misc)
>     Event code 1 (Pulseled)
> Grab succeeded, ungrabbing.
> Testing ... (interrupt to exit)
> Event: time 1240909108.341856, type 2 (Relative), code 7 (Dial), value -1
> Event: time 1240909108.341878, -------------- Report Sync ------------
> Event: time 1240909108.773822, type 2 (Relative), code 7 (Dial), value -1
> Event: time 1240909108.773838, -------------- Report Sync ------------
> Event: time 1240909109.029820, type 2 (Relative), code 7 (Dial), value -1
> Event: time 1240909109.029836, -------------- Report Sync ------------
> Event: time 1240909109.149823, type 2 (Relative), code 7 (Dial), value -1
> Event: time 1240909109.149839, -------------- Report Sync ------------
> Event: time 1240909109.357821, type 2 (Relative), code 7 (Dial), value 1

Is -1 turning the dial to the left and +1 turning the dial to the right?

--
Dan



More information about the xorg mailing list