inject events into a named pipe

Peter Hutterer mailinglists at
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 to find  
out what to write to the device.


Multi-Pointer X Server

More information about the xorg mailing list