How do you find out which driver is being used for a certain device. Say that I run lsusb and I find “Bus 007 Device 002: ID 046d:c043 Logitech, Inc. MX320/MX400 Laser Mouse”, how can I find out what the active driver for the device is?
Also, is there some way to list all available drivers for a device? Is there a way to change the driver at runtime?
ssouffri wrote:
> How do you find out which driver is being used for a certain device. Say
> that I run lsusb and I find “Bus 007 Device 002: ID 046d:c043 Logitech,
> Inc. MX320/MX400 Laser Mouse”, how can I find out what the active driver
> for the device is?
hwinfo --usb
Look which entry mentions that device file. The module will be listed
there as well. You can also watch the kernel messages as you remove or
plug in the device.
> Also, is there some way to list all available drivers for a device?
Also with hwinfo alternative drivers will be listed if available.
> Is there a way to change the driver at runtime?
Unload (rmmod) one driver, load (modprobe) another.
With kind regards,
Andreas Stieger