First of all I want to say thank you for the excellent questions and willingness to help.
The application that drives / creates images for the screen is Flutter. I am using the excellent flutter-pi embedder that can be found here: GitHub - ardera/flutter-pi: A light-weight Flutter Engine Embedder for Raspberry Pi that runs without X.
For my testing purposes I am using the very basic counter app from Flutter that has a single button. It turns out that the touch actually is working. As you can see in the pictures below that there is a gap around the border and I was touching in the wrong place. So I think I am down figuring out how to get the app scaled properly to the screen. I am not using containers on the app that is properly scaled and it is the using the raspios 64 bit lite found at this page Operating system images – Raspberry Pi
Here is my docker file:
FROM balenalib/%%BALENA_MACHINE_NAME%%-debian:bullseye AS build
ENV UDEV 1
RUN usermod -a -G render root
RUN apt-get -y update
RUN apt-get -y install git
wget
gcc
g++
build-essential
WORKDIR /DEVELOP
RUN git clone --depth 1 GitHub - ardera/flutter-engine-binaries-for-arm: flutter engine binaries (libflutter_engine.so) for arm & aarch64 engine-binaries && \
cd engine-binaries &&
./install.sh
RUN apt-get -y install cmake
libgl1-mesa-dev
libgles2-mesa-dev
libegl1-mesa-dev
libdrm-dev
libgbm-dev
libgl1-mesa-dri
RUN echo “deb Index of /debian bullseye main contrib” > /etc/apt/sources.list
&& echo “deb Index of /debian-security bullseye-security main contrib” >> /etc/apt/sources.list
&& echo “ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true” | debconf-set-selections
&& apt-get update
&& apt-get install -y ttf-mscorefonts-installer
RUN apt-get -y install fontconfig
libsystemd-dev
libinput-dev
libudev-dev
libxkbcommon-dev
RUN fc-cache
RUN git clone GitHub - ardera/flutter-pi: A light-weight Flutter Engine Embedder for Raspberry Pi that runs without X.
WORKDIR /DEVELOP/flutter-pi/build
RUN cmake …
RUN make -j nproc
RUN make install
WORKDIR /DEVELOP
COPY counter/build/flutter_assets ./flutter_assets
CMD flutter-pi ./flutter_assets
For completeness here is what dmesg gives me when I unplug and plug back in the USB touch from my screen:
[ 2471.332621] usb 1-1.3: USB disconnect, device number 5
[ 2471.332653] usb 1-1.3.3: USB disconnect, device number 7
[ 2474.631159] usb 1-1.3: new high-speed USB device number 8 using xhci_hcd
[ 2474.731875] usb 1-1.3: New USB device found, idVendor=1a40, idProduct=0801, bcdDevice= 1.00
[ 2474.731899] usb 1-1.3: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[ 2474.731917] usb 1-1.3: Product: USB 2.0 Hub
[ 2474.734213] hub 1-1.3:1.0: USB hub found
[ 2474.734386] hub 1-1.3:1.0: 4 ports detected
[ 2475.043128] usb 1-1.3.3: new full-speed USB device number 9 using xhci_hcd
[ 2475.154506] usb 1-1.3.3: New USB device found, idVendor=0416, idProduct=c168, bcdDevice= 0.00
[ 2475.154523] usb 1-1.3.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 2475.154531] usb 1-1.3.3: Product: MTouch
[ 2475.154538] usb 1-1.3.3: Manufacturer: TSTP
[ 2475.154545] usb 1-1.3.3: SerialNumber: CMTP_1.0
[ 2475.165082] input: TSTP MTouch as /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.3/1-1.3.3/1-1.3.3:1.0/0003:0416:C168.0006/input/input10
[ 2475.165478] hid-generic 0003:0416:C168.0006: input,hidraw3: USB HID v1.11 Mouse [TSTP MTouch] on usb-0000:01:00.0-1.3.3/input0
[ 2475.180476] input: TSTP MTouch as /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.3/1-1.3.3/1-1.3.3:1.1/0003:0416:C168.0007/input/input11
[ 2475.180989] hid-multitouch 0003:0416:C168.0007: input,hidraw4: USB HID v1.11 Device [TSTP MTouch] on usb-0000:01:00.0-1.3.3/input1