Skip to content

Latest commit

 

History

History
50 lines (36 loc) · 2.33 KB

README.md

File metadata and controls

50 lines (36 loc) · 2.33 KB

rpi-hdmi-touchscreen-driver

Enable Waveshare Electronics 5inch HDMI LCD Rev1.1 touch feature for Raspbian Buster.

Prerequisites

Access rights

During calibration, uinput events are generated. Users with no administrative rights will need to temporarily give access to uinput. If not already present, configure the rights to access the hid devices.

Linux

In the file '/etc/udev/rules.d/99-com.rules', append 'KERNEL=="hidraw*", ATTRS{idVendor}=="0eef", ATTRS{idProduct}=="0005", MODE="0660", GROUP="plugdev"'

echo "KERNEL==\"hidraw*\", ATTRS{idVendor}==\"0eef\", ATTRS{idProduct}==\"0005\", MODE=\"0660\", GROUP=\"plugdev\"" >> /etc/udev/rules.d/99-com.rules

Only for calibration

sudo chmod 666 /dev/uinput

After reboot the rights will be reseted.

Calibration

Install tslib to calibrate the touchscreen. Follow the tutorial from the rpi-5inch-hdmi-touchscreen-driver github repository to install the latest version.

Test

Linux
npm start

Installation

Linux
  • Run the touchscreendriver after X starts by adding a startup script in /etc/X11/Xsession.d
echo $'#!/bin/sh\nnode /home/pi/rpi-hdmi-touchscreen-driver/index.js &\n' > /etc/X11/Xsession.d/99wav-touchscreen_driver
chmod 755 /etc/X11/Xsession.d/99wav-touchscreen_driver

Credits