Navigation

    全志在线开发者论坛

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

    tslib 校准不了

    D1系列-RISC-V
    2
    7
    218
    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.
    • C
      chdeng1 LV 5 last edited by

      我修改软件步骤
      1
      CONFIG_TOUCHSCREEN_SUN4I=y对应驱动是sunxi-ts.c
      说明,CONFIG_TOUCHSCREEN_SUNXI=y 我也打开过,对应驱动是sun4i-ts.c

      2打开了
      tslib / uinput,
      CONFIG_INPUT_UINPUT=y

      3打开了
      2a0793db-80d4-42c4-aca2-11f88f9fe3df-image.png

      4
      e833850f-b509-4cc4-8695-daf529805a97-image.png

      5输入命令后,
      TSLIB_TSDEVICE=/dev/input/event0 ts_test

      这时触摸屏幕,没反应

      6
      666c352d-ac3f-49aa-8ef6-06d8404a231c-image.png

      以上是我验证过的,但是不能校准,

      哪位高手帮忙指导下

      C W 2 Replies Last reply Reply Quote Share 0
      • C
        chdeng1 LV 5 @chdeng1 last edited by

        @chdeng1

        af5575db-04b9-4473-b1e3-5f7a94d718b8-1669166559069.png

        执行这个命令执行没结果

        C 1 Reply Last reply Reply Quote Share 0
        • C
          chdeng1 LV 5 @chdeng1 last edited by

          @chdeng1 没结果就是触摸时坐标没出来

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

            @chdeng1

            cat /proc/interrupts
            

            看下中断次数有没有增加? 如果中断次数没增加,那先检查一下硬件问题.

            C 1 Reply Last reply Reply Quote Share 1
            • C
              chdeng1 LV 5 @whycan last edited by

              @whycan
              dc3b9926-8b64-471a-bcfd-a944f5d05fe8-image.png

              触摸操作时,中断次数没增加,但是我跟踪代码,有进入中断函数,
              2d6e6b0f-258f-4c70-9791-76f5afe8f5aa-image.png

              我们板子触摸没问题,可以烧写其他img是好的

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

                @chdeng1
                中断次数增加了,那个25就是中断次数.

                C 1 Reply Last reply Reply Quote Share 0
                • C
                  chdeng1 LV 5 @whycan last edited by

                  @whycan 问题已经解决,感谢,硬件排线接触不好

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

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

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