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

error disabling touch; cannot open display #7

Open
jasper77 opened this issue Feb 7, 2020 · 10 comments
Open

error disabling touch; cannot open display #7

jasper77 opened this issue Feb 7, 2020 · 10 comments

Comments

@jasper77
Copy link

jasper77 commented Feb 7, 2020

When I try to run this as "sudo ./AR100 -m -c 25" on Raspian Buster v4.19.75-v7+ I get the following:

Connected to AR1100 as generic HID
Error disabling touch!
Calibrating 25 points.

(AR100:12003): Gtk-WARNING **: 12:19:00:374: cannot open display:

I made it with DEBUG=1 and ran it again:

Connected to AR1100 as generic HID.
Sending cmd 0x13
USB tx 64:
55 01 13 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

Result 0
USB rx 64:
55 02 fc 14 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

COMMAND response: 252
Error disabeling touch!
Calibrating 25 points.
Sending cmd 0x14
USB tx 64:
55 02 14 03 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

Result 0
USB rx 64:
55 02 00 14 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

COMMAND response: 0

@tom-2015
Copy link
Owner

tom-2015 commented Feb 8, 2020

Are running the tool remote from putty/ssh or directly on the pi?
Must run it in a command window on the desktop screen of the pi because it needs the screen to show calibration points.

@jasper77
Copy link
Author

jasper77 commented Feb 8, 2020 via email

@tom-2015
Copy link
Owner

tom-2015 commented Feb 8, 2020

Which Raspberry are you using 3 or 4?

@jasper77
Copy link
Author

jasper77 commented Feb 8, 2020 via email

@tom-2015
Copy link
Owner

tom-2015 commented Feb 9, 2020

what do you get if you type:

sudo su
echo $DISPLAY

Try adding

Defaults env_keep=DISPLAY

to /etc/sudoers

@jasper77
Copy link
Author

jasper77 commented Feb 10, 2020 via email

@SanitysObituary
Copy link

Hey I'm hitting the same wall as you with this AR1100, did you ever get this working?

@jasper77
Copy link
Author

jasper77 commented Jul 20, 2020 via email

@tom-2015
Copy link
Owner

Not yet because I was not able to reproduce the problem :(

@tom-2015
Copy link
Owner

tom-2015 commented Aug 1, 2020

Maybe you can try this version reworled made with GTK3 instead of GTK2?

https://github.com/reworled/ar1100

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

3 participants