D1s 的 usb host 口插U盘正常,插键盘没有生成 /dev/input/event* ,这个怎么解决呢?
-
D1s 的 usb host 口插U盘正常,插键盘没有生成 /dev/input/event* ,这个怎么解决呢?
-
@cube_work USB里开启USB HID设备
-
CONFIG_USB_KBD
CONFIG_USB_MOUSE -
谢谢两位 ,搞定啦。
lichee/linux-5.4/drivers/hid/usbhid/Kconfig
menu "USB HID Boot Protocol drivers" depends on USB!=n && USB_HID!=y && EXPERT config USB_KBD tristate "USB HIDBP Keyboard (simple Boot) support" depends on USB && INPUT ---help--- Say Y here only if you are absolutely sure that you don't want to use the generic HID driver for your USB keyboard and prefer to use the keyboard in its limited Boot Protocol mode instead. This is almost certainly not what you want. This is mostly useful for embedded applications or simple keyboards. To compile this driver as a module, choose M here: the module will be called usbkbd. If even remotely unsure, say N. config USB_MOUSE tristate "USB HIDBP Mouse (simple Boot) support" depends on USB && INPUT ---help--- Say Y here only if you are absolutely sure that you don't want to use the generic HID driver for your USB mouse and prefer to use the mouse in its limited Boot Protocol mode instead. This is almost certainly not what you want. This is mostly useful for embedded applications or simple mice. To compile this driver as a module, choose M here: the module will be called usbmouse.
神奇了,一定要屏蔽 USB_HID 才能打开 USB_KBD和 USB_MOUSE
难道是互斥的吗?
-
@cube_work 配置USB HID要在input里打开input设备,HID是一个较低层的接口,上层还需要input的支持,或者直接打开USB KEYBOARD这样的,直接提过支持
Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号