inject events into a named pipe

Peter Hutterer mailinglists at who-t.net
Thu Feb 1 12:42:41 PST 2007


On 02/02/2007, at 04:27 , Tiago Vignatti wrote:

> Hello every one,
>
> I've been trying to inject differents events direct to mouse device  
> node and my first attempt is to create a named pipe (fifo). So I  
> did the following:
>
> root at mt4:/dev/input# mkfifo fakemouse p
> root at mt4:/dev/input# cat mouse0 > fakemouse

Unfortunately a simple cat doesn't do it. You have to write a few  
bytes to the mouse device to init the right protocol etc. Only after  
that will the forwarding of the bytes work.
Have a look at http://www.computer-engineering.org/ps2mouse/ to find  
out what to write to the device.

Cheers,
   Peter

--
Multi-Pointer X Server
http://wearables.unisa.edu.au/mpx





More information about the xorg mailing list