Skip to content
Closed
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-panther/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Omarchy Mobile's first userspace package for the Google Pixel 7 (codename panthe
| `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`) |
| `vendor/udev/rules.d/70-omamobile-dma-heap.rules` | `/usr/lib/udev/rules.d` | Lets the video group (and the seat's user) use the general DMA-BUF heaps, which libcamera's software ISP needs in a user session. Same rule as the Pixel 7 Pro |
| `vendor/systemd/network/20-usb-gadget.network` | `/usr/lib/systemd/network` | Sets usb0 to 172.16.42.1/24 after handover |
| `bin/omamobile-usb-rescue`, `vendor/systemd/system/omamobile-usb-rescue.service` | `/usr/bin`, `/usr/lib/systemd/system` (enabled for `multi-user.target`) | Brings USB back after a replug: the MAX77759 opens its USB2 data switch on unplug, and with no Type-C driver nothing closes it. While VBUS is valid, puts the switch back to 0x09 on the chip's I2C bus (USI13, which the board file enables). Reads two registers and writes that one; stands aside once a Type-C driver owns the chip. Same script and unit as the Pixel 7 Pro; needs `i2c-tools` |
| `vendor/systemd/logind.conf.d/10-omamobile-power-key.conf` | `/usr/lib/systemd/logind.conf.d` | A short power press does not power the phone off. Same drop-in as the Pixel 7 Pro. The long press stays the PMIC reset |
Expand Down
3 changes: 2 additions & 1 deletion packages/omamobile-device-panther/install
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ ln -sfn ../omamobile-usb-rescue.service \
"$destination/usr/lib/systemd/system/multi-user.target.wants/omamobile-usb-rescue.service"
install -Dm644 vendor/udev/rules.d/10-omamobile-storage.rules \
"$destination/usr/lib/udev/rules.d/10-omamobile-storage.rules"
for rules in 20-omamobile-gpu-always-on.rules 72-omamobile-feedbackd.rules; do
for rules in 20-omamobile-gpu-always-on.rules 72-omamobile-feedbackd.rules \
70-omamobile-dma-heap.rules; do
install -Dm644 "vendor/udev/rules.d/$rules" "$destination/usr/lib/udev/rules.d/$rules"
done
install -Dm644 vendor/systemd/network/20-usb-gadget.network \
Expand Down
5 changes: 3 additions & 2 deletions packages/omamobile-device-panther/test/all
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ if [[ -f ../omamobile-device-cheetah/src/reboot-to.c ]]; then
../omamobile-device-cheetah/vendor/systemd/sleep.conf.d/10-omamobile.conf \
|| fail "the sleep drop-in drifted from the cheetah package"
pass "the sleep drop-in matches the cheetah package"
for rules in 20-omamobile-gpu-always-on.rules 72-omamobile-feedbackd.rules; do
for rules in 20-omamobile-gpu-always-on.rules 72-omamobile-feedbackd.rules 70-omamobile-dma-heap.rules; do
cmp -s "vendor/udev/rules.d/$rules" "../omamobile-device-cheetah/vendor/udev/rules.d/$rules" \
|| fail "$rules drifted from the cheetah package"
done
pass "the GPU and feedbackd rules match the cheetah package"
pass "the GPU, feedbackd and DMA heap rules match the cheetah package"
cmp -s omamobile-device-panther.install \
../omamobile-device-cheetah/omamobile-device-cheetah.install \
|| fail "the pacman install script drifted from the cheetah package"
Expand Down Expand Up @@ -77,6 +77,7 @@ for f in usr/bin/reboot-to \
usr/lib/udev/rules.d/10-omamobile-storage.rules \
usr/lib/udev/rules.d/20-omamobile-gpu-always-on.rules \
usr/lib/udev/rules.d/72-omamobile-feedbackd.rules \
usr/lib/udev/rules.d/70-omamobile-dma-heap.rules \
usr/lib/systemd/network/20-usb-gadget.network \
usr/lib/systemd/logind.conf.d/10-omamobile-power-key.conf \
usr/lib/systemd/sleep.conf.d/10-omamobile.conf \
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# SPDX-License-Identifier: MIT
# libcamera's software ISP (and so PipeWire's libcamera plugin, which runs in
# the user's WirePlumber) allocates its output buffers from the DMA-BUF heaps.
# They are root-only by default, so without this a user session saw the
# cameras but got no debayered stream ("Could not open any dma-buf provider",
# device/cheetah/CAMERA-PLAN.md CAM5.4). Give the video group and the seat's
# user the general heaps; the camera and display pools stay the kernel's.
SUBSYSTEM=="dma_heap", KERNEL=="system|reserved|default_cma_region", GROUP="video", MODE="0660", TAG+="uaccess"