I can't get the mouse move event when using the evtest tools to test the input events .
I just get three mouse events:
left click event: type = EV_KEY, code = 272 (LeftBtn), value=1/0
right click event: type = EV_KEY, code = 273 (RightBtn), value = 1/0
mouse wheel event: type = EV_REL, code = 8 (Wheel), value = -1
No mouse move event. So where my mouse move event and how to capture it?
ps: Tested on Ubuntu 11.04
and Gentoo
in VirtualBox-4 with virtualBox-addition installed.
Have you tried actually moving the mouse rather than evtest? I don't get anything on /dev/input/event* when I move my mouse but do on /dev/input/by-path/platform-i8042-serio-1-event-mouse. I also don't get anything when I use /dev/input/by-path/platform-i8042-serio-1-event-mouse and move the mouse across Synergy, I have to physically move the mouse.
Sach
If not on an embedded linux system I prefer to use the input-utils tools rather than evtest (and if I'm on Android I use
cat /proc/bus/input/devices
andgetevent
)Install input-utils via:
List all my input devices
Then I read events on my laptop's trackpoint (don't forget to move the it around after starting input-events)