Dobrica Pavlinušić's random unstructured stuff
eGalax TouchScreen: Revision 6

Very old capacitive touch for EeePC

dpavlin@brokeee:~$ lsusb -t -v
/:  Bus 05.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
    ID 1d6b:0001 Linux Foundation 1.1 root hub
/:  Bus 04.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
    ID 1d6b:0001 Linux Foundation 1.1 root hub
/:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
    ID 1d6b:0001 Linux Foundation 1.1 root hub
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
    ID 1d6b:0001 Linux Foundation 1.1 root hub
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/8p, 480M
    ID 1d6b:0002 Linux Foundation 2.0 root hub
    |__ Port 5: Dev 2, If 0, Class=Mass Storage, Driver=usb-storage, 480M
        ID 0cf2:6225 ENE Technology, Inc. SD card reader (UB6225)
    |__ Port 8: Dev 3, If 0, Class=Hub, Driver=hub/4p, 480M
        ID 05e3:0608 Genesys Logic, Inc. Hub
        |__ Port 3: Dev 5, If 1, Class=Video, Driver=uvcvideo, 480M
            ID eb1a:2761 eMPIA Technology, Inc. EeePC 701 integrated Webcam
        |__ Port 3: Dev 5, If 0, Class=Video, Driver=uvcvideo, 480M
            ID eb1a:2761 eMPIA Technology, Inc. EeePC 701 integrated Webcam
        |__ Port 1: Dev 4, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
            ID 0eef:0001 D-WAV Scientific Co., Ltd eGalax TouchScreen



https://forum.odroid.com/viewtopic.php?t=15239#p127773

xorg error

[    39.523] (II) event14 - eGalax Inc. Touch Touchscreen: is tagged by udev as: Tablet
[    39.719] (EE) event14 - eGalax Inc. Touch Touchscreen: libinput bug: missing tablet capabilities: btn-stylus resolution. Ignoring this device.
[    39.719] (II) event14 - eGalax Inc. Touch Touchscreen: device is a tablet
[    39.720] (II) event14 - failed to create input device '/dev/input/event14'.
[    39.720] (EE) libinput: eGalax Inc. Touch Touchscreen: Failed to create a device for /dev/input/event14
[    39.720] (EE) PreInit returned 2 for "eGalax Inc. Touch Touchscreen"



fix from https://www.embedded-engineer.de/dokuwiki/doku.php?id=start:egalax_touchscreen

apt install xserver-xorg-input-evdev


dpavlin@brokeee:~$ cat /usr/lib/udev/hwdb.d/61-evdev-local.hwdb 
evdev:name:eGalax Inc. Touch Touchscreen*
 EVDEV_ABS_00=::300
 EVDEV_ABS_01=::300

systemd-hwdb update
udevadm trigger /dev/input/eventXX 

root@brokeee:/etc/X11/xorg.conf.d# apt install xserver-xorg-input-evdev

root@brokeee:/etc/X11/xorg.conf.d# cat evdev-touch.conf 
Section "InputClass"
        Identifier "eGalax Inc. Touch Touchscreen"
        MatchUSBID "0eef:0001"
        Driver "evdev"
EndSection



userspace driver for newer chip

https://github.com/twoerner/hdmi-usb-touch

dpavlin@brokeee:~/hdmi-usb-touch$ git remote -v
origin  https://github.com/twoerner/hdmi-usb-touch (fetch)
origin  https://github.com/twoerner/hdmi-usb-touch (push)

dpavlin@brokeee:~/hdmi-usb-touch$ autoreconf -i

dpavlin@brokeee:~/hdmi-usb-touch$ sudo apt install libudev-dev

dpavlin@brokeee:~/hdmi-usb-touch$ ./configure