libts / tslib

Touchscreen access library
GNU Lesser General Public License v2.1
596 stars 290 forks source link

Official Raspberry Pi 7" Touchscreen coordinates are off #189

Closed p1r473 closed 2 years ago

p1r473 commented 2 years ago

Hi, Thank you for taking the time to read my post here. I bought a new Official Raspberry Pi 7" Touchscreen and the calibration is way off. The cursor is VERY far from my finger. After I used ts_calibrate, my touchscreen worked 100% well in ts_test which gave me a lot of hope

However I am having trouble getting X11 to use the new calibration I believe I have it configured properly (except for the optional service which is failing) Even still, the touch calibration works fine only in the test application, but not in the rest of the operating system

I followed https://www.circuitbasics.com/raspberry-pi-touchscreen-calibration-screen-rotation/ and https://boundarydevices.com/debian-in-more-depth-adding-touch-support/

Steps I have taken:

apt install libts-bin xserver-xorg-input-tslib libevdev-dev libudev-dev xserver-xorg-input-evdev
export TSLIB_TSDEVICE=/dev/input/event0
export TSLIB_FBDEVICE=/dev/fb1
ts_calibrate
#cat /etc/pointercal
ts_test 
reboot

/etc/udev/rules.d/98-touchscreen.rules:

SUBSYSTEM=="input", KERNEL=="event[0-9]*", ATTRS{name}=="raspberrypi-ts", SYMLINK+="input/ts", TAG+="systemd" ENV{SYSTEMD_WANTS}="ts_uinput.service"
SUBSYSTEM=="input", KERNEL=="event[0-9]*", ATTRS{name}=="ts_uinput", SYMLINK+="input/ts_uinput"

/usr/lib/systemd/system/ts_uinput.service:

[Unit]
Description=touchscreen input
BindsTo=dev-input-ts.device
After=dev-input-ts.device
RequiresMountsFor=/etc/ts.env

[Service]
Type=forking
EnvironmentFile=/etc/ts.env
ExecStart=/usr/bin/ts_uinput -d

systemctl status ts_uinput.service:

systemctl status ts_uinput.service
● ts_uinput.service - touchscreen input
   Loaded: loaded (/lib/systemd/system/ts_uinput.service; static; vendor preset: enabled)
   Active: failed (Result: exit-code) since Fri 2021-10-15 04:00:42 EDT; 7s ago
  Process: 4075 ExecStart=/usr/bin/ts_uinput -d (code=exited, status=9)

Oct 15 04:00:42 Harbormaster systemd[1]: Starting touchscreen input...
Oct 15 04:00:42 Harbormaster ts_uinput[4075]: Couldn't load module input
Oct 15 04:00:42 Harbormaster ts_uinput[4075]: No raw modules loaded.
Oct 15 04:00:42 Harbormaster ts_uinput[4075]: ts_config: Success
Oct 15 04:00:42 Harbormaster ts_uinput[4075]: ts_setup: Success
Oct 15 04:00:42 Harbormaster systemd[1]: ts_uinput.service: Control process exited, code=exited, status=9/n/a
Oct 15 04:00:42 Harbormaster systemd[1]: ts_uinput.service: Failed with result 'exit-code'.
Oct 15 04:00:42 Harbormaster systemd[1]: Failed to start touchscreen input.

/etc/xorg.conf:

Section "InputClass"
    Identifier "raspberrypi-ts"
    Option "Device" "/dev/input/ts_uinput"
    Driver "evdev"
EndSection

### Valid values for rotation are "normal", "left", "right"
Section "Monitor"
    Identifier "Default Monitor"
#   Option "Rotate" "inverted"
    Option "DPMS" "false"
EndSection

Section "ServerFlags"
    Option "StandbyTime" "0"
    Option "SuspendTime" "0"
    Option "OffTime" "0"
    Option "BlankTime" "0"
EndSection

Section "Extensions"
    Option "DPMS" "Disable"
EndSection

/etc/ts.conf:

module_raw input
module linear

/etc/ts.env:

TSLIB_CALIBFILE=/etc/pointercal
TSLIB_CONFFILE=/etc/ts.conf
TSLIB_PLUGINDIR=/usr/lib/ts

rc.local:

/home/pi/ts_uinput_start.sh
exit 0

/usr/share/X11/xorg.conf.d/10-evdev.conf:

# Catchall classes for input devices
# We don't simply match on any device since that also adds accelerometers
# and other devices that we don't really want to use. The list below
# matches everything but joysticks.

Section "InputClass"
        Identifier "evdev pointer catchall"
        MatchIsPointer "on"
        MatchDevicePath "/dev/input/event*"
        Driver "evdev"
EndSection

Section "InputClass"
        Identifier "evdev keyboard catchall"
        MatchIsKeyboard "on"
        MatchDevicePath "/dev/input/event*"
        Driver "evdev"

        # Keyboard layouts
        Option "XkbLayout" "us, il"
        Option "XkbVariant" ", lyx"
        Option "XkbOptions" "grp:alt_shift_toggle, grp_led:scroll, terminate:ctrl_alt_bksp"
EndSection

Section "InputClass"
        Identifier "evdev touchpad catchall"
        MatchIsTouchpad "on"
        MatchDevicePath "/dev/input/event*"
        Driver "evdev"
EndSection

Section "InputClass"
        Identifier "evdev tablet catchall"
        MatchIsTablet "on"
        MatchDevicePath "/dev/input/event*"
        Driver "evdev"
EndSection

Section "InputClass"
        Identifier "evdev touchscreen catchall"
        MatchIsTouchscreen "on"
        MatchDevicePath "/dev/input/event*"
        Driver "evdev"
EndSection

/var/log/Xorg.0.log:

[    29.069] 
X.Org X Server 1.20.4
X Protocol Version 11, Revision 0
[    29.069] Build Operating System: Linux 5.10.17-v8+ aarch64 Raspbian
[    29.069] Current Operating System: Linux Harbormaster 5.10.73-v7l+ #1468 SMP Thu Oct 14 13:30:17 BST 2021 armv7l
[    29.070] Kernel command line: coherent_pool=1M 8250.nr_uarts=0 snd_bcm2835.enable_compat_alsa=0 snd_bcm2835.enable_hdmi=1 video=HDMI-A-1:1280x720M@60 smsc95xx.macaddr=E4:5F:01:42:5C:A2 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000  console=ttyS0,115200 console=tty1 root=PARTUUID=264c47cc-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait
[    29.070] Build Date: 19 April 2021  03:23:36PM
[    29.070] xorg-server 2:1.20.4-1+rpt3+deb10u3 (https://www.debian.org/support) 
[    29.070] Current version of pixman: 0.36.0
[    29.070]    Before reporting problems, check http://wiki.x.org
    to make sure that you have the latest version.
[    29.070] Markers: (--) probed, (**) from config file, (==) default setting,
    (++) from command line, (!!) notice, (II) informational,
    (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[    29.070] (==) Log file: "/var/log/Xorg.0.log", Time: Fri Oct 15 15:49:28 2021
[    29.184] (==) Using config file: "/etc/xorg.conf"
[    29.184] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[    29.240] (==) No Layout section.  Using the first Screen section.
[    29.240] (==) No screen section available. Using defaults.
[    29.240] (**) |-->Screen "Default Screen Section" (0)
[    29.240] (**) |   |-->Monitor "<default monitor>"
[    29.252] (==) No monitor specified for screen "Default Screen Section".
    Using a default monitor configuration.
[    29.252] (**) Option "BlankTime" "0"
[    29.252] (**) Option "StandbyTime" "0"
[    29.252] (**) Option "SuspendTime" "0"
[    29.252] (**) Option "OffTime" "0"
[    29.253] (==) Automatically adding devices
[    29.253] (==) Automatically enabling devices
[    29.253] (==) Automatically adding GPU devices
[    29.253] (==) Max clients allowed: 256, resource mask: 0x1fffff
[    29.261] (WW) The directory "/usr/share/fonts/X11/misc" does not exist.
[    29.261]    Entry deleted from font path.
[    29.261] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
[    29.261]    Entry deleted from font path.
[    29.261] (WW) The directory "/usr/share/fonts/X11/100dpi/" does not exist.
[    29.261]    Entry deleted from font path.
[    29.261] (WW) The directory "/usr/share/fonts/X11/75dpi/" does not exist.
[    29.261]    Entry deleted from font path.
[    29.261] (WW) The directory "/usr/share/fonts/X11/Type1" does not exist.
[    29.261]    Entry deleted from font path.
[    29.261] (WW) The directory "/usr/share/fonts/X11/100dpi" does not exist.
[    29.261]    Entry deleted from font path.
[    29.261] (WW) The directory "/usr/share/fonts/X11/75dpi" does not exist.
[    29.261]    Entry deleted from font path.
[    29.261] (==) FontPath set to:
    built-ins
[    29.261] (==) ModulePath set to "/usr/lib/xorg/modules"
[    29.261] (**) Extension "DPMS" is disabled
[    29.261] (II) The server relies on udev to provide the list of input devices.
    If no devices become available, reconfigure udev or disable AutoAddDevices.
[    29.261] (II) Loader magic: 0x1fdf80
[    29.261] (II) Module ABI versions:
[    29.261]    X.Org ANSI C Emulation: 0.4
[    29.261]    X.Org Video Driver: 24.0
[    29.261]    X.Org XInput driver : 24.1
[    29.261]    X.Org Server Extension : 10.0
[    29.262] (++) using VT number 7

[    29.262] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration
[    29.264] (II) xfree86: Adding drm device (/dev/dri/card0)
[    29.286] (II) xfree86: Adding drm device (/dev/dri/card1)
[    29.287] (II) no primary bus or device found
[    29.287]    falling back to /sys/devices/platform/gpu/drm/card0
[    29.287] (II) LoadModule: "glx"
[    29.304] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[    29.516] (II) Module glx: vendor="X.Org Foundation"
[    29.516]    compiled for 1.20.4, module version = 1.0.0
[    29.516]    ABI class: X.Org Server Extension, version 10.0
[    29.516] (==) Matched modesetting as autoconfigured driver 0
[    29.516] (==) Matched fbdev as autoconfigured driver 1
[    29.516] (==) Assigned the driver to the xf86ConfigLayout
[    29.516] (II) LoadModule: "modesetting"
[    29.549] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[    29.578] (II) Module modesetting: vendor="X.Org Foundation"
[    29.578]    compiled for 1.20.4, module version = 1.20.4
[    29.578]    Module class: X.Org Video Driver
[    29.578]    ABI class: X.Org Video Driver, version 24.0
[    29.578] (II) LoadModule: "fbdev"
[    29.579] (II) Loading /usr/lib/xorg/modules/drivers/fbdev_drv.so
[    29.624] (II) Module fbdev: vendor="X.Org Foundation"
[    29.624]    compiled for 1.20.3, module version = 0.5.0
[    29.624]    Module class: X.Org Video Driver
[    29.624]    ABI class: X.Org Video Driver, version 24.0
[    29.624] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[    29.624] (II) FBDEV: driver for framebuffer: fbdev
[    29.652] (II) modeset(0): using drv /dev/dri/card0
[    29.652] (WW) Falling back to old probe method for fbdev
[    29.652] (II) Loading sub module "fbdevhw"
[    29.652] (II) LoadModule: "fbdevhw"
[    29.653] (II) Loading /usr/lib/xorg/modules/libfbdevhw.so
[    29.709] (II) Module fbdevhw: vendor="X.Org Foundation"
[    29.709]    compiled for 1.20.4, module version = 0.0.2
[    29.709]    ABI class: X.Org Video Driver, version 24.0
[    29.715] (II) modeset(0): Creating default Display subsection in Screen section
    "Default Screen Section" for depth/fbbpp 24/32
[    29.715] (==) modeset(0): Depth 24, (==) framebuffer bpp 32
[    29.715] (==) modeset(0): RGB weight 888
[    29.715] (==) modeset(0): Default visual is TrueColor
[    29.715] (II) Loading sub module "glamoregl"
[    29.715] (II) LoadModule: "glamoregl"
[    29.715] (II) Loading /usr/lib/xorg/modules/libglamoregl.so
[    29.900] (II) Module glamoregl: vendor="X.Org Foundation"
[    29.900]    compiled for 1.20.4, module version = 1.0.1
[    29.901]    ABI class: X.Org ANSI C Emulation, version 0.4
[    33.048] (II) modeset(0): glamor X acceleration enabled on V3D 4.2
[    33.049] (II) modeset(0): glamor initialized
[    33.049] (II) modeset(0): Output DSI-1 has no monitor section
[    33.050] (II) modeset(0): Output HDMI-1 has no monitor section
[    33.051] (II) modeset(0): EDID for output DSI-1
[    33.051] (II) modeset(0): Printing probed modes for output DSI-1
[    33.051] (II) modeset(0): Modeline "FIXED_MODE"x60.0   27.78  800 861 863 907  480 487 489 510 +hsync +vsync (30.6 kHz eP)
[    33.052] (II) Quirked EDID physical size to 0x0 cm
[    33.052] (II) modeset(0): EDID for output HDMI-1
[    33.052] (II) modeset(0): Manufacturer: SAM  Model: 5b0  Serial#: 0
[    33.052] (II) modeset(0): Year: 2009  Week: 13
[    33.052] (II) modeset(0): EDID Version: 1.3
[    33.052] (II) modeset(0): Digital Display Input
[    33.052] (II) modeset(0): Indeterminate output size
[    33.052] (II) modeset(0): Gamma: 2.20
[    33.052] (II) modeset(0): No DPMS capabilities specified
[    33.052] (II) modeset(0): Supported color encodings: RGB 4:4:4 YCrCb 4:4:4 
[    33.052] (II) modeset(0): First detailed timing is preferred mode
[    33.052] (II) modeset(0): redX: 0.640 redY: 0.330   greenX: 0.300 greenY: 0.600
[    33.052] (II) modeset(0): blueX: 0.150 blueY: 0.060   whiteX: 0.312 whiteY: 0.329
[    33.052] (II) modeset(0): Supported established timings:
[    33.052] (II) modeset(0): 720x400@70Hz
[    33.052] (II) modeset(0): 640x480@60Hz
[    33.052] (II) modeset(0): 640x480@67Hz
[    33.052] (II) modeset(0): 640x480@72Hz
[    33.052] (II) modeset(0): 640x480@75Hz
[    33.052] (II) modeset(0): 800x600@56Hz
[    33.052] (II) modeset(0): 800x600@60Hz
[    33.052] (II) modeset(0): 800x600@72Hz
[    33.052] (II) modeset(0): 800x600@75Hz
[    33.052] (II) modeset(0): 832x624@75Hz
[    33.052] (II) modeset(0): 1024x768@60Hz
[    33.052] (II) modeset(0): 1024x768@70Hz
[    33.053] (II) modeset(0): 1024x768@75Hz
[    33.053] (II) modeset(0): 1280x1024@75Hz
[    33.053] (II) modeset(0): 1152x864@75Hz
[    33.053] (II) modeset(0): Manufacturer's mask: 0
[    33.053] (II) modeset(0): Supported standard timings:
[    33.053] (II) modeset(0): #0: hsize: 1152  vsize 864  refresh: 75  vid: 20337
[    33.053] (II) modeset(0): #1: hsize: 1280  vsize 800  refresh: 60  vid: 129
[    33.053] (II) modeset(0): #2: hsize: 1280  vsize 960  refresh: 60  vid: 16513
[    33.053] (II) modeset(0): #3: hsize: 1280  vsize 1024  refresh: 60  vid: 32897
[    33.053] (II) modeset(0): #4: hsize: 1440  vsize 900  refresh: 60  vid: 149
[    33.053] (II) modeset(0): #5: hsize: 1440  vsize 900  refresh: 75  vid: 3989
[    33.053] (II) modeset(0): #6: hsize: 1600  vsize 1200  refresh: 60  vid: 16553
[    33.053] (II) modeset(0): #7: hsize: 1680  vsize 1050  refresh: 60  vid: 179
[    33.053] (II) modeset(0): Supported detailed timing:
[    33.053] (II) modeset(0): clock: 148.5 MHz   Image Size:  160 x 90 mm
[    33.053] (II) modeset(0): h_active: 1920  h_sync: 2008  h_sync_end 2052 h_blank_end 2200 h_border: 0
[    33.053] (II) modeset(0): v_active: 1080  v_sync: 1084  v_sync_end 1089 v_blanking: 1125 v_border: 0
[    33.053] (II) modeset(0): Supported detailed timing:
[    33.053] (II) modeset(0): clock: 74.2 MHz   Image Size:  160 x 90 mm
[    33.053] (II) modeset(0): h_active: 1280  h_sync: 1720  h_sync_end 1760 h_blank_end 1980 h_border: 0
[    33.053] (II) modeset(0): v_active: 720  v_sync: 725  v_sync_end 730 v_blanking: 750 v_border: 0
[    33.053] (II) modeset(0): Ranges: V min: 24 V max: 75 Hz, H min: 26 H max: 81 kHz, PixClock max 235 MHz
[    33.053] (II) modeset(0): Monitor name: SyncMaster
[    33.053] (II) modeset(0): Supported detailed timing:
[    33.053] (II) modeset(0): clock: 74.2 MHz   Image Size:  160 x 90 mm
[    33.053] (II) modeset(0): h_active: 1920  h_sync: 2448  h_sync_end 2492 h_blank_end 2640 h_border: 0
[    33.053] (II) modeset(0): v_active: 540  v_sync: 542  v_sync_end 547 v_blanking: 562 v_border: 0
[    33.053] (II) modeset(0): Supported detailed timing:
[    33.053] (II) modeset(0): clock: 74.2 MHz   Image Size:  160 x 90 mm
[    33.053] (II) modeset(0): h_active: 1920  h_sync: 2008  h_sync_end 2052 h_blank_end 2200 h_border: 0
[    33.053] (II) modeset(0): v_active: 540  v_sync: 542  v_sync_end 547 v_blanking: 562 v_border: 0
[    33.053] (II) modeset(0): Supported detailed timing:
[    33.053] (II) modeset(0): clock: 74.2 MHz   Image Size:  160 x 90 mm
[    33.053] (II) modeset(0): h_active: 1280  h_sync: 1390  h_sync_end 1430 h_blank_end 1650 h_border: 0
[    33.053] (II) modeset(0): v_active: 720  v_sync: 725  v_sync_end 730 v_blanking: 750 v_border: 0
[    33.053] (II) modeset(0): Supported detailed timing:
[    33.053] (II) modeset(0): clock: 27.0 MHz   Image Size:  160 x 90 mm
[    33.053] (II) modeset(0): h_active: 720  h_sync: 732  h_sync_end 796 h_blank_end 864 h_border: 0
[    33.053] (II) modeset(0): v_active: 576  v_sync: 581  v_sync_end 586 v_blanking: 625 v_border: 0
[    33.053] (II) modeset(0): Supported detailed timing:
[    33.053] (II) modeset(0): clock: 27.0 MHz   Image Size:  160 x 90 mm
[    33.053] (II) modeset(0): h_active: 720  h_sync: 736  h_sync_end 798 h_blank_end 858 h_border: 0
[    33.053] (II) modeset(0): v_active: 480  v_sync: 489  v_sync_end 495 v_blanking: 525 v_border: 0
[    33.053] (II) modeset(0): Number of EDID sections to follow: 1
[    33.053] (II) modeset(0): EDID (in hex):
[    33.053] (II) modeset(0):   00ffffffffffff004c2db00500000000
[    33.053] (II) modeset(0):   0d130103801009780aee91a3544c9926
[    33.053] (II) modeset(0):   0f5054bfef80714f8100814081809500
[    33.053] (II) modeset(0):   950fa940b300023a801871382d40582c
[    33.053] (II) modeset(0):   4500a05a0000001e011d00bc52d01e20
[    33.053] (II) modeset(0):   b8285540a05a0000001e000000fd0018
[    33.053] (II) modeset(0):   4b1a5117000a202020202020000000fc
[    33.053] (II) modeset(0):   0053796e634d61737465720a202001d1
[    33.053] (II) modeset(0):   020323f14b930405140312101f202122
[    33.053] (II) modeset(0):   2309070783010000e2000f67030c0010
[    33.053] (II) modeset(0):   00b82d011d80d0721c1620102c2580a0
[    33.053] (II) modeset(0):   5a0000009e011d8018711c1620582c25
[    33.053] (II) modeset(0):   00a05a0000009e011d007251d01e206e
[    33.053] (II) modeset(0):   285500a05a0000001e8c0ad090204031
[    33.053] (II) modeset(0):   200c405500a05a000000188c0ad08a20
[    33.053] (II) modeset(0):   e02d10103e9600a05a00000018000057
[    33.053] (--) modeset(0): HDMI max TMDS frequency 225000KHz
[    33.053] (II) modeset(0): Printing probed modes for output HDMI-1
[    33.053] (II) modeset(0): Modeline "1920x1080"x60.0  148.50  1920 2008 2052 2200  1080 1084 1089 1125 +hsync +vsync (67.5 kHz eP)
[    33.053] (II) modeset(0): Modeline "1920x1080"x50.0  148.50  1920 2448 2492 2640  1080 1084 1089 1125 +hsync +vsync (56.2 kHz e)
[    33.054] (II) modeset(0): Modeline "1920x1080"x59.9  148.35  1920 2008 2052 2200  1080 1084 1089 1125 +hsync +vsync (67.4 kHz e)
[    33.054] (II) modeset(0): Modeline "1920x1080i"x60.0   74.25  1920 2008 2052 2200  1080 1084 1094 1125 interlace +hsync +vsync (33.8 kHz e)
[    33.054] (II) modeset(0): Modeline "1920x1080i"x50.0   74.25  1920 2448 2492 2640  1080 1084 1094 1125 interlace +hsync +vsync (28.1 kHz e)
[    33.054] (II) modeset(0): Modeline "1920x1080"x30.0   74.25  1920 2008 2052 2200  1080 1084 1089 1125 +hsync +vsync (33.8 kHz e)
[    33.054] (II) modeset(0): Modeline "1920x1080"x25.0   74.25  1920 2448 2492 2640  1080 1084 1089 1125 +hsync +vsync (28.1 kHz e)
[    33.054] (II) modeset(0): Modeline "1920x1080"x24.0   74.25  1920 2558 2602 2750  1080 1084 1089 1125 +hsync +vsync (27.0 kHz e)
[    33.054] (II) modeset(0): Modeline "1920x1080i"x59.9   74.18  1920 2008 2052 2200  1080 1084 1094 1125 interlace +hsync +vsync (33.7 kHz e)
[    33.054] (II) modeset(0): Modeline "1920x1080"x30.0   74.18  1920 2008 2052 2200  1080 1084 1089 1125 +hsync +vsync (33.7 kHz e)
[    33.054] (II) modeset(0): Modeline "1920x1080"x24.0   74.18  1920 2558 2602 2750  1080 1084 1089 1125 +hsync +vsync (27.0 kHz e)
[    33.054] (II) modeset(0): Modeline "1600x1200"x60.0  162.00  1600 1664 1856 2160  1200 1201 1204 1250 +hsync +vsync (75.0 kHz e)
[    33.054] (II) modeset(0): Modeline "1680x1050"x59.9  119.00  1680 1728 1760 1840  1050 1053 1059 1080 +hsync -vsync (64.7 kHz e)
[    33.054] (II) modeset(0): Modeline "1280x1024"x75.0  135.00  1280 1296 1440 1688  1024 1025 1028 1066 +hsync +vsync (80.0 kHz e)
[    33.054] (II) modeset(0): Modeline "1280x1024"x60.0  108.00  1280 1328 1440 1688  1024 1025 1028 1066 +hsync +vsync (64.0 kHz e)
[    33.054] (II) modeset(0): Modeline "1440x900"x75.0  136.75  1440 1536 1688 1936  900 903 909 942 -hsync +vsync (70.6 kHz e)
[    33.054] (II) modeset(0): Modeline "1440x900"x59.9   88.75  1440 1488 1520 1600  900 903 909 926 +hsync -vsync (55.5 kHz e)
[    33.054] (II) modeset(0): Modeline "1280x960"x60.0  108.00  1280 1376 1488 1800  960 961 964 1000 +hsync +vsync (60.0 kHz e)
[    33.054] (II) modeset(0): Modeline "1280x800"x59.9   71.00  1280 1328 1360 1440  800 803 809 823 +hsync -vsync (49.3 kHz e)
[    33.054] (II) modeset(0): Modeline "1152x864"x75.0  108.00  1152 1216 1344 1600  864 865 868 900 +hsync +vsync (67.5 kHz e)
[    33.054] (II) modeset(0): Modeline "1280x720"x60.0   74.25  1280 1390 1430 1650  720 725 730 750 +hsync +vsync (45.0 kHz e)
[    33.054] (II) modeset(0): Modeline "1280x720"x50.0   74.25  1280 1720 1760 1980  720 725 730 750 +hsync +vsync (37.5 kHz e)
[    33.054] (II) modeset(0): Modeline "1280x720"x59.9   74.18  1280 1390 1430 1650  720 725 730 750 +hsync +vsync (45.0 kHz e)
[    33.054] (II) modeset(0): Modeline "1024x768"x75.0   78.75  1024 1040 1136 1312  768 769 772 800 +hsync +vsync (60.0 kHz e)
[    33.054] (II) modeset(0): Modeline "1024x768"x70.1   75.00  1024 1048 1184 1328  768 771 777 806 -hsync -vsync (56.5 kHz e)
[    33.054] (II) modeset(0): Modeline "1024x768"x60.0   65.00  1024 1048 1184 1344  768 771 777 806 -hsync -vsync (48.4 kHz e)
[    33.054] (II) modeset(0): Modeline "832x624"x74.6   57.28  832 864 928 1152  624 625 628 667 -hsync -vsync (49.7 kHz e)
[    33.054] (II) modeset(0): Modeline "800x600"x72.2   50.00  800 856 976 1040  600 637 643 666 +hsync +vsync (48.1 kHz e)
[    33.054] (II) modeset(0): Modeline "800x600"x75.0   49.50  800 816 896 1056  600 601 604 625 +hsync +vsync (46.9 kHz e)
[    33.054] (II) modeset(0): Modeline "800x600"x60.3   40.00  800 840 968 1056  600 601 605 628 +hsync +vsync (37.9 kHz e)
[    33.054] (II) modeset(0): Modeline "800x600"x56.2   36.00  800 824 896 1024  600 601 603 625 +hsync +vsync (35.2 kHz e)
[    33.054] (II) modeset(0): Modeline "720x576"x50.0   27.00  720 732 796 864  576 581 586 625 -hsync -vsync (31.2 kHz e)
[    33.054] (II) modeset(0): Modeline "720x480"x60.0   27.03  720 736 798 858  480 489 495 525 -hsync -vsync (31.5 kHz e)
[    33.054] (II) modeset(0): Modeline "720x480"x59.9   27.00  720 736 798 858  480 489 495 525 -hsync -vsync (31.5 kHz e)
[    33.054] (II) modeset(0): Modeline "640x480"x75.0   31.50  640 656 720 840  480 481 484 500 -hsync -vsync (37.5 kHz e)
[    33.054] (II) modeset(0): Modeline "640x480"x72.8   31.50  640 664 704 832  480 489 492 520 -hsync -vsync (37.9 kHz e)
[    33.055] (II) modeset(0): Modeline "640x480"x66.7   30.24  640 704 768 864  480 483 486 525 -hsync -vsync (35.0 kHz e)
[    33.055] (II) modeset(0): Modeline "640x480"x60.0   25.20  640 656 752 800  480 490 492 525 -hsync -vsync (31.5 kHz e)
[    33.055] (II) modeset(0): Modeline "640x480"x59.9   25.18  640 656 752 800  480 490 492 525 -hsync -vsync (31.5 kHz e)
[    33.055] (II) modeset(0): Modeline "720x400"x70.1   28.32  720 738 846 900  400 412 414 449 -hsync +vsync (31.5 kHz e)
[    33.055] (II) modeset(0): Output DSI-1 connected
[    33.055] (II) modeset(0): Output HDMI-1 connected
[    33.055] (II) modeset(0): Using spanning desktop for initial modes
[    33.055] (II) modeset(0): Output DSI-1 using initial mode FIXED_MODE +0+0
[    33.055] (II) modeset(0): Output HDMI-1 using initial mode 1920x1080 +800+0
[    33.055] (==) modeset(0): Using gamma correction (1.0, 1.0, 1.0)
[    33.055] (==) modeset(0): DPI set to (96, 96)
[    33.055] (II) Loading sub module "fb"
[    33.055] (II) LoadModule: "fb"
[    33.055] (II) Loading /usr/lib/xorg/modules/libfb.so
[    33.067] (II) Module fb: vendor="X.Org Foundation"
[    33.067]    compiled for 1.20.4, module version = 1.0.0
[    33.067]    ABI class: X.Org ANSI C Emulation, version 0.4
[    33.067] (II) UnloadModule: "fbdev"
[    33.067] (II) Unloading fbdev
[    33.067] (II) UnloadSubModule: "fbdevhw"
[    33.067] (II) Unloading fbdevhw
[    33.339] (==) modeset(0): Backing store enabled
[    33.339] (==) modeset(0): Silken mouse enabled
[    33.527] (II) modeset(0): Initializing kms color map for depth 24, 8 bpc.
[    33.527] (==) modeset(0): DPMS enabled
[    33.528] (II) modeset(0): [DRI2] Setup complete
[    33.528] (II) modeset(0): [DRI2]   DRI driver: vc4
[    33.528] (II) modeset(0): [DRI2]   VDPAU driver: vc4
[    33.528] (II) Initializing extension Generic Event Extension
[    33.529] (II) Initializing extension SHAPE
[    33.529] (II) Initializing extension MIT-SHM
[    33.530] (II) Initializing extension XInputExtension
[    33.535] (II) Initializing extension XTEST
[    33.535] (II) Initializing extension BIG-REQUESTS
[    33.536] (II) Initializing extension SYNC
[    33.536] (II) Initializing extension XKEYBOARD
[    33.537] (II) Initializing extension XC-MISC
[    33.537] (II) Initializing extension SECURITY
[    33.537] (II) Initializing extension XFIXES
[    33.538] (II) Initializing extension RENDER
[    33.538] (II) Initializing extension RANDR
[    33.539] (II) Initializing extension COMPOSITE
[    33.539] (II) Initializing extension DAMAGE
[    33.539] (II) Initializing extension MIT-SCREEN-SAVER
[    33.540] (II) Initializing extension DOUBLE-BUFFER
[    33.540] (II) Initializing extension RECORD
[    33.540] (II) Initializing extension Present
[    33.541] (II) Initializing extension DRI3
[    33.541] (II) Initializing extension X-Resource
[    33.541] (II) Initializing extension XVideo
[    33.542] (II) Initializing extension XVideo-MotionCompensation
[    33.542] (II) Initializing extension SELinux
[    33.542] (II) SELinux: Disabled on system
[    33.542] (II) Initializing extension GLX
[    33.940] (II) AIGLX: Loaded and initialized vc4
[    33.940] (II) GLX: Initialized DRI2 GL provider for screen 0
[    33.940] (II) Initializing extension XFree86-VidModeExtension
[    33.941] (II) Initializing extension XFree86-DGA
[    33.941] (II) Initializing extension XFree86-DRI
[    33.941] (II) Initializing extension DRI2
[    33.948] (II) modeset(0): Damage tracking initialized
[    33.948] (II) modeset(0): Setting screen physical size to 719 x 285
[    34.122] (II) config/udev: Adding input device raspberrypi-ts (/dev/input/event0)
[    34.122] (**) raspberrypi-ts: Applying InputClass "evdev touchscreen catchall"
[    34.122] (**) raspberrypi-ts: Applying InputClass "libinput touchscreen catchall"
[    34.122] (**) raspberrypi-ts: Applying InputClass "raspberrypi-ts"
[    34.122] (II) LoadModule: "evdev"
[    34.123] (II) Loading /usr/lib/xorg/modules/input/evdev_drv.so
[    34.128] (II) Module evdev: vendor="X.Org Foundation"
[    34.128]    compiled for 1.20.3, module version = 2.10.6
[    34.128]    Module class: X.Org XInput Driver
[    34.128]    ABI class: X.Org XInput driver, version 24.1
[    34.128] (II) Using input driver 'evdev' for 'raspberrypi-ts'
[    34.128] (**) raspberrypi-ts: always reports core events
[    34.128] (**) evdev: raspberrypi-ts: Device: "/dev/input/event1"
[    34.128] (--) evdev: raspberrypi-ts: Vendor 0 Product 0
[    34.128] (--) evdev: raspberrypi-ts: Found absolute axes
[    34.128] (--) evdev: raspberrypi-ts: Found absolute multitouch axes
[    34.128] (II) evdev: raspberrypi-ts: No buttons found, faking one.
[    34.128] (--) evdev: raspberrypi-ts: Found x and y absolute axes
[    34.128] (--) evdev: raspberrypi-ts: Found absolute touchscreen
[    34.128] (II) evdev: raspberrypi-ts: Configuring as touchscreen
[    34.128] (**) evdev: raspberrypi-ts: YAxisMapping: buttons 4 and 5
[    34.128] (**) evdev: raspberrypi-ts: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
[    34.128] (**) Option "config_info" "udev:/sys/devices/platform/soc/soc:firmware/soc:firmware:touchscreen/input/input0/event0"
[    34.128] (II) XINPUT: Adding extended input device "raspberrypi-ts" (type: TOUCHSCREEN, id 6)
[    34.128] (II) evdev: raspberrypi-ts: initialized for absolute axes.
[    34.129] (**) raspberrypi-ts: (accel) keeping acceleration scheme 1
[    34.129] (**) raspberrypi-ts: (accel) acceleration profile 0
[    34.129] (**) raspberrypi-ts: (accel) acceleration factor: 2.000
[    34.129] (**) raspberrypi-ts: (accel) acceleration threshold: 4
[    34.130] (II) config/udev: Adding input device raspberrypi-ts (/dev/input/mouse0)
[    34.130] (**) raspberrypi-ts: Applying InputClass "raspberrypi-ts"
[    34.130] (II) Using input driver 'evdev' for 'raspberrypi-ts'
[    34.130] (**) raspberrypi-ts: always reports core events
[    34.130] (**) evdev: raspberrypi-ts: Device: "/dev/input/event1"
[    34.131] (WW) evdev: raspberrypi-ts: device file is duplicate. Ignoring.
[    34.170] (EE) PreInit returned 8 for "raspberrypi-ts"
[    34.170] (II) UnloadModule: "evdev"
[    34.171] (II) config/udev: Adding input device ts_uinput (/dev/input/event1)
[    34.171] (**) ts_uinput: Applying InputClass "evdev touchscreen catchall"
[    34.171] (**) ts_uinput: Applying InputClass "libinput touchscreen catchall"
[    34.171] (**) ts_uinput: Applying InputClass "raspberrypi-ts"
[    34.171] (II) Using input driver 'evdev' for 'ts_uinput'
[    34.171] (**) ts_uinput: always reports core events
[    34.171] (**) evdev: ts_uinput: Device: "/dev/input/event1"
[    34.172] (WW) evdev: ts_uinput: device file is duplicate. Ignoring.
[    34.240] (EE) PreInit returned 8 for "ts_uinput"
[    34.240] (II) UnloadModule: "evdev"
[    34.241] (II) config/udev: Adding input device ts_uinput (/dev/input/mouse1)
[    34.241] (**) ts_uinput: Applying InputClass "raspberrypi-ts"
[    34.241] (II) Using input driver 'evdev' for 'ts_uinput'
[    34.241] (**) ts_uinput: always reports core events
[    34.241] (**) evdev: ts_uinput: Device: "/dev/input/event1"
[    34.241] (WW) evdev: ts_uinput: device file is duplicate. Ignoring.
[    34.290] (EE) PreInit returned 8 for "ts_uinput"
[    34.290] (II) UnloadModule: "evdev"
[    38.059] (II) modeset(0): Disabling kernel dirty updates, not required.
[    38.821] (II) Quirked EDID physical size to 0x0 cm
[    38.821] (--) modeset(0): HDMI max TMDS frequency 225000KHz
[    38.842] (II) Quirked EDID physical size to 0x0 cm
[    38.842] (--) modeset(0): HDMI max TMDS frequency 225000KHz
[    38.845] (II) Quirked EDID physical size to 0x0 cm
[    38.845] (--) modeset(0): HDMI max TMDS frequency 225000KHz
[    38.862] (II) Quirked EDID physical size to 0x0 cm
[    38.862] (--) modeset(0): HDMI max TMDS frequency 225000KHz
[    38.864] (II) Quirked EDID physical size to 0x0 cm
[    38.865] (--) modeset(0): HDMI max TMDS frequency 225000KHz
[    39.995] (II) Quirked EDID physical size to 0x0 cm
[    39.995] (--) modeset(0): HDMI max TMDS frequency 225000KHz
[    40.003] (II) Quirked EDID physical size to 0x0 cm
[    40.003] (--) modeset(0): HDMI max TMDS frequency 225000KHz
p1r473 commented 2 years ago

I believe I have it configured properly (except for the optional service) Even still, the touch calibration works fine only in the test application, but not in the rest of the operating system

p1r473 commented 2 years ago

Re-did my /boot/config.txt file and problem went away