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
6 changes: 4 additions & 2 deletions packages/omamobile-audio/bin/omamobile-speaker-protection
Original file line number Diff line number Diff line change
Expand Up @@ -392,8 +392,10 @@ read_calibration() {
command -v debugfs >/dev/null || { log "no debugfs (e2fsprogs)"; return 1; }
mkdir -p "$RUN"
# debugfs opens the device read-only unless given -w; it exits 0 whatever
# went wrong, so its messages are kept to tell a missing file apart
err=$( (umask 077 && debugfs -R "cat $CAL_PATH" "$dev" 2>&1 > "$cal") )
# went wrong, so its messages are kept to tell a missing file apart, in
# English whatever the phone's language (LC_ALL=C), since that message is
# matched below
err=$( (umask 077 && LC_ALL=C debugfs -R "cat $CAL_PATH" "$dev" 2>&1 > "$cal") )
if (($(stat -c %s "$cal" 2>/dev/null || echo 0) < ${#AMPS[@]} * CAL_WORDS * 4)); then
log "persist:$CAL_PATH is missing or short"
# only debugfs's own "File not found": an empty file, or an empty read
Expand Down
2 changes: 1 addition & 1 deletion packages/omamobile-audio/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.5.16
0.5.17
1 change: 1 addition & 0 deletions packages/omamobile-device-panther/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Omarchy Mobile's first userspace package for the Google Pixel 7 (codename panthe
| Path | Installs to | What it does |
| --- | --- | --- |
| `vendor/environment.d/40-omamobile-rotation.conf` | `/usr/lib/environment.d` | `OMAMOBILE_ROTATION_HOLD=1`: Hyprland (packages/hyprland, 0002) holds the last frame across a rotation and turns the new one in as Android does. Off in the shared build until it has run on the other phones |
| `vendor/systemd/system/omamobile-speaker-protection.service.d/50-panther-default-cal.conf` | `/usr/lib/systemd/system/omamobile-speaker-protection.service.d` | `OMAMOBILE_SPK_DEFAULT_CAL=1`: a Pixel 7 with no `speaker.cal` in persist runs its speakers on the protection firmware's default calibration, as stock does (omamobile-audio 0.5.16; c9 and `verify` stay refused). A phone with `speaker.cal` still uses it; a line in `/etc/omamobile/speaker.conf` overrides it |
| `vendor/udev/rules.d/10-omamobile-storage.rules` | `/usr/lib/udev/rules.d` | Hides `sda` and every Android partition except `userdata` from desktop tools. Same rule as the Pixel 7 Pro. The initramfs stops its guard loop before `switch_root`; the kernel's read-only flags are what remain |
| `vendor/udev/rules.d/20-omamobile-gpu-always-on.rules` | `/usr/lib/udev/rules.d` | Keeps the Mali-G710 powered while Panthor drives it: powering its domain back up needs a secure call our kernel doesn't make yet. Same rule as the Pixel 7 Pro |
| `vendor/udev/rules.d/72-omamobile-feedbackd.rules` | `/usr/lib/udev/rules.d` | Lets feedbackd drive the CS40L26 haptics (`cs40l26_vibra`). Same rule as the Pixel 7 Pro; the driver needs the phone's own `cs40l26.wmfw` (`tools/extract-vendor-firmware -d panther`) |
Expand Down
2 changes: 2 additions & 0 deletions packages/omamobile-device-panther/install
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ install -Dm644 vendor/systemd/network/20-usb-gadget.network \
"$destination/usr/lib/systemd/network/20-usb-gadget.network"
install -Dm644 vendor/environment.d/40-omamobile-rotation.conf \
"$destination/usr/lib/environment.d/40-omamobile-rotation.conf"
install -Dm644 vendor/systemd/system/omamobile-speaker-protection.service.d/50-panther-default-cal.conf \
"$destination/usr/lib/systemd/system/omamobile-speaker-protection.service.d/50-panther-default-cal.conf"
install -Dm644 vendor/systemd/logind.conf.d/10-omamobile-power-key.conf \
"$destination/usr/lib/systemd/logind.conf.d/10-omamobile-power-key.conf"
install -Dm644 vendor/systemd/sleep.conf.d/10-omamobile.conf \
Expand Down
4 changes: 4 additions & 0 deletions packages/omamobile-device-panther/test/all
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ for f in usr/bin/reboot-to \
usr/lib/udev/rules.d/70-omamobile-dma-heap.rules \
usr/lib/systemd/network/20-usb-gadget.network \
usr/lib/environment.d/40-omamobile-rotation.conf \
usr/lib/systemd/system/omamobile-speaker-protection.service.d/50-panther-default-cal.conf \
usr/lib/systemd/logind.conf.d/10-omamobile-power-key.conf \
usr/lib/systemd/sleep.conf.d/10-omamobile.conf \
usr/lib/modprobe.d/omamobile-display.conf \
Expand Down Expand Up @@ -129,6 +130,9 @@ grep -q 'Address=172.16.42.1/24' "$tmp/root/usr/lib/systemd/network/20-usb-gadge
|| fail "usb0 keeps the initramfs address"
grep -qx 'OMAMOBILE_ROTATION_HOLD=1' "$tmp/root/usr/lib/environment.d/40-omamobile-rotation.conf" \
|| fail "the Pixel 7 turns on Hyprland's rotation hold"
dropin="$tmp/root/usr/lib/systemd/system/omamobile-speaker-protection.service.d/50-panther-default-cal.conf"
grep -qx '\[Service\]' "$dropin" && grep -qx 'Environment=OMAMOBILE_SPK_DEFAULT_CAL=1' "$dropin" \
|| fail "the Pixel 7 starts its speakers on the default calibration when it has no speaker.cal"
power="$tmp/root/usr/lib/systemd/logind.conf.d/10-omamobile-power-key.conf"
grep -qx '\[Login\]' "$power" \
|| fail "the power-key drop-in needs a [Login] header"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# SPDX-License-Identifier: MIT
# Pixel 7: some units have no speaker.cal in persist (no factory speaker
# calibration), and stock's HAL then runs the protection firmware on its
# tuning's default calibration. OMAMOBILE_SPK_DEFAULT_CAL=1 does the same
# (omamobile-audio 0.5.16; stage c9 and verify stay refused on it). A phone
# that has speaker.cal still uses it. /etc/omamobile/speaker.conf is read
# after this (EnvironmentFile overrides Environment), so a line there turns
# it off again. Evidence: derekross/omarchy-mobile#427 (comment of
# 2026-11-07 16:13 UTC): a start and a playback on 0.5.16 on a Pixel 7
# without speaker.cal.
[Service]
Environment=OMAMOBILE_SPK_DEFAULT_CAL=1
2 changes: 1 addition & 1 deletion packages/omamobile-device-panther/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.12
0.1.13