Skip to content

Latest commit

 

History

History
44 lines (35 loc) · 1.41 KB

README.md

File metadata and controls

44 lines (35 loc) · 1.41 KB

gt811-virtual_touchscreen

This is a driver for GT811 touch sensor display and any RaspberryPi.

Hardware

Connect I2C to GPIO02, GPIO03 and INT to GPIO04.

Requirements

Make, GCC, Wiring PI and kernel module build files.

Compile Instructions

  1. git clone --recursive [email protected]:kargeor/gt811-virtual_touchscreen.git
  2. cd gt811-virtual_touchscreen
  3. make
  4. ./patch_virtual_touchscreen.sh
  5. cd virtual_touchscreen
  6. make

Testing

Open I2C and write coordinates to screen with debug output: sudo ./gt811-virtual_touchscreen -d

Kernel Module Install Instructions

  1. 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 install
  2. sudo depmod
  3. sudo modprobe virtual_touchscreen -- this only stays until reboot
  4. Add virtual_touchscreen to /etc/modules to auto load
  5. Check: lsmod | grep virtual_touchscreen

Testing

Send to kernel module: sudo ./gt811-virtual_touchscreen -o /dev/virtual_touchscreen

Run on boot

  1. sudo cp gt811-virtual_touchscreen /usr/bin/gt811-virtual_touchscreen
  2. Install the provided script in init.d

unclutter-xfixes

  1. git clone https://github.com/Airblader/unclutter-xfixes.git
  2. cd unclutter-xfixes
  3. make
  4. sudo cp unclutter /usr/bin/unclutter
  5. DISPLAY=:0 unclutter --hide-on-touch (temporary)
  6. For permanent...