Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Write an article for LinuxForums Today! Win Great Prizes!
I've made a virtual mouse driver as part of my input driver study (essential linux drivers book). Besides the driver, there is also a user application (coord.c) that generates random coordinates and forwards these coordinates to the driver via sysfs.
I installed the driver and did run the coord user application. This resulted in the following logs :
In other words, the coordinates that are being produced by the user app. are coming through properly in the write method of my driver.
I would however expect that the mouse pointer would be jumping around also, but this is not the case... (I'm running gpm as follows : gpm -m /dev/input/event7 -t evdev )
I know that the virtual mouse driver ( input8 ) is linked to event7 by checking the following :
So the according event is generated properly also.
I'm not familiar with gpm, but looking at the man pages, it seems that nothing more needs to be done to run gpm (besides indicating that it should react on on event7).
Does anybody have an idea why I don't see the result of the randomly generated mouse movement events???
Open Source Security Myths Dispelled Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization subscribe
InformationWeek InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology. subscribe