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
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user