Enable Waveshare Electronics 5inch HDMI LCD Rev1.1 touch feature for Raspbian Buster.
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.
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.
Install tslib to calibrate the touchscreen. Follow the tutorial from the rpi-5inch-hdmi-touchscreen-driver github repository to install the latest version.
npm start
- 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
- node-hid to read hidraw devices. - MIT
- robotjs to emulate the mouse movements and the mouse clicks. - MIT
- rpi-5inch-hdmi-touchscreen-driver for the excellent documentation about the interface of this type of touchscreen. - MIT
- tslib to calibrate the touchscreen. - GNU Lesser General Public License v2.1
- uinput to calibrate the touchscreen. - ISC