Hi all,
I’ve been working with Balena for quite a while know, and I’ve succeeded to get an UI container working with the GPU correct GPU drivers for an UP Squared. So far so good.
The interface requires user interaction, so the user has a keyboard and a mouse/touchscreen. All works fine. However, if I inplug the keyboard USB and/or the touchscreen (the problem occurs with any USB), and plug it back in, the udev monitor
sees changes inside the UI container, but the X11 session doesn’t listen to udev (I think). The X11 session just doesn’t add the USB’s, and I can’t type or click anywhere.
Some information:
Hardware: UP Squared (Atom E5 chipset)
Balena OS: 2.29.0+rev2
Docker Image used: up-board-debian:latest
Docker image runs as privileged (UDEV changes are triggered, but X11 doesn’t do anything with them)
Dockerfile:
FROM node:slim
RUN apt-get update && apt-get -y install --no-install-recommends libgtkextra-dev libgconf2-dev libnss3 libasound2 libxtst-dev libxss1 libgtk-3-0
WORKDIR /usr/src/app
COPY ./app/build/package.json ./
RUN JOBS=MAX npm install --unsafe-perm && npm cache clean --force && \
rm -rf /tmp/*
COPY ./app/build ./
RUN ["bash", "/usr/src/app/init.sh"]
FROM balenalib/up-board-debian:latest
ENV UDEV=1
RUN apt-get update \
&& apt-get -y install --no-install-recommends \
fuse \
xserver-xorg-core xserver-xorg-input-all xserver-xorg-video-intel xorg \
libnss3 libgtk-3-0 libasound2-dev \
&& rm -rf /var/lib/apt/lists/* \
&& apt-get clean
WORKDIR /usr/src/app
COPY ./app/run/ ./
COPY --from=0 /usr/src/app/dist/kiosk.AppImage /usr/src/app/kiosk.AppImage
CMD ["bash", "/usr/src/app/init.sh"]
X11 session start:
startx /usr/src/app/kiosk.AppImage
I hope some of you guys can help me out, because it’s really frustrating that some USB changes just don’t get picked up by the X11 session.
Thanks in advance!