LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Usb mouse driver problem (https://www.linuxquestions.org/questions/linux-hardware-18/usb-mouse-driver-problem-694020/)

shvnsen 12-31-2008 03:46 AM

Usb mouse driver problem
 
Hi,

Actually when I insert my usb mouse then my system automatically takes some of the drivers.

here are the dmesg of both the mouse

USB mouse
usbcore: registered new driver usbhid
drivers/usb/input/hid-core.c: v2.0:USB HID core driver
PCI0 USB0 USB1 USB2 USB3 USB4 USB5 USB6 USB7 LAN0 AC97 UAR1
SELinux: initialized (dev usbfs, type usbfs), uses genfs_contexts
SELinux: initialized (dev usbdevfs, type usbdevfs), uses genfs_contexts
ehci_hcd 0000:00:10.4: new USB bus registered, assigned bus number 1
ehci_hcd 0000:00:10.4: USB 2.0 enabled, EHCI 1.00, driver 2004-May-10
hub 1-0:1.0: USB hub found
USB Universal Host Controller Interface driver v2.2
uhci_hcd 0000:00:10.0: new USB bus registered, assigned bus number 2
hub 2-0:1.0: USB hub found
uhci_hcd 0000:00:10.1: new USB bus registered, assigned bus number 3
hub 3-0:1.0: USB hub found
uhci_hcd 0000:00:10.2: new USB bus registered, assigned bus number 4
hub 4-0:1.0: USB hub found
uhci_hcd 0000:00:10.3: new USB bus registered, assigned bus number 5
hub 5-0:1.0: USB hub found
usb 3-2: new low speed USB device using address 2
input: USB HID v1.10 Mouse [Logitech Optical USB Mouse] on usb-0000:00:10.1-2


PS/2 Mouse
usbcore: registered new driver usbfs
usbcore: registered new driver hub
usbcore: registered new driver hiddev
usbcore: registered new driver usbhid
drivers/usb/input/hid-core.c: v2.0:USB HID core driver
PCI0 USB0 USB1 USB2 USB3 USB4 USB5 USB6 USB7 LAN0 AC97 UAR1
SELinux: initialized (dev usbfs, type usbfs), uses genfs_contexts
SELinux: initialized (dev usbdevfs, type usbdevfs), uses genfs_contexts
ehci_hcd 0000:00:10.4: new USB bus registered, assigned bus number 1
ehci_hcd 0000:00:10.4: USB 2.0 enabled, EHCI 1.00, driver 2004-May-10
hub 1-0:1.0: USB hub found
USB Universal Host Controller Interface driver v2.2
uhci_hcd 0000:00:10.0: new USB bus registered, assigned bus number 2
hub 2-0:1.0: USB hub found
uhci_hcd 0000:00:10.1: new USB bus registered, assigned bus number 3
hub 3-0:1.0: USB hub found
uhci_hcd 0000:00:10.2: new USB bus registered, assigned bus number 4
hub 4-0:1.0: USB hub found
uhci_hcd 0000:00:10.3: new USB bus registered, assigned bus number 5
hub 5-0:1.0: USB hub found


As it is visible that 2 bolded lines is the difference. Can anyone plz tell me the meaning of the last line (input::) and alsoo the driver it has loaded

Thanks a lot
and plz do reply

vkmgeek 12-31-2008 06:55 AM

it gives information about on what USB port you have connected USB device..
it also loads some of the generic drivers which are necessary to work with mouse...

usbcore - is common for any usb device and gives interface between usb device and host controller driver

ehci is your host controller driver...

USB low speed device means , it is usb1.1 device.....
USB 2.0 device cud be high-speed or full speed and things like tht

shvnsen 12-31-2008 11:17 PM

What are the generic drivers
Are they related to the inbuilt drivers
actually I want to knw that which usb drivers are been loaded when I insert my usb mouse.
Is there any command by which I can get the name of the drivers that are been loaded. By drivers I mean Usb Drivers.
Plz ASAP
And ya thanka a lot for ur reply

vkmgeek 12-31-2008 11:40 PM

well as long as i know.... most of the devices conforms to some class ...
like if u r attaching Pendrive or storage device then generic driver for storage class ll be loaded...
if u attach some audio/video devices, drivers related to that ll be loaded...

i dont know of any specific command...
but diff between lsmod b4 attching a device and lsmod afterwards should give u a snapshot of which drivers were loaded just after attaching usb devices

jschiwal 12-31-2008 11:46 PM

The lower level drivers will be used for other devices as well. They perform more generic functions. Look at "lsmod". Look at the right hand side for modules that use the module on the left. Also use "modinfo" which list a kernel module's dependencies and other information.

shvnsen 01-01-2009 12:19 AM

Hey thanks a lot for ur reply
I did lsmod but there were same drivers and thats the biggest problem that I m not getting which drivers is been loaded each time

jschiwal 01-02-2009 05:55 PM

Some drivers needed may already be loaded before you inserted the mouse. There are kernel modules that deal with the usb controller chips inside your computer. The HID module deals with "Humane Interface Devices" and may be used even if the mouse weren't usb.

You might consider installing the kernel documentation package if you want to learn more about the usb drivers. Aside from that, lsmod, modinfo and monitoring the kernel messages with "sudo tail -f /var/log/messages" just before insterting the mouse will be the best way of learning which kernel modules are loaded or used. To the left of the colon ":" in the kernel message may tell you which module or part of the kernel sent the message.

Good Luck!


All times are GMT -5. The time now is 10:41 AM.