Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calibrate touchscreen #46

Closed
JamesCullum opened this issue Feb 19, 2019 · 10 comments
Closed

Calibrate touchscreen #46

JamesCullum opened this issue Feb 19, 2019 · 10 comments

Comments

@JamesCullum
Copy link

Thank you for the easy to use package!

I am using a 5" touchscreen, which requires calibration to be precise.
For this, I need to install apt-get install xinput-calibrator (which works) and then go into the GUI to Menu-->Preferences-->Calibrate Touchscreen.

How do I get to the GUI where I could do this? I've noticed that startx is installed, but I assume focuses on Chrome.

Do you know how to get to this menu / get to the GUI in this image?

@jareware
Copy link
Owner

jareware commented Mar 1, 2019

Hey, sorry for taking some time to get back to this, I've been away from the keyboard for a while.

I don't have a test device at hand right now, but have you tried just getting a terminal with Ctrl + Alt + F3, and running something like sudo DISPLAY=:0.0 xinput_calibrator?

@JamesCullum
Copy link
Author

Hey @jareware, thank you for the response!

If I run your command, I get

No protocol defined
Unable to connect to X server

If I change the ID to 1.0 or 2.0 I don't get the No protocol defined, but the error connecting to X stays.

@jareware
Copy link
Owner

jareware commented Mar 3, 2019

Uhh, interesting. Like I said, I don't have such a device at hand, and that makes testing quite hard. Wish I could be of more help.

Let us know if you figure it out!

@Kimmax
Copy link

Kimmax commented Mar 28, 2019

Running xinput_calibrator using DISPLAY=:0 xinput_calibrator works. It's important to run this as a normal user, not root.

@jareware
Copy link
Owner

jareware commented Apr 1, 2019

Great to hear!

By the way, are you guys talking about the official RasPi touchscreen module, or something else..?

@Kimmax
Copy link

Kimmax commented Apr 2, 2019

I'm using a 10.1" 1280x800 "IPS LCD" (?!) Touch display from SunFounder. You can find it here.
It's a really cool display for all sorts of projects and looks modern and clean

@jareware
Copy link
Owner

jareware commented Apr 4, 2019

Added your tip to first-boot.md, thanks @Kimmax!

@PoloB12
Copy link

PoloB12 commented Feb 10, 2020

xinput_calibrator is not included anymore in the image v2.1.0 ?

@Kimmax
Copy link

Kimmax commented Feb 10, 2020

@PoloB12 xinput_calibrator was never included, install using apt-get install xinput-calibrator

@PoloB12
Copy link

PoloB12 commented Mar 9, 2020

I assumed it was installed as was mentioned in first-boot.md ; had installed manually already, thanks.

Had some issues calibrating a rotated screen though, I found this link very helpful solving that :

https://gist.github.com/KurtJacobson/37288a0300a9c1b3e859c8dcff403300

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants