From 78ce3dcdadea2ce71594691e82fb649819b08860 Mon Sep 17 00:00:00 2001 From: W4HO <87742609+W4HO-ham@users.noreply.github.com> Date: Sat, 14 Nov 2026 10:48:49 -0644 Subject: [PATCH] omamobile-device-tegu 0.2.20: double tap wakes the palmtop from sleep The 7 Pro's touch-wake rule (device-cheetah 0.1.55, #730) for the 9a, whose touchscreen is the same Synaptics S3908 on the same synaptics-tcm driver: linux-omarchy-mobile#248, in kernel-2026.11.13, makes the touchscreen wakeup capable and leaves it off, and this rule turns it on. On a kernel without #248 there is no power/wakeup and the rule does nothing. 0.2.19 is claimed by open pull requests (#766, and #483's rebase). --- packages/omamobile-device-tegu/README.md | 1 + packages/omamobile-device-tegu/test/all | 10 ++++++++++ .../vendor/udev/rules.d/70-omamobile-touch-wake.rules | 10 ++++++++++ packages/omamobile-device-tegu/version | 2 +- 4 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 packages/omamobile-device-tegu/vendor/udev/rules.d/70-omamobile-touch-wake.rules diff --git a/packages/omamobile-device-tegu/README.md b/packages/omamobile-device-tegu/README.md index 68cab3c65..8ac5fe148 100644 --- a/packages/omamobile-device-tegu/README.md +++ b/packages/omamobile-device-tegu/README.md @@ -24,6 +24,7 @@ packaged yet. What is here is what runs on in-tree drivers. | `vendor/systemd/system-sleep/omamobile-tegu-cpuidle` | `/usr/lib/systemd/system-sleep` | Keeps the cores out of the core power-down state (C2) through a sleep: with every core in C2 during s2idle the palmtop sometimes never woke (6 to 135 sleeps), and with C2 off for the sleep 300 of 300 came back. Disables every idle state deeper than state0 before the sleep and enables the ones it disabled after the wake, so the cores still power down while awake; does nothing on a kernel without deeper states, or while `/etc/omamobile/cpuidle-keep-across-sleep` exists (for testing C2 in the sleep). A sleep written straight to `/sys/power/state` skips it. [SLEEP-PLAN](../../device/tegu/SLEEP-PLAN.md) S1 | | `vendor/systemd/system/linux-modules-cleanup.service.d/10-omamobile-tegu.conf` | `/usr/lib/systemd/system` | Holds off Arch's old-module cleanup: our kernels come as module tarballs, not pacman packages, and the next-boot and rollback trees must stay | | `vendor/systemd/system.conf.d/10-omamobile-reboot-watchdog.conf`, `sleep.conf.d/10-omamobile.conf` | `/usr/lib/systemd` | A hung shutdown resets the phone after a minute; suspend means s2idle (no SoC sleep sequence yet, and `deep` does not wake), written to the kernel as one state (`SuspendState=freeze`), so a sleep a driver refused isn't tried a second time | +| `vendor/udev/rules.d/70-omamobile-touch-wake.rules` | `/usr/lib/udev/rules.d` | Lets a touch wake the palmtop from suspend-to-idle (double tap, with omamobile-shell's `omamobile-doubletap`): turns on the touchscreen's `power/wakeup`, which linux-omarchy-mobile#248 makes available and leaves off. The same rule line as the 7 Pro's; does nothing on a kernel without #248 | | `vendor/udev/rules.d/10-omamobile-storage.rules` | `/usr/lib/udev/rules.d` | Continues the initramfs storage guard: Android partitions stay hidden and the whole-disk node unusable | | `vendor/udev/rules.d/20-omamobile-torch.rules`, `70-omamobile-dma-heap.rules`, `72-omamobile-feedbackd.rules` | `/usr/lib/udev/rules.d` | The torch tile may set the LED's brightness; libcamera's software ISP gets the DMA-BUF heaps; feedbackd gets the haptics | | `vendor/systemd/network/20-usb-gadget.network`, `vendor/NetworkManager/conf.d/10-omamobile-usb.conf` | `/usr/lib/systemd/network`, `/usr/lib/NetworkManager/conf.d` | USB networking to a host (172.16.42.1, the host as a fallback route behind Wi-Fi); NetworkManager stays off the link | diff --git a/packages/omamobile-device-tegu/test/all b/packages/omamobile-device-tegu/test/all index 156a6b275..12754d83b 100755 --- a/packages/omamobile-device-tegu/test/all +++ b/packages/omamobile-device-tegu/test/all @@ -95,6 +95,7 @@ for f in usr/bin/reboot-to usr/bin/tegu-tcpc-switch \ usr/lib/systemd/sleep.conf.d/10-omamobile.conf \ usr/lib/udev/rules.d/10-omamobile-storage.rules usr/lib/udev/rules.d/20-omamobile-torch.rules \ usr/lib/udev/rules.d/70-omamobile-dma-heap.rules usr/lib/udev/rules.d/72-omamobile-feedbackd.rules \ + usr/lib/udev/rules.d/70-omamobile-touch-wake.rules \ usr/lib/systemd/network/20-usb-gadget.network \ usr/lib/NetworkManager/conf.d/10-omamobile-usb.conf \ usr/share/uwsm/env.d/omamobile-tegu-graphics \ @@ -104,6 +105,15 @@ for f in usr/bin/reboot-to usr/bin/tegu-tcpc-switch \ etc/pacman.d/omamobile-mirrorlist; do [[ -f $tmp/root/$f ]] || fail "install stages $f" done +# Double tap from sleep: the same rule line as the 7 Pro's, the same driver +# (compared in the repository; a build of this package alone skips that). +tw=vendor/udev/rules.d/70-omamobile-touch-wake.rules +[[ $(grep -v '^#' "$tw") == 'ACTION=="add|bind", SUBSYSTEM=="spi", DRIVER=="synaptics-tcm", TEST=="power/wakeup", ATTR{power/wakeup}="enabled"' ]] \ + || fail "the touch-wake rule turns on the synaptics-tcm touchscreen's power/wakeup and nothing else" +other=../omamobile-device-cheetah/$tw +if [[ -f $other ]]; then + [[ $(grep -v '^#' "$tw") == $(grep -v '^#' "$other") ]] || fail "the touch-wake rule matches the 7 Pro's rule line" +fi [[ -x $tmp/root/usr/lib/systemd/system-sleep/omamobile-tegu-wifi && -x $tmp/root/usr/lib/systemd/system-sleep/omamobile-tegu-nfc && -x $tmp/root/usr/lib/systemd/system-sleep/omamobile-tegu-cpuidle ]] \ || fail "the sleep hooks are not executable" diff --git a/packages/omamobile-device-tegu/vendor/udev/rules.d/70-omamobile-touch-wake.rules b/packages/omamobile-device-tegu/vendor/udev/rules.d/70-omamobile-touch-wake.rules new file mode 100644 index 000000000..ceb82a71e --- /dev/null +++ b/packages/omamobile-device-tegu/vendor/udev/rules.d/70-omamobile-touch-wake.rules @@ -0,0 +1,10 @@ +# SPDX-License-Identifier: MIT +# Omarchy Mobile, Pixel 9a: double tap to wake from suspend-to-idle, as on the +# 7 Pro. The touchscreen (Synaptics S3908 on SPI, the same synaptics-tcm +# driver) can wake the palmtop once its driver is wakeup capable +# (linux-omarchy-mobile#248, in kernel-2026.11.13); the kernel leaves that +# off, so turn it on here. omamobile-doubletap then sees the touch that woke +# the palmtop, and the shell's sleepd puts a dark palmtop back to sleep 5 s +# after a wake that lit nothing. On a kernel without #248 there is no +# power/wakeup and this does nothing. +ACTION=="add|bind", SUBSYSTEM=="spi", DRIVER=="synaptics-tcm", TEST=="power/wakeup", ATTR{power/wakeup}="enabled" diff --git a/packages/omamobile-device-tegu/version b/packages/omamobile-device-tegu/version index 51e8fdc95..3bfb9a48b 100644 --- a/packages/omamobile-device-tegu/version +++ b/packages/omamobile-device-tegu/version @@ -1 +1 @@ -0.2.18 +0.2.20