Files
bananarchy/overlay/rootfs/etc/doas.d/50-sxmo.conf
T
Luxferre bc1c19a483 VM-BMS sanity fix and configurable runtime power policies
Kernel (source-only, ABI-preserving, patch 0007):
- pm8916_bms_vm.c: bound VADC raw samples to 8000..16000 (~2.34-4.69 V)
  with a 3.7 V nominal fallback in raw_to_uv(); reject out-of-window FIFO
  samples in the IRQ handler and probe pre-read. Fixes the 19.2 V /
  "Over voltage" / 100% misreport from an uninitialised 0xffff sample after
  a hard reset (also covers the OCV register reads on probe/resume).
- wcn36xx: listen_interval becomes a module parameter (1-10, default 5,
  was hardcoded 3) so the beacon skip is configurable at module load.

Runtime power policy (/etc/bananarchy-power-policy.conf):
- WIFI_LISTEN_INTERVAL drives /etc/modprobe.d/10-bananarchy-power.conf.
- MODEM_DRX_MODE (0 or 6-9) applies Qualcomm AT$QCDRX at boot and on wake.
  Standard AT+CPSMS / AT+CEDRXS are unsupported on this modem firmware.
- DSDS_SECONDARY_MODE=eco parks the secondary GW provisioning session after
  DSDS_PARK_DELAY seconds of a dark panel and restores it on wake, capturing
  the actual slot and AID. Uses QMI provisioning sessions, not SIM power-off
  (which clears PIN verification). Default active keeps both SIMs reachable.
- New bananarchy-power-policy.sh, OpenRC default-runlevel service, doas rule,
  and hooks in sxmo_wm.sh display off/on.

Live-verified on nokia-argon: DRX 6 readback, eco park/unpark round-trip,
Wi-Fi param 5, status output, module vermagic match, both SIMs registered.
Rebuilt image with --mkinitfs: initramfs and rootfs carry the new modules
(SHA-256 match), boot.img keeps the byte-identical known-good zImage + DTB.
Docs updated (BATTERY-OPTIMIZATION-ANALYSIS.md section 15, CHANGELOG,
MANUAL, README, AGENTS).
2026-11-07 20:39:06 +02:00

62 lines
3.7 KiB
Plaintext

permit persist :wheel
permit nopass :wheel as root cmd busybox args poweroff
permit nopass :wheel as root cmd busybox args reboot
permit nopass :wheel as root cmd /bin/busybox args poweroff
permit nopass :wheel as root cmd /bin/busybox args reboot
permit nopass :wheel as root cmd poweroff
permit nopass :wheel as root cmd reboot
permit nopass :wheel as root cmd /sbin/poweroff
permit nopass :wheel as root cmd /sbin/reboot
permit nopass :wheel as root cmd /usr/bin/sxmo_wifitoggle.sh
permit nopass :wheel as root cmd sxmo_wifitoggle.sh
permit nopass setenv { SXMO_OS } :wheel as root cmd /usr/bin/sxmo_bluetoothtoggle.sh
permit nopass setenv { SXMO_OS } :wheel as root cmd sxmo_bluetoothtoggle.sh
permit nopass :wheel as root cmd rc-service args bluetooth restart
permit nopass :wheel as root cmd systemctl args restart bluetooth
permit nopass :wheel as root cmd tinydm-set-session
permit nopass :wheel as root cmd rc-service args eg25-manager stop
permit nopass :wheel as root cmd rc-service args eg25-manager start
permit nopass :wheel as root cmd rc-service args modemmanager stop
permit nopass :wheel as root cmd rc-service args modemmanager start
permit nopass :wheel as root cmd rc-service args modemmanager restart
permit nopass :wheel as root cmd systemctl args start eg25-manager
permit nopass :wheel as root cmd systemctl args stop eg25-manager
permit nopass :wheel as root cmd systemctl args start ModemManager
permit nopass :wheel as root cmd systemctl args stop ModemManager
permit nopass :wheel as root cmd systemctl args restart ModemManager
permit nopass :wheel as root cmd /usr/libexec/msm-modem-uim-selection
permit nopass :wheel as root cmd msm-modem-uim-selection
permit nopass :wheel as root cmd setup-timezone
permit nopass :wheel as root cmd /sbin/setup-timezone
permit nopass :wheel as root cmd /usr/sbin/setup-timezone
permit nopass :wheel as root cmd rtcwake
permit nopass :wheel as root cmd tee args -a /sys/power/wake_lock
permit nopass :wheel as root cmd tee args -a /sys/power/wake_unlock
permit nopass :wheel as root cmd tee args /sys/power/wakeup_count
permit nopass :wheel as root cmd /usr/bin/bananarchy-suspend.sh
permit nopass :wheel as root cmd bananarchy-suspend.sh
permit nopass :wheel as root cmd tee args /sys/module/leds_msm8905_torch/parameters/next_reboot_mode
permit nopass :wheel as root cmd /usr/bin/tee args /sys/module/leds_msm8905_torch/parameters/next_reboot_mode
permit nopass :wheel as root cmd /usr/bin/sxmo_power.sh
permit nopass :wheel as root cmd sxmo_power.sh
permit nopass :wheel as root cmd /usr/bin/sxmo_sdcard.sh
permit nopass :wheel as root cmd sxmo_sdcard.sh
permit nopass :wheel as root cmd /usr/bin/bananarchy-verify-passcode
permit nopass :wheel as root cmd bananarchy-verify-passcode
permit nopass :wheel as root cmd /usr/bin/bananarchy-engmenu-exec
permit nopass :wheel as root cmd bananarchy-engmenu-exec
permit nopass :wheel as root cmd /usr/bin/bananarchy-engmenu-ctl
permit nopass :wheel as root cmd bananarchy-engmenu-ctl
permit nopass :wheel as root cmd /usr/bin/bananarchy-bt-obex
permit nopass :wheel as root cmd bananarchy-bt-obex
permit nopass :wheel as root cmd /usr/bin/bananarchy-privacy-ctl
permit nopass :wheel as root cmd bananarchy-privacy-ctl
permit nopass :wheel as root cmd /usr/bin/bananarchy-display-power-sync
permit nopass :wheel as root cmd /usr/bin/bananarchy-power-policy.sh
permit nopass :wheel as root cmd bananarchy-power-policy.sh
permit nopass :wheel as root cmd bananarchy-display-power-sync
permit nopass :wheel as root cmd /usr/bin/plymouth args quit
permit nopass :wheel as root cmd plymouth args quit
permit nopass :wheel as root cmd rc-service args hexagonrpcd-adsp-sensorspd stop
permit nopass :wheel as root cmd systemctl args stop hexagonrpcd-adsp-sensorspd