usb touchscreen driver development (very anxious!!!)
GreenTom <[email protected]>
| Newsgroups | gmane.linux.usb.devel |
|---|---|
| Message-ID | <[email protected]> |
Hello.everyone! Now I have a problem when I develop a driver for a usb touch screen.My PC is Dell d6000 with 1G memory and OS is Fedora Core 6 with the core 2.6.18.1.The device is a infrored touch screen by the USB version 1.1. I find the Vendor ID and the Product ID from /var/log/messages when plugin the device. I get usbtouchscreen.c from the kernel source file /driver/usb/input/usbtouchscreen.c. Then I modify the file with the Vendor ID and Product ID of my device. compile the file and install it by 'insmod' without errs. Using 'lsmod' can find my module.But when I insert my device into the PC usb interface. My probe function in my driver didn't been called because I put printk() in the probe function, but find nothing in the /var/log/messages. I find information from the internet is that the usb touch screen is a HID device.So when device was pluged into the PC. The HID driver was called and the probe function in my driver was shielded.The solution is remove the HID module and then install my driver ,at last install the HID module.I register my device as an input device by using the method register_usb_device.But I find in /var/log/messages that when plugin a usb mouse the usb core used input driver and a usb touch screen plugin the usb core using the hid driver. You can get detail information from the file /driver/usb/input/usbtouchscreen.c But I don't know which module is the HID module and how to remove it? Different kernel version using different name. Or there is anther solution for this problem. and The real reason why my probe function was not been called ? I will be looking forward to hear from you soon! Thank you very much! 2007-08-22 _________________________________________________________________ 用 Live Search 搜尽天下资讯! http://www.live.com/?searchOnly=true ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ [email protected] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel