Comment 132 for bug 1887190

Revision history for this message
Coiby Xu (coiby) wrote :

Today I find something interesting about the GPIO controller. I wonder if the same thing would happen to the ELAN touchpads.

For those who have the ELAN touchpad, could you show me the result of the following experiment with a kernel not having the polling_pin_state_touchpad.patch?

```bash
# install hid-tools
# If it's not provided by your distribution's package manager, you can install it by pip
# sudo pip install hid-tools

# run hid-recorder and choose the device having name "MSFT*"
$ sudo hid-recorder
Available devices:
/dev/hidraw0: MSFT0001:00 06CB:7F28

# now open another terminal window
# switch to root user
sudo su
# go to gpio's sysfs
cd /sys/class/gpio/
# export the pin used by the touchpad
echo 386 > export
# now you will see a folder named gpio396 created
# change the pin as an output
echo out > gpio396/direction
# write 1 to the pin
echo 1 > gpio386/value

```

Now move your finger on the touchpad. See if your cursor moves now and if there is any output from hid-recorder.