hi,
I would like to use an USB touch screen as coordinates input device.
Up to now I was able to recognize the touche screen but I was not able to
perform the calibration of it.
Is there someone can help me?
Thank you in advance
maurizio
hi,
I would like to use an USB touch screen as coordinates input device.
Up to now I was able to recognize the touche screen but I was not able to
perform the calibration of it.
Is there someone can help me?
Thank you in advance
maurizio
Maurizio
Touch screen controllers have different calibration methods.
Some you can make your own “test” screen and send data to the controller, others do not allow you to calibrate except
via the manufacturer’s software.
I use touchscreens under SDL, and I just use the supplied calibration tools from the manufacturer. It makes like much eaiser.
Maybe you can call the calibration program from your SDL app?
Regards
Ed________________________________
From: progsel.stefani@gmail.com (maurizio stefani)
To: sdl at libsdl.org
Sent: Wednesday, 10 December, 2008 8:46:18
Subject: [SDL] usb touch screen
hi,
I would like to use an USB touch screen as coordinates input device.
Up to now I was able to recognize the touche screen but I was not able to
perform the calibration of it.
Is there someone can help me?
Thank you in advance
maurizio
SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
What platform are you using? If you’re using X, configure X properly.
Once you can use your device with X properly (or Windows, or Mac OS X,
or whatever you’re using) you should be very close to getting it to
work with SDL.
Incidentally I discovered that on Debian Etch, the “CorePointer” Xorg
configuration option causes problems:
http://bugzilla.libsdl.org/show_bug.cgi?id=644On Wed, Dec 10, 2008 at 3:46 AM, maurizio stefani <progsel.stefani at gmail.com> wrote:
hi,
I would like to use an USB touch screen as coordinates input device.
Up to now I was able to recognize the touche screen but I was not able to
perform the calibration of it.Is there someone can help me?
Thank you in advance
maurizio
SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
Hi,
Thank you for the help, let me give an overview of system:
Our system is based on a geode processor and it is an embedded system (not
shutdown allowed…), the processor performances and resosurces (Memory…)
are not enough to host X.
We would like to use the touch screen without X environment.
The linux kernel we are using is Ubuntu 8.04 server (with no X), it seems that
the touch screen is seen from linux as a mouse.
The coordinates we receive from the SDLgetmousestate (checkx and checky) seems
are relative coordinates, and them are clipped into 640x480 (the touch should
be 4096x4096).
We have no touch screen driver outside X environment (touch controller is
PENMOUNT).
May be we are not able to set the touch system into SDL.
Thank you in advance to any people can help us.
Maurizio
maurizio stefani wrote:
Hi,
Thank you for the help, let me give an overview of system:
Our system is based on a geode processor and it is an embedded system (not
shutdown allowed…), the processor performances and resosurces (Memory…)
are not enough to host X.We would like to use the touch screen without X environment.
Check out http://tslib.berlios.de.
HTH,
Hinko–
Hinko Ko?evar, OSS developer
?ETRTA POT, d.o.o.
Planina 3, 4000 Kranj, SI EU
tel ++386 (0) 4 280 66 03
e-mail @Hinko_Kocevar
http www.cetrtapot.si
Hinko Kocevar <hinko.kocevar cetrtapot.si> writes:
maurizio stefani wrote:
Hi,
Thank you for the help, let me give an overview of system:
Our system is based on a geode processor and it is an embedded system (not
shutdown allowed…), the processor performances and resosurces
(Memory…)are not enough to host X.
We would like to use the touch screen without X environment.
Check out http://tslib.berlios.de.
HTH,
Hinko
hi,
thank you for your help but we found the following problems:
Could you please help us?
Thank you in advance
maurizio stefani
maurizio stefani wrote:
hi,
thank you for your help but we found the following problems:
- It is required a third argument in the open function in the ts-calibrate.c
(line 227), we put a 0 as third argument in order to go ahead.
There is a ‘cal_fd = open (calfile, O_CREAT | O_RDWR);’ line on 227 if using source tarbal from tslib homepage. And there are only two arguments - you mean you added ‘mode’ as third argument (according to man 2 open)?.
- After the adding of third argument in the open, the test programs are
compiled with no errors. When we run the tsprint program, it does not
First use ts_print_raw, ts_print is meaningful when touchscreen is calibrated with ts_calibrate.
find /dev/touchscreen/ucb1x00, than we change it with /dev/input/event2 (may
be the mouse device). With this change the program runs but arise the
You can set your device with TSLIB_TSDEVICE. Please see README in the tslib package.
error “no raw modules loaded”, “no such file or directory”. These errors seems
relevant to the ts descriptor previously opened.
Ditto, read README - at least one raw module must be enabled. For generic linux
event input device ‘module_raw input’ should suffice.
P.S. Take this to tslib mailing list instead…
Regards,
Hinko–
Hinko Ko?evar, OSS developer
?ETRTA POT, d.o.o.
Planina 3, 4000 Kranj, SI EU
tel ++386 (0) 4 280 66 03
e-mail @Hinko_Kocevar
http www.cetrtapot.si