Rebind WEIDA hid device in linux system example - chenhn123/wdt_util_src GitHub Wiki

(terminal) cd /sys/bus/hid/devices
(terminal) ls -l
You might be able to see :
lrwxrwxrwx 1 root root 0 Feb 19 03:50 0003:2575:FFF2.0004 → ../../../devices/platform/fe3c0000.usb/usb1/1-1/1-1.1/1-1.1:1.0/0003:2575:FFF2.0004
lrwxrwxrwx 1 root root 0 Feb 19 03:50 0018:2575:7400.0003 → ../../../devices/platform/ff110000.i2c/i2c-1/1-002c/0018:2575:7400.0003
Note: the symbolic link format is Bus:Vid:Pid.SerialNumberInSystem, Bus Define in linux/input.h USB is 0×03 and I2C is 0×18
(terminal) cd 0018\:2575\:7400.0003
(terminal) cat uevent
You might be able to see :
DRIVER=hid-multitouch
HID_ID=0018:00002575:00007400
HID_NAME=hid 2575:7400
HID_PHYS=1-002c
HID_UNIQ=
MODALIAS=hid:b0018g0004v00002575p00007400

(terminal) cd /sys/bus/i2c/devices/1-002c
(terminal) cat uevent
You might be able to see :
DRIVER=i2c_hid
OF_NAME=ts
OF_FULLNAME=/i2c@ff110000/ts@2c
OF_COMPATIBLE_0=wdt,hid
OF_COMPATIBLE_N=1
MODALIAS=i2c:hid
Note: Because DRIVER could be i2c_hid, i2c_hid_acpi,  i2c_hid_of
So we have to find the path according to the driver’s  module .
(terminal) cd /sys/bus/i2c/drivers/i2c_hid
(terminal) sudo echo 1-002c | sudo tee -a unbind
(terminal) sudo echo 1-002c | sudo tee -a bind
or
(terminal) sudo echo -n 1-002c > unbind
(terminal) sudo echo -n 1-002c > bind

⚠️ **GitHub.com Fallback** ⚠️