Touchscreen (7") inaccurate

Hello
i use RepServ 1.04 and the official Display (DSI Port) from the Raspberry Foundation.

Display works, i mean i ve a picture. but the calibration seems not right. if i press the mixer button, Repetier open Server Command.

display is rotated with lcd_rotate=2 (in boot/config.txt)

i mean i hadent this problems with my old setup (pi2 and RepServer 0.9)

Comments

  • edited April 2021
    pi@RepetierServer:~ $ export DISPLAY=:0
    pi@RepetierServer:~ $ xinput_calibrator
    Calibrating standard Xorg driver "raspberrypi-ts"
            current calibration values: min_x=0, max_x=65535 and min_y=0, max_y=6553                           5
            If these values are estimated wrong, either supply it manually with the                            --precalib option, or run the 'get_precalib.sh' script to automatically get it (                           through HAL).
            --> Making the calibration permanent <--
      copy the snippet below into '/etc/X11/xorg.conf.d/99-calibration.conf' (/usr/s                           hare/X11/xorg.conf.d/ in some distro's)
    Section "InputClass"
            Identifier      "calibration"
            MatchProduct    "raspberrypi-ts"
            Option  "MinX"  "64846"
            Option  "MaxX"  "-89"
            Option  "MinY"  "65137"
            Option  "MaxY"  "57"
            Option  "SwapXY"        "0" # unless it was already set to 1
            Option  "InvertX"       "0"  # unless it was already set
            Option  "InvertY"       "0"  # unless it was already set
    EndSection
    pi@RepetierServer:~ $


    my file 99-calibration.conf

    Section "InputClass"
            Identifier      "calibration"
            MatchProduct    "raspberrypi-ts"
            Option  "MinX"  "65003"
            Option  "MaxX"  "-205"
            Option  "MinY"  "64545"
            Option  "MaxY"  "-717"
            Option  "SwapXY"        "0" # unless it was already set to 1
            Option  "InvertX"       "0"  # unless it was already set
            Option  "InvertY"       "0"  # unless it was already set
    EndSection
  • found now for me  the solution. display need a transformation matrix

    here my 99-calibration.conf

    Section "InputClass"
            Identifier      "calibration"
            MatchProduct    "raspberrypi-ts"
            Option  "MinX"  "65003"
            Option  "MaxX"  "-205"
            Option  "MinY"  "64545"
            Option  "MaxY"  "-717"
            Option  "SwapXY"        "0" # unless it was already set to 1
            Option  "InvertX"       "0"  # unless it was already set
            Option  "InvertY"       "0"  # unless it was already set
            Option  "TransformationMatrix" "-1 0 1 0 -1 1 0 0 1"
    EndSection
  • Normally not required if you use the hardware screen rotation. But nowadays on pi config.txt allows 3 different ways to rotate the screen.
Sign In or Register to comment.