Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/omamobile-device-tegu/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand Down
10 changes: 10 additions & 0 deletions packages/omamobile-device-tegu/test/all
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand All @@ -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"
Expand Down
Original file line number Diff line number Diff line change
@@ -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"
2 changes: 1 addition & 1 deletion packages/omamobile-device-tegu/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.2.18
0.2.20