Here’s my first attempt to make the HTC Shift touchscreen working under Linux :D

Feel free to send me patches and ideas to improve the driver :)

Update : htcpen submitted to review for inclusion into Linux kernel.
Update2 : htcpen has been included into the git input tree, it will be merged when 2.6.27 opens up.


htcpen version 1.6 (2008-05-28)
eGalax Xorg driver + TouchKit version 2.03

Install instructions

Download the tarball, extract it to some temporary directory, compile and install it:

# tar zxvf htcpen-1.6.tar.gz # cd htcpen-1.6 # make # make install configuration:

# tar zxvf TouchKit-2.03.172.tar.gz # cd TouchKit # cp egalax\ /usr/lib/xorg/modules/input/

Edit /etc/X11/xorg.conf and configure the following:

Section "InputDevice" Identifier "htcpen" Driver "egalax" Option "Device" "/dev/input/event\_htcpen" Option "Parameters" "/var/lib/" Option "ScreenNo" "0" Endsection

Into your “ServerLayout” section, add the following line:

InputDevice "htcpen" "CorePointer"

After rebooting your system, udev should load the htcpen module automatically and create a symlink of the input device to /dev/input/event_htcpen.

To finish, run “TouchKit”, click on “Tool” tab and do the 25 point calibration.

htcpen demonstration video