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

xcalibrate fails to identify the xinput device #13

Open
Photon89 opened this issue May 23, 2021 · 2 comments
Open

xcalibrate fails to identify the xinput device #13

Photon89 opened this issue May 23, 2021 · 2 comments

Comments

@Photon89
Copy link

This is how it looks like:

$ ./xcalibrate 
Pointer devices:
  ID                                Name
   4          Virtual core XTEST pointer
   9                     Elan TrackPoint
  10                       Elan Touchpad
  16 Wacom Pen and multitouch sensor Pen stylus
  17 Wacom Pen and multitouch sensor Pen eraser
  18 Wacom Pen and multitouch sensor Finger touch

Device to calibrate [16]: 16

Cal property not set; is this an xinput device?

@Kippykip
Copy link

I had this issue too on a Panasonic Toughbook CF19's touch screen
Turns out when I typed xinput in the terminal, the real device shows up as a keyboard device and not as a pointer! (weird but ok)

I worked around it with a dirty method by editing this line on row 20:
groups = re.findall(r'.(\w.+(\w|\(\d+\)))\s+id=(\d+)\D+slave *pointer', xinput('--list', '--short'))
I changed to the following:
groups = re.findall(r'.(\w.+(\w|\(\d+\)))\s+id=(\d+)\D+slave *keyboard', xinput('--list', '--short'))

Then it showed the same device (but without the Pen (0)) and the tool then worked perfectly fine!
Edit the conf file that it told me and it's definitely working! I ended up using 9 points for the test.

Perhaps your Wacom setup also shows up as a keyboard device too? Could be worth trying.

@Kippykip
Copy link

Alrighty, I made a modified version that shows both keyboard and pointer devices.
https://github.com/Kippykip/xcalibrate

It also saves the config automatically now without having to copy and paste, although this means you have to run my forked script as sudo.

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

2 participants