Skip to contentSkip to conversation

xinput-calibrator

DISCUSSION Martin Jansa 4 participants 6 messages Feb 4, 2010 – Mar 11, 2010

lore
Share & tools
lore
#0 lore raw

Hi,

I've seen your patches for xinput-calibrator. I'm not sure if you're the author (github is down now ;/), but maybe you could add this anyways.

For shr I've added small shell script to run calibration only if /etc/pointercal.xinput doesn't exist and after calibration store values there for next reboot.
http://git.openembedded.org/cgit.cgi/openembedded/commit/?id=48dd2427c14edb8349e9f16150ad0f9c037c2ab8

This is then used in Xsession.d script.
Problem is when user wait too long when starting xorg for first time and LCD screen is blanked, then first touchscreen tap to unblank it counts as first point for calibration (way off the right mark).

I've workarrounded it with forcing LCD to stay on while calibrator is running but still not best solution (ie user can touch ts by accident even with display on.

Could you add option (ie enabled by command line param, or even by default) to repeat calibration when user doesn't confirm that he did it right and touchscreen is working for him?

Something like (while still in xinput-calibrator gui):

Do you want to use/store calibration values?
If yes, press touchscreen for 10s.
If no, press once and calibration will start again. (maybe some 3rd option to exit calibration without storing)

(buttons would be easier to use, but difficult to press the right one if user messed calibration really badly).

Thanks!

Signature · 3 lines
uin:136542059                jid:[email protected]
Jansa Martin                 sip:[email protected] 
JaMa                         
#1 lore raw

pointercal ignored?

I have built a custom variant of x11-gpe-image for the SAM9M10.

I am running the dev branch (1-2 weeks old)
The pointcal file generated by ts_calibrate in
seems to be reasonable, indicating that
the touchscreen is pressed (50,50) away
from all four corners.

When gpe is started, the Y direction seems to be compressed. When I start the calculator and press at the top of the screen, the calculator buttons 5 mm below gets pressed.
When I press at the bottom of the screen, the buttons 5 mm above gets pressed.

Changing /etc/pointercal manually seems to have no effect

It's like pointercal gets ignored.

When others run the same kernel with minor config changes using the stable branch ans xserver-kdrive, this phenomena does not happen.

Any clues?

Best Regards,
Ulf Samuelsson

#2 lore raw

Re: pointercal ignored?

Dnia wtorek, 9 marca 2010 o 23:25:22 Ulf Samuelsson napisał(a):

Quoted 1 line

I have built a custom variant of x11-gpe-image for the SAM9M10.

Which machine in OE covers that board? I have to admit that I did not tried to hack mine.

Quoted 6 lines

When gpe is started, the Y direction seems to be compressed. When I start the calculator and press at the top of the screen, the calculator buttons 5 mm below gets pressed.
When I press at the bottom of the screen, the buttons 5 mm above gets pressed.

Quoted 7 lines

Changing /etc/pointercal manually seems to have no effect

It's like pointercal gets ignored.

When others run the same kernel with minor config changes using the stable branch ans xserver-kdrive, this phenomena does not happen.

Check do you have kdrive or xorg with evdev or tslib driver.

Regards,

Signature · 3 lines
JID:      [email protected]
Website:  http://marcin.juszkiewicz.com.pl/
LinkedIn: http://www.linkedin.com/in/marcinjuszkiewicz
#3 lore raw

Re: pointercal ignored?

Marcin Juszkiewicz skrev:

Quoted 4 lines

Dnia wtorek, 9 marca 2010 o 23:25:22 Ulf Samuelsson napisał(a):

Quoted 1 line

I have built a custom variant of x11-gpe-image for the SAM9M10.

Which machine in OE covers that board? I have to admit that I did not tried to hack mine.

I am building the SAM9G45EK, but I am using a 2.6.30 kernel patched with maxim.org.za + www.linux4sam.org .exp3 patches instead of the 2.6.32 currently in openembedded.

Also updated bootstrap and u-boot, but that won't affect this.

Quoted 9 lines
Quoted 9 lines

When gpe is started, the Y direction seems to be compressed. When I start the calculator and press at the top of the screen, the calculator buttons 5 mm below gets pressed.
When I press at the bottom of the screen, the buttons 5 mm above gets pressed.

Changing /etc/pointercal manually seems to have no effect

Quoted 8 lines
Quoted 5 lines

It's like pointercal gets ignored.

When others run the same kernel with minor config changes using the stable branch ans xserver-kdrive, this phenomena does not happen.

Check do you have kdrive or xorg with evdev or tslib driver.

I will check, when I am back home.
Will also send the patches I added.

Quoted 1 line

Regards,

BR
/Ulf

#4 lore raw

Re: pointercal ignored?

Ulf Samuelsson skrev:

Quoted 24 lines

Marcin Juszkiewicz skrev:

Quoted 5 lines

Dnia wtorek, 9 marca 2010 o 23:25:22 Ulf Samuelsson napisał(a):

Quoted 1 line

I have built a custom variant of x11-gpe-image for the SAM9M10.

Which machine in OE covers that board? I have to admit that I did not tried to hack mine.

I am building the SAM9G45EK, but I am using a 2.6.30 kernel patched with maxim.org.za + www.linux4sam.org .exp3 patches instead of the 2.6.32 currently in openembedded.

Also updated bootstrap and u-boot, but that won't affect this.

Quoted 11 lines
Quoted 11 lines

When gpe is started, the Y direction seems to be compressed. When I start the calculator and press at the top of the screen, the calculator buttons 5 mm below gets pressed.
When I press at the bottom of the screen, the buttons 5 mm above gets pressed.

Changing /etc/pointercal manually seems to have no effect

It's like pointercal gets ignored.

Quoted 8 lines
Quoted 6 lines
Quoted 3 lines

When others run the same kernel with minor config changes using the stable branch ans xserver-kdrive, this phenomena does not happen.

Check do you have kdrive or xorg with evdev or tslib driver.

I will check, when I am back home.

xserver-xorg-2_1.7.4-r0
tslib-1.0-r23.3
xtscal-0.6.3-r7
xf86-input-evdev-1_2.3.2-r10 calibrateproto-2_0.0+r0+gitr1da6fd1e2c7a49648245c98481fabea8b9690a8c-r0 libxcalibrate-2_0.0+r0+gitr209d83af61ed38a002c8096377deac292b3e396c-r0

There is no PREFERRED_PROVIDER_xserver defined.

Quoted 12 lines

Will also send the patches I added.

Quoted 1 line

Regards,

BR
/Ulf

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

Signature · 2 lines
Best Regards
Ulf Samuelsson
#5 lore raw

Re: pointercal ignored?

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 6 lines · Ulf Samuelsson

xserver-xorg-2_1.7.4-r0
tslib-1.0-r23.3
xtscal-0.6.3-r7
xf86-input-evdev-1_2.3.2-r10 calibrateproto-2_0.0+r0+gitr1da6fd1e2c7a49648245c98481fabea8b9690a8c-r0 libxcalibrate-2_0.0+r0+gitr209d83af61ed38a002c8096377deac292b3e396c-r0

If you want pointercal to be use, you need to install xf86-input-tslib -----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFLmXnKMkyGM64RGpERAq6xAKCSdJ8Hxiff5xHq90Ncmbas0yT8tACgnKdi YlnQa4aBHrZEbDrH36JEFiM=
=of8g
-----END PGP SIGNATURE-----