Skip to content

omamobile-shell 0.2.129: auto-sleep on by default where the device says suspend is verified - #737

Merged
derekross merged 3 commits into
mainfrom
auto-sleep-default
Nov 14, 2026
Merged

derekross merged 3 commits into
mainfrom
auto-sleep-default

Conversation

@derekross

Copy link
Copy Markdown
Owner

Auto-sleep (omamobile-sleepd) shipped off everywhere. This turns its toggle on once, at login, on a phone whose device package installs /usr/share/omamobile/auto-sleep-default. Every other phone is unchanged, and a user who turns it off keeps it off.

The Pixel 7 Pro's device package gets the flag in #730, together with the rule that lets a double tap wake the phone from sleep (both need kernel-2026.11.13).

Tested: test/setup-user.sh (all ok). On the phone, the same toggle has been on by hand since 2026-11-13 (SUSPEND-PLAN).

🤖 Generated with Claude Code

…ys suspend is verified

omamobile-sleepd (s2idle 30 s after the screen goes off behind a secure
lock) shipped off on every phone. On the Pixel 7 Pro it is now verified:
a night asleep with about 22 h of standby, power off, and double tap
waking the phone from sleep (SUSPEND-PLAN, 2026-11-13). Turn the toggle on
once, at login, on a phone whose device package installs
/usr/share/omamobile/auto-sleep-default; every other phone keeps it off,
and a user who turns it off keeps it off. With the modem up the phone
still doesn't sleep (its inhibitor stays until linux-omarchy-mobile#232).

0.2.128 is claimed by #555 and #727.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
derekross added a commit that referenced this pull request Nov 13, 2026
Ship /usr/share/omamobile/auto-sleep-default, which omamobile-shell 0.2.129's
user setup reads (#737): suspend on this phone is verified
(SUSPEND-PLAN, 2026-11-13), and with this package's touch-wake rule a
double tap wakes it from sleep, so auto-sleep no longer costs double tap.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
derekross and others added 2 commits November 14, 2026 11:30
…to-sleep step

The package test refused any code that turns the omamobile-sleep toggle
on. #737 adds exactly one such step, gated on the device package's
auto-sleep-default. The test now allows that one line and checks that the
gate sits right above it; anything else that turns the toggle on still
fails.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
derekross added a commit that referenced this pull request Nov 14, 2026
…m sleep, auto-sleep by default, the charging boot, power off at a critical battery (#730)

* omamobile-device-cheetah 0.1.56: double tap wakes the phone from sleep

With auto-sleep on, the phone really sleeps (suspend-to-idle) 30 s after
the screen goes off, and then only the power key woke it: the touch
driver turned its interrupt off for the whole sleep. linux-omarchy-mobile#248
makes the touchscreen wakeup capable, off by default; this udev rule turns
it on for the 7 Pro's Synaptics S3908. On a kernel without #248 there is no
power/wakeup attribute and the rule does nothing.

Tested on the reference phone on 2026-11-13 with the rule's effect set by
hand (echo enabled > power/wakeup) on a kernel with #248: asleep through
omamobile-sleepd, a double tap woke it on the touchscreen's interrupt and
lit the lock screen. 0.1.54 and 0.1.55 are claimed by open pull requests
(#556, #554).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* omamobile-device-cheetah: auto-sleep on by default on the Pixel 7 Pro

Ship /usr/share/omamobile/auto-sleep-default, which omamobile-shell 0.2.129's
user setup reads (#737): suspend on this phone is verified
(SUSPEND-PLAN, 2026-11-13), and with this package's touch-wake rule a
double tap wakes it from sleep, so auto-sleep no longer costs double tap.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* device-cheetah 0.1.55: off-mode charging instead of starting the phone on its cable

A 7 Pro powered off on its cable is started by the bootloader with
androidboot.mode = "charger", where stock runs only a charging screen.
We started the whole phone (2026-11-09: both boots after a power off on
the cable read "charger").

omamobile-charger-mode-generator makes omamobile-charger.target the
default of such a boot (early folder; /etc/omamobile/charger-mode-disable
turns it off). The target starts no session, modem, Wi-Fi or AoC, and
keeps SSH over USB as on a normal boot (usb-rescue, usb-mac, ufw).
omamobile-charger-mode turns the panel off, restarts into the phone on
Power held for a second, and powers off five seconds after the cable is
out. Needs linux-omarchy-mobile#233: without it, power off restarts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* NOTES: power off restarted the 7 Pro (the PMIC's WTSR), and the charger boot

On a second 7 Pro, not the reference phone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* omamobile-device-cheetah 0.1.55: power off at a critical battery

upower's default critical action is a suspend; suspended at 2 % the phone
runs flat asleep within about 20 minutes, a brown-out with the root file
system mounted. Power off now works (linux-omarchy-mobile#233, in
kernel-2026.11.13, on the development channel), and an off phone on a
charger starts the dark charging boot (#554's charger target, carried in
this pull request). So the drop-in of SUSPEND-PLAN 6.6: PowerOff at 3 %.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Hiroyuki Ikegami <ikegam@mixallow.net>
@derekross
derekross merged commit 9be30b5 into main Nov 14, 2026
2 checks passed
@derekross
derekross deleted the auto-sleep-default branch November 14, 2026 16:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant