Navigation

    全志在线开发者论坛

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • 在线文档
    • 社区主页

    D1s 的 usb host 口插U盘正常,插键盘没有生成 /dev/input/event* ,这个怎么解决呢?

    MR Series
    d1s usb键盘
    3
    5
    1952
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • cube_work
      cube_work LV 5 last edited by

      D1s 的 usb host 口插U盘正常,插键盘没有生成 /dev/input/event* ,这个怎么解决呢?

      YuzukiTsuru whycan 2 Replies Last reply Reply Quote Share 0
      • YuzukiTsuru
        柚木 鉉 LV 9 @cube_work last edited by

        @cube_work USB里开启USB HID设备

        cube_work 1 Reply Last reply Reply Quote Share 0
        • whycan
          whycan晕哥 LV 9 @cube_work last edited by

          @cube_work

          CONFIG_USB_KBD
          CONFIG_USB_MOUSE

          1 Reply Last reply Reply Quote Share 0
          • cube_work
            cube_work LV 5 @YuzukiTsuru last edited by

            @yuzukitsuru @whycan

            谢谢两位 ,搞定啦。

            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

            难道是互斥的吗?

            YuzukiTsuru 1 Reply Last reply Reply Quote Share 1
            • YuzukiTsuru
              柚木 鉉 LV 9 @cube_work last edited by

              @cube_work 配置USB HID要在input里打开input设备,HID是一个较低层的接口,上层还需要input的支持,或者直接打开USB KEYBOARD这样的,直接提过支持

              1 Reply Last reply Reply Quote Share 0
              • 1 / 1
              • First post
                Last post

              Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号

              行为准则 | 用户协议 | 隐私权政策