Debug new serial mouse

Peter Targett peter_targett at pandora-int.com
Thu May 31 02:31:43 PDT 2007


> U don't need kernel  mouse serial driver.The X mouse driver  
> understands the mouse protocol.It just needs to read bytes from  
> ttyS* .Pl. send your xorg.conf.

Hi Abhinav,

These are my additions to xorg.conf:

Section "ServerLayout"
	...
	InputDevice    "Poglemouse" "SendCoreEvents"
EndSection

Section "InputDevice"
	Identifier  "Poglemouse"
	Driver      "mouse"
	Option	    "Protocol" "PogleMouse"
	Option	    "Device" "/dev/ttyS0"
EndSection

You will notice that I'm using a new protocol which I've added to  
mouse_drv to decode mouse movement; unfortunately, none of the  
existing protocols look compatible, which is why I was hoping to  
adapt the existing mouse driver to prove I can make the mouse  
(trackball) work in X - later I might make a dedicated driver.

Here's the output from Xorg.0.log:

(**) |-->Screen "Screen0" (0)
(**) |   |-->Monitor "Monitor0"
(**) |   |-->Device "Videocard0"
(**) |-->Input Device "Mouse0"
(**) |-->Input Device "Keyboard0"
(**) |-->Input Device "Poglemouse"
...
...
(**) Option "Protocol" "PogleMouse"
(**) Poglemouse: Device: "/dev/ttyS0"
(**) Poglemouse: Protocol: "PogleMouse"
(**) Option "SendCoreEvents"
(**) Poglemouse: always reports core events
(**) Option "Device" "/dev/ttyS0"
(**) Option "BaudRate" "38400"
(**) Option "StopBits" "1"
(**) Option "DataBits" "8"
(**) Option "Parity" "Odd"
(**) Option "Vmin" "1"
(**) Option "Vtime" "0"
(**) Option "FlowControl" "None"
(==) Poglemouse: Emulate3Buttons, Emulate3Timeout: 50
(==) Poglemouse: Buttons: 3
(**) Poglemouse: BaudRate: 38400
(II) XINPUT: Adding extended input device "Poglemouse" (type: MOUSE)

> >have built my modified mouse_drv program including various debug
> >'defines' which output messages via ErrorF().. how can I run X and  
> see
> >these messages?
> U can output the coordinates info to a file.

How can I dump info to a file?  I'm sure the problems are with my  
additions to mouse_drv and my inability to debug it.

Thanks,

Peter

_____________________________________________________________________
This e-mail has been scanned for viruses by Verizon Business Internet Managed Scanning Services - powered by MessageLabs. For further information visit http://www.verizonbusiness.com/uk



More information about the xorg mailing list