Linux

為什麼有usbhid我們還需要usbkbd驅動?

  • March 1, 2015

我發現預設情況下控制我的USB鍵盤的是usbhid。我是通過做才發現的rmmod usbhid。當我刪除 usbhid 時,USB 鍵盤停止工作。請注意,尚未插入 usbkbd。然後我插入了usbkbd,然後鍵盤又開始工作了。如果鍵盤可以由通用驅動程序處理 - usbhid - 那麼為什麼我們需要單獨的usbkbd?

核心文件中有一個答案:

3.1.2 usbmouse
~~~~~~~~~~~~~~
For embedded systems, for mice with broken HID descriptors and just any
other use when the big usbhid wouldn't be a good choice, there is the
usbmouse driver. It handles USB mice only. It uses a simpler HIDBP
protocol. This also means the mice must support this simpler protocol. Not
all do. If you don't have any strong reason to use this module, use usbhid
instead.

3.1.3 usbkbd
~~~~~~~~~~~~
Much like usbmouse, this module talks to keyboards with a simplified
HIDBP protocol. It's smaller, but doesn't support any extra special keys.
Use usbhid instead if there isn't any special reason to use this.

Documentation/input/input.txt

引用自:https://unix.stackexchange.com/questions/187545