Raspberry Pi and the Chinavaison CVFQ- E123 Touchscreen

This screen worked straight out of the box aprat from the finger cursor had the X Axis reversed i.e. drag left and the pointer moves right.

This can be sorted out with a little configuration.

Installation of the Xorg module

cp egalax_drv.o /usr/X11R6/lib/modules/input (For X version prior to 6.9)
or cp egalax_drv.so /usr/X11R6/lib/modules/input (For X version 6.9)
or cp egalax_drv.so /usr/lib/xorg/modules/input (For X version 7.0 and upwards)

Configure the xorg configuration file

Edit the xorg configuration file (e.g. /etc/X11/xorg.conf) and add the configuration used by the driver to connect to the device installed on your system

Section “ServerLayout”
Identifier “EETI”
InputDevice “EETI” “SendCoreEvents”
EndSection

Section “InputDevice”
Identifier “EETI”
Driver “egalax”
Option “Device” “usbtouchscreen”
Option “Parameters” “/var/lib/egalax.cal”
Option “ScreenNo” “0”
EndSection

 

Create a file /usr/share/X11/xorg.conf.d/50-invertaxes.conf

Put the following into the file:

Section "InputClass"
    Identifier  "Invert Mouse"
    MatchProduct    "The name our your mouse in xorg"
    MatchDevicePath "/dev/input/event*"
    Option      "InvertX"       "true"
EndSection

Where you replace “the name of your mouse in xorg” with the real name as detected by xorg.

to find out what Identifer you need to use, open a terminal and type

xinput list
this will produce output similar to this:

Virtual core pointer id=2 [master pointer (3)]
Virtual core XTEST pointer id=4 [slave pointer (2)]
Logitech USB Receiver id=10 [slave pointer (2)]
Logitech USB Receiver id=11 [slave pointer (2)]
SynPS/2 Synaptics TouchPad id=14 [slave pointer (2)]
[more…]
From there I can see the Identifier of my Logitech mouse, Logitech USB Reciever.

 
 

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.