今私はusbhidがあるので、usbkbdドライバが必要なのはなぜですか?

今私はusbhidがあるので、usbkbdドライバが必要なのはなぜですか?

基本的にUSBキーボードを制御することがusbhidであることがわかりました。私はそれをすることでそれを見つけましたrmmod usbhid。 usbhidを取り外すと、USBキーボードが動作を停止しました。 usbkbdはまだ接続されていません。その後、usbkbdを接続すると、キーボードが再び動作を開始しました。キーボードがユニバーサルドライバ(usbhid)として扱える場合は、別のusbkbdが必要なのはなぜですか?

ベストアンサー1

答えはカーネル文書にあります:

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

おすすめ記事