evdev and absolute axes help

Jean-François Dagenais jeff.dagenais at gmail.com
Tue Nov 15 11:37:57 PST 2011


On Nov 15, 2011, at 14:28, Chase Douglas wrote:

> On 11/10/2011 10:30 AM, Jean-François Dagenais wrote:
>> On Nov 10, 2011, at 12:54, Chase Douglas wrote:
>> 
>>> On 11/10/2011 09:51 AM, Jean-François Dagenais wrote:
>>>> Thanks for trying to help...
>>>> On Nov 10, 2011, at 12:39, Chase Douglas wrote:
>>>> 
>>>>> On 11/09/2011 02:49 PM, Jean-François Dagenais wrote:
>>>>>> Hi,
>>>>>> 
>>>>>> I am using maverick,
>>>>>> I have tried for the last two days to do something which some X developers would find quite trivial I imagine. We have a capacitive wheel using the ad714x.c driver in the kernel. In my latest desperations, I have changed the events sent by ad714x.c so they are BTN_LEFT and ABS_Y so that it better matches what a mouse does. I am trying to make this wheel do what a regular mouse wheel does. OR even better, send a keyboard keycode (one for up, one for down), which I may do later by hacking the evdev code. But first things first, why I am not able to get this to work...
>>>>> 
>>>>> I'm confused by what you are trying to do. I'm not sure I'll be able to
>>>>> help until I understand what you want the end result to be. If you could
>>>>> start out with a description of your device and what it should logically
>>>>> be doing that would help me.
>>>> Well, as you see from the evtest dump I included, I have a capacitance touch wheel. The events it sends out (EV_TOUCH pressed/release, and ABS_WHEEL position) is not useable in our X application. We want to map these movements to events our application can better respond to, like button events (mouse wheel) or better yet, key events, for example KP_UP and KP_DOWN.
>>> 
>>> Why is ABS_WHEEL, which is translated to X button press/release for
>>> buttons 4 and 5, insufficient for your use case?
>> ABS_WHEEL translates to cursor X axis movements on my setup, not button presses.
> 
> That sounds like a bug in your version of xf86-input-evdev... ABS_WHEEL
> should only be translated to button 3 and 4 press and release events.
It works when I do it with a real mouse.
> 
> Are you using a modified version of xf86-input-evdev?
nope xserver-xorg-input-evdev  1:2.3.2-6ubuntu3.1
> 
> -- Chase



More information about the xorg-devel mailing list