Wednesday, January 24, 2018

eGalax 7" screen raspberry pi with sketch + GUI

I wanted a light installation of raspian, so I got sketch and added appropriate stuff to make x work.

To install GUI
sudo apt-get install xserver-xorg lxde lightdm




This stuff was required to make the touchscreen work - otherwise the calibration just didnt do anything.

sudo apt-get install libx11-dev libxext-dev libxi-dev x11proto-input-dev xserver-xorg-input-evdev xinput-calibrator  evtest -y


cd /usr/share/X11/xorg.conf.d
sudo mv 10-evdev.conf 45-evdev.conf


sudo vi 99-calibration.conf
add xinput_calibrator output, which should look like this:


Section "InputClass"
        Identifier      "calibration"
        MatchProduct    "eGalax Inc. USB TouchController"
        Option  "Calibration"   "67 1948 1877 183"
        Option  "SwapAxes"      "0"
EndSection