This is a driver for GT811 touch sensor display and any RaspberryPi.
Connect I2C to GPIO02, GPIO03 and INT to GPIO04.
Make, GCC, Wiring PI and kernel module build files.
git clone --recursive [email protected]:kargeor/gt811-virtual_touchscreen.git
cd gt811-virtual_touchscreen
make
./patch_virtual_touchscreen.sh
cd virtual_touchscreen
make
Open I2C and write coordinates to screen with debug output:
sudo ./gt811-virtual_touchscreen -d
sudo cp virtual_touchscreen.ko /lib/modules/`uname -r`/kernel/drivers/input/misc/
-- you might need to select a different location based on your linux installsudo depmod
sudo modprobe virtual_touchscreen
-- this only stays until reboot- Add
virtual_touchscreen
to/etc/modules
to auto load - Check:
lsmod | grep virtual_touchscreen
Send to kernel module:
sudo ./gt811-virtual_touchscreen -o /dev/virtual_touchscreen
sudo cp gt811-virtual_touchscreen /usr/bin/gt811-virtual_touchscreen
- Install the provided script in
init.d
git clone https://github.com/Airblader/unclutter-xfixes.git
cd unclutter-xfixes
make
sudo cp unclutter /usr/bin/unclutter
DISPLAY=:0 unclutter --hide-on-touch
(temporary)- For permanent...