I have been using the Ubuntu Mobile distro in my Car PC and I love the new Hildon arrangement that makes it very touch friendly. However I cannot use my Touch Screen at all.*
Over at MP3Car.com here is a link to the forum where we have been trying to unearth an answer to our problems:*http://www.mp3car.com/vbulletin/linux/126313-linux-touch-screen-problem.html
The current calibration tool is useless and the current drivers are uninstallable. The tool that appears to have an answer only appers as a mock up and I cannot find a package that contains the magical tool. The tool I am referring to is on Ogra's blog on this page:http://ograblog.wordpress.com/2008/10/03/the-ubuntu-mobile-beta-images/#comments
If you have a solution, a few of us Linux junkies would love to test a beta solution.
Jeff****** (yam125)
--
Ubuntu-mobile mailing list
Ubuntu-mobile@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-mobile
12-18-2008, 11:51 PM
"Juan Jesús Ojeda Croissier"
Touch Screen Calibration Tool
Hi Jeff,
On Thu, Dec 18, 2008 at 9:51 PM, Jeff <yam125@gmail.com> wrote:
> Hello.
>
> I have been using the Ubuntu Mobile distro in my Car PC and I love the new
> Hildon arrangement that makes it very touch friendly. However I cannot use
> my Touch Screen at all.
>
> Over at MP3Car.com here is a link to the forum where we have been trying to
> unearth an answer to our
> problems: http://www.mp3car.com/vbulletin/linux/126313-linux-touch-screen-problem.html
>
>
> The current calibration tool is useless and the current drivers are
> uninstallable. The tool that appears to have an answer only appers as a mock
> up and I cannot find a package that contains the magical tool. The tool I am
> referring to is on Ogra's blog on this
> page:http://ograblog.wordpress.com/2008/10/03/the-ubuntu-mobile-beta-images/#comments
>
> If you have a solution, a few of us Linux junkies would love to test a beta
> solution.
Actually, I think I got the same touchscreen a work in a project I'm
working on.
I have Ubuntu Mobile (customized) working on a VIA EPIA Mini-ITX with
the touchscreen you were talking about on the forum:
root@rothera:~# lsusb
Bus 002 Device 002: ID 0eef:0001 D-WAV Scientific Co., Ltd eGalax TouchScreen
And is working. Actually was working from the begining, but the
calibrate was a mess. The cursor was doing weird things.
Now I almost have the perfect calibrate. I still testing options.
The driver I use is "evtouch" (xserver-xorg-input-evtouch) and I leave
hal to configure the Xorg. On Intrepid (at least) Hal gets the info of
the device from his database and the device itself and generate (on
the fly) the proper "virtual" xorg.conf.
Actually, the info for configuring the eGalax TouchScreen is stored
for this package on:
/usr/share/hal/fdi/policy/10osvendor/50-eGalax.fdi
But, at least for my screen, were wrong, so I had to changed them.
My first step was detect the max a min with the script the driver provide:
/usr/bin/calibrate_touchscreen
This script gave me the max (X/Y) and min (X/Y), and with those
details I could change the defaults values on the fdi file. The best
way to change that is to copy
/usr/share/hal/fdi/policy/10osvendor/50-eGalax.fdi into
/etc/hal/fdi/policy/ and then, change the values you need.
On that way, you don't mess with the original files (which will be, or
try to be, changed on any update of this package) but still will be
used. In fact, the files on /etc/hal/fdi/* will have more priority
than from /usr/share/hal/fdi/.
To see is the changes were made you need to restart hal:
$ /etc/init.d/hal restart
and then you can see the x11 options changed by doing:
$ UDI=$(hal-find-by-capability --capability input.mouse)
$ lshal -u $UDI
So you can see the options hal has for the device. Now you need to be
sure there is not a any configurtion about the "Input Device" on the
xorg.conf file, to let hal configuring the X.
I paste you my fdi file for the eGalax TouchScreen, in case this help you:
<?xml version="1.0" encoding="UTF-8"?> <!-- -*- SGML -*- -->
<deviceinfo version="0.2">
<device>
<match key="info.product" contains="eGalax">
<match key="info.capabilities" contains="input">
<merge key="input.x11_driver" type="string">evtouch</merge>
<merge key="input.x11_options.minx" type="string">112</merge>
<merge key="input.x11_options.miny" type="string">76</merge>
<merge key="input.x11_options.maxx" type="string">1912</merge>
<merge key="input.x11_options.maxy" type="string">1989</merge>
<merge key="input.x11_options.taptimer" type="string">30</merge>
<merge key="input.x11_options.longtouchtimer" type="string">750</merge>
<merge key="input.x11_options.longtouched_action"
type="string">click</merge>
<merge key="input.x11_options.longtouched_button"
type="string">3</merge>
<merge key="input.x11_options.oneandhalftap_button"
type="string">2</merge>
<merge key="input.x11_options.movelimit" type="string">10</merge>
<merge key="input.x11_options.touched_drag" type="string">1</merge>
<merge key="input.x11_options.maybetapped_action"
type="string">click</merge>
<merge key="input.x11_options.maybetapped_button"
type="string">1</merge>
<merge key="input.x11_options.rotate" type="string">ccw</merge>
<!-- <merge key="input.x11_options.swapx" type="bool">true</merge> -->
<merge key="input.x11_options.swapy" type="bool">true</merge>
</match>
</match>
</device>
</deviceinfo>
Now I playing with "input.x11_options.swapx" and
"input.x11_options.swapy", because I got a half mirror effect. The
limits are now fine, the horizontal move is ok, but the vertical move
has a mirror effect. If anyone now the right solution, please tellme,
becouse I need to finish the calibration soon... :-/
I've also added the option rotate, which was the one who made the
cursor stoped of going crazy.
I hope some of this info help to some one. If anyone gets a better
solution, please tell me.
Thanks for your time.
Cheers :-)
--
Juanje
--
Ubuntu-mobile mailing list
Ubuntu-mobile@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-mobile
12-19-2008, 03:37 AM
Jeff
Touch Screen Calibration Tool
@juan
you are awesome
heres what i did:
reinstalled the calibrate ts package in the repository
opened /usr/share/hal/fdi/policy/10osvendor/50-eGalax.fdi
changed the max/min value (this took the longest to realize somethimg obvious)
after restarting X 50 billion times here is the final file for
"input.x11_options.swapy", because I got a half mirror effect. The
limits are now fine, the horizontal move is ok, but the vertical move
has a mirror effect. If anyone now the right solution, please tellme,
becouse I need to finish the calibration soon... :-/
I've also added the option rotate, which was the one who made the
cursor stoped of going crazy.
I hope some of this info help to some one. If anyone gets a better
solution, please tell me.
Thanks for your time.
Cheers :-)
--
Juanje
--
Ubuntu-mobile mailing list
Ubuntu-mobile@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-mobile
12-19-2008, 05:30 AM
"Juan Jesús Ojeda Croissier"
Touch Screen Calibration Tool
On Fri, Dec 19, 2008 at 5:37 AM, Jeff <yam125@gmail.com> wrote:
> @juan
>
> you are awesome
>
> heres what i did:
>
> reinstalled the calibrate ts package in the repository
>
> opened /usr/share/hal/fdi/policy/10osvendor/50-eGalax.fdi
>
> changed the max/min value (this took the longest to realize somethimg
> obvious)
> after restarting X 50 billion times here is the final file for
>
> /usr/share/hal/fdi/policy/10osvendor/50-eGalax.fdi
>
> __________________________________________code
> <?xml version="1.0" encoding="UTF-8"?> <!-- -*- SGML -*- -->
> <deviceinfo version="0.2">
> <device>
> <match key="info.product" contains="eGalax">
> <match key="info.capabilities" contains="input">
> <merge key="input.x11_driver" type="string">evtouch</merge>
> <merge key="input.x11_options.minx" type="string">70</merge>
> <merge key="input.x11_options.miny" type="string">70</merge>
> <merge key="input.x11_options.maxx" type="string">1900</merge>
> <merge key="input.x11_options.maxy" type="string">1900</merge>
> <merge key="input.x11_options.taptimer" type="string">30</merge>
> <merge key="input.x11_options.longtouchtimer"
> type="string">750</merge>
> <merge key="input.x11_options.longtouched_action"
> type="string">click</merge>
> <merge key="input.x11_options.longtouched_button"
> type="string">3</merge>
> <merge key="input.x11_options.oneandhalftap_button"
> type="string">2</merge>
> <merge key="input.x11_options.movelimit" type="string">10</merge>
> <merge key="input.x11_options.touched_drag" type="string">1</merge>
> <merge key="input.x11_options.maybetapped_action"
> type="string">click</merge>
> <merge key="input.x11_options.maybetapped_button"
> type="string">1</merge>
> <merge key="input.x11_options.rotate" type="string">cw</merge>
> <merge key="input.x11_options.swapx" type="bool">false</merge>
> <merge key="input.x11_options.swapy" type="bool">false</merge>
> </match>
> </match>
> </device>
> </deviceinfo>
>
> __________________________________________________ __/code
>
>
> the rotate needed to be clockwise
> and i didnt swap x or y
>
> the MAX abslt edge is is 2000 the min edge is 0
> then i bumbed it inside so to give me some room to touch it.
>
> Thanks so much for helping! i had no idea about those fdi files
No, thanks to you for the clockwise and swapx/y thing. You save me
from restart the X server lots of time more :-)
Cheers :-)
--
Juanje
--
Ubuntu-mobile mailing list
Ubuntu-mobile@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-mobile