Navigation

    全志在线开发者论坛

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

    t113-i 如何固定/dev/input/eventX的事件号

    其它全志芯片讨论区
    2
    8
    3724
    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.
    • Gadyellow
      Gadyellow LV 5 last edited by awwwwa

      t113-i开发板上电之前插入usb键盘,通过evtest查看

      d490ece6-f73c-4e1d-aa8b-c4c81c05de22-image.png

      t113-i开发板上电之后插入usb键盘,通过evtest查看

      1f7aa307-2153-4c4e-b79d-fd7cd87f5b83-image.png

      求助一下,有没有哪位知道如何固定这个eventX事件号

      1 Reply Last reply Reply Quote Share 1
      • G
        ganhx LV 5 last edited by

        可以用udev规则文件重命名对应设备event,固定名字

        Gadyellow 1 Reply Last reply Reply Quote Share 1
        • Gadyellow
          Gadyellow LV 5 @ganhx last edited by

          @ganhx 不太熟悉你说的这个,不知道怎么改,有没有相关的帖子可以参考一下🤤

          1 Reply Last reply Reply Quote Share 1
          • G
            ganhx LV 5 last edited by

            1. 查看设备详情 udevadm info --query=all --name=input/event3
            2. 在 /etc/udev/rules.d/ 目录增加 semico.rules 文件
              ACTION=="add", SUBSYSTEM=="input", KERNEL=="event*", ID_BUS=="usb", ID_PATH=="xxxxxxxx" SYMLINK+="ekb0"
              就是用一个唯一的特征,把对应设备建一个符号链接
            Gadyellow 1 Reply Last reply Reply Quote Share 1
            • Gadyellow
              Gadyellow LV 5 @ganhx last edited by

              @ganhx 请问这么修改正确吗 2f5af2f3-1e8d-4eb7-b4dd-97fb9db51a20-image.png

              G 2 Replies Last reply Reply Quote Share 1
              • G
                ganhx LV 5 @Gadyellow last edited by

                @gadyellow 你这设备信息有点少,另外不能用具体的event ,它本来就是变化的,就没有意义了。要用唯一的不变化的特征来建立固定的链接。

                1 Reply Last reply Reply Quote Share 1
                • G
                  ganhx LV 5 @Gadyellow last edited by

                  @gadyellow 看看这个文章 https://zhuanlan.zhihu.com/p/544993864

                  Gadyellow 1 Reply Last reply Reply Quote Share 1
                  • Gadyellow
                    Gadyellow LV 5 @ganhx last edited by

                    @ganhx 好的,谢谢您了🤝

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

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

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