Skip to content

Enable waveshare 5inch HDMI LCD touch feature for raspbian stretch

License

Notifications You must be signed in to change notification settings

ftmazzone/rpi-hdmi-touchscreen-driver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Enable waveshare 5inch HDMI LCD touch feature for raspbian stretch

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published