Finding right Android touchscreen driver file

后端 未结 2 1305
一整个雨季
一整个雨季 2021-01-06 09:31

My goal is to add a single printk command to one of the driver files for my phone\'s touchscreen. I would like to run this printk command everytime the screen recieves touch

相关标签:
2条回答
  • 2021-01-06 10:06

    First Check the Driver file by using the following command on terminal: $logcat | grep EventHub You will find all the input devices (Including your touch driver) in the prints.

    Go to that file and add the print command in interrupt handler.

    0 讨论(0)
  • 2021-01-06 10:09

    Try running the getevent command in a shell on the Android device. The touchscreen should be listed, and the name should be the driver being used.

    Here's what came up on my phone:

    add device 7: /dev/input/event1
      name:     "synaptics_dsx"
    

    This means my phone uses the synaptics_dsx touchscreen driver.

    0 讨论(0)
提交回复
热议问题