On Tue, Aug 09, 2005 at 08:35 PM, Johannes Berg wrote:

> On Tue, 2005-08-09 at 19:33 +0200, Matthias Grimm wrote:
> 
> > Have a look at event_handler() in input_manager.c. You will see that
> > only keyboard events and relative mouse events are processed. Any
> > other event will be ignored.
> 
> That's obviously the problem. For synaptics compatibility, the
> appletouch driver reports absolute events.
> 
> Could you change the code to also reset the timer on absolute mouse
> events? (What is the reason for not resetting the timer on them?)

This is not so simple: when synaptics x driver starts it grabs the event
device using EVIOCGRAB. In this way data from input device don't leak
to /dev/input/mice and, as a side effect, no one else can read events
from event device.
If you are using synaptics X driver you can see this by simply "cat"
your mouse evdev with X turned on and then off: you'll see garbage in
the latter case, but not in the former.



luca

-- 
Beware of programmers who carry screwdrivers.
                        -- Leonard Brandwein

http://shammash.homelinux.org/ - http://www.artha.org/shammash/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to