Hi Sam Ma,

normally, if your USB mouse behaves well, and if you have it inserted, your udev will create a node called /dev/input/eventX where X is a number. On one embedded board that I am using, it is called /dev/input/event1 for the keyboard and /dev/input/event2 for the mouse (both are USB).

You can test if they work by using, before you start DirectFB, do a "cat /dev/input/eventX" in a term window (where X is the number of your mouse) and move the mouse a bit, this should print a lot of unreadable characters. If this is not the case, or if you use something else then /dev/input/eventX, you need to tell the linux event driver "linux_input" which handles HIDs (human interface devices) normally. You can do this in configuration in your directfbrc.

Note that after DirectFB is started, no "new" devices will be detected by "linux_input"!

hth
Niels

mayicome wrote:
Hi all,

In a embedded environment,start directFB from x server.
If use a ps/2 mouse, the directFB start very well.
If use an USB mouse, then sometimes OK sometimes interrupted.
There are several kinds of errors, but any way, the directFB could not finish 
initalization.
I found that there are ps/2 mouse and serial mouse "c language program" in 
input directory,but no for USB mouse.
I wonder  how the USB mouse run in directFB.
To use the USB mouse in my board, I need to insmod a module calls sl811-hcd.ko.
If I rmmod it before initial directfb,and then insmod it after directfb 
initialed ,it will be ok.
but it will take a little long time to be able to move the usb mouse after 
directfb program run.
It will even take a more long time if I use USB HUB,and plug the USB mouse into 
the USB HUB.
How can I do to make the directfb initialazation smothly? Is it a bug or what's 
wrong with me?
Thanks a lot.

Sam Ma


_______________________________________________
directfb-dev mailing list
directfb-dev@directfb.org
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev



--

.------------------------------------------.
| DirectFB - Hardware accelerated graphics |
| http://www.directfb.org/                 |
"------------------------------------------"
_______________________________________________
directfb-dev mailing list
directfb-dev@directfb.org
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev

Reply via email to