Since "right click" is a popular feature that was lost with the upgrade to Jessie I thought I'd post this with an appropriate title, to make it easier to find, and step by step instructions that anyone can follow. Hopefully it will be a help for those wanting a "right click" function again.
uname -a reports: Linux rpi4 4.1.18+ #846 Thu Feb 25 14:11:56 GMT 2016 armv6l GNU/Linux so that's what I'm using.
First we'll need to fetch the files, I created a temp directory to work in, and afterward it can be deleted. So open a terminal and get started.
Code: Select all
mkdir ~/temp
cd ~/temp
wget http://plippo.de/dwl/twofing/twofing-0.1.2.tar.gz
Now we'll add some needed packages, if any of these are already installed it's OK. We'll update first, and then install them with the following commands.
Code: Select all
sudo apt-get update
sudo apt-get install build-essential libx11-dev libxtst-dev libxi-dev x11proto-randr-dev libxrandr-dev
Code: Select all
tar -xvzf twofing-0.1.2.tar.gz
cd twofing-0.1.2
make
Next we need to create a .rules file in "/etc/udev/rules.d"
Code: Select all
sudo nano /etc/udev/rules.d/70-touchscreen-egalax.rules
Code: Select all
KERNEL=="event*",ATTRS{name}=="FT5406 memory based driver",SYMLINK+="twofingtouch",RUN+="/bin/chmod a+r /dev/twofingtouch"
Code: Select all
sudo cp twofing /usr/bin/
Test it using the debug switch. If you have no errors you'll get a calibration screen, press <CTRL> C to exit.
Code: Select all
twofing --debug
Code: Select all
twofing
Code: Select all
nano ~/.config/lxsession/LXDE-pi/autostart
Code: Select all
@/usr/bin/twofing
Code: Select all
rm -r ~/temp