Penmount touchscreen 9000

548 views
Skip to first unread message

François Bourqui

unread,
Sep 10, 2015, 8:05:18 AM9/10/15
to Android-x86
Hello

I recently installed Android x86 and was able to connect my Penmount touchscreen with this command:

inputattach --daemon -pm9k /dev/ttyS3

But the y and x axis are reversed and the calibration app in android x86 doesn't fix it.

Some driver exists for many different linux but it use Xserver (that is not present in android x86).
Thoses driver can be found here:
http://www.salt.com.tw/en/service-support/downloads/software/#

Any idea to reverse the axis?

François Bourqui

unread,
Sep 10, 2015, 9:24:02 PM9/10/15
to Android-x86
Ok guys!

I finally found how to do this
I found in etc/init.sh what to do.

1) In terminal:
mkdir -p /data/misc/tscal
touch /data/misc/tscal/pointercal
chown 1000.1000 /data/misc/tscal /data/misc/tscal/*
chmod 775 /data/misc/tscal
chmod 664 /data/misc/tscal/pointercal


2) then start the calibration app and calibrate.
After that, the file /data/misc/tscal/pointercal should have calibration data

3) Reboot

4) In terminal:
inputattach --daemon --baud 19200 -pm9k /dev/ttyS3

François Bourqui

unread,
Sep 10, 2015, 9:24:02 PM9/10/15
to Android-x86
Some more information about the device found on my ubuntu partition with the driver.

---------------------------------------------
99-input-penmount.conf:
---------------------------------------------
Section "InputClass"
Identifier "Penmount Touch Screen"
MatchDevicePath "/dev/ttyS3"
Driver "penmount"
Option "Device" "/dev/ttyS3"
Option "Protocol" "PM9000"
Option "BaudRate" "19200"
Option "ADBit" "10"
Option "ConfigFile" "/etc/penmount/penmount.dat"
Option "RandR" "0"
Option "Monitor" "default"
Option "JitterFilter" "8"
Option "DebugLevel" "0"
Option "DebugFile" "/etc/penmount/penmount.log"
EndSection

---------------------------------------------
50-input-penmount.rules:
---------------------------------------------
ACTION!="add|change", GOTO="penmount_end"
KERNEL=="ttyS3" ENV{NAME}="PenMount Serial Touch Screen", ENV{ID_INPUT}="1", ENV{ID_INPUT_MOUSE}="1"
LABEL="penmount_end"

---------------------------------------------
penmount.log:
=============================================
PenMount XInput Device Driver Messages
=============================================
Driver Version 4.3 1
{36646} Default device : /dev/ttyS3 !
{36646} Using Protocol : PM9000
{36647} Manualy set PenMount 9000 Protocol for PenMount Serial TouchScreen
{36647} Using RS-232 interface ...
{37456} Loading config file : /etc/penmount/penmount.dat
{37457} Read config file /etc/penmount/penmount.dat OK !
{37457} Device Setting : calib_type = 25
{37457} Calibration Point <0> : (909,851)
{37457} Calibration Point <1> : (708,868)
{37457} Calibration Point <2> : (503,870)
{37458} Calibration Point <3> : (308,872)
{37458} Calibration Point <4> : (109,863)
{37458} Calibration Point <5> : (913,687)
{37458} Calibration Point <6> : (707,688)
{37458} Calibration Point <7> : (503,686)
{37458} Calibration Point <8> : (305,693)
{37459} Calibration Point <9> : (106,686)
{37459} Calibration Point <10> : (913,511)
{37459} Calibration Point <11> : (708,518)
{37459} Calibration Point <12> : (506,517)
{37459} Calibration Point <13> : (305,511)
{37459} Calibration Point <14> : (104,511)
{37459} Calibration Point <15> : (911,339)
{37460} Calibration Point <16> : (707,332)
{37460} Calibration Point <17> : (503,335)
{37460} Calibration Point <18> : (306,336)
{37460} Calibration Point <19> : (104,333)
{37460} Calibration Point <20> : (908,159)
{37461} Calibration Point <21> : (707,152)
{37461} Calibration Point <22> : (506,150)
{37461} Calibration Point <23> : (306,150)
{37461} Calibration Point <24> : (106,163)

Chih-Wei Huang

unread,
Sep 20, 2015, 12:08:38 PM9/20/15
to Android-x86
2015-09-10 21:57 GMT+08:00 François Bourqui <g4r...@gmail.com>:
> Ok guys!
>
> I finally found how to do this
> I found in etc/init.sh what to do.
>
> 1) In terminal:
> mkdir -p /data/misc/tscal
> touch /data/misc/tscal/pointercal
> chown 1000.1000 /data/misc/tscal /data/misc/tscal/*
> chmod 775 /data/misc/tscal
> chmod 664 /data/misc/tscal/pointercal

This should be able to put in init.sh.

> 2) then start the calibration app and calibrate.
> After that, the file /data/misc/tscal/pointercal should have calibration data
>
> 3) Reboot
>
> 4) In terminal:
> inputattach --daemon --baud 19200 -pm9k /dev/ttyS3

If you can provide a patch,
I'll add it in the next release.


--
Chih-Wei
Android-x86 project
http://www.android-x86.org

François Bourqui

unread,
Sep 29, 2015, 6:05:07 AM9/29/15
to Android-x86
I will when I'll be able to download the source code. 
repo init and sync successful with google repo, but repo synch always fail on androidx86 repo at 17% (download too slow and go in timeout, tried it).
I first tried by sourceforge but it doesn't work at all.
Reply all
Reply to author
Forward
0 new messages