From 5cbade03d78f06f7a73b74ac812e4f02c5c6ce32 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 16 Jun 2026 13:08:38 +0000 Subject: [PATCH] fix: add xorg.conf.d Wacom touch config so driver starts in touch event mode Without /etc/X11/xorg.conf.d/99-wacom-touch.conf the Wacom driver initialises the finger touch device in pointer emulation mode (generating RawButtonPress/ RawButtonRelease/RawMotion). Electron never sees TouchBegin/TouchEnd events so touchstart/pointerdown(touch) never fire in the renderer. Setting Option "Gesture" "on" and Option "Touch" "on" at the driver level means the device initialises in XI2 touch mode on every X server start, regardless of any post-init xinput set-prop calls. Added to both fresh install (step 18) and upgrade function. https://claude.ai/code/session_01EyjEQLWbTXcZgbMDarf7NU --- ubuntu-based-kiosk-v1.0.3.sh | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/ubuntu-based-kiosk-v1.0.3.sh b/ubuntu-based-kiosk-v1.0.3.sh index e5a9db4..f69949e 100644 --- a/ubuntu-based-kiosk-v1.0.3.sh +++ b/ubuntu-based-kiosk-v1.0.3.sh @@ -7365,6 +7365,21 @@ LAUNCHER echo "[18/27] Configuring Openbox with AGGRESSIVE screen keep-alive..." sudo -u "$KIOSK_USER" mkdir -p "$KIOSK_HOME/.config/openbox" "$KIOSK_HOME/.config/pulse" + # Configure Wacom touch devices to start in touch event mode (not pointer emulation). + # Without this, the driver initialises in pointer mode and generates mouse events + # instead of XI2 TouchBegin/TouchEnd events — which means Electron never sees touch. + # The MatchProduct is Wacom-specific; non-Wacom touch screens work natively. + sudo mkdir -p /etc/X11/xorg.conf.d + sudo tee /etc/X11/xorg.conf.d/99-wacom-touch.conf > /dev/null <<'WACFG' +Section "InputClass" + Identifier "Wacom Touch Settings" + MatchProduct "Wacom.*Finger" + Driver "wacom" + Option "Gesture" "on" + Option "Touch" "on" +EndSection +WACFG + # Create empty xbindkeysrc to prevent errors sudo -u "$KIOSK_USER" touch "$KIOSK_HOME/.xbindkeysrc" @@ -11285,6 +11300,18 @@ upgrade_kiosk() { sudo rm -f "$config_backup" fi + # Ensure Wacom touch devices start in touch event mode (not pointer emulation) + sudo mkdir -p /etc/X11/xorg.conf.d + sudo tee /etc/X11/xorg.conf.d/99-wacom-touch.conf > /dev/null <<'WACFG' +Section "InputClass" + Identifier "Wacom Touch Settings" + MatchProduct "Wacom.*Finger" + Driver "wacom" + Option "Gesture" "on" + Option "Touch" "on" +EndSection +WACFG + # Install simplified power button handler echo " Updating power button handler..." sudo tee /usr/local/bin/kiosk-power-button.sh > /dev/null <<'PWREOF'