NI Linux Real-Time Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Not the supervisor

I didn't have the touch screen monitor plugged in when I last rebooted. How is this log file?

0 Kudos
Message 31 of 54
(1,697 Views)

I can see the device in that log, but I am still not seeing any sort of indication that it is attempting to apply calibration settings. Where is the xorg input calibration config file located? Name and permission of the file?

0 Kudos
Message 32 of 54
(1,697 Views)

admin@NI-cRIO-9030-019FE011:/# ls -l /usr/share/X11/xorg.conf.d                

total 16

-rw-r--r--    1 admin    administ      1099 Oct  2 17:35 10-evdev.conf

-rw-r--r--    1 admin    administ      1759 Oct  2 18:03 50-synaptics.conf

-rw-r--r--    1 admin    administ       115 Oct  2 18:01 50-vmmouse.conf

-rwxr-xr-x    1 admin    administ       197 Mar 10 06:52 99-calibration.conf

0 Kudos
Message 33 of 54
(1,697 Views)

That seems fine, I suppose, other than the permissions are different. It may be beneficial to also post the contents of the 99-calibration.conf file. It's a bit difficult without have access to one of these screens.

0 Kudos
Message 34 of 54
(1,697 Views)

When I use the snippet suggested above

Section "InputClass"

    Identifier    "calibration"

    MatchProduct    "DIALOGUE INC PenMount USB"

    Option    "Calibration"    "929 86 930 85"

    Option    "SwapAxes"    "0"

EndSection

the x and y coordinates are reversed. Even I switch Option "SwapAxes" "1" instead of 0 they are still reversed.

After I calibrate it i get a file that looks like

Section "InputClass"

          Identifier          "calibration"

          MatchProduct          "eGalax Inc. USB TouchController"

          Option          "Calibration"          "1566 1544 2829 2826"

          Option          "SwapAxes"          "1"

EndSection

Using this cal file the cursor is nowhere near where I press.

0 Kudos
Message 35 of 54
(1,697 Views)

The snippet I posted before was just an example that I got from calibrating a different brand of touchscreen. Because the "MatchProduct" field is not going to match your touchscreen it is not going to load and that's probably why we are not seeing it in the Xorg log.

I am not sure why the calibration tool doesn't give you the right numbers. You can try tweaking them by hand (i.e. not just the swap axes number) and see if it makes a difference. Make sure you use the file you obtain from the calibration tool not the snipped I posted.

What is the resolution of this screen?

0 Kudos
Message 36 of 54
(1,697 Views)

Screen Resoution: 1024x768

If all I do is switch the MatchProduct from "DIALOGUE INC PenMount USB" to "eGalax Inc. USB Touch Controller" the cursor is nowhere near where I touch. Even if I leave Option "Calibration" the same.

The reason I used your snippet is because I copied a bad file before, and the system couldn't restart till I gave it a proper cal file so I grabbed yours since I didn't have one at hand.

0 Kudos
Message 37 of 54
(1,697 Views)

I'd recommend you doing the following:

  • Remove any calibration files in the /usr/share/X11/xorg.conf.d/
  • Restart the controller
  • Rerun the calibration utility, this time saving all output
    • xinput_calibrator > calibration_output
    • Make sure you get a good run of the tool
  • Post that file
0 Kudos
Message 38 of 54
(1,697 Views)

I removed all calibration files like you said, restarted the controller, then when I put in the commands

export DISPLAY=:0

xinput_calibrator | tail -n 6 > 99-calibration.conf

it gives me an error

No calibratable devices found.

0 Kudos
Message 39 of 54
(1,697 Views)

You do have the touch screen plugged into a USB port on the target, right?

0 Kudos
Message 40 of 54
(1,697 Views)