LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 12-31-2008, 03:46 AM   #1
shvnsen
Member
 
Registered: Sep 2008
Location: india
Distribution: redhat
Posts: 47

Rep: Reputation: 15
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

Last edited by shvnsen; 12-31-2008 at 04:18 AM.
 
Old 12-31-2008, 06:55 AM   #2
vkmgeek
Member
 
Registered: Feb 2006
Location: Ahmedabad
Distribution: rhel5
Posts: 185
Blog Entries: 2

Rep: Reputation: 31
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
 
Old 12-31-2008, 11:17 PM   #3
shvnsen
Member
 
Registered: Sep 2008
Location: india
Distribution: redhat
Posts: 47

Original Poster
Rep: Reputation: 15
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
 
Old 12-31-2008, 11:40 PM   #4
vkmgeek
Member
 
Registered: Feb 2006
Location: Ahmedabad
Distribution: rhel5
Posts: 185
Blog Entries: 2

Rep: Reputation: 31
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
 
Old 12-31-2008, 11:46 PM   #5
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
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.
 
Old 01-01-2009, 12:19 AM   #6
shvnsen
Member
 
Registered: Sep 2008
Location: india
Distribution: redhat
Posts: 47

Original Poster
Rep: Reputation: 15
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
 
Old 01-02-2009, 05:55 PM   #7
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
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!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to insert & check driver code of usb optical mouse chaitanya_pavan Linux - Kernel 0 05-26-2006 07:16 AM
Any open source USB mouse driver for Linux malikamirshehzad Linux - Software 2 02-07-2006 12:17 PM
usb mouse on proliant 1600 - driver not loaded mule Linux - Hardware 2 12-22-2004 01:27 PM
mouse/mouse driver problem nadim khemir Mandriva 0 08-07-2004 05:01 AM
Problem with Mandrake 10.0 Community, Sagem usb modem and logitech usb mouse. al370601 Mandriva 4 04-29-2004 06:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 06:17 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration