导航

    全志在线开发者论坛

    • 注册
    • 登录
    • 搜索
    • 版块
    • 话题
    • 在线文档
    • 社区主页

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

    MR Series
    d1s usb键盘
    3
    5
    1928
    正在加载更多帖子
    • 从旧到新
    • 从新到旧
    • 最多赞同
    回复
    • 在新帖中回复
    登录后回复
    此主题已被删除。只有拥有主题管理权限的用户可以查看。
    • cube_work
      cube_work LV 5 最后由 编辑

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

      YuzukiTsuru whycan 2 条回复 最后回复 回复 引用 分享 0
      • YuzukiTsuru
        柚木 鉉 LV 9 @cube_work 最后由 编辑

        @cube_work USB里开启USB HID设备

        cube_work 1 条回复 最后回复 回复 引用 分享 0
        • whycan
          whycan晕哥 LV 9 @cube_work 最后由 编辑

          @cube_work

          CONFIG_USB_KBD
          CONFIG_USB_MOUSE

          1 条回复 最后回复 回复 引用 分享 0
          • cube_work
            cube_work LV 5 @YuzukiTsuru 最后由 编辑

            @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 条回复 最后回复 回复 引用 分享 1
            • YuzukiTsuru
              柚木 鉉 LV 9 @cube_work 最后由 编辑

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

              1 条回复 最后回复 回复 引用 分享 0
              • 1 / 1
              • First post
                Last post

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

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