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
5 changes: 5 additions & 0 deletions device/raven/device.conf
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ SOC=gs101
# [V] upstream arch/arm64/boot/dts/exynos/google/gs101-raven.dts
COMPATIBLE="google,gs101-raven"
PACKAGE=omamobile-device-raven
# This phone's other packages in the root image, on top of the shared
# rootfs/packages.omamobile: the sensors through the AoC, and GNSS (off
# until `omamobile-gnss on`). Audio waits on the amplifiers' limits, the
# modem on its kernel.
ROOTFS_PACKAGES="omamobile-sensors omamobile-gnss"

# --- Kernel and device tree ---
DTB=exynos/google/gs101-raven.dtb
Expand Down
2 changes: 1 addition & 1 deletion packages/omamobile-device-raven/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ the counterpart of `omamobile-device-cheetah`. Bring-up and results:
| On-demand CPU frequency (safe once the thermal zones throttle) | `tmpfiles.d/omamobile-raven-cpufreq.conf` |
| The user may switch the panel off (`bl_power`) and inhibit the touchscreen, for Omarchy's display off | `udev/rules.d/20-omamobile-display.rules` |
| Wi-Fi power save on | `NetworkManager/conf.d/omamobile-raven-wifi-powersave.conf` |
| Sleep (s2idle) once locked with the panel off, behind `omarchy-toggle omamobile-sleep on`; Wi-Fi stays connected across sleep (unloaded instead after a D3 failure, or with `/etc/omamobile/wifi-unload-for-sleep`) | `omamobile-sleepd` (+ user `.service`, enabled), `omamobile-sleep` (`system-sleep/omamobile`), `sleep.conf.d/10-omamobile.conf` |
| Sleep (s2idle) once locked with the panel off, behind `omarchy-toggle omamobile-sleep on` (the watcher, `omamobile-sleepd`, is omamobile-shell's); Wi-Fi stays connected across sleep (unloaded instead after a D3 failure, or with `/etc/omamobile/wifi-unload-for-sleep`) | `omamobile-sleep` (`system-sleep/omamobile`), `sleep.conf.d/10-omamobile.conf` |
| Modem bring-up only: its PCIe driver and CPIF never load at boot, and the modem's units aren't enabled (as on main; `systemctl enable --now omamobile-modem omamobile-sitd` to use it, MODEM-PLAN) | `modprobe.d/omamobile-raven-modem.conf` |
| Bluetooth on at boot; the session waits (at most 15 s) for the adapter | `bluetooth.service` (enabled), `sddm.service.d/`, `omamobile-wait-bluetooth` |

Expand Down
111 changes: 0 additions & 111 deletions packages/omamobile-device-raven/bin/omamobile-sleepd

This file was deleted.

8 changes: 3 additions & 5 deletions packages/omamobile-device-raven/test/all
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ for f in usr/bin/omamobile-bootctl usr/bin/reboot-to usr/bin/omamobile-boot-succ
usr/lib/udev/rules.d/72-omamobile-feedbackd.rules usr/lib/systemd/system/omamobile-feedbackd-rescan.service \
usr/lib/udev/rules.d/20-omamobile-display.rules \
usr/lib/NetworkManager/conf.d/omamobile-raven-wifi-powersave.conf \
usr/bin/omamobile-sleep usr/bin/omamobile-sleepd usr/lib/systemd/user/omamobile-sleepd.service \
usr/bin/omamobile-sleep \
usr/lib/systemd/sleep.conf.d/10-omamobile.conf \
usr/share/licenses/omamobile-device-raven/LICENSE.Apache-2.0 usr/share/omamobile/device-raven/version; do
[[ -e $tmp/root/$f ]] || fail "install stages $f"
Expand All @@ -68,8 +68,7 @@ done
|| fail "the USB rescue unit is enabled by a vendor wants link"
[[ $(readlink "$tmp/root/usr/lib/systemd/system-sleep/omamobile") == /usr/bin/omamobile-sleep ]] \
|| fail "the sleep hook is linked into system-sleep"
[[ $(readlink "$tmp/root/usr/lib/systemd/user/graphical-session.target.wants/omamobile-sleepd.service") == ../omamobile-sleepd.service ]] \
|| fail "the sleep watcher is enabled by a vendor wants link"
[ ! -e "$tmp/root/usr/bin/omamobile-sleepd" ] || fail "the sleep watcher is omamobile-shell's, not this package's"
pass "install stages the package"

# omamobile-wlan-mac only ever sets a unicast, globally administered address
Expand All @@ -84,7 +83,7 @@ out=$(sed "s|/proc/device-tree/chosen/config/wlan_mac1|$tmp/dt/wlan_mac1|; s|^ip
pass "wlan-mac: only a real address from the bootloader"

# Sleep: s2idle only (deep doesn't wake), the hook powers the Wi-Fi chip off
# (pcie_gs201 too), and the watcher does nothing without its toggle
# (pcie_gs201 too)
# The modem doesn't start at boot from this package: as on main, the modem
# packages are installed but not enabled (enabling it is its own change)
for u in omamobile-modem omamobile-sitd omamobile-sitd-2 omamobile-sit-data-restore; do
Expand All @@ -94,7 +93,6 @@ done
grep -qx 'MemorySleepMode=s2idle' vendor/systemd/sleep.conf.d/10-omamobile.conf || fail "sleep is s2idle"
grep -q 'modprobe -r brcmfmac_wcc brcmfmac pcie_gs201' bin/omamobile-sleep || fail "unload mode unloads the PCIe host"
grep -q 'wifi_pci=0000:01:00.0' bin/omamobile-sleep || fail "a Wi-Fi D3 failure falls back to unload mode"
grep -q 'omarchy-toggle-enabled omamobile-sleep ||' bin/omamobile-sleepd || fail "the watcher is gated by its toggle"
pass "sleep policy"

# Policy that keeps the phone safe at boot
Expand Down

This file was deleted.

This file was deleted.

2 changes: 1 addition & 1 deletion packages/omamobile-device-raven/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.29
0.1.30