Re-analyzed the running nokia-argon (a1105, 43 h uptime, DSDS + Wi-Fi on) and implemented the corrected kernel/userspace optimization list. No sleep state existed at all (/sys/power/state was 0 bytes) and cpuinfo_transition_latency was UINT_MAX, while the CPU cores were already ~98% power-collapsed. Kernel (K1-K14) - Enable CONFIG_SUSPEND / SUSPEND_FREEZER / PM_WAKELOCKS / PM_AUTOSLEEP and build the zImage from the tuned config; ship it as overlay/rootfs/boot/vmlinuz plus config and System.map. Add wakeup-source to the WCNSS pronto remoteproc. - Add clock-latency-ns to cpu-opp-table in all 5 device trees (fixes CPUFREQ_ETERNAL at its source instead of a userspace rate_limit_us override). - New patch 0006: wcn36xx keep-alive 30s->120s, listen_interval=3, VM-BMS sample interval 10s->30s, power_supply_changed() only on real capacity changes, GPU devfreq polling_ms 50->100. - Retune the config for idle (HZ=100, PREEMPT_VOLUNTARY, TEO cpuidle governor, no ftrace/perf/kprobes/BPF-JIT-always-on/debug options, no serial console, DRM_FBDEV_OVERALLOC=0, lz4 zram, ENERGY_MODEL) and drop earlycon / console=ttyMSM0 from every kernel cmdline. - net.ipv6.conf.default.disable_ipv6=1 to stop ND/MLD multicast on new interfaces; keep NETFILTER/IPV6/CGROUPS and FRAMEBUFFER_CONSOLE for VPN/tethering, elogind and plymouth. Userspace (U1-U14) - Idle blanking without the passcode locker (bananarchy-idle-blank.sh + idle_locker resume hook, SXMO_UNLOCK_IDLE_TIME=60, sxmo.noidle opts out). - Guarded deep standby (bananarchy-suspend.sh / -deep-standby.sh / sxmo_autosuspend.sh / sxmo_suspend.sh), AllowSuspend=yes, doas rule, no infinite wakelock, no sxmo.nosuspend. Shipped disabled via /etc/bananarchy-no-deep-standby until the new kernel is boot-tested; freeze is preferred, mem is opt-in. - statusbar_periodics 60s->300s, no mmcli/nmcli/rfkill polls, xsetroot only on change; battery udev rule filtered and no 2 s recheck fork. - On-demand QMI DPM port, longer DSDS/modemmonitor backoffs, chrony long polls, NM wifi.scan-interval=600, bluetooth AutoEnable=false, tmpfs on /tmp, zero-log superd, GPU devfreq governor on screen-off, longer SIP/Tox timers. - Fix the cosmetic wpa_supplicant yesno typo; withdraw the disproven duplicate wpa_supplicant and soundmonitor 5 s loop items. Rebuilt images/bananarchy-nokia-argon.img with --mkinitfs: boot.img contains the new zImage + DTB byte-for-byte and no serial-console cmdline. Deployed the userspace overlay to the connected phone and verified shell/Python syntax, the idle-blank round trip, the statusbar hook and the deep-standby guard. check-rebuild.sh and sync-prebuilt-overlay.sh --check both pass. Docs: BATTERY-OPTIMIZATION-ANALYSIS.md (measurement-corrected, with implementation status), CHANGELOG.md, MANUAL.md, README.md, AGENTS.md.
60 lines
3.6 KiB
Plaintext
60 lines
3.6 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 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
|