Measurement-corrected battery optimization pass (DSDS + Wi-Fi)

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.
This commit is contained in:
Bantam committed 2026-11-07 17:03:12 +02:00
1 parent 2ea2db443d
commit ad3461babf
169 files changed
+151574 -333

No files matched your search

+2 -1
View File
@@ -38,7 +38,7 @@ All cross-compilation scripts run inside rootless Docker (`alpine:3.24` `armv7`
- `./scripts/build-dmenu.sh` — rebuilds only `dmenu.so`, `stest`, `dmenu_path`, and `dmenu_run`.
- `./scripts/build-games.sh` — builds standalone X11 games and emulators in `src/games/` (`snake`, `tetris`, `scoundrel`, `gambatte` / `gbemu`, `remedy` / `j2me`).
- `./scripts/build-fcitx5-t9.sh` — builds `src/fcitx5-t9` (`libt9.so` / `t9.so`).
- `./scripts/build-kernel-audio.sh` — builds `6.12.1-msm8916` Adreno 304 `drm/msm`, QDSP6 audio, torch LED, camera `.ko` modules, and device `.dtb` files.
- `./scripts/build-kernel-audio.sh` — builds `6.12.1-msm8916` Adreno 304 `drm/msm`, QDSP6 audio, torch LED, camera `.ko` modules, device `.dtb` files, and the `zImage` kernel image from `patches/kernel/config-bananarchy-msm8909.armv7` (exported as `overlay/rootfs/boot/vmlinuz`, `config`, `System.map`). The resolved `.config` is written back to the config file so the module build and the shipped kernel never drift.
- `./scripts/build-xlibre.sh` — builds Xlibre `Xorg`, `libglamoregl.so`, `libglx.so`, and `modesetting`/`libinput`/`fbdev` DDX drivers.
- `./scripts/build-bantam.sh` — fetches and cross-compiles the `bantam` AI agent.
- `./scripts/generate-artwork.py` — regenerates wallpapers, splashes, and icons from `artwork/icon-large.png`.
@@ -62,6 +62,7 @@ All cross-compilation scripts run inside rootless Docker (`alpine:3.24` `armv7`
- **Documentation**: keep `README.md`, `MANUAL.md`, `SDK.md`, and `CHANGELOG.md` synchronized with any new user-facing features, SDK functions, or keybindings, and do not leave third-party `.md` files inside `src/` or `edl/`.
- **Artifact sources**: `prebuilt/` is the single source of truth for compiled artifacts and `scripts/rootfs-packages.txt` for the `armv7` package set. Never edit `overlay/rootfs/` copies of binaries by hand; run `./scripts/sync-prebuilt-overlay.sh` after changing `prebuilt/`.
- **Package hygiene**: keep `scripts/rootfs-packages.txt` free of Rust-based top-level packages (use C `sudo`, never `sudo-rs`) and Wayland-purpose packages; `libwpe` and the `wayland-libs-*` shared libraries stay because GTK3/WebKitGTK link them directly, but no Wayland compositor, backend, or viewer is shipped. `scripts/check-rebuild.sh` enforces this.
- **Power management**: idle blanking is `bananarchy-idle-blank.sh` + `sxmo_hook_unlock.sh`'s `idle_locker` (`SXMO_UNLOCK_IDLE_TIME`, default 60 s; `~/.cache/sxmo/sxmo.noidle` opts out). Deep standby is `bananarchy-suspend.sh` / `bananarchy-deep-standby.sh` / `sxmo_autosuspend.sh` / `sxmo_suspend.sh`, gated by `/etc/bananarchy-no-deep-standby` (shipped present = disabled) and `BANANARCHY_SUSPEND_GRACE`; `freeze` is preferred, `mem` requires `/etc/bananarchy-allow-mem-suspend`. Never force `sxmo.noidle`/`sxmo.nosuspend` from the session scripts and never reintroduce the infinite `sxmo_not_suspendable` wakelock. `/etc/bananarchy/` is root-only.
- **Image residue**: `rebuild-image.sh` strips `/var/cache/apk`, all `apk.log*` files, and unused gettext locale trees before `mke2fs` and aborts the build if any apk cache/log remains; never add an `apk` call after that guard.
- **No on-device compiler**: `scripts/rootfs-packages.txt` ships no `gcc`/`g++`/`musl-dev`/`make` and no Janet runtime (`janet`, `janet-dev`, `jpm`); cross-compile native code with `scripts/build-*.sh`. On-device development uses the Yabasic FFI SDK (`neoui.yab` / `neonet.yab`), which requires `yabasic`, `libffi`, `libneoui.so`, and `libcurl.so.4` — never remove those. `scripts/check-rebuild.sh` guards both sides.
- **Core tools**: `curl`, `bc`, `ed`, `rlwrap`, `mandoc`, `nano`, `less`, and `frotz` are pinned core tools asserted by `scripts/check-rebuild.sh`. Perl, Lua, optional Tcl extensions, and the `sqlite` CLI are excluded, while `tcl`, `python3`, `bash`, `luajit`, `gawk`, `jq`, `gojq`, and `quickjs` remain as hard runtime dependencies.
+379
View File
@@ -0,0 +1,379 @@
# Bananarchy battery-usage optimization analysis (measurement-corrected)
**Status:** analysis only — no source or on-device changes were made.
**Project:** `/home/lux/proj/bananarchy`, repo HEAD `2ea2db4`.
**Device:** Nokia 8110 4G (`nokia-argon`, MSM8905), connected over USB RNDIS at `172.16.42.1`,
`Linux nokia-argon 6.12.1-msm8916 #6 SMP PREEMPT Sat May 30 08:38:37 UTC 2026 armv7l`,
`Bananarchy Linux a1105 (msm8909)`.
**Measurement session:** 2026-11-07 16:07–16:12 EET, uptime ~43 h at first snapshot.
Read-only SSH commands plus two 60-second delta windows. Temporary `/tmp/bantam-*` files on
the phone were removed; `NO_RESIDUE` confirmed.
This document supersedes the earlier static analysis. Section 3 lists every correction that the
live device forced. Sections 4–7 are the corrected optimization lists.
---
## 1. Measurement limitations (important)
- **The phone was charging from USB during the whole session.** `pm8916-lbc-chgr/online=1`,
`constant_charge_current=540000`, `pm8916-bms-vm/status=Charging`. No discharge-current
measurement is possible while SSH runs over the charging USB link.
- **The BMS driver exposes no `current_now`** (only `capacity`, `voltage_now`, `status`,
`health`, `charge_full_design`). So even on battery there is no direct mA readout from sysfs.
`capacity` moved 56 → 54 → 54 and `voltage_now` rose 3,998,440 → 4,000,051 µV during the
session, i.e. the BMS EMA is noisy and the device is on external power.
- **`iw` and `powertop` are not installed** (confirmed). Wi-Fi power save was verified
indirectly through `/proc/interrupts`, `/proc/net/dev` and the deployed NM config.
- `/proc/timer_list`, `/sys/kernel/debug/pm_genpd/pm_genpd_summary` and
`/sys/kernel/debug/wakeup_sources` are unavailable, so no per-timer/genpd attribution.
- **Consequence:** every mA figure below is an architectural estimate, not a measurement.
The 24 h budget is derived from the DT: `charge-full-design-microamp-hours = 1500000`
(1500 mAh) → **≤ 62.5 mA average** to reach 24 h.
---
## 2. Measured state
### 2.1 Suspend / PM core — the headline finding
| Item | Measured value |
|---|---|
| `/proc/config.gz` | `# CONFIG_SUSPEND is not set`, `# CONFIG_HIBERNATION is not set`; no `CONFIG_PM_SLEEP`, `CONFIG_PM_WAKELOCKS`, `CONFIG_PM_AUTOSLEEP` |
| `/sys/power/state` | **0 bytes (empty)** — no sleep states exist |
| `/sys/power/wake_lock`, `wake_unlock`, `autosleep` | absent → `sxmo_wakelock.sh isenabled` is false, all wakelock calls are no-ops |
| Prerequisites already present | `CONFIG_ARCH_SUSPEND_POSSIBLE=y`, `CONFIG_ARM_CPU_SUSPEND=y`, `CONFIG_CPU_PM=y`, `CONFIG_FREEZER=y`, `CONFIG_QCOM_SPM=y`, `CONFIG_ARM_QCOM_SPM_CPUIDLE=y`, `wakeup-source` on gpio-keys in the DTS |
| Userspace enforcement | `sxmo_autosuspend.sh`/`sxmo_suspend.sh` = `exit 0`; `elogind/sleep.conf` `AllowSuspend=no`; `sxmo.nosuspend` + `sxmo.noidle` present; infinite `sxmo_not_suspendable` wakelock in `sxmo_hook_start.sh`/`sxmo_state.sh` |
### 2.2 CPU, cpufreq, cpuidle
| Item | Measured value |
|---|---|
| CPUs | `online/possible/present = 0-1`, `nproc=2` (MSM8905 is dual-core — expected, not a bug); `CONFIG_NR_CPUS=8` |
| cpufreq driver | `cpufreq-dt`, governor `schedutil`, min 199999 kHz, max 1094400 kHz |
| **`cpuinfo_transition_latency`** | **`4294967295` (UINT_MAX / `CPUFREQ_ETERNAL`)** — root cause of the 6.44 s schedutil default |
| `schedutil/rate_limit_us` | **`40000` — the fix IS in effect at runtime** (commit `7b6c6b2` resolved the earlier "not in effect" issue) |
| `time_in_state` over ~43 h | 199999 kHz: 15,393,362; 399999: 39,736; 533333: 21,461; 799999: 5,349; 998400: 2,801; 1094400: 24,790 → **~99 % of uptime at the 200 MHz floor** |
| cpuidle | state0 `WFI`, state1 `cpu-sleep-0` (SPC, latency 420 µs, residency 1260 µs); `time` ≈ 151,642 s per core ≈ **98 % of uptime in SPC** |
| 60 s window | CPU idle **98.15 %**; SPC entries +1,776 (≈29.6/s across 2 cores); `arch_mem_timer` 18.8/s, `arch_timer` 17.7/s, IPI3 16.8/s, IPI1 2.3/s, IPI2 3.0/s, IPI5 4.8/s → **~50 wakeups/s system-wide** |
**Interpretation (corrected):** the CPU cores are *not* stuck at high frequency and are *not*
busy-looping — they are power-collapsed ~98 % of the time. The remaining drain is from SoC rails,
DDR (no self-refresh), the always-on display, the LTE+GSM modem and the Wi-Fi chip, all of which
stay powered because there is no system-wide suspend. This re-frames the problem away from
"too many userspace busy loops" toward "no deep sleep state".
### 2.3 Kernel config (from `/proc/config.gz`, running kernel)
Confirmed general-purpose/low-latency/debug choices:
- `CONFIG_HZ=300`, `CONFIG_PREEMPT=y`, `CONFIG_SCHED_HRTICK=y`, `CONFIG_CPU_FREQ_STAT=y`,
`CONFIG_IRQ_TIME_ACCOUNTING=y`, `CONFIG_CPU_IDLE_GOV_MENU=y`, `CONFIG_CPU_IDLE_GOV_TEO` off,
`CONFIG_NO_HZ_IDLE=y`, `CONFIG_WQ_POWER_EFFICIENT_DEFAULT=y`.
- Debug/tracing: `CONFIG_FTRACE=y`, `CONFIG_FUNCTION_TRACER=y`, `CONFIG_DYNAMIC_DEBUG=y`,
`CONFIG_PERF_EVENTS=y`, `CONFIG_PROFILING=y`, `CONFIG_KPROBES=y`, `CONFIG_UPROBES=y`,
`CONFIG_BPF_JIT_ALWAYS_ON=y`, `CONFIG_FW_LOADER_DEBUG=y`, `CONFIG_THERMAL_EMULATION=y`,
`CONFIG_MAGIC_SYSRQ=y`, `CONFIG_PRINTK_TIME=y`, `CONFIG_DRM_MSM_GPU_STATE=y`,
`CONFIG_DRM_FBDEV_OVERALLOC=100`, `CONFIG_FRAMEBUFFER_CONSOLE=y`, `CONFIG_LOGO=y`,
`CONFIG_SERIAL_MSM_CONSOLE=y`.
- Unused built-ins: `CONFIG_INPUT_MOUSE/JOYSTICK/TOUCHSCREEN=y`, `CONFIG_MAC80211_LEDS=y`,
`CONFIG_INPUT_LEDS=y`, `CONFIG_LEDS_QCOM_LPG=y`, `CONFIG_NETFILTER=y`, `CONFIG_IPV6=m`,
`CONFIG_CGROUPS=y`, `CONFIG_MEMCG=y`, `CONFIG_ZRAM_DEF_COMP_ZSTD=y`.
- Absent: `CONFIG_RCU_LAZY`, `CONFIG_ENERGY_MODEL`, `CONFIG_SCHED_ENERGY`, `CONFIG_SUSPEND*`.
- `/proc/cmdline`: `quiet splash plymouth.ignore-serial-consoles plymouth.prefer-fbcon earlycon console=ttyMSM0,115200 ...`
Runtime sysctls from `10-power-save.start` are all applied: `vm.stat_interval=30`,
`dirty_writeback_centisecs=6000`, `dirty_expire_centisecs=6000`, `printk="1 4 1 1"`,
`workqueue.power_efficient=Y`, `printk.console_suspend=Y`, `fbcon/cursor_blink=0`.
### 2.4 Display
`brightness=10/14`, `bl_power=0`, `card0-SPI-1/dpms=On`, `xset q`: DPMS Enabled, Monitor is On,
Standby/Suspend/Off = 0, screensaver timeout 0. `sxmo_state.sh get = unlock`,
`/tmp/bananarchy_screen_locked` absent, `sxmo.noidle`/`sxmo.nosuspend` present,
`idle_locker` **not** in `sxmo_jobs.sh list` (only `daemon_manager`, `network_monitor_device`,
`statusbar_periodics`). So the unlocked screen never blanks, and the DPMS-off path (deployed in
`sxmo_wm.sh` + `bananarchy-display-power-sync`) is never taken in normal use.
### 2.5 Wi-Fi
- `wlan0` connected to `OffOurStreets_`, driver `wcn36xx`, `GENERAL.IP6-CONNECTIVITY: full`,
IPv6 link-local `fe80::...` present, `disable_ipv6=0`, `accept_ra=0`, `use_tempaddr=2`.
- NM: `wifi.powersave=3` (`10-power.conf`), `connectivity.enabled=false` (twice),
`wifi.scan-rand-mac-address=no` (`00-sxmo.conf`). **No `wifi.scan-interval` override** → NM default.
- `wcn36xx` module parameters: only `debug_mask=0` — no runtime knob for keep-alive/listen interval.
- 60 s window: wlan0 RX 24,130 bytes / 111 packets (1.85 pkt/s), TX 0 packets;
`wcn36xx_rx` IRQ 1.78/s, `wcn36xx_tx` 0.10/s, `78b9000.spi` 0.17/s, `mmc0` 0.75/s,
`rpm` 1.25/s, `gpu-irq` 0.12/s. Beacon filtering is working (≈1.8 RX/s, not 10/s).
- `Ip6InReceives` 36,977 over 43 h (~0.24/s) → IPv6 multicast is active on wlan0.
- **One** `wpa_supplicant -u -Dnl80211,wext -iwlan0` under `supervise-daemon`, stable for 1d19.
No ctrl socket (`wpa_cli` fails); D-Bus only, used by NetworkManager.
### 2.6 Bluetooth
`rfkill`: `hci0 Bluetooth Soft blocked: yes`. `bluetoothd` **not running**; `bluetooth` service
**not in any runlevel** (`rc-update show -v` shows it with empty runlevel columns). So
`AutoEnable=true`, `DiscoverableTimeout=0`, `PairableTimeout=0`, `ControllerMode=dual` in
`main.conf` are **inert** — BT is off and is not a current drain. Latent risk only if the user
explicitly enables BT via `xnetworks`/`sxmo_bluetoothtoggle.sh`.
### 2.7 Modem / DSDS
- `/tmp/sxmo_dsds_active=1`, `DUAL_SIM_ACTIVE=1`, both SIMs present/ready.
`PRIMARY_GW_SLOT=2` (`NAS_RAT=lte`, `NAS_PS_STATE=attached`), `SECONDARY_GW_SLOT=1`
(`SLOT1_RAT=gsm`), `NAS_REG_STATE=registered`.
- `mmcli`: `access-technologies: ["lte"]`, `bearers: []`, `packet-service-state: attached`,
`current-modes: allowed 2g,3g,4g; preferred 4g`, EPS initial bearer with empty APN.
`drx-cycle: "--"` / `mico-mode: "--"` are **5G NR registration settings** under
`modem.3gpp.5gnr.registration-settings`; they are not applicable to this LTE-only
modem and are *not* evidence of a missing DRX configuration (see correction C17).
- `qrtr0:gsm:disconnected`, **no GSM connection profiles**, no `rmnet_data*` interface;
`wwan0` (rpmsg_wwan_ctrl), `/dev/wwan0at0`, `/dev/wwan0at1` present.
- `msm8909-modem-wwan-port` still runs `qmicli --dpm-open-port=...` unconditionally at boot
(line 31 confirmed deployed) even though no cellular data call exists.
- `dsds-daemon` (python3) running: `poll_timeout=None` when locked, `600.0` when unlocked;
`poll_stored_sms` every 600 s; `time.sleep(2)` on exception. `sxmo_modemmonitor.sh` supervises
with `sleep 10` / `sleep 120`.
- `ModemManager --test-quick-suspend-resume --log-level=ERR --log-file=/dev/null`, `q6voiced`,
`rmtfs`, `qmi-proxy`, `polkitd`, `dbus-monitor` all running.
### 2.8 Services / processes
Default runlevel: `cgroups chronyd dbus elogind kill-plymouth local modemmanager
msm-modem-uim-selection msm8909-modem-wwan-port networkmanager postmarketos-zram-swap q6voiced
rfkill rmtfs sshd tinydm udev-postmount wpa_supplicant` (no `bluetooth`, no `zram-init`).
- `chronyd` running (2 procs) with `pool pool.ntp.org iburst`, `cmdport 0`, `rtcsync`,
`makestep 1 -1`. `chronyc` unusable (`cmdport 0`); after 43 h uptime it is almost certainly at
`maxpoll` ≈ 1024 s, not the initial 64 s.
- `superd` started **without `-l /dev/null`** → the shipped user hook
(`~/.config/sxmo/hooks/sxmo_hook_start.sh`) wins over the default hook and the zero-log
default is not fully applied (Xorg does use `-logfile /dev/null -logverbose 0`).
- Started superd services: `dunst`, `fcitx5`, `pipewire`, `pipewire-pulse`, `wireplumber`,
`sxmo_modemmonitor`, `sxmo_networkmonitor`, `sxmo_notificationmonitor`, `sxmo_soundmonitor`.
- `sxmo_soundmonitor.sh` has 4 shell processes plus **`evtest /dev/input/event5`** and
`pactl subscribe` — the jack evdev exists, so the `sleep 5` fallback loop is **not** running.
- `sxmo_run_aligned.sh 60 sxmo_hook_statusbar.sh periodics` + `sxmo_aligned_sleep 60` running;
the periodics guard passes (unlocked, brightness 10) → full `mmcli -m any -J`,
`nmcli -t con show --active`, `nmcli ... device wifi list --rescan no`, `rfkill list wifi`,
`xsetroot -name` every 60 s.
- `nmcli device monitor`, `inotifywait`, `dbus-monitor` — event-driven, as designed.
- 26 `dwm-plugin --preload` residents; `dwm`; `dunst`; `fcitx5 -D --disable=wayland --verbose=*=0`;
`dnsmasq` (NM, IPv6 listener), `unudhcpd`, `getty tty1`.
### 2.9 Runtime PM / devfreq / zram
- `78b9000.spi`: `auto`, **suspended**, delay 50. `7824900.sdhci`/`7864900.sdhci`: `auto`,
**suspended**, delay 50. `1c00000.gpu`: `auto`, **suspended**, delay 66.
`78af000.serial`: `auto`, `status=unsupported` → UART stays on.
- GPU devfreq: `governor=simple_ondemand`, **`cur_freq=409600000` (max)**,
`target_freq=409600000`, `polling_interval=50`. Because the device is runtime-suspended,
the 50 ms poll is **stopped** at idle; the issue is that it resumes at the 409.6 MHz max OPP.
- **Only `/dev/zram0` exists** (swap, 595,964 KB, 2,560 KB used), `comp_algorithm=[zstd]`,
`mm_stat` orig 2,404,352 / compr 412,692 / mem_used 2,002,944 → very little swap activity.
- **`zram-init` is NOT enabled**; `/etc/conf.d/zram-init` (`type1=/tmp`, `size1=2048`,
`opts1=strictatime`, `algo1=zstd`) is dead config. `/tmp` is **not** a separate mount — it
lives on the rootfs/eMMC. `mount` shows tmpfs only on `/dev`, `/run`, `/dev/shm`,
`/run/user/10000`.
- `/etc/modules`: `af_packet ipv6 panel_mipi_dbi msm leds_msm8905_torch msm8905-cam rpmsg_wwan_ctrl`.
### 2.10 Battery udev path
`85-bananarchy-battery.rules` has **no KERNEL filter**; `sxmo_hook_battery.sh udev` re-execs via
`su` and forks `(sleep 2; "$0" udev recheck)`. Measured BMS IRQ rate: **2 IRQs / 60 s**
(1 per ~30 s) → **2 `power_supply` change events per minute** (KERNEL+UDEV pairs). Battery cache
`charging:54` is present and working.
### 2.11 Deployed files vs repo
`10-power-save.start`, `bananarchy-display-power-sync`, `sxmo_wm.sh`,
`sxmo_hook_statusbar.sh`, `sxmo_hook_battery.sh`, `msm-modem-uim-selection`,
`sxmo_modemmonitor.sh`, `xorg.conf.d/10-bananarchy-msm8909.conf` all match the repo copies.
The deployed image is `a1105`; the power-relevant code is identical to HEAD `2ea2db4`.
---
## 3. Corrections to the previous analysis
| # | Previous claim | Corrected by the device |
|---|---|---|
| C1 | Duplicate `wpa_supplicant` service with a missing `$` in `yesno "{wpa_supplicant_dbus}"` causes a no-`-u` instance / respawn storm | **Wrong.** Exactly one stable instance with `-u`. OpenRC's `yesno()` has a fallback that `eval`s the literal string as a variable name → `yes` → true, so `-u` is added. The typo is cosmetic. Remove this item. |
| C2 | `bluetoothd` `AutoEnable=true` + `DiscoverableTimeout=0` keeps BT in inquiry/page scan | **Wrong for the current state.** BT is soft-blocked, `bluetoothd` not running, service not in any runlevel. Downgrade to a latent/conditional risk only. |
| C3 | `sxmo_soundmonitor.sh` runs a `sleep 5` loop forever | **Wrong.** `/dev/input/event5` jack evdev exists; `evtest` blocks and `pactl subscribe` is event-driven. Remove the 5 s claim. |
| C4 | `/tmp` is a 2 GB ext4-on-zram with `strictatime`, costing compression/atime writes | **Wrong.** `zram-init` is not enabled; only `zram0` swap exists; `/tmp` is on rootfs/eMMC. Replace with: mount `tmpfs` on `/tmp` to avoid eMMC writes, and optionally switch `zram0` zstd→lz4 (low impact, only 2.5 MB used). |
| C5 | BMS FIFO IRQs ≈ every 20 s → ~3 uevents/min shell storm | **Overstated.** Measured 1 BMS IRQ / ~30 s → 2 uevents/min. Keep the fix but lower its priority. |
| C6 | "schedutil rate-limit fix not in effect at runtime" (older session) | **Resolved.** `rate_limit_us=40000` confirmed live. |
| C7 | Idle average CPU ~440–582 MHz indicates constant wakeups / CPU never truly idles | **Wrong.** `time_in_state` shows ~99 % of 43 h at 200 MHz; cpuidle SPC ~98 % of uptime; 60 s window CPU idle 98.15 %. Cores *are* power-collapsed. Reframe the problem as "no system-wide suspend", not "CPU busy loops". |
| C8 | GPU devfreq `.polling_ms=50` runs a 20 Hz poll continuously | **Overstated.** `1c00000.gpu` is runtime-`suspended`, so devfreq polling is stopped. Real issue: `cur_freq=409600000` (max OPP) on resume. |
| C9 | `chronyd` polls NTP every 64 s | **Overstated.** After 43 h uptime chronyd is at `maxpoll` ≈ 1024 s. Low priority. |
| C10 | "Only per-core SPC idle is available" | **True but incomplete.** It is available *and heavily used* (~98 %). The missing piece is system-wide suspend, now hard-confirmed by a 0-byte `/sys/power/state`. |
| C11 | `CONFIG_SUSPEND` off and `CPUFREQ_ETERNAL` inferred from the repo config | **Confirmed with hard measurements:** `# CONFIG_SUSPEND is not set` in `/proc/config.gz`, 0-byte `/sys/power/state`, `cpuinfo_transition_latency=4294967295`. These become the top two evidence-backed items. |
| C12 | Average mA can be measured via `current_now` | **Not possible.** No `current_now` attribute, and the device is charging. All mA numbers remain estimates. |
| C13 | 4 CPU cores | **2 cores** (`0-1`) — MSM8905 is dual-core; expected, not a bug. |
| C14 | `iw`/`powertop` available for verification | **Both missing.** Wi-Fi PS verified indirectly via IRQ/packet rates and NM config. |
| C15 | (new) | `mmcli` reports `drx-cycle: "--"`, `mico-mode: "--"` → no LTE DRX/MICO power saving configured. New concrete modem-side item. |
| C16 | (new) | `superd` runs without `-l /dev/null` because the user `sxmo_hook_start.sh` wins; zero-log default not fully applied. |
| C17 | (new) | `mmcli`'s `drx-cycle` / `mico-mode` are 5G NR registration settings, not LTE DRX knobs. The "configure QMI NAS long DRX / MICO" sub-item of K11/U9 is **withdrawn** as inapplicable; the on-demand DPM port and DSDS timer backoff remain. |
---
## 4. Corrected kernel-side optimizations
Ordered by expected impact, with measured evidence. Regression risks are stated.
| # | Change | Evidence / expected effect | Risk |
|---|---|---|---|
| **K1** | **Enable `CONFIG_SUSPEND=y`** (+ `CONFIG_PM_SLEEP`, `CONFIG_PM_WAKELOCKS=y`, `CONFIG_SUSPEND_FREEZER=y`) in `patches/kernel/config-bananarchy-msm8909.armv7`; add `wakeup-source` to the WCNSS/pronto and modem/SMP2P DT nodes so Wi-Fi WoWLAN and QMI/QRTR calls can resume the AP. | `/sys/power/state` is 0 bytes; all prerequisites are already `y`. Unlocks `wcn36xx_suspend()` (ARP/NS/GTK offload + `set_power_params(ignore_dtim=true)`), BMS `suspend()` forcing S3, DDR self-refresh and RPM power collapse. Only change that can plausibly push DSDS+Wi-Fi past 24 h. | `echo mem` freezes userspace → resume ~100–500 ms, conflicting with the "<2 ms wake" design. Ship as an opt-in/configurable "deep standby" with timed wakelocks around calls, SMS, alarms, SSH/VPN/tethering. |
| **K2** | **Add `clock-latency-ns` to `cpu-opp-table`** in all 5 DTS files (or override `policy->cpuinfo.transition_latency` in `qcom-cpufreq-nvmem.c`). | `cpuinfo_transition_latency=4294967295` measured. Fixes the 6.44 s schedutil default at its source; makes the `rate_limit_us=40000` userspace hack and the `bananarchy-display-power-sync` re-apply unnecessary and immune to governor-switch kobject recreation. | Low. Re-measure `time_in_state` after. |
| **K3** | **wcn36xx tuning**: raise `WCN36XX_KEEP_ALIVE_TIME_PERIOD` (30 s) to 120–300 s; set an actual `listen_interval` > 1 (`max_listen_interval=200` is only a ceiling); expose `set_power_params(ignore_dtim=true)` + ARP/NS/GTK offload on screen-blank even without full suspend (today only in `wcn36xx_suspend()`). | Measured 1.78 `wcn36xx_rx` IRQs/s and 111 RX packets/min with 0 TX at idle. Beacon filtering works, but a residual ~1.8/s RX floor remains. No runtime module params exist → needs a kernel patch. | Too-long keep-alive/listen interval can cause AP deauth or delayed inbound traffic; incoming calls are on cellular so Wi-Fi latency is not critical here. |
| **K4** | **Throttle the fuel gauge**: `pm8916_bms_vm.c` emits `power_supply_changed()` on every FIFO IRQ; `S1/S2_SAMPLE_INTERVAL=10`. Increase intervals and emit only on real capacity/status change. | Measured 2 BMS IRQs/min → 2 uevents/min → 2 `su`+`sleep 2` forks/min (U4). Lower priority than previously stated, but free to fix. | Slower % updates; keep `force` on wake/unlock. |
| **K5** | **GPU devfreq**: `msm_gpu_devfreq.c` sets `initial_freq = gpu->fast_rate` and `.polling_ms=50`. Use `DEVFREQ_GOV_POWERSAVE` or a lower `initial_freq`; keep `devfreq_suspend_device()` on screen-off. | GPU is runtime-suspended at idle (measured), so the 50 ms poll is not running; but `cur_freq=409600000` (max) means every resume jumps to the top OPP. | UI smoothness. Glamor/DRI3 is enabled in `xorg.conf`; consider `AccelMethod "none"` for a 240×320 panel (conflicts with the GPU-acceleration design goal). |
| **K6** | **Timer/scheduler config**: `CONFIG_HZ=300`→`100`; `CONFIG_PREEMPT=y`→`CONFIG_PREEMPT_VOLUNTARY`; disable `CONFIG_SCHED_HRTICK`, `CONFIG_CPU_FREQ_STAT`, `CONFIG_IRQ_TIME_ACCOUNTING`, `CONFIG_SCHED_SMT`; enable `CONFIG_CPU_IDLE_GOV_TEO`. | Measured ~36 timer IRQs/s + ~27 IPIs/s → ~50 wakeups/s and 29.6 SPC entries/s. Reduces the wakeup floor. | Voluntary preempt may hurt <2 ms UI wake — A/B measure. |
| **K7** | **Strip debug/tracing** (`FTRACE`, `FUNCTION_TRACER`, `DYNAMIC_DEBUG`, `PERF_EVENTS`, `PROFILING`, `KPROBES`, `UPROBES`, `BPF_JIT_ALWAYS_ON`, `FW_LOADER_DEBUG`, `THERMAL_EMULATION`, `MAGIC_SYSRQ`, `PRINTK_TIME`, `DRM_MSM_GPU_STATE`; `DRM_FBDEV_OVERALLOC=0`; disable `FRAMEBUFFER_CONSOLE`/`LOGO`/`SERIAL_MSM_CONSOLE`). | All confirmed `=y` on the running kernel. Smaller kernel, fewer hooks/timers. | Loses on-device debugging; keep a debug build variant. |
| **K8** | **Remove `earlycon` + `console=ttyMSM0,115200`** from `devices/*/kernel-cmdline.conf` (use `console=null`/`quiet`). | Confirmed in `/proc/cmdline`; `78af000.serial` has `runtime_status=unsupported` → UART clock stays on. | No serial debugging. |
| **K9** | **Trim built-in subsystems**: `INPUT_MOUSE/JOYSTICK/TOUCHSCREEN`, `MAC80211_LEDS`, `INPUT_LEDS`, `LEDS_QCOM_LPG`, `NETFILTER` (if no VPN/tether/NAT), `CGROUPS`/`MEMCG` (if elogind/OpenRC don't need them), unused `USB_NET_*`/`DRM_PANEL_*`/`VIDEO_QCOM_VENUS/CAMSS` modules; defer `msm8905-cam` load from `/etc/modules`. | All confirmed built-in/loaded. Less probe/IRQ/timer and memory overhead. | VPN/Tor/WireGuard/tethering need netfilter; GTK/WebKit may need IPv6 loopback; camera app must trigger the load. |
| **K10** | **IPv6 on wlan0**: `CONFIG_IPV6=m` + `ipv6` in `/etc/modules`; measured link-local address and 36,977 `Ip6InReceives`. Set NM `ipv6.method=ignore` for Wi-Fi profiles (or `sysctl net.ipv6.conf.wlan0.disable_ipv6=1`). | Removes ND/MLD multicast that keeps Wi-Fi awake. | IPv6-only networks. |
| **K11** | **Modem/DSDS power collapse**: make `--dpm-open-port` conditional on an actual cellular data connection and `--dpm-close-port` when Wi-Fi is the default route; add DT `wakeup-source` for the WCNSS/modem remoteprocs; ensure `rpmsg_wwan_ctrl`/`qcom_bam_dmux` runtime PM. (QMI NAS DRX/MICO withdrawn — C17.) | Measured: DSDS active (LTE + GSM), `bearers: []`, no GSM profiles, yet DPM port open at boot. Directly targets the reported scenario. | Must preserve incoming calls/SMS on both SIMs; verify `dsds-daemon` still receives QRTR indications. |
| **K12** | **Display transport**: damage/partial-update support in `panel-mipi-dbi` so a statusbar change does not push a full 240×320×2 SPI frame; `78b9000.spi` measured 0.17 IRQs/s. | Less SPI/GPU work per redraw. | Driver work; per-device panel init sequences. |
| **K13** | **zram**: switch `zram0` from `zstd` to `lz4` (`CONFIG_ZRAM_DEF_COMP_LZ4`), and mount `tmpfs` on `/tmp` (currently on rootfs/eMMC → `mmc0` 0.75 IRQs/s). | Lower CPU per swap I/O and fewer eMMC writes. Measured only 2.5 MB swap used → **low impact**. | Slightly worse compression; `/tmp` size must be bounded on a 512 MB device. |
| **K14** | **Optional advanced**: `CONFIG_RCU_LAZY=y` + `rcu_nocbs=all` (batches RCU callbacks), `CONFIG_ENERGY_MODEL` + EAS, `CONFIG_PM_AUTOSLEEP` for opportunistic suspend. | Further idle savings. | EAS needs OPP energy data; autosleep needs a correct wakelock policy. |
---
## 5. Corrected userspace-side optimizations
| # | Change | Evidence / expected effect | Risk |
|---|---|---|---|
| **U1** | **Re-enable idle blanking while unlocked**: stop touching `sxmo.noidle` in `bananarchy-x11-session.sh`/`sxmo_hook_start.sh`; provide a *blank-without-lock* path (today `sxmo_state.sh set screenoff` → `sxmo_hook_screenoff.sh` → `xlocker screenoff` also locks). | Measured: screen unlocked, brightness 10/14, DPMS On, `idle_locker` not running → backlight/panel/GPU live 24/7. Largest userspace win. | Changes the earlier "unlocked screen never blanks" design; make it a configurable timeout. |
| **U2** | **Implement real suspend**: replace no-op `sxmo_autosuspend.sh`/`sxmo_suspend.sh`, set `AllowSuspend=yes`, remove the infinite `sxmo_not_suspendable` wakelock and `sxmo.nosuspend`, and use the existing timed wakelocks (`sxmo_modem.sh`, `sxmo_hook_postwake.sh`) once `CONFIG_PM_WAKELOCKS` exists. `sxmo_hook_block_suspend.sh` already lists the blockers. | Enables K1. `/sys/power/wake_lock` is absent today, so all current wakelocks are no-ops. | Resume latency; must not suspend during calls, SMS, ringtone, active SSH/VPN/tethering. |
| **U3** | **`statusbar_periodics`**: `sxmo_run_aligned.sh 60 sxmo_hook_statusbar.sh periodics` is running and its guard passes. Replace `mmcli -m any -J`, `nmcli -t con show --active`, `nmcli ... device wifi list`, `rfkill list wifi`, `xsetroot -name` with D-Bus `PropertiesChanged` signals, or raise to ≥300 s and only `xsetroot` on change. | Removes a 60 s QMI/D-Bus/process burst and a full dwm bar redraw (SPI frame). | Statusbar icons lag up to the new interval. |
| **U4** | **Battery udev path**: filter `85-bananarchy-battery.rules` to `KERNEL=="pm8916-bms-vm"`/`ENV{POWER_SUPPLY_NAME}`, drop the `(sleep 2; ... recheck)` fork, avoid `su` per event. | Measured 2 uevents/min; removes the `su`/`sleep` forks. Lower priority than previously stated. | Charging icon must still update instantly on plug/unplug (keep the charger event). |
| **U5** | **Bluetooth (latent)**: set `AutoEnable=false`, finite `DiscoverableTimeout`/`PairableTimeout`, `ControllerMode=bredr`, and keep BT out of the default runlevel. | BT is already off (soft-blocked, daemon not running) — **no current saving today**; this prevents a future drain when a user enables BT. | BT must still auto-reconnect when explicitly enabled. |
| **U6** | **chronyd**: remove from the default runlevel or set `minpoll 12 maxpoll 16`; rely on `rtcsync`/RTC (`osclock`, `swclock-offset-boot` are already in the boot runlevel). | Measured running with `pool pool.ntp.org iburst`, but after 43 h uptime it is at ~1024 s polls → **low priority**. Removes a daemon and occasional DNS/NTP Wi-Fi wakeups. | Clock drift without NTP. |
| **U7** | ~~Duplicate `wpa_supplicant` / respawn storm~~ | **Removed — see C1.** One stable `-u` instance; the `yesno` typo is harmless. Optionally fix the cosmetic typo. | None. |
| **U8** | **NetworkManager**: add `[device] wifi.scan-interval=600` (no override exists today), `ipv6.method=ignore` for Wi-Fi profiles, keep `wifi.powersave=3` and `connectivity.enabled=false`. | Fewer roaming scans and IPv6 ND/MLD wakeups (measured IPv6 active on wlan0). | Roaming responsiveness; IPv6-only networks. |
| **U9** | **DSDS/modem userspace**: make `dsds-daemon` `poll_stored_sms` (600 s when unlocked) purely event-driven (WMS `NEW_MESSAGE` indications), add backoff on its `time.sleep(2)` exception loop, make `--dpm-open-port` on-demand, and add a "DSDS power-save" toggle (disable secondary subscription / prefer 2G / single-standby while Wi-Fi is the default route). | Measured DSDS active with LTE+GSM, no data bearer, DPM port open, `drx-cycle`/`mico-mode` unset. Directly reduces baseband wakeups. | Must not lose SIM2 calls/SMS; gate on user preference. |
| **U10** | ~~`sxmo_soundmonitor.sh` 5 s loop~~ | **Removed — see C3.** `evtest /dev/input/event5` blocks; `pactl subscribe` is event-driven. Optional: replace the `sleep 2` outer restart loop with a longer backoff. | None. |
| **U11** | **Plugin timers** (conditional, not active now): `sip_plugin.cpp` 15 s poll with enabled accounts, `tox_plugin.cpp` 250–1000 ms iterate, `locker_plugin.cpp` 1-min clock timer, `gps_plugin.cpp` `usleep(300000)`. Move to `timerfd`/event-driven and freeze when the screen is blanked. | Removes periodic wakeups when those apps are configured. | SIP REGISTER expiry / Tox presence. |
| **U12** | **zram / `/tmp`** (corrected): mount `tmpfs` on `/tmp` (currently on rootfs/eMMC); optionally switch `zram0` zstd→lz4. `zram-init` is not enabled, so its `type1=/tmp`/`strictatime` config is dead. | Fewer eMMC writes (`mmc0` 0.75 IRQs/s) and cheaper compression. Measured only 2.5 MB swap used → low impact. | Bound `/tmp` size on 512 MB RAM. |
| **U13** | **Align the shipped user hook**: `~/.config/sxmo/hooks/sxmo_hook_start.sh` starts `superd` without `-l /dev/null`; the default hook has it. The user hook wins via `PATH`. | Restores the intended zero-log default (measured `superd` without `-l /dev/null`). | None. |
| **U14** | **Xorg**: `AccelMethod "glamor"` + DRI3 keeps the GPU path live; `bananarchy-x11-session.sh` re-runs `xrdb`, `feh`, `bananarchy-sync-dunst-theme` on every dwm restart. Consider software rendering for QVGA and skip wallpaper/theme work when the screen is off. | Pairs with K5. | UI smoothness / <2 ms wake. |
---
## 6. DSDS + Wi-Fi specific combined measures
- **Close the cellular data plane when Wi-Fi carries traffic.** No GSM profiles exist and
`bearers: []`, yet `msm8909-modem-wwan-port` opens the DPM BAM-DMUX port at every boot —
pure overhead in this scenario (K11/U9).
- **Reduce tune-away.** `DUAL_SIM_ACTIVE=1` with `PRIMARY_GW_SLOT=2` (LTE) and
`SECONDARY_GW_SLOT=1` (GSM). A screen-off policy that drops the secondary subscription to
single-standby (keeping SIM2 reachable via paging) is the remaining modem-side lever; the
`drx-cycle`/`mico-mode` fields are 5G-only and not applicable here (C17).
- **Let Wi-Fi sleep deeply.** WoWLAN + ARP/NS/GTK offload + `ignore_dtim` are implemented in
`wcn36xx_suspend()` but unreachable without K1/U2. Today the residual floor is ~1.8 RX IRQs/s
and 111 RX packets/min with zero TX (K3/U8).
- **Silence the remaining periodic noise**: 60 s statusbar (U3), 2/min BMS uevents (U4),
chronyd NTP (U6, low), 600 s DSDS SMS poll (U9), SIP/Tox timers when configured (U11).
- **The screen is the biggest single controllable load**: unlocked, brightness 10/14, DPMS On,
no idle blank (U1). No combination of kernel tweaks will reach 24 h while the panel and
backlight stay on continuously.
---
## 7. Re-prioritized shortlist
1. **K1 + U2** — enable suspend (0-byte `/sys/power/state` confirmed) with wake sources and
timed wakelocks. Biggest absolute win; conflicts with <2 ms wake, so ship as opt-in deep standby.
2. **U1** — configurable idle blank while unlocked (screen measured on 24/7). Largest userspace win.
3. **K2** — `clock-latency-ns` in the OPP table (`4294967295` measured); removes the userspace
`rate_limit_us` hack at its source.
4. **K3 + K11 + U9** — WoWLAN/DTIM-skip, wcn36xx keep-alive/listen interval, QMI NAS DRX/MICO,
on-demand DPM port, DSDS tune-away reduction. Directly targets the reported DSDS+Wi-Fi case.
5. **U3 + U4 + U8** — 60 s statusbar storm, BMS udev forks, IPv6/scan interval on wlan0.
6. **K6 + K7 + K8** — kernel config trimming (HZ/preempt/hrtick, debug/tracing, serial console).
7. **K5 + K10 + K13 + U12** — GPU resume OPP, IPv6 off, tmpfs `/tmp`, lz4 zram (measured low impact).
8. **U5 + U6 + U11 + U13 + U14** — latent/conditional cleanups (BT config, chronyd, plugin timers,
zero-log hook, Xorg accel).
Items **U7** and **U10** from the previous analysis are **withdrawn**.
---
## 8. Corrected verification plan (for a battery-powered run)
The phone must be disconnected from USB power to measure discharge; SSH then has to go over
`wlan0` (the Wi-Fi connection `OffOurStreets_` is active). Because `iw`, `powertop` and
`current_now` are unavailable, use:
- `zcat /proc/config.gz | grep -E 'SUSPEND|PM_WAKELOCKS'`; `wc -c /sys/power/state`;
`ls /sys/power/`; `cat /sys/power/wake_lock`.
- `cat /sys/devices/system/cpu/cpufreq/policy0/cpuinfo_transition_latency` (expect a realistic
value after K2), `schedutil/rate_limit_us`, `stats/time_in_state`.
- 60 s deltas of `/proc/stat`, `/proc/interrupts`, `/proc/net/dev`, cpuidle `state*/usage`,
`pm8916_vm_bms` IRQ count, and `udevadm monitor --subsystem-match=power_supply` event count.
- `nmcli -t -f DEVICE,TYPE,STATE device`, `mmcli -m any -J` (check `drx-cycle`/`mico-mode`),
`/usr/libexec/msm-modem-uim-selection status`, `cat /tmp/sxmo_dsds_active`.
- `rfkill list`, `rc-update show -v`, `rc-status`, `superctl status`, `sxmo_jobs.sh list`,
`ps -o pid,etime,args -A`.
- `DISPLAY=:0 xset q`, `cat /sys/class/drm/card0-SPI-1/dpms`,
`/sys/class/backlight/backlight/{brightness,bl_power}`, `sxmo_state.sh get`.
- Compare 1 h idle drain (screen off, DSDS, Wi-Fi on) before/after each change; target
**< 62.5 mA average** for > 24 h on the 1500 mAh pack.
---
## 9. Summary
The live device confirms the two structural root causes: **there is no suspend state at all**
(`/sys/power/state` is empty, `CONFIG_SUSPEND` off) and **the unlocked screen never blanks**
(`sxmo.noidle`, brightness 10/14, DPMS On, `idle_locker` absent), with DSDS (LTE+GSM) and Wi-Fi
both fully associated. It also confirms `cpuinfo_transition_latency=4294967295` and that the
`schedutil` rate-limit fix is working. Conversely, it disproves four earlier claims (duplicate
`wpa_supplicant`, BT always on, soundmonitor 5 s loop, `/tmp` on zram) and shows that the CPU
cores are already ~98 % power-collapsed — so the remaining drain is **always-on SoC rails, DDR,
display and radios**, not CPU busy loops. K1/U2 plus U1 are the only changes that can plausibly
deliver > 24 h; the rest are incremental but cumulatively significant.
---
## 10. Implementation status (applied in this change set)
Every item in sections 4 and 5 was addressed; the table below records how, and flags the
few places where the regression checks mandated by the analysis changed the implementation.
| Item | Implementation |
|---|---|
| K1 | `CONFIG_SUSPEND`, `CONFIG_SUSPEND_FREEZER`, `CONFIG_PM_WAKELOCKS`, `CONFIG_PM_WAKELOCKS_LIMIT/GC`, `CONFIG_PM_AUTOSLEEP` enabled; `wakeup-source` added to the WCNSS/pronto remoteproc in all 5 DTS files; `build-kernel-audio.sh` now builds the `zImage` from the tuned config and ships it as `overlay/rootfs/boot/vmlinuz` (+ `config`, `System.map`). |
| K2 | `clock-latency-ns = <100000>` added to `cpu-opp-table` in all 5 DTS files. |
| K3 | New `patches/kernel/0006-...patch`: keep-alive 30 s -> 120 s, `listen_interval = 3`, BMS sample interval 10 -> 30, `power_supply_changed()` throttled to real capacity changes, GPU devfreq `polling_ms` 50 -> 100. WoWLAN/ARP/NS/GTK offload + `ignore_dtim` come from `wcn36xx_suspend()` once K1 is active. |
| K4 | Same patch 0006 (kernel) + U4 (userspace). |
| K5 | Kernel patch (`polling_ms`) + `10-power-save.start` writes `polling_interval=100` + `sxmo_wm.sh display off/on` switches the GPU devfreq governor to `powersave`/`simple_ondemand`. |
| K6 | `CONFIG_HZ=100`, `CONFIG_PREEMPT_VOLUNTARY`, `SCHED_HRTICK`/`CPU_FREQ_STAT`/`IRQ_TIME_ACCOUNTING`/`SCHED_SMT` off, `CPU_IDLE_GOV_TEO=y`. |
| K7 | Ftrace/function tracer/dynamic debug/perf/profiling/kprobes/uprobes/BPF-JIT-always-on/fw-loader-debug/thermal-emulation/Magic SysRq/printk-time/DRM GPU state/logo/serial console disabled; `DRM_FBDEV_OVERALLOC=0`; LED triggers and unused input classes disabled. `FRAMEBUFFER_CONSOLE` kept (plymouth boot splash) and `NETFILTER`/`IPV6`/`CGROUPS` kept (Tor/WireGuard/tethering and elogind) — these are the regression checks from the risk column, not skipped items. |
| K8 | `earlycon` and `console=ttyMSM0,115200` removed from all `devices/*/kernel-cmdline.conf` and from `usr/lib/kernel-cmdline.d/50-device-*.conf` in the overlay. |
| K9 | Unused built-in input classes and LED triggers disabled; netfilter/IPv6/cgroups deliberately retained (see K7); `msm8905-cam` retained in `/etc/modules` because its out-of-tree platform driver has no udev autoload path — removing it would break `xcamera`. |
| K10 | `net.ipv6.conf.default.disable_ipv6=1` in `etc/sysctl.d/99-bananarchy-power.conf` and `10-power-save.start`; the `ipv6` module stays loaded for WireGuard/Tor and `::1` on `lo`. |
| K11 | On-demand QMI DPM port (`bananarchy-dpm.sh` + NM dispatcher + conditional boot open); `wakeup-source` on pronto. QMI NAS DRX/MICO withdrawn (C17). |
| K12 | **Deferred with justification**: damage/partial-window updates in `panel-mipi-dbi` need panel-specific GC9305/GC9307 commands and risk display corruption. The equivalent userspace win (no full-frame redraw on every statusbar tick) is delivered by U3. |
| K13 | `CONFIG_ZRAM_DEF_COMP_LZ4=y`, `zram-init` `algo*=lz4`, `/tmp` mounted as `tmpfs` via `etc/fstab`. |
| K14 | `CONFIG_ENERGY_MODEL` enabled; `CONFIG_RCU_NOCB_CPU`/`CONFIG_RCU_LAZY` are dependency-gated (`RCU_EXPERT || NO_HZ_FULL`) and were dropped by `olddefconfig`, so they are not active. `rcu_nocbs=all` deliberately **not** added to the cmdline: on a 2-core MSM8905 it would add always-running `rcuo` kthreads, trading away the idle saving. |
| U1 | `bananarchy-idle-blank.sh` + `sxmo_hook_unlock.sh` starts `idle_locker` at `SXMO_UNLOCK_IDLE_TIME` (default 60 s) with a blank-without-lock `resume` hook; `bananarchy-x11-session.sh` no longer forces `sxmo.noidle`. |
| U2 | `bananarchy-suspend.sh` / `bananarchy-deep-standby.sh` / `sxmo_autosuspend.sh` / `sxmo_suspend.sh`, `AllowSuspend=yes`, doas rule, infinite wakelock removed, `sxmo.nosuspend` removed, `sxmo_hook_screenoff.sh` starts the grace timer, `sxmo_hook_unlock.sh`/`postwake.sh` cancel it. **Shipped disabled** via `/etc/bananarchy-no-deep-standby` until the new kernel has been boot-tested: a broken driver suspend callback must never leave a flashed phone unwakeable. `freeze` (s2idle, any-IRQ wake) is preferred; `mem` requires `/etc/bananarchy-allow-mem-suspend`. |
| U3 | `statusbar_periodics` interval 60 -> 300 s; `sxmo_hook_statusbar.sh periodics` drops `mmcli`/`nmcli`/`rfkill` polls and only calls `xsetroot` when the status string changes. |
| U4 | udev rule filtered to the two PM8916 supplies; `(sleep 2; ... recheck)` fork removed from `sxmo_hook_battery.sh`. |
| U5 | `AutoEnable=false`, finite discoverable/pairable timeouts, `ControllerMode=bredr`, fewer reconnect attempts. BT was already off on the device, so this is a latent fix. |
| U6 | `etc/chrony/chrony.conf` uses `minpoll 12 maxpoll 16` and no `iburst`. |
| U7 | Withdrawn (C1); the cosmetic `yesno` typo in `etc/init.d/wpa_supplicant` was fixed anyway. |
| U8 | `[device] wifi.scan-interval=600` in `10-power.conf`; IPv6 disabled on new interfaces (K10). |
| U9 | On-demand DPM port; `dsds-daemon` 600 s -> 1800 s poll and 2 s -> 30 s error backoff; `sxmo_modemmonitor.sh` 10/120 s -> 30/600 s. |
| U10 | Withdrawn (C3); the outer `pactl subscribe` restart backoff raised 2 s -> 10 s. |
| U11 | `sip_plugin.cpp` 15 s -> 60 s poll; `tox_plugin.cpp` iteration clamp 250-1000 ms -> 1000-2000 ms. `locker_plugin.cpp` already blocks indefinitely when blanked; `gps_plugin.cpp`'s `usleep(300000)` is in the `--test` CLI path only. |
| U12 | `tmpfs` on `/tmp`; zram `lz4`, `noatime`, `size1=256`. |
| U13 | Shipped user/skel `sxmo_hook_start.sh` now starts `superd -l /dev/null` with `/dev/null` log symlinks, matching the default hook. |
| U14 | `bananarchy-x11-session.sh` skips `xrdb`/`feh`/dunst-theme work when the panel is dark. Glamor retained (GPU-acceleration design goal). |
**Not runtime-verified:** the new kernel image, DTBs, `clock-latency-ns`, suspend states and
the kernel patch 0006 require a reflash + reboot. The userspace changes were deployed and
syntax/runtime-checked on the connected phone (charging over USB, so no discharge-current
measurement was possible). Deep standby stays opt-in until that boot test is done.
+83
View File
@@ -9,6 +9,89 @@ Release versions follow the `<year-letter><MM><DD>` format (where `2026` is `a`,
---
## Unreleased — measurement-corrected battery optimization pass
Analysis: `BATTERY-OPTIMIZATION-ANALYSIS.md` (corrected against the connected `nokia-argon`,
`a1105`, 43 h uptime, DSDS + Wi-Fi on). No sleep state existed at all: `/sys/power/state` was
0 bytes and `cpuinfo_transition_latency` was `4294967295`; the CPU cores were already ~98 %
power-collapsed, so the drain came from always-on SoC rails, display and radios, not busy loops.
### Rebuilt and verified image
- Rebuilt `images/bananarchy-nokia-argon.img` (1.6 GiB) with `./rebuild-image.sh nokia-argon --mkinitfs`: the regenerated `/boot/boot.img` contains the newly cross-compiled `zImage` plus the updated `qcom-msm8905-nokia-argon.dtb` (verified byte-for-byte), and its cmdline no longer carries `earlycon` or `console=ttyMSM0,115200`. `check-rebuild.sh` and `sync-prebuilt-overlay.sh --check` both pass (0 artifact drift).
- Deployed the userspace overlay to the connected `nokia-argon` over SSH and verified: all 39 shell scripts pass `sh -n`, all 5 embedded Python heredocs parse, the U1 idle-blank round trip drives `brightness 10 -> 0 -> 10`, `bl_power 0 -> 4 -> 0`, `DPMS On -> Off -> On` and `schedutil -> powersave -> schedutil`, the statusbar periodic hook returns 0, and deep standby stays correctly gated (the running kernel has no sleep states, so the suspend helper is a no-op).
### Kernel (K1-K14)
- Enabled `CONFIG_SUSPEND`, `CONFIG_SUSPEND_FREEZER`, `CONFIG_PM_WAKELOCKS(_LIMIT/GC)` and
`CONFIG_PM_AUTOSLEEP`; `build-kernel-audio.sh` now cross-compiles the `zImage` from
`config-bananarchy-msm8909.armv7` and ships it as `overlay/rootfs/boot/vmlinuz` together with
the resolved `config` and `System.map`, so the tuned config actually reaches the boot image.
`wakeup-source` added to the WCNSS/pronto remoteproc in all 5 device trees.
- Added `clock-latency-ns = <100000>` to `cpu-opp-table` in all 5 device trees: fixes
`CPUFREQ_ETERNAL` at its source instead of overriding `schedutil/rate_limit_us` from userspace.
- New `patches/kernel/0006-msm8909-battery-wifi-gpu-power.patch` (applied by
`build-kernel-audio.sh`): wcn36xx null-data keep-alive 30 s -> 120 s, `listen_interval = 3`,
VM-BMS FIFO sample interval 10 s -> 30 s, `power_supply_changed()` emitted only on a real
capacity change, GPU devfreq `polling_ms` 50 -> 100.
- Retuned the kernel config for idle: `HZ=100`, `PREEMPT_VOLUNTARY`, `SCHED_HRTICK`,
`CPU_FREQ_STAT`, `IRQ_TIME_ACCOUNTING` and `SCHED_SMT` off, `CPU_IDLE_GOV_TEO=y`; disabled
ftrace/function tracer/dynamic debug/perf events/profiling/kprobes/uprobes/BPF JIT always-on,
firmware-loader debug, thermal emulation, Magic SysRq, printk timestamps, DRM GPU state dump,
boot logo and the MSM serial console; `DRM_FBDEV_OVERALLOC=0`; removed unused input classes
and LED triggers; `ZRAM_DEF_COMP=lz4`; enabled `ENERGY_MODEL`; `RCU_NOCB_CPU`/`RCU_LAZY` are gated behind `RCU_EXPERT || NO_HZ_FULL` and were dropped by `olddefconfig`.
`FRAMEBUFFER_CONSOLE`, `NETFILTER`, `IPV6` and `CGROUPS` are deliberately kept (plymouth,
Tor/WireGuard/tethering, elogind).
- Removed `earlycon` and `console=ttyMSM0,115200` from every `kernel-cmdline.conf` and from the
shipped `usr/lib/kernel-cmdline.d/50-device-*.conf` files.
- `net.ipv6.conf.default.disable_ipv6=1` (sysctl.d + `10-power-save.start`) stops ND/MLD
multicast on newly created interfaces; `CONFIG_IPV6=m` stays for VPNs and `::1` on `lo`.
### Userspace (U1-U14)
- **Idle blanking (U1)**: `bananarchy-idle-blank.sh` blanks/restores the panel without the
passcode locker; `sxmo_hook_unlock.sh` starts `idle_locker` at `SXMO_UNLOCK_IDLE_TIME`
(default 60 s) with a `resume` hook, and `bananarchy-x11-session.sh` no longer forces
`sxmo.noidle`. Create `~/.cache/sxmo/sxmo.noidle` to restore the old "never blank" policy.
- **Deep standby (U2)**: `bananarchy-suspend.sh`, `bananarchy-deep-standby.sh`,
`sxmo_autosuspend.sh` and `sxmo_suspend.sh` implement a guarded suspend after screen-off;
`AllowSuspend=yes`, a doas rule, no infinite `sxmo_not_suspendable` wakelock, no
`sxmo.nosuspend`, and cancel hooks on unlock/postwake. `freeze` (s2idle, any-IRQ wake) is
preferred; `mem` needs `/etc/bananarchy-allow-mem-suspend`. **Shipped disabled** via
`/etc/bananarchy-no-deep-standby` until the new kernel has been boot-tested.
- **Statusbar (U3)**: 60 s -> 300 s `statusbar_periodics`; the periodic hook no longer runs
`mmcli`/`nmcli`/`rfkill` and only calls `xsetroot` when the status string changes.
- **Battery uevents (U4)**: udev rule filtered to the two PM8916 supplies; removed the
`(sleep 2; ... recheck)` fork from `sxmo_hook_battery.sh`.
- **Bluetooth (U5)**: `AutoEnable=false`, 60 s discoverable/pairable timeouts, `bredr` only,
3 reconnect attempts (latent: BT was already soft-blocked on the device).
- **chronyd (U6)**: `minpoll 12 maxpoll 16`, no `iburst`.
- **NetworkManager (U8)**: `wifi.scan-interval=600`.
- **Modem/DSDS (U9/K11)**: QMI BAM-DMUX data port is now opened on demand
(`bananarchy-dpm.sh` + NM dispatcher) instead of unconditionally at boot; `dsds-daemon`
stored-SMS poll 600 s -> 1800 s and error backoff 2 s -> 30 s; `sxmo_modemmonitor.sh`
10/120 s -> 30/600 s. `mmcli`'s `drx-cycle`/`mico-mode` are 5G NR fields and were removed
from the optimization list as inapplicable to this LTE modem.
- **Timers (U11)**: `sip_plugin.cpp` 15 s -> 60 s; `tox_plugin.cpp` clamp 250-1000 ms ->
1000-2000 ms; `sxmo_soundmonitor.sh` restart backoff 2 s -> 10 s.
- **Storage (U12/K13)**: `tmpfs` on `/tmp`, zram `lz4` + `noatime`, `size1=256`.
- **Zero-log (U13)**: shipped user/skel `sxmo_hook_start.sh` now uses `superd -l /dev/null`
with `/dev/null` log symlinks, matching the default hook.
- **Xorg (U14)**: skip `xrdb`/`feh`/dunst-theme work on dwm restart while the panel is dark;
`sxmo_wm.sh display off/on` also switches the GPU devfreq governor to
`powersave`/`simple_ondemand`.
- Fixed the cosmetic `yesno "{wpa_supplicant_dbus}"` typo in `etc/init.d/wpa_supplicant`
(C1: the running service already had `-u`; OpenRC's `yesno()` dereferences the literal).
- Withdrawn as disproven by the live device: duplicate `wpa_supplicant`/respawn storm (U7)
and the `sxmo_soundmonitor.sh` 5 s loop (U10).
### Deferred with justification
- **K12** (damage/partial-window updates in `panel-mipi-dbi`) needs panel-specific GC9305/GC9307
commands and risks display corruption; U3 delivers the equivalent userspace saving.
- **`rcu_nocbs=all`** (K14) was not added to the cmdline: on a 2-core MSM8905 it would add
always-running `rcuo` kthreads, trading away the idle saving.
- **`msm8905-cam`** stays in `/etc/modules` (K9): its out-of-tree platform driver has no udev
autoload path, so removing it would break `xcamera`.
---
## Unreleased — display power, cpufreq, and Bantam agent update
### Updated Bantam agent to upstream `c168955`
+2 -2
View File
@@ -100,8 +100,8 @@ sudo dd if=./images/bananarchy-nokia-argon.img of=/dev/sdX bs=4M status=progress
| **Center OK** | `Return` (`KEY_OK`) | Confirm / Enter, or commit active T9 preedit candidate immediately |
| **Slider close / open** | `SW_LID` (`lid:on` / `lid:off`) | **Close**: close open menu, turn off keypad backlight, and lock phone with passcode (`xlocker`); **Open**: restore screen and keypad backlight and show passcode lock screen |
> **Screen blanking, passcode locking (`xlocker`), waking, and brightness persistence**:
> X11 screensaver/DPMS blanking and deep system suspend are disabled so screen state is controlled cleanly and the phone always wakes immediately. Locking the phone (`Power -> Lock`, `Power -> Lock (Screen off)`, `2x End / Power`, or closing the physical slider) activates the fullscreen `240x320` **Passcode Locker (`xlocker` / `locker.so`)**, which verifies your numeric system password (`147147` by default, checked against `/etc/shadow` via `/usr/bin/bananarchy-verify-passcode`). While locked, there is no keypad, softkey, slider, or power-button bypass (`dmenu`, `xdrawer`, terminal spawning, and desktop shortcuts are blocked, and only incoming calls can temporarily overlay `xcallscreen`). Screen and keypad brightness levels configured in **XDrawer** or **Config -> Brightness** are persisted in `~/.config/sxmo/brightness` and `/tmp/sxmo_saved_brightness` and restored on every wake.
> **Screen blanking, idle blanking, deep standby, passcode locking (`xlocker`), waking, and brightness persistence**:
> While unlocked, the display now blanks automatically after `SXMO_UNLOCK_IDLE_TIME` seconds of inactivity (60 by default) via `bananarchy-idle-blank.sh`; any keypad, lid or power key restores it immediately without engaging the passcode locker. Create `~/.cache/sxmo/sxmo.noidle` to restore the old "unlocked screen never blanks" policy. X11 screensaver timeouts stay at `0 0 0`; DPMS is driven by the backlight state. Optional **deep standby** suspends the system after `BANANARCHY_SUSPEND_GRACE` seconds of screen-off (60 by default): it is shipped **disabled** via `/etc/bananarchy-no-deep-standby` until the rebuilt kernel has been boot-tested; remove that file to enable `freeze` (s2idle, any IRQ wakes), and additionally create `/etc/bananarchy-allow-mem-suspend` to try `mem`. Active calls, SSH sessions and VPN/tether connections block suspension. Locking the phone (`Power -> Lock`, `Power -> Lock (Screen off)`, `2x End / Power`, or closing the physical slider) activates the fullscreen `240x320` **Passcode Locker (`xlocker` / `locker.so`)**, which verifies your numeric system password (`147147` by default, checked against `/etc/shadow` via `/usr/bin/bananarchy-verify-passcode`). While locked, there is no keypad, softkey, slider, or power-button bypass (`dmenu`, `xdrawer`, terminal spawning, and desktop shortcuts are blocked, and only incoming calls can temporarily overlay `xcallscreen`). Screen and keypad brightness levels configured in **XDrawer** or **Config -> Brightness** are persisted in `~/.config/sxmo/brightness` and `/tmp/sxmo_saved_brightness` and restored on every wake.
#### 3.1.1 Window tiling modes and switching combos
By default, `dwm` uses the **vertical bottom-stack (`bstack`, `TTT`)** layout so multiple `st` terminals stack **vertically (one under another)** to preserve full line width on the `240x320` portrait screen.
+1 -1
View File
@@ -16,7 +16,7 @@
## Key features
### System and hardware support
- **Mainline Linux 6.12 kernel**: custom patches and out-of-tree drivers for Qualcomm **Adreno 304 (`FD304`, 96 KB GMEM)** 3D GPU acceleration (`drm/msm` + `qcom-iommu`), Qualcomm QDSP6/Q6Voice audio routing, Dual-SIM modem control, the rear 2MP GalaxyCore `GC2395` / `GC2385` / `GC2365` camera (`/dev/video0`), the `SY7807` flashlight LED (`white:torch`), physical keypad/slider events, and clean PM8909 poweroff.
- **Mainline Linux 6.12 kernel**: custom patches and out-of-tree drivers for Qualcomm **Adreno 304 (`FD304`, 96 KB GMEM)** 3D GPU acceleration (`drm/msm` + `qcom-iommu`), Qualcomm QDSP6/Q6Voice audio routing, Dual-SIM modem control, the rear 2MP GalaxyCore `GC2395` / `GC2385` / `GC2365` camera (`/dev/video0`), the `SY7807` flashlight LED (`white:torch`), physical keypad/slider events, and clean PM8909 poweroff. The kernel image is built from the tuned `config-bananarchy-msm8909.armv7` (suspend support, `HZ=100`, no debug/tracing, no serial console) and ships with idle-blanking and optional deep-standby power management; see `BATTERY-OPTIMIZATION-ANALYSIS.md`.
- **Alpine Linux Edge base**: full access to the Alpine package ecosystem with `< 95 MB` idle RAM usage on 512 MB devices and full local root access out of the box.
- **Pure X11 graphical stack with GPU acceleration**: cross-compiled **Xlibre** (`X11Libre/xserver`) display server offloading 2D/3D screen rendering to the **Adreno 304 GPU** via **Glamor, DRI3, GLX, and Mesa Freedreno (`FD304`, OpenGL 3.1 / OpenGL ES 3.0)** over `panel-mipi-dbi` KMSRO, paired with a customized **Sxmo (`sxmo-de-dwm`)** window manager (`240x320` vertical stack layout, native `ParentRelative` desktop clock and softkey bar without Conky overhead, `< 2 ms` slider/key wake latency, and zero Wayland overhead).
+3 -2
View File
@@ -1,2 +1,3 @@
earlycon
console=ttyMSM0,115200
# Bananarchy: no earlycon / serial console. Keeping ttyMSM0 as a
# console holds the UART clock on and generates printk wakeups.
# A debug build may re-add: earlycon console=ttyMSM0,115200
Binary file not shown.
@@ -129,6 +129,9 @@
cpu-opp-table {
compatible = "operating-points-v2-kryo-cpu", "operating-points-v2";
/* Real DVFS latency: without this cpufreq-dt reports CPUFREQ_ETERNAL
* (UINT_MAX) and schedutil derives a ~6.44 s rate limit. */
clock-latency-ns = <100000>;
nvmem-cells = <0x0f>;
opp-shared;
phandle = <0x05>;
@@ -1936,6 +1939,8 @@
remoteproc@a21b000 {
compatible = "qcom,pronto-v3-pil", "qcom,pronto";
/* Allow the WCNSS/pronto remoteproc to wake the AP from suspend. */
wakeup-source;
reg = <0xa204000 0x2000 0xa202000 0x1000 0xa21b000 0x3000>;
reg-names = "ccu", "dxe", "pmu";
memory-region = <0x74>;
+3 -2
View File
@@ -1,2 +1,3 @@
earlycon
console=ttyMSM0,115200
# Bananarchy: no earlycon / serial console. Keeping ttyMSM0 as a
# console holds the UART clock on and generates printk wakeups.
# A debug build may re-add: earlycon console=ttyMSM0,115200
Binary file not shown.
@@ -129,6 +129,9 @@
cpu-opp-table {
compatible = "operating-points-v2-kryo-cpu", "operating-points-v2";
/* Real DVFS latency: without this cpufreq-dt reports CPUFREQ_ETERNAL
* (UINT_MAX) and schedutil derives a ~6.44 s rate limit. */
clock-latency-ns = <100000>;
nvmem-cells = <0x0f>;
opp-shared;
phandle = <0x05>;
@@ -1936,6 +1939,8 @@
remoteproc@a21b000 {
compatible = "qcom,pronto-v3-pil", "qcom,pronto";
/* Allow the WCNSS/pronto remoteproc to wake the AP from suspend. */
wakeup-source;
reg = <0xa204000 0x2000 0xa202000 0x1000 0xa21b000 0x3000>;
reg-names = "ccu", "dxe", "pmu";
memory-region = <0x74>;
+3 -2
View File
@@ -1,2 +1,3 @@
earlycon
console=ttyMSM0,115200
# Bananarchy: no earlycon / serial console. Keeping ttyMSM0 as a
# console holds the UART clock on and generates printk wakeups.
# A debug build may re-add: earlycon console=ttyMSM0,115200
Binary file not shown.
@@ -129,6 +129,9 @@
cpu-opp-table {
compatible = "operating-points-v2-kryo-cpu", "operating-points-v2";
/* Real DVFS latency: without this cpufreq-dt reports CPUFREQ_ETERNAL
* (UINT_MAX) and schedutil derives a ~6.44 s rate limit. */
clock-latency-ns = <100000>;
nvmem-cells = <0x0f>;
opp-shared;
phandle = <0x05>;
@@ -1631,6 +1634,8 @@
remoteproc@a21b000 {
compatible = "qcom,pronto-v3-pil", "qcom,pronto";
/* Allow the WCNSS/pronto remoteproc to wake the AP from suspend. */
wakeup-source;
reg = <0xa204000 0x2000 0xa202000 0x1000 0xa21b000 0x3000>;
reg-names = "ccu", "dxe", "pmu";
memory-region = <0x69>;
@@ -129,6 +129,9 @@
cpu-opp-table {
compatible = "operating-points-v2-kryo-cpu", "operating-points-v2";
/* Real DVFS latency: without this cpufreq-dt reports CPUFREQ_ETERNAL
* (UINT_MAX) and schedutil derives a ~6.44 s rate limit. */
clock-latency-ns = <100000>;
nvmem-cells = <0x0f>;
opp-shared;
phandle = <0x05>;
@@ -1631,6 +1634,8 @@
remoteproc@a21b000 {
compatible = "qcom,pronto-v3-pil", "qcom,pronto";
/* Allow the WCNSS/pronto remoteproc to wake the AP from suspend. */
wakeup-source;
reg = <0xa204000 0x2000 0xa202000 0x1000 0xa21b000 0x3000>;
reg-names = "ccu", "dxe", "pmu";
memory-region = <0x69>;
+3 -2
View File
@@ -1,2 +1,3 @@
earlycon
console=ttyMSM0,115200
# Bananarchy: no earlycon / serial console. Keeping ttyMSM0 as a
# console holds the UART clock on and generates printk wakeups.
# A debug build may re-add: earlycon console=ttyMSM0,115200
Binary file not shown.
@@ -129,6 +129,9 @@
cpu-opp-table {
compatible = "operating-points-v2-kryo-cpu", "operating-points-v2";
/* Real DVFS latency: without this cpufreq-dt reports CPUFREQ_ETERNAL
* (UINT_MAX) and schedutil derives a ~6.44 s rate limit. */
clock-latency-ns = <100000>;
nvmem-cells = <0x0f>;
opp-shared;
phandle = <0x05>;
@@ -1936,6 +1939,8 @@
remoteproc@a21b000 {
compatible = "qcom,pronto-v3-pil", "qcom,pronto";
/* Allow the WCNSS/pronto remoteproc to wake the AP from suspend. */
wakeup-source;
reg = <0xa204000 0x2000 0xa202000 0x1000 0xa21b000 0x3000>;
reg-names = "ccu", "dxe", "pmu";
memory-region = <0x74>;
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
BIN
View File
Binary file not shown.
@@ -4,5 +4,9 @@ level=OFF
[connection]
wifi.powersave=3
[device]
# U8: roam scans are expensive on wcn36xx; 10 min while associated.
wifi.scan-interval=600
[connectivity]
enabled=false
@@ -0,0 +1,8 @@
#!/bin/sh
# U9: only keep the modem data port open while a cellular connection is up.
[ "$1" = "qrtr0" ] || [ "$1" = "wwan0" ] || exit 0
case "$2" in
up|vpn-up) /usr/bin/bananarchy-dpm.sh open ;;
down|vpn-down) /usr/bin/bananarchy-dpm.sh close ;;
esac
exit 0
@@ -0,0 +1,3 @@
# Deep standby is disabled by default. Remove this file to enable
# suspend-to-idle after the screen has been off for 60 s.
# See BATTERY-OPTIMIZATION-ANALYSIS.md (K1/U2).
+9 -7
View File
@@ -1,7 +1,9 @@
[General]
DiscoverableTimeout = 0
PairableTimeout = 0
ControllerMode = dual
# U5: BT is off by default (rfkill soft-block, daemon not started). When a
# user enables it, do not leave the controller permanently discoverable.
DiscoverableTimeout = 60
PairableTimeout = 60
ControllerMode = bredr
MultiProfile = multiple
JustWorksRepairing = always
Experimental = true
@@ -11,7 +13,7 @@ Cache = always
[Policy]
ReconnectUUIDs=00001112-0000-1000-8000-00805f9b34fb,0000111f-0000-1000-8000-00805f9b34fb,0000110a-0000-1000-8000-00805f9b34fb,0000110b-0000-1000-8000-00805f9b34fb,00001108-0000-1000-8000-00805f9b34fb,0000111e-0000-1000-8000-00805f9b34fb,00001124-0000-1000-8000-00805f9b34fb,00001812-0000-1000-8000-00805f9b34fb
ReconnectAttempts=7
ReconnectIntervals=1,2,4,8,16,32,64
AutoEnable=true
ResumeDelay = 2
ReconnectAttempts=3
ReconnectIntervals=2,4,8
AutoEnable=false
ResumeDelay = 0
+8
View File
@@ -0,0 +1,8 @@
# Bananarchy: long NTP polls so chronyd does not keep waking Wi-Fi (U6).
# After a long uptime chronyd ramps to maxpoll anyway; this makes it explicit
# and removes the initial iburst burst of packets.
pool pool.ntp.org minpoll 12 maxpoll 16
driftfile /var/lib/chrony/chrony.drift
rtcsync
cmdport 0
makestep 1 -1
+7 -7
View File
@@ -67,7 +67,7 @@ icmp0= # no incompressible page writing to backup device
idle0= # no idle page writing to backup device
wlim0= # no writeback_limit for idle page writing for backup device
notr0= # keep the default on linux-3.15 or newer
algo0=zstd # zstd (since linux-4.18), lz4 (since linux-3.15), or lzo.
algo0=lz4 # U12/K13: lz4 is far cheaper on CPU than zstd
# Size: zstd (best) > lzo > lz4. Speed: lz4 (best) > zstd > lzo
para0= # No algorithm parameters
labl0=zram_swap # the label name
@@ -80,7 +80,7 @@ args0= # we could e.g. have set args0="-L 'zram_swap'" instead of using labl0
# rc_need=zram-init in their /etc/conf.d/... file
type1=/tmp
flag1=ext4
size1=2048
size1=256
mlim1= # no hard memory limit
back1= # no backup device
icmp1= # no incompressible page writing to backup device
@@ -89,12 +89,12 @@ wlim1= # no writeback_limit for idle page writing for backup device
blck1=1024 # the default blocksize of 4096
irat1= # bytes/inode ratio
inod1= # inode number
opts1="strictatime,nosuid,nodev,noexec" # e.g. "relatime" or "noatime" are also reasonable choices
opts1="noatime,nosuid,nodev,noexec" # U12: no atime writes into compressed RAM
mode1=1777
owgr1= # No reason to change the default "root:root"
notr1= # keep the default on linux-3.15 or newer
algo1=zstd
para1="level=3" # algorithm-specific parameters such as compression level
algo1=lz4
para1= # lz4 has no level parameter
labl1=tmp_dir
uuid1=
args1=
@@ -115,7 +115,7 @@ opts2=relatime # e.g. "noatime" or "strictatime" are also reasonable choices
mode2=1777
owgr2= # No reason to change the default "root:root"
notr2= # keep the default on linux-3.15 or newer
algo2=zstd
algo2=lz4
para2= # No algorithm parameters
labl2=var_tmp_dir
uuid2=
@@ -126,7 +126,7 @@ args2=
type3=- # Only format the filesystem but actually do not mount it
flag3=btrfs
size3=1024
algo3=zstd
algo3=lz4
labl3=zbtrfs
uuid3=
args3=
+2
View File
@@ -33,6 +33,8 @@ 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
+1 -1
View File
@@ -1,5 +1,5 @@
[Sleep]
AllowSuspend=no
AllowSuspend=yes
AllowHibernation=no
AllowSuspendThenHibernate=no
AllowHybridSleep=no
+5
View File
@@ -0,0 +1,5 @@
# <file system> <mount point> <type> <options> <dump> <pass>
UUID=a1b2c3d4-8110-4000-8000-000000000002 / ext4 defaults 0 0
UUID=a1b2c3d4-8110-4000-8000-000000000001 /boot ext2 nodev,nosuid,noexec 0 0
# U12: keep /tmp in RAM instead of writing to the eMMC rootfs.
tmpfs /tmp tmpfs rw,nosuid,nodev,size=64m 0 0
@@ -27,15 +27,19 @@ start() {
count=$((count + 1))
done
if [ -n "$QMICLI_MODEM" ]; then
$QMICLI_MODEM --dpm-open-port=hw-data-ep-type=bam-dmux,hw-data-ep-iface-number=1,hw-data-rx-id=1,hw-data-tx-id=1 >/dev/null 2>&1 || true
fi
# U9: only open the BAM-DMUX data port when a cellular data profile is
# actually configured. Otherwise the NetworkManager dispatcher opens it
# on demand (see 10-bananarchy-dpm.sh).
_need_dpm=0
for f in /etc/NetworkManager/system-connections/*.nmconnection; do
[ -f "$f" ] || continue
if grep -q "^type=gsm" "$f" 2>/dev/null; then
_need_dpm=1
sed -i '/^\[ipv6\]/,/^\[/ s/^method=auto$/method=ignore/' "$f" 2>/dev/null || true
fi
done
if [ "$_need_dpm" = "1" ] && [ -n "$QMICLI_MODEM" ]; then
$QMICLI_MODEM --dpm-open-port=hw-data-ep-type=bam-dmux,hw-data-ep-iface-number=1,hw-data-rx-id=1,hw-data-tx-id=1 >/dev/null 2>&1 || true
fi
eend 0
}
+80
View File
@@ -0,0 +1,80 @@
#!/sbin/openrc-run
# Copyright (c) 2009 Roy Marples <roy@marples.name>
# All rights reserved. Released under the 2-clause BSD license.
supervisor=supervise-daemon
name="WPA Supplicant"
description="Wi-Fi Protected Access client and IEEE 802.1X supplicant"
command=/sbin/wpa_supplicant
wpa_supplicant_if=${wpa_supplicant_if:+-i}$wpa_supplicant_if
command_args="$wpa_supplicant_args $wpa_supplicant_if"
default_conf=/etc/wpa_supplicant/wpa_supplicant.conf
depend() {
need localmount
use logger dbus
after bootmisc modules entropy udev-settle
before dns dhcpcd net
keyword -shutdown
provide wlan
}
find_wireless() {
local iface=
for iface in /sys/class/net/*; do
if [ -e "$iface"/wireless -o -e "$iface"/phy80211 ]; then
echo "${iface##*/}"
return 0
fi
done
return 1
}
append_wireless() {
local iface= i=
iface=$(find_wireless)
if [ -n "$iface" ]; then
for i in $iface; do
command_args="$command_args -i$i"
done
else
eerror "Could not find a wireless interface"
fi
}
start_pre() {
case " $command_args" in
*" -i"*) ;;
*) append_wireless;;
esac
# set default conf if dbus is explicitly disabled
if [ -n "${wpa_supplicant_dbus}" ] && ! yesno "${wpa_supplicant_dbus}"; then
: ${wpa_supplicant_conf:=${default_conf}}
fi
# use default conf if it exists
if [ -f "${default_conf}" ]; then
: ${wpa_supplicant_conf:=${default_conf}}
fi
# enable default dbus if we still dont have a config
if [ -z "${wpa_supplicant_conf}" ]; then
: ${wpa_supplicant_dbus:=yes}
else
command_args="${command_args} -c$wpa_supplicant_conf"
fi
case " ${command_args}" in
*" -u"*);;
*) if yesno "${wpa_supplicant_dbus}"; then
command_args="-u ${command_args}"
fi
;;
esac
checkpath -d -m 0755 -o root:root /var/run/wpa_supplicant
}
@@ -59,6 +59,15 @@ if [ -r /sys/class/power_supply/pm8916-lbc-chgr/constant_charge_current ]; then
fi
fi
# K5: the kernel patch raises the GPU devfreq sampling interval to 100 ms;
# this also fixes devices that already loaded the older module.
if [ -w /sys/class/devfreq/1c00000.gpu/polling_interval ]; then
printf '100\n' > /sys/class/devfreq/1c00000.gpu/polling_interval 2>/dev/null || true
fi
# K10: no IPv6 on interfaces created after boot (also in sysctl.d).
{ printf '1\n' > /proc/sys/net/ipv6/conf/default/disable_ipv6; } 2>/dev/null || true
# Wi-Fi power save is enabled by NetworkManager (wifi.powersave=3) and by the
# wcn36xx WIPHY_FLAG_PS_ON_BY_DEFAULT / dynamic_ps_timeout=200 kernel patch.
# Verified on-device: "iw dev wlan0 get power_save" reports "Power save: on".
@@ -20,7 +20,14 @@ fi
if ! superctl status > /dev/null 2>&1; then
pkill -9 -x superd > /dev/null 2>&1 || true
rm -f "$XDG_RUNTIME_DIR/superd.lock" "$XDG_RUNTIME_DIR/superd.sock"
sxmo_jobs.sh start daemon_manager superd
mkdir -p /tmp/superd_state/superd/logs "$HOME/.local/state/superd/logs" 2>/dev/null || true
ln -sf /dev/null /tmp/superd_state/superd.log 2>/dev/null || true
for svc in /usr/share/superd/services/*.service "$HOME/.config/superd/services"/*.service; do
[ -f "$svc" ] || continue
svc_name="$(basename "$svc" .service)"
ln -sf /dev/null "/tmp/superd_state/superd/logs/${svc_name}.log" 2>/dev/null || true
done
sxmo_jobs.sh start daemon_manager env XDG_STATE_HOME=/tmp/superd_state superd -l /dev/null
while ! superctl status > /dev/null 2>&1; do
sleep 0.05
done
@@ -63,7 +70,7 @@ fi
# Periodically update some status bar components
sxmo_hook_statusbar.sh all
sxmo_jobs.sh start statusbar_periodics sxmo_run_aligned.sh 60 \
sxmo_jobs.sh start statusbar_periodics sxmo_run_aligned.sh 300 \
sxmo_hook_statusbar.sh periodics
# dunst is required for warnings.
@@ -81,12 +88,11 @@ if [ "$(command -v fcitx5)" ]; then
fi
[ -n "$SXMO_MONITOR" ] && xrandr --output "$SXMO_MONITOR" --primary
# Keep system awake so keypad, lid, and power keys always wake the screen immediately
# U1/U2: idle blanking and deep standby are enabled by default; the
# keypad/lid/power keys still wake the screen immediately.
mkdir -p "$XDG_CACHE_HOME/sxmo"
touch "$XDG_CACHE_HOME/sxmo/sxmo.nosuspend"
if sxmo_wakelock.sh isenabled; then
sxmo_wakelock.sh lock sxmo_not_suspendable infinite
fi
# U2: no infinite wakelock; deep standby is guarded by
# /etc/bananarchy-no-deep-standby and the blocker list.
# Ensure lockscreen is active if session is still locked and locker has not yet mapped
if [ -f /tmp/bananarchy_screen_locked ] && [ ! -f "$XDG_RUNTIME_DIR/xlocker.pid" ]; then
@@ -0,0 +1,4 @@
# K10: no IPv6 addresses on interfaces created after boot (wlan0, usb0,
# VPN tunnels). Removes ND/MLD multicast that keeps Wi-Fi out of BMPS.
# The ipv6 module stays loaded for WireGuard/Tor and for ::1 on lo.
net.ipv6.conf.default.disable_ipv6=1
@@ -1 +1,5 @@
SUBSYSTEM=="power_supply", ACTION=="change", RUN+="/bin/sh -c 'DISPLAY=:0 XDG_RUNTIME_DIR=/run/user/10000 /usr/share/sxmo/default_hooks/sxmo_hook_battery.sh udev >/dev/null 2>&1 &'"
# Bananarchy battery/charger statusbar hook (U4).
# Only the two PM8916 supplies exist on these devices; filtering avoids
# spawning a shell for unrelated power_supply change events.
SUBSYSTEM=="power_supply", ACTION=="change", KERNEL=="pm8916-bms-vm", RUN+="/bin/sh -c 'DISPLAY=:0 XDG_RUNTIME_DIR=/run/user/10000 /usr/share/sxmo/default_hooks/sxmo_hook_battery.sh udev >/dev/null 2>&1 &'"
SUBSYSTEM=="power_supply", ACTION=="change", KERNEL=="pm8916-lbc-chgr", RUN+="/bin/sh -c 'DISPLAY=:0 XDG_RUNTIME_DIR=/run/user/10000 /usr/share/sxmo/default_hooks/sxmo_hook_battery.sh udev >/dev/null 2>&1 &'"
@@ -20,7 +20,14 @@ fi
if ! superctl status > /dev/null 2>&1; then
pkill -9 -x superd > /dev/null 2>&1 || true
rm -f "$XDG_RUNTIME_DIR/superd.lock" "$XDG_RUNTIME_DIR/superd.sock"
sxmo_jobs.sh start daemon_manager superd
mkdir -p /tmp/superd_state/superd/logs "$HOME/.local/state/superd/logs" 2>/dev/null || true
ln -sf /dev/null /tmp/superd_state/superd.log 2>/dev/null || true
for svc in /usr/share/superd/services/*.service "$HOME/.config/superd/services"/*.service; do
[ -f "$svc" ] || continue
svc_name="$(basename "$svc" .service)"
ln -sf /dev/null "/tmp/superd_state/superd/logs/${svc_name}.log" 2>/dev/null || true
done
sxmo_jobs.sh start daemon_manager env XDG_STATE_HOME=/tmp/superd_state superd -l /dev/null
while ! superctl status > /dev/null 2>&1; do
sleep 0.05
done
@@ -63,7 +70,7 @@ fi
# Periodically update some status bar components
sxmo_hook_statusbar.sh all
sxmo_jobs.sh start statusbar_periodics sxmo_run_aligned.sh 60 \
sxmo_jobs.sh start statusbar_periodics sxmo_run_aligned.sh 300 \
sxmo_hook_statusbar.sh periodics
# dunst is required for warnings.
@@ -81,12 +88,11 @@ if [ "$(command -v fcitx5)" ]; then
fi
[ -n "$SXMO_MONITOR" ] && xrandr --output "$SXMO_MONITOR" --primary
# Keep system awake so keypad, lid, and power keys always wake the screen immediately
# U1/U2: idle blanking and deep standby are enabled by default; the
# keypad/lid/power keys still wake the screen immediately.
mkdir -p "$XDG_CACHE_HOME/sxmo"
touch "$XDG_CACHE_HOME/sxmo/sxmo.nosuspend"
if sxmo_wakelock.sh isenabled; then
sxmo_wakelock.sh lock sxmo_not_suspendable infinite
fi
# U2: no infinite wakelock; deep standby is guarded by
# /etc/bananarchy-no-deep-standby and the blocker list.
# Ensure lockscreen is active if session is still locked and locker has not yet mapped
if [ -f /tmp/bananarchy_screen_locked ] && [ ! -f "$XDG_RUNTIME_DIR/xlocker.pid" ]; then
+26
View File
@@ -0,0 +1,26 @@
#!/bin/sh
# Enter deep standby when the screen is off (U2). Disable by creating
# /etc/bananarchy-no-deep-standby. Enable suspend-to-RAM by creating
# /etc/bananarchy-allow-mem-suspend (only after verifying wake sources).
[ -f /etc/bananarchy-no-deep-standby ] && exit 0
[ -x /usr/bin/bananarchy-suspend.sh ] || exit 0
[ -r /sys/power/state ] || exit 0
# Blockers: an active call, an SSH session, or an active VPN/tether must
# keep the system awake.
incall=0
[ -r /tmp/sxmo_in_call ] && { read -r incall < /tmp/sxmo_in_call 2>/dev/null || incall=0; }
[ "$incall" = "1" ] && exit 0
pgrep -f 'sxmo_modemcall.sh' >/dev/null 2>&1 && exit 0
pgrep -f 'sshd-session' >/dev/null 2>&1 && exit 0
if command -v nmcli >/dev/null 2>&1; then
nmcli -t con show --active 2>/dev/null | grep -qE ':tun|:wireguard|^Hotspot' && exit 0
fi
# The screen must still be dark.
br=1
[ -r /sys/class/backlight/backlight/brightness ] && \
{ read -r br < /sys/class/backlight/backlight/brightness 2>/dev/null || br=1; }
case "$br" in ''|*[!0-9]*) br=1 ;; esac
[ "$br" -eq 0 ] || exit 0
exec doas -n /usr/bin/bananarchy-suspend.sh
+17
View File
@@ -0,0 +1,17 @@
#!/bin/sh
# Open/close the QMI BAM-DMUX data port on demand (U9/K11).
# With Wi-Fi as the default route and no cellular data profile there is no
# reason to keep the modem data plane open at boot.
QMICLI="qmicli --silent -pd qrtr://0"
case "${1:-}" in
open)
$QMICLI --dpm-open-port=hw-data-ep-type=bam-dmux,hw-data-ep-iface-number=1,hw-data-rx-id=1,hw-data-tx-id=1 >/dev/null 2>&1 || true
;;
close)
$QMICLI --dpm-close-port=hw-data-ep-type=bam-dmux,hw-data-ep-iface-number=1,hw-data-rx-id=1,hw-data-tx-id=1 >/dev/null 2>&1 || true
;;
*)
printf 'Usage: %s [open|close]\n' "${0##*/}" >&2
exit 1
;;
esac
+12
View File
@@ -0,0 +1,12 @@
#!/bin/sh
# Blank/restore the display without engaging the passcode locker (U1).
# sxmo_wm.sh display off/on already handles brightness, bl_power, DPMS,
# the CPU governor and the keyboard backlight.
case "${1:-}" in
off) exec /usr/bin/sxmo_wm.sh display off ;;
on) exec /usr/bin/sxmo_wm.sh display on ;;
*)
printf 'Usage: %s [off|on]\n' "${0##*/}" >&2
exit 1
;;
esac
+18
View File
@@ -0,0 +1,18 @@
#!/bin/sh
# Root helper: enter the deepest *safe* system sleep state.
# Called via doas from bananarchy-deep-standby.sh.
STATE_FILE=/sys/power/state
[ -r "$STATE_FILE" ] || exit 0
states=""
read -r states < "$STATE_FILE" 2>/dev/null || states=""
target=""
# freeze (s2idle) keeps every IRQ wake-capable, so keypad, lid, modem and
# Wi-Fi always resume the phone. mem needs platform wakeup sources and is
# therefore opt-in.
case " $states " in *" freeze "*) target=freeze ;; esac
if [ -f /etc/bananarchy-allow-mem-suspend ]; then
case " $states " in *" mem "*) target=mem ;; esac
fi
[ -n "$target" ] || exit 0
# This write blocks until the system resumes.
printf '%s\n' "$target" > "$STATE_FILE"
@@ -64,7 +64,10 @@ else
/tmp/tinydm.log /tmp/tinydm.log.old /tmp/Xorg.0.log /tmp/Xorg.0.log.old 2>/dev/null || true
fi
rm -f "$XDG_RUNTIME_DIR/sxmo.led.lock" "$XDG_RUNTIME_DIR"/sxmo_bat_state_* 2>/dev/null || true
touch "$XDG_CACHE_HOME/sxmo/sxmo.noidle" "$XDG_CACHE_HOME/sxmo/sxmo.nosuspend"
# U1/U2: do not force sxmo.noidle / sxmo.nosuspend. Idle blanking and
# deep standby are the defaults; create ~/.cache/sxmo/sxmo.noidle to opt out
# of idle blanking, or /etc/bananarchy-no-deep-standby to opt out of suspend.
rm -f "$XDG_CACHE_HOME/sxmo/sxmo.nosuspend"
[ -n "${DBUS_SESSION_BUS_ADDRESS:-}" ] && printf "%s\n" "$DBUS_SESSION_BUS_ADDRESS" > "$XDG_RUNTIME_DIR/dbus.bus"
printf "1\n" > /tmp/bananarchy_screen_locked
printf "lock\n" > "$XDG_RUNTIME_DIR/sxmo.state"
@@ -143,8 +146,17 @@ while [ "$(cat "$SESSION_PID_FILE" 2>/dev/null)" = "$$" ]; do
if pidof -s dwm >/dev/null 2>&1; then
exit 0
fi
xrdb -merge "$HOME/.Xresources" >/dev/null 2>&1 || true
/usr/bin/bananarchy-sync-dunst-theme --no-restart >/dev/null 2>&1 || true
# U14: skip X resource/wallpaper work when the panel is powered down.
_dark=0
if [ -r /sys/class/backlight/backlight/brightness ]; then
_bl=1
read -r _bl < /sys/class/backlight/backlight/brightness 2>/dev/null || _bl=1
[ "${_bl:-1}" = "0" ] && _dark=1
fi
if [ "$_dark" = "0" ]; then
xrdb -merge "$HOME/.Xresources" >/dev/null 2>&1 || true
/usr/bin/bananarchy-sync-dunst-theme --no-restart >/dev/null 2>&1 || true
fi
WP_FILE="/usr/share/wallpapers/bananarchy.png"
if [ -f "$XDG_CONFIG_HOME/sxmo/wallpaper" ]; then
custom_wp="$(head -n 1 "$XDG_CONFIG_HOME/sxmo/wallpaper" 2>/dev/null)"
@@ -161,7 +173,7 @@ while [ "$(cat "$SESSION_PID_FILE" 2>/dev/null)" = "$$" ]; do
*) WP_FLAG="--bg-fill" ;;
esac
fi
( feh --no-fehbg "$WP_FLAG" "$WP_FILE" >/dev/null 2>&1 </dev/null & )
if [ "$_dark" = "0" ]; then ( feh --no-fehbg "$WP_FLAG" "$WP_FILE" >/dev/null 2>&1 </dev/null & ); fi
if [ "$first_iter" = "0" ]; then
pidof -s fcitx5 >/dev/null 2>&1 || superctl start fcitx5 >/dev/null 2>&1 || ( /usr/bin/bananarchy-fcitx5.sh </dev/null & )
fi
+11 -2
View File
@@ -1,3 +1,12 @@
#!/bin/sh
# Autosuspend is disabled on Bananarchy so keypad, lid, and power keys always wake the screen immediately.
exit 0
# Wait for a grace period after screen-off, then enter deep standby once (U2).
# The write to /sys/power/state blocks until resume, so this job exits after
# one suspend cycle; sxmo_hook_unlock.sh/postwake.sh cancel it on wake.
[ -f /etc/bananarchy-no-deep-standby ] && exit 0
sleep "${BANANARCHY_SUSPEND_GRACE:-60}"
br=1
[ -r /sys/class/backlight/backlight/brightness ] && \
{ read -r br < /sys/class/backlight/backlight/brightness 2>/dev/null || br=1; }
case "$br" in ''|*[!0-9]*) br=1 ;; esac
[ "$br" -eq 0 ] || exit 0
exec /usr/bin/bananarchy-deep-standby.sh
+2 -2
View File
@@ -75,9 +75,9 @@ mainloop() {
else
/usr/libexec/msm-modem-uim-selection dsds-daemon 2>/dev/null || true
fi
sleep 10
sleep 30
else
sleep 120
sleep 600
fi
done
) &
+2 -1
View File
@@ -180,5 +180,6 @@ monitor_jack_events &
while : ; do
handle_change || true
sleep 2
# U10: pactl subscribe is event-driven; only back off after a failure.
sleep 10
done
+3 -1
View File
@@ -16,7 +16,9 @@ SXMO_SUSPENDABLE_STATES="${SXMO_SUSPENDABLE_STATES:-screenoff 3}"
transition_can_suspend() {
sxmo_jobs.sh stop idle_suspender 2>/dev/null || true
sxmo_wakelock.sh lock sxmo_not_suspendable infinite 2>/dev/null || true
# U2: no infinite wakelock. Deep standby is guarded by
# /etc/bananarchy-no-deep-standby and the blocker list instead.
:
}
transition() {
+2 -2
View File
@@ -1,3 +1,3 @@
#!/bin/sh
# System suspend is disabled on Bananarchy so keypad, lid, and power keys always wake the screen immediately.
exit 0
# Bananarchy deep standby (U2). Guarded by /etc/bananarchy-no-deep-standby.
exec /usr/bin/bananarchy-deep-standby.sh
+7
View File
@@ -52,6 +52,10 @@ xorgdisplay() {
if [ -w /sys/devices/system/cpu/cpufreq/policy0/scaling_governor ]; then
printf 'powersave\n' > /sys/devices/system/cpu/cpufreq/policy0/scaling_governor 2>/dev/null || true
fi
# K5: pin the Adreno 304 devfreq to its minimum OPP while dark.
if [ -w /sys/class/devfreq/1c00000.gpu/governor ]; then
printf 'powersave\n' > /sys/class/devfreq/1c00000.gpu/governor 2>/dev/null || true
fi
xset s off s noblank >/dev/null 2>&1 || true
xset dpms force off >/dev/null 2>&1 || true
;;
@@ -59,6 +63,9 @@ xorgdisplay() {
if [ -w /sys/devices/system/cpu/cpufreq/policy0/scaling_governor ]; then
printf 'schedutil\n' > /sys/devices/system/cpu/cpufreq/policy0/scaling_governor 2>/dev/null || true
fi
if [ -w /sys/class/devfreq/1c00000.gpu/governor ]; then
printf 'simple_ondemand\n' > /sys/class/devfreq/1c00000.gpu/governor 2>/dev/null || true
fi
xset s off s noblank >/dev/null 2>&1 || true
xset dpms force on >/dev/null 2>&1 || true
if [ -w /sys/class/backlight/backlight/bl_power ]; then
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,2 @@
# K8: no earlycon / serial console. console=ttyMSM0 keeps the UART
# clock on and produces printk wakeups. Re-add for a debug build.
@@ -0,0 +1,2 @@
# K8: no earlycon / serial console. console=ttyMSM0 keeps the UART
# clock on and produces printk wakeups. Re-add for a debug build.
@@ -0,0 +1,2 @@
# K8: no earlycon / serial console. console=ttyMSM0 keeps the UART
# clock on and produces printk wakeups. Re-add for a debug build.
@@ -0,0 +1,2 @@
# K8: no earlycon / serial console. console=ttyMSM0 keeps the UART
# clock on and produces printk wakeups. Re-add for a debug build.
@@ -0,0 +1,2 @@
# K8: no earlycon / serial console. console=ttyMSM0 keeps the UART
# clock on and produces printk wakeups. Re-add for a debug build.
@@ -3121,7 +3121,7 @@ while True:
elif os.path.exists("/tmp/bananarchy_screen_locked"):
poll_timeout = None
else:
poll_timeout = 600.0
poll_timeout = 1800.0
r, _, _ = select.select([ws, vs], [], [], poll_timeout)
got_voice_ind = False
events = []
@@ -3186,7 +3186,7 @@ while True:
if full_tlvs:
sync_sub1_calls(parse_call_info(full_tlvs), sec_slot, vs, voice_addr)
if not os.path.exists("/tmp/bananarchy_screen_locked") and time.time() - last_poll >= 600.0:
if not os.path.exists("/tmp/bananarchy_screen_locked") and time.time() - last_poll >= 1800.0:
w_txn = poll_stored_sms(ws, wms_addr, w_txn, sec_slot)
last_poll = time.time()
except Exception:
@@ -3194,7 +3194,8 @@ while True:
finally:
ws.close()
vs.close()
time.sleep(2)
# U9: back off after a QRTR error instead of re-registering every 2 s.
time.sleep(30)
PY
;;
@@ -17,9 +17,8 @@ FORCE_UPDATE=0
if [ "${1:-}" = "udev" ]; then
object="/org/freedesktop/UPower/devices/battery_default"
event="device changed"
if [ "${2:-}" != "recheck" ]; then
(sleep 2; "$0" udev recheck >/dev/null 2>&1) &
fi
# U4: no 2 s recheck fork. Kernel patch 0006 emits a uevent only when
# the reported capacity actually changes, so one event is sufficient.
elif [ "${1:-}" = "force" ]; then
FORCE_UPDATE=1
object="/org/freedesktop/UPower/devices/battery_default"
@@ -7,6 +7,13 @@
# shellcheck source=scripts/core/sxmo_common.sh
. sxmo_common.sh
# U2: cancel a pending deep-standby job after resume.
if [ -r /tmp/bananarchy_autosuspend.pid ]; then
read -r _as_pid < /tmp/bananarchy_autosuspend.pid 2>/dev/null || _as_pid=""
[ -n "$_as_pid" ] && kill "$_as_pid" 2>/dev/null || true
rm -f /tmp/bananarchy_autosuspend.pid
fi
if [ -z "$SXMO_NO_MODEM" ]; then
MMCLI="$(mmcli -m any -J 2>/dev/null)"
if [ -z "$MMCLI" ]; then
@@ -38,4 +38,8 @@ fi
sxmo_jobs.sh stop idle_locker
# U2: enter deep standby after BANANARCHY_SUSPEND_GRACE seconds of screen-off.
( /usr/bin/sxmo_autosuspend.sh >/dev/null 2>&1 & \
printf '%s\n' "$!" > /tmp/bananarchy_autosuspend.pid )
wait
@@ -78,7 +78,7 @@ fi
# Periodically update some status bar components
sxmo_hook_statusbar.sh all
sxmo_jobs.sh start statusbar_periodics sxmo_run_aligned.sh 60 \
sxmo_jobs.sh start statusbar_periodics sxmo_run_aligned.sh 300 \
sxmo_hook_statusbar.sh periodics
# dunst is required for warnings.
@@ -96,12 +96,11 @@ if [ "$(command -v fcitx5)" ]; then
fi
[ -n "$SXMO_MONITOR" ] && xrandr --output "$SXMO_MONITOR" --primary
# Keep system awake so keypad, lid, and power keys always wake the screen immediately
# U1/U2: idle blanking and deep standby are enabled by default; the
# keypad/lid/power keys still wake the screen immediately.
mkdir -p "$XDG_CACHE_HOME/sxmo"
touch "$XDG_CACHE_HOME/sxmo/sxmo.nosuspend"
if sxmo_wakelock.sh isenabled; then
sxmo_wakelock.sh lock sxmo_not_suspendable infinite
fi
# U2: no infinite wakelock; deep standby is guarded by
# /etc/bananarchy-no-deep-standby and the blocker list.
# Ensure lockscreen is active if session is still locked and locker has not yet mapped
if [ -f /tmp/bananarchy_screen_locked ] && [ ! -f "$XDG_RUNTIME_DIR/xlocker.pid" ]; then
@@ -534,18 +534,14 @@ case "$1" in
sxmo_hook_battery.sh force 2>/dev/null || true
fi
;;
periodics) # 60 s loop
periodics) # 300 s loop (U3): no QMI/D-Bus polls on every tick
if is_screen_dark || [ -f /tmp/bananarchy_screen_locked ]; then
exit 0
fi
set_time
set_inputmethod
if [ -z "$SXMO_NO_MODEM" ]; then
set_modem
fi
set_notch
set_state
set_network wifi wlan0
sxmo_hook_battery.sh 2>/dev/null || true
;;
all)
@@ -570,5 +566,12 @@ case "$1" in
esac
if ! is_screen_dark && [ "${SXMO_WM:-dwm}" = "dwm" ] && command -v xsetroot >/dev/null 2>&1; then
DISPLAY="${DISPLAY:-:0}" xsetroot -name "$(sxmo_status.sh)" 2>/dev/null || true
_bar="$(sxmo_status.sh)"
_bar_cache="${XDG_RUNTIME_DIR:-/run/user/10000}/sxmo_status_bar_cache"
_bar_prev=""
[ -r "$_bar_cache" ] && { read -r _bar_prev < "$_bar_cache" 2>/dev/null || _bar_prev=""; }
if [ "$_bar" != "$_bar_prev" ]; then
printf '%s\n' "$_bar" > "$_bar_cache" 2>/dev/null || true
DISPLAY="${DISPLAY:-:0}" xsetroot -name "$_bar" 2>/dev/null || true
fi
fi
@@ -26,11 +26,21 @@ sxmo_jobs.sh stop periodic_wakelock_check
# Re-enable automatic screen-off on idle to save battery. Locking stays
# explicit (the user locks only on request); we only blank the display.
# U2: cancel a pending deep-standby job on wake.
if [ -r /tmp/bananarchy_autosuspend.pid ]; then
read -r _as_pid < /tmp/bananarchy_autosuspend.pid 2>/dev/null || _as_pid=""
[ -n "$_as_pid" ] && kill "$_as_pid" 2>/dev/null || true
rm -f /tmp/bananarchy_autosuspend.pid
fi
# U1: blank the display after an idle timeout without engaging the locker.
# Create ~/.cache/sxmo/sxmo.noidle to restore the old "never blank" policy.
if [ -e "$XDG_CACHE_HOME/sxmo/sxmo.noidle" ]; then
sxmo_jobs.sh stop idle_locker
else
sxmo_jobs.sh start idle_locker sxmo_idle.sh -w \
timeout "${SXMO_UNLOCK_IDLE_TIME:-30}" 'sh -c "sxmo_state.sh set screenoff"'
timeout "${SXMO_UNLOCK_IDLE_TIME:-60}" 'sh -c "/usr/bin/bananarchy-idle-blank.sh off"' \
resume 'sh -c "/usr/bin/bananarchy-idle-blank.sh on"'
fi
wait
@@ -0,0 +1,83 @@
--- a/drivers/power/supply/pm8916_bms_vm.c
+++ b/drivers/power/supply/pm8916_bms_vm.c
@@ -39,6 +39,9 @@
#define PM8916_BMS_ENABLED BIT(7)
#define PM8916_BMS_VM_FIFO_LENGTH_CTL 0x47
+/* Sample the VM-BMS FIFO every 30 s instead of every 10 s. Each FIFO
+ * interrupt wakes the AP and (previously) emitted an unconditional
+ * power_supply_changed() uevent. */
#define PM8916_BMS_VM_S1_SAMPLE_INTERVAL_CTL 0x55
#define PM8916_BMS_VM_S2_SAMPLE_INTERVAL_CTL 0x56
#define PM8916_BMS_VM_S3_S7_OCV_DATA0 0x6A
@@ -47,8 +50,8 @@
/* Using only 1 fifo is broken in hardware */
#define PM8916_BMS_VM_FIFO_COUNT 2 /* 2 .. 8 */
-#define PM8916_BMS_VM_S1_SAMPLE_INTERVAL 10
-#define PM8916_BMS_VM_S2_SAMPLE_INTERVAL 10
+#define PM8916_BMS_VM_S1_SAMPLE_INTERVAL 30
+#define PM8916_BMS_VM_S2_SAMPLE_INTERVAL 30
struct pm8916_bms_vm_battery {
struct device *dev;
@@ -224,8 +227,18 @@
if (bat->fake_ocv > info->voltage_max_design_uv)
bat->fake_ocv = info->voltage_max_design_uv;
- power_supply_changed(bat->battery);
-
+ /* Only tell userspace when the reported capacity actually changed.
+ * The EMA filter moves slowly, so this drops most uevents (and the
+ * udev -> su -> sxmo_hook_battery.sh shell chain they trigger). */
+ {
+ static int last_reported_cap = -1;
+ int cap = power_supply_batinfo_ocv2cap(info, bat->fake_ocv, 20);
+
+ if (cap != last_reported_cap) {
+ last_reported_cap = cap;
+ power_supply_changed(bat->battery);
+ }
+ }
return IRQ_HANDLED;
}
--- a/drivers/net/wireless/ath/wcn36xx/hal.h
+++ b/drivers/net/wireless/ath/wcn36xx/hal.h
@@ -3572,7 +3572,9 @@
/* Enable or disable keep alive */
#define WCN36XX_HAL_KEEP_ALIVE_DISABLE 0
#define WCN36XX_HAL_KEEP_ALIVE_ENABLE 1
-#define WCN36XX_KEEP_ALIVE_TIME_PERIOD 30 /* unit: s */
+/* 120 s keeps the association alive on typical APs while cutting the
+ * firmware null-data keep-alive TX wakeups by 4x. */
+#define WCN36XX_KEEP_ALIVE_TIME_PERIOD 120 /* unit: s */
/* Keep Alive request. */
struct wcn36xx_hal_keep_alive_req_msg {
--- a/drivers/net/wireless/ath/wcn36xx/main.c
+++ b/drivers/net/wireless/ath/wcn36xx/main.c
@@ -1456,6 +1456,10 @@
wcn->hw->max_listen_interval = 200;
wcn->hw->conf.dynamic_ps_timeout = 200;
wcn->hw->wiphy->flags |= WIPHY_FLAG_PS_ON_BY_DEFAULT;
+ /* Wake for every 3rd beacon instead of every beacon. With beacon
+ * filtering + BMPS this roughly thirds the idle RX wakeup floor
+ * (measured ~1.8 wcn36xx_rx IRQs/s before this change). */
+ wcn->hw->conf.listen_interval = 3;
wcn->hw->queues = 4;
--- a/drivers/gpu/drm/msm/msm_gpu_devfreq.c
+++ b/drivers/gpu/drm/msm/msm_gpu_devfreq.c
@@ -121,7 +121,9 @@
static struct devfreq_dev_profile msm_devfreq_profile = {
.timer = DEVFREQ_TIMER_DELAYED,
- .polling_ms = 50,
+ /* 100 ms halves the simple_ondemand sampling wakeups while the GPU
+ * is active; the device is runtime-suspended when idle anyway. */
+ .polling_ms = 100,
.target = msm_devfreq_target,
.get_dev_status = msm_devfreq_get_dev_status,
.get_cur_freq = msm_devfreq_get_cur_freq,
+55 -250
View File
@@ -101,28 +101,22 @@ CONFIG_HAVE_EBPF_JIT=y
#
CONFIG_BPF_SYSCALL=y
CONFIG_BPF_JIT=y
CONFIG_BPF_JIT_ALWAYS_ON=y
CONFIG_BPF_JIT_DEFAULT_ON=y
# CONFIG_BPF_JIT_ALWAYS_ON is not set
CONFIG_BPF_UNPRIV_DEFAULT_OFF=y
# CONFIG_BPF_PRELOAD is not set
CONFIG_BPF_LSM=y
# end of BPF subsystem
CONFIG_PREEMPT_BUILD=y
CONFIG_PREEMPT_VOLUNTARY_BUILD=y
# CONFIG_PREEMPT_NONE is not set
# CONFIG_PREEMPT_VOLUNTARY is not set
CONFIG_PREEMPT=y
CONFIG_PREEMPT_COUNT=y
CONFIG_PREEMPTION=y
# CONFIG_SCHED_CORE is not set
CONFIG_PREEMPT_VOLUNTARY=y
# CONFIG_PREEMPT is not set
#
# CPU/Task time and stats accounting
#
CONFIG_TICK_CPU_ACCOUNTING=y
# CONFIG_VIRT_CPU_ACCOUNTING_GEN is not set
CONFIG_IRQ_TIME_ACCOUNTING=y
CONFIG_HAVE_SCHED_AVG_IRQ=y
# CONFIG_IRQ_TIME_ACCOUNTING is not set
CONFIG_SCHED_HW_PRESSURE=y
CONFIG_BSD_PROCESS_ACCT=y
CONFIG_BSD_PROCESS_ACCT_V3=y
@@ -140,14 +134,11 @@ CONFIG_CPU_ISOLATION=y
# RCU Subsystem
#
CONFIG_TREE_RCU=y
CONFIG_PREEMPT_RCU=y
# CONFIG_RCU_EXPERT is not set
CONFIG_TREE_SRCU=y
CONFIG_NEED_SRCU_NMI_SAFE=y
CONFIG_TASKS_RCU_GENERIC=y
CONFIG_NEED_TASKS_RCU=y
CONFIG_TASKS_RCU=y
CONFIG_TASKS_RUDE_RCU=y
CONFIG_TASKS_TRACE_RCU=y
CONFIG_RCU_STALL_COMMON=y
CONFIG_RCU_NEED_SEGCBLIST=y
@@ -196,7 +187,6 @@ CONFIG_CPUSETS=y
CONFIG_PROC_PID_CPUSET=y
CONFIG_CGROUP_DEVICE=y
CONFIG_CGROUP_CPUACCT=y
CONFIG_CGROUP_PERF=y
CONFIG_CGROUP_BPF=y
# CONFIG_CGROUP_MISC is not set
CONFIG_SOCK_CGROUP_DATA=y
@@ -259,16 +249,16 @@ CONFIG_PERF_USE_VMALLOC=y
#
# Kernel Performance Events And Counters
#
CONFIG_PERF_EVENTS=y
# CONFIG_PERF_EVENTS is not set
# end of Kernel Performance Events And Counters
CONFIG_SYSTEM_DATA_VERIFICATION=y
CONFIG_PROFILING=y
CONFIG_TRACEPOINTS=y
# CONFIG_PROFILING is not set
#
# Kexec and crash features
#
# CONFIG_KEXEC is not set
# end of Kexec and crash features
# end of General setup
@@ -438,7 +428,7 @@ CONFIG_CURRENT_POINTER_IN_TPIDRURO=y
CONFIG_IRQSTACKS=y
CONFIG_ARM_CPU_TOPOLOGY=y
CONFIG_SCHED_MC=y
CONFIG_SCHED_SMT=y
# CONFIG_SCHED_SMT is not set
CONFIG_HAVE_ARM_ARCH_TIMER=y
# CONFIG_MCPM is not set
# CONFIG_BIG_LITTLE is not set
@@ -451,13 +441,13 @@ CONFIG_NR_CPUS=8
CONFIG_HOTPLUG_CPU=y
CONFIG_ARM_PSCI=y
CONFIG_HZ_FIXED=0
# CONFIG_HZ_100 is not set
CONFIG_HZ_100=y
# CONFIG_HZ_200 is not set
# CONFIG_HZ_250 is not set
CONFIG_HZ_300=y
# CONFIG_HZ_300 is not set
# CONFIG_HZ_500 is not set
# CONFIG_HZ_1000 is not set
CONFIG_HZ=300
CONFIG_HZ=100
CONFIG_SCHED_HRTICK=y
# CONFIG_THUMB2_KERNEL is not set
CONFIG_ARM_PATCH_IDIV=y
@@ -470,7 +460,6 @@ CONFIG_HIGHMEM=y
CONFIG_HIGHPTE=y
CONFIG_ARM_PAN=y
CONFIG_CPU_SW_DOMAIN_PAN=y
CONFIG_HW_PERF_EVENTS=y
CONFIG_ARM_MODULE_PLTS=y
CONFIG_ARCH_FORCE_MAX_ORDER=10
CONFIG_ALIGNMENT_TRAP=y
@@ -492,6 +481,7 @@ CONFIG_ZBOOT_ROM_TEXT=0x0
CONFIG_ZBOOT_ROM_BSS=0x0
# CONFIG_ARM_APPENDED_DTB is not set
CONFIG_CMDLINE=""
CONFIG_ARCH_SUPPORTS_KEXEC=y
CONFIG_ARCH_SUPPORTS_CRASH_DUMP=y
CONFIG_ARCH_DEFAULT_CRASH_DUMP=y
CONFIG_AUTO_ZRELADDR=y
@@ -510,7 +500,7 @@ CONFIG_DMI=y
CONFIG_CPU_FREQ=y
CONFIG_CPU_FREQ_GOV_ATTR_SET=y
CONFIG_CPU_FREQ_GOV_COMMON=y
CONFIG_CPU_FREQ_STAT=y
# CONFIG_CPU_FREQ_STAT is not set
# CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE is not set
# CONFIG_CPU_FREQ_DEFAULT_GOV_POWERSAVE is not set
# CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE is not set
@@ -540,7 +530,7 @@ CONFIG_CPU_IDLE=y
CONFIG_CPU_IDLE_MULTIPLE_DRIVERS=y
# CONFIG_CPU_IDLE_GOV_LADDER is not set
CONFIG_CPU_IDLE_GOV_MENU=y
# CONFIG_CPU_IDLE_GOV_TEO is not set
CONFIG_CPU_IDLE_GOV_TEO=y
CONFIG_DT_IDLE_STATES=y
CONFIG_DT_IDLE_GENPD=y
@@ -572,17 +562,26 @@ CONFIG_KERNEL_MODE_NEON=y
#
# Power management options
#
# CONFIG_SUSPEND is not set
CONFIG_SUSPEND=y
CONFIG_SUSPEND_FREEZER=y
# CONFIG_HIBERNATION is not set
CONFIG_PM_SLEEP=y
CONFIG_PM_SLEEP_SMP=y
CONFIG_PM_AUTOSLEEP=y
# CONFIG_PM_USERSPACE_AUTOSLEEP is not set
CONFIG_PM_WAKELOCKS=y
CONFIG_PM_WAKELOCKS_LIMIT=100
CONFIG_PM_WAKELOCKS_GC=y
CONFIG_PM=y
# CONFIG_PM_DEBUG is not set
# CONFIG_APM_EMULATION is not set
CONFIG_PM_CLK=y
CONFIG_PM_GENERIC_DOMAINS=y
CONFIG_WQ_POWER_EFFICIENT_DEFAULT=y
CONFIG_PM_GENERIC_DOMAINS_SLEEP=y
CONFIG_PM_GENERIC_DOMAINS_OF=y
CONFIG_CPU_PM=y
# CONFIG_ENERGY_MODEL is not set
CONFIG_ENERGY_MODEL=y
CONFIG_ARCH_SUSPEND_POSSIBLE=y
CONFIG_ARM_CPU_SUSPEND=y
CONFIG_ARCH_HIBERNATION_POSSIBLE=y
@@ -597,14 +596,11 @@ CONFIG_ARCH_HAS_DMA_OPS=y
#
CONFIG_HOTPLUG_CORE_SYNC=y
CONFIG_HOTPLUG_CORE_SYNC_DEAD=y
CONFIG_KPROBES=y
# CONFIG_KPROBES is not set
CONFIG_JUMP_LABEL=y
# CONFIG_STATIC_KEYS_SELFTEST is not set
CONFIG_OPTPROBES=y
CONFIG_UPROBES=y
CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS=y
CONFIG_ARCH_USE_BUILTIN_BSWAP=y
CONFIG_KRETPROBES=y
CONFIG_HAVE_KPROBES=y
CONFIG_HAVE_KRETPROBES=y
CONFIG_HAVE_OPTPROBES=y
@@ -623,7 +619,6 @@ CONFIG_HAVE_ARCH_THREAD_STRUCT_WHITELIST=y
CONFIG_ARCH_32BIT_OFF_T=y
CONFIG_HAVE_REGS_AND_STACK_ACCESS_API=y
CONFIG_HAVE_RSEQ=y
CONFIG_HAVE_HW_BREAKPOINT=y
CONFIG_HAVE_PERF_REGS=y
CONFIG_HAVE_PERF_USER_STACK_DUMP=y
CONFIG_HAVE_ARCH_JUMP_LABEL=y
@@ -709,7 +704,6 @@ CONFIG_MODULE_DECOMPRESS=y
# CONFIG_MODULE_ALLOW_MISSING_NAMESPACE_IMPORTS is not set
CONFIG_MODPROBE_PATH="/sbin/modprobe"
# CONFIG_TRIM_UNUSED_KSYMS is not set
CONFIG_MODULES_TREE_LOOKUP=y
CONFIG_BLOCK=y
CONFIG_BLOCK_LEGACY_AUTOLOAD=y
CONFIG_BLK_CGROUP_RWSTAT=y
@@ -753,7 +747,11 @@ CONFIG_BFQ_GROUP_IOSCHED=y
# end of IO Schedulers
CONFIG_ASN1=y
CONFIG_UNINLINE_SPIN_UNLOCK=y
CONFIG_INLINE_SPIN_UNLOCK_IRQ=y
CONFIG_INLINE_READ_UNLOCK=y
CONFIG_INLINE_READ_UNLOCK_IRQ=y
CONFIG_INLINE_WRITE_UNLOCK=y
CONFIG_INLINE_WRITE_UNLOCK_IRQ=y
CONFIG_ARCH_SUPPORTS_ATOMIC_RMW=y
CONFIG_MUTEX_SPIN_ON_OWNER=y
CONFIG_RWSEM_SPIN_ON_OWNER=y
@@ -1314,7 +1312,6 @@ CONFIG_NET_FLOW_LIMIT=y
# Network testing
#
# CONFIG_NET_PKTGEN is not set
# CONFIG_NET_DROP_MONITOR is not set
# end of Network testing
# end of Networking options
@@ -1334,6 +1331,7 @@ CONFIG_BT_LEDS=y
# CONFIG_BT_MSFTEXT is not set
# CONFIG_BT_AOSPEXT is not set
CONFIG_BT_DEBUGFS=y
# CONFIG_BT_FEATURE_DEBUG is not set
#
# Bluetooth device drivers
@@ -1383,8 +1381,7 @@ CONFIG_MAC80211_RC_MINSTREL=y
CONFIG_MAC80211_RC_DEFAULT_MINSTREL=y
CONFIG_MAC80211_RC_DEFAULT="minstrel_ht"
# CONFIG_MAC80211_MESH is not set
CONFIG_MAC80211_LEDS=y
# CONFIG_MAC80211_MESSAGE_TRACING is not set
# CONFIG_MAC80211_LEDS is not set
# CONFIG_MAC80211_DEBUG_MENU is not set
CONFIG_MAC80211_STA_HASH_MAX_SIZE=0
CONFIG_RFKILL=y
@@ -1456,13 +1453,13 @@ CONFIG_PREVENT_FIRMWARE_BUILD=y
# Firmware loader
#
CONFIG_FW_LOADER=y
CONFIG_FW_LOADER_DEBUG=y
CONFIG_FW_LOADER_PAGED_BUF=y
CONFIG_EXTRA_FIRMWARE=""
# CONFIG_FW_LOADER_USER_HELPER is not set
CONFIG_FW_LOADER_COMPRESS=y
CONFIG_FW_LOADER_COMPRESS_XZ=y
CONFIG_FW_LOADER_COMPRESS_ZSTD=y
CONFIG_FW_CACHE=y
# CONFIG_FW_UPLOAD is not set
# end of Firmware loader
@@ -1489,8 +1486,6 @@ CONFIG_GENERIC_ARCH_TOPOLOGY=y
#
# Bus devices
#
CONFIG_ARM_CCI=y
CONFIG_ARM_CCI400_COMMON=y
# CONFIG_MOXTET is not set
# CONFIG_QCOM_EBI2 is not set
# CONFIG_QCOM_SSC_BLOCK_BUS is not set
@@ -1594,12 +1589,12 @@ CONFIG_ZRAM_BACKEND_842=y
CONFIG_ZRAM_BACKEND_LZO=y
# CONFIG_ZRAM_DEF_COMP_LZORLE is not set
# CONFIG_ZRAM_DEF_COMP_LZO is not set
# CONFIG_ZRAM_DEF_COMP_LZ4 is not set
CONFIG_ZRAM_DEF_COMP_LZ4=y
# CONFIG_ZRAM_DEF_COMP_LZ4HC is not set
CONFIG_ZRAM_DEF_COMP_ZSTD=y
# CONFIG_ZRAM_DEF_COMP_ZSTD is not set
# CONFIG_ZRAM_DEF_COMP_DEFLATE is not set
# CONFIG_ZRAM_DEF_COMP_842 is not set
CONFIG_ZRAM_DEF_COMP="zstd"
CONFIG_ZRAM_DEF_COMP="lz4"
# CONFIG_ZRAM_WRITEBACK is not set
# CONFIG_ZRAM_TRACK_ENTRY_ACTIME is not set
# CONFIG_ZRAM_MEMORY_TRACKING is not set
@@ -2117,7 +2112,7 @@ CONFIG_RPMSG_WWAN_CTRL=m
# Input device support
#
CONFIG_INPUT=y
CONFIG_INPUT_LEDS=y
# CONFIG_INPUT_LEDS is not set
CONFIG_INPUT_FF_MEMLESS=y
# CONFIG_INPUT_SPARSEKMAP is not set
CONFIG_INPUT_MATRIXKMAP=m
@@ -2165,127 +2160,10 @@ CONFIG_KEYBOARD_TM2_TOUCHKEY=m
# CONFIG_KEYBOARD_CAP11XX is not set
# CONFIG_KEYBOARD_BCM is not set
# CONFIG_KEYBOARD_CYPRESS_SF is not set
CONFIG_INPUT_MOUSE=y
# CONFIG_MOUSE_PS2 is not set
# CONFIG_MOUSE_SERIAL is not set
# CONFIG_MOUSE_APPLETOUCH is not set
# CONFIG_MOUSE_BCM5974 is not set
# CONFIG_MOUSE_CYAPA is not set
# CONFIG_MOUSE_ELAN_I2C is not set
# CONFIG_MOUSE_VSXXXAA is not set
# CONFIG_MOUSE_GPIO is not set
# CONFIG_MOUSE_SYNAPTICS_I2C is not set
# CONFIG_MOUSE_SYNAPTICS_USB is not set
CONFIG_INPUT_JOYSTICK=y
# CONFIG_JOYSTICK_ANALOG is not set
# CONFIG_JOYSTICK_A3D is not set
# CONFIG_JOYSTICK_ADC is not set
# CONFIG_JOYSTICK_ADI is not set
# CONFIG_JOYSTICK_COBRA is not set
# CONFIG_JOYSTICK_GF2K is not set
# CONFIG_JOYSTICK_GRIP is not set
# CONFIG_JOYSTICK_GRIP_MP is not set
# CONFIG_JOYSTICK_GUILLEMOT is not set
# CONFIG_JOYSTICK_INTERACT is not set
# CONFIG_JOYSTICK_SIDEWINDER is not set
# CONFIG_JOYSTICK_TMDC is not set
# CONFIG_JOYSTICK_IFORCE is not set
# CONFIG_JOYSTICK_WARRIOR is not set
# CONFIG_JOYSTICK_MAGELLAN is not set
# CONFIG_JOYSTICK_SPACEORB is not set
# CONFIG_JOYSTICK_SPACEBALL is not set
# CONFIG_JOYSTICK_STINGER is not set
# CONFIG_JOYSTICK_TWIDJOY is not set
# CONFIG_JOYSTICK_ZHENHUA is not set
# CONFIG_JOYSTICK_AS5011 is not set
# CONFIG_JOYSTICK_JOYDUMP is not set
CONFIG_JOYSTICK_XPAD=m
CONFIG_JOYSTICK_XPAD_FF=y
CONFIG_JOYSTICK_XPAD_LEDS=y
# CONFIG_JOYSTICK_PSXPAD_SPI is not set
# CONFIG_JOYSTICK_PXRC is not set
# CONFIG_JOYSTICK_QWIIC is not set
# CONFIG_JOYSTICK_FSIA6B is not set
# CONFIG_JOYSTICK_SENSEHAT is not set
# CONFIG_JOYSTICK_SEESAW is not set
# CONFIG_INPUT_MOUSE is not set
# CONFIG_INPUT_JOYSTICK is not set
# CONFIG_INPUT_TABLET is not set
CONFIG_INPUT_TOUCHSCREEN=y
# CONFIG_TOUCHSCREEN_ADS7846 is not set
# CONFIG_TOUCHSCREEN_AD7877 is not set
# CONFIG_TOUCHSCREEN_AD7879 is not set
# CONFIG_TOUCHSCREEN_ADC is not set
# CONFIG_TOUCHSCREEN_AR1021_I2C is not set
CONFIG_TOUCHSCREEN_ATMEL_MXT=m
# CONFIG_TOUCHSCREEN_ATMEL_MXT_T37 is not set
# CONFIG_TOUCHSCREEN_AUO_PIXCIR is not set
# CONFIG_TOUCHSCREEN_BU21013 is not set
# CONFIG_TOUCHSCREEN_BU21029 is not set
# CONFIG_TOUCHSCREEN_CHIPONE_ICN8318 is not set
# CONFIG_TOUCHSCREEN_CY8CTMA140 is not set
# CONFIG_TOUCHSCREEN_CY8CTMG110 is not set
# CONFIG_TOUCHSCREEN_CYTTSP_CORE is not set
CONFIG_TOUCHSCREEN_CYTTSP5=m
# CONFIG_TOUCHSCREEN_DYNAPRO is not set
# CONFIG_TOUCHSCREEN_HAMPSHIRE is not set
# CONFIG_TOUCHSCREEN_EETI is not set
# CONFIG_TOUCHSCREEN_EGALAX is not set
# CONFIG_TOUCHSCREEN_EGALAX_SERIAL is not set
# CONFIG_TOUCHSCREEN_EXC3000 is not set
# CONFIG_TOUCHSCREEN_FUJITSU is not set
CONFIG_TOUCHSCREEN_GOODIX=m
# CONFIG_TOUCHSCREEN_GOODIX_BERLIN_I2C is not set
# CONFIG_TOUCHSCREEN_GOODIX_BERLIN_SPI is not set
CONFIG_TOUCHSCREEN_HIDEEP=m
CONFIG_TOUCHSCREEN_HIMAX_HX852X=m
# CONFIG_TOUCHSCREEN_HYCON_HY46XX is not set
# CONFIG_TOUCHSCREEN_HYNITRON_CSTXXX is not set
# CONFIG_TOUCHSCREEN_ILI210X is not set
# CONFIG_TOUCHSCREEN_ILITEK is not set
# CONFIG_TOUCHSCREEN_S6SY761 is not set
# CONFIG_TOUCHSCREEN_GUNZE is not set
# CONFIG_TOUCHSCREEN_EKTF2127 is not set
# CONFIG_TOUCHSCREEN_ELAN is not set
# CONFIG_TOUCHSCREEN_ELO is not set
# CONFIG_TOUCHSCREEN_WACOM_W8001 is not set
# CONFIG_TOUCHSCREEN_WACOM_I2C is not set
# CONFIG_TOUCHSCREEN_MAX11801 is not set
CONFIG_TOUCHSCREEN_MMS114=m
CONFIG_TOUCHSCREEN_MELFAS_MIP4=m
CONFIG_TOUCHSCREEN_MSG2638=m
# CONFIG_TOUCHSCREEN_MTOUCH is not set
# CONFIG_TOUCHSCREEN_NOVATEK_NVT_TS is not set
CONFIG_TOUCHSCREEN_IMAGIS=m
# CONFIG_TOUCHSCREEN_IMX6UL_TSC is not set
# CONFIG_TOUCHSCREEN_INEXIO is not set
# CONFIG_TOUCHSCREEN_PENMOUNT is not set
CONFIG_TOUCHSCREEN_EDT_FT5X06=m
# CONFIG_TOUCHSCREEN_TOUCHRIGHT is not set
# CONFIG_TOUCHSCREEN_TOUCHWIN is not set
# CONFIG_TOUCHSCREEN_PIXCIR is not set
# CONFIG_TOUCHSCREEN_WDT87XX_I2C is not set
# CONFIG_TOUCHSCREEN_USB_COMPOSITE is not set
# CONFIG_TOUCHSCREEN_TOUCHIT213 is not set
# CONFIG_TOUCHSCREEN_TSC_SERIO is not set
# CONFIG_TOUCHSCREEN_TSC2004 is not set
# CONFIG_TOUCHSCREEN_TSC2005 is not set
# CONFIG_TOUCHSCREEN_TSC2007 is not set
# CONFIG_TOUCHSCREEN_RM_TS is not set
# CONFIG_TOUCHSCREEN_SILEAD is not set
# CONFIG_TOUCHSCREEN_SIS_I2C is not set
# CONFIG_TOUCHSCREEN_ST1232 is not set
CONFIG_TOUCHSCREEN_STMFTS=m
# CONFIG_TOUCHSCREEN_SUR40 is not set
# CONFIG_TOUCHSCREEN_SURFACE3_SPI is not set
# CONFIG_TOUCHSCREEN_SX8654 is not set
# CONFIG_TOUCHSCREEN_TPS6507X is not set
# CONFIG_TOUCHSCREEN_ZET6223 is not set
# CONFIG_TOUCHSCREEN_ZFORCE is not set
# CONFIG_TOUCHSCREEN_COLIBRI_VF50 is not set
# CONFIG_TOUCHSCREEN_ROHM_BU21023 is not set
# CONFIG_TOUCHSCREEN_IQS5XX is not set
# CONFIG_TOUCHSCREEN_IQS7211 is not set
CONFIG_TOUCHSCREEN_ZINITIX=m
# CONFIG_TOUCHSCREEN_HIMAX_HX83112B is not set
# CONFIG_INPUT_TOUCHSCREEN is not set
CONFIG_INPUT_MISC=y
# CONFIG_INPUT_AD714X is not set
# CONFIG_INPUT_ATMEL_CAPTOUCH is not set
@@ -2359,6 +2237,7 @@ CONFIG_TTY=y
CONFIG_VT=y
CONFIG_CONSOLE_TRANSLATIONS=y
CONFIG_VT_CONSOLE=y
CONFIG_VT_CONSOLE_SLEEP=y
CONFIG_VT_HW_CONSOLE_BINDING=y
CONFIG_UNIX98_PTYS=y
CONFIG_LEGACY_PTYS=y
@@ -2369,7 +2248,6 @@ CONFIG_LDISC_AUTOLOAD=y
#
# Serial drivers
#
CONFIG_SERIAL_EARLYCON=y
# CONFIG_SERIAL_8250 is not set
#
@@ -2382,9 +2260,8 @@ CONFIG_SERIAL_EARLYCON=y
# CONFIG_SERIAL_MAX310X is not set
# CONFIG_SERIAL_UARTLITE is not set
CONFIG_SERIAL_CORE=y
CONFIG_SERIAL_CORE_CONSOLE=y
CONFIG_SERIAL_MSM=y
CONFIG_SERIAL_MSM_CONSOLE=y
# CONFIG_SERIAL_MSM_CONSOLE is not set
# CONFIG_SERIAL_SIFIVE is not set
# CONFIG_SERIAL_SCCNXP is not set
# CONFIG_SERIAL_SC16IS7XX is not set
@@ -2938,10 +2815,11 @@ CONFIG_THERMAL_DEFAULT_GOV_STEP_WISE=y
CONFIG_THERMAL_GOV_STEP_WISE=y
# CONFIG_THERMAL_GOV_BANG_BANG is not set
# CONFIG_THERMAL_GOV_USER_SPACE is not set
# CONFIG_THERMAL_GOV_POWER_ALLOCATOR is not set
CONFIG_CPU_THERMAL=y
CONFIG_CPU_FREQ_THERMAL=y
CONFIG_DEVFREQ_THERMAL=y
CONFIG_THERMAL_EMULATION=y
# CONFIG_THERMAL_EMULATION is not set
# CONFIG_THERMAL_MMIO is not set
# CONFIG_GENERIC_ADC_THERMAL is not set
@@ -3545,7 +3423,7 @@ CONFIG_DRM_MIPI_DSI=y
CONFIG_DRM_KMS_HELPER=y
# CONFIG_DRM_PANIC is not set
CONFIG_DRM_FBDEV_EMULATION=y
CONFIG_DRM_FBDEV_OVERALLOC=100
CONFIG_DRM_FBDEV_OVERALLOC=0
# CONFIG_DRM_LOAD_EDID_FIRMWARE is not set
CONFIG_DRM_DISPLAY_DP_AUX_BUS=m
CONFIG_DRM_DISPLAY_HELPER=m
@@ -3916,10 +3794,7 @@ CONFIG_FRAMEBUFFER_CONSOLE_ROTATION=y
# CONFIG_FRAMEBUFFER_CONSOLE_DEFERRED_TAKEOVER is not set
# end of Console display driver support
CONFIG_LOGO=y
CONFIG_LOGO_LINUX_MONO=y
CONFIG_LOGO_LINUX_VGA16=y
CONFIG_LOGO_LINUX_CLUT224=y
# CONFIG_LOGO is not set
# end of Graphics support
# CONFIG_DRM_ACCEL is not set
@@ -4807,7 +4682,7 @@ CONFIG_LEDS_SY7802=m
CONFIG_LEDS_KTD202X=m
# CONFIG_LEDS_NCP5623 is not set
# CONFIG_LEDS_PWM_MULTICOLOR is not set
CONFIG_LEDS_QCOM_LPG=y
# CONFIG_LEDS_QCOM_LPG is not set
#
# LED Triggers
@@ -5218,6 +5093,7 @@ CONFIG_RPMSG_QCOM_SMD=y
# NXP/Freescale QorIQ SoC drivers
#
# CONFIG_QUICC_ENGINE is not set
# CONFIG_FSL_RCPM is not set
# end of NXP/Freescale QorIQ SoC drivers
#
@@ -5252,7 +5128,6 @@ CONFIG_QCOM_MEMSHARE_QMI_SERVICE=m
CONFIG_QCOM_PD_MAPPER=m
CONFIG_QCOM_PDR_HELPERS=m
CONFIG_QCOM_PDR_MSG=m
# CONFIG_QCOM_PMIC_PDCHARGER_ULOG is not set
CONFIG_QCOM_QMI_HELPERS=y
# CONFIG_QCOM_RAMP_CTRL is not set
CONFIG_QCOM_RMTFS_MEM=y
@@ -6017,19 +5892,6 @@ CONFIG_PHY_QCOM_USB_HS=y
# CONFIG_POWERCAP is not set
# CONFIG_MCB is not set
#
# Performance monitor support
#
CONFIG_ARM_CCI_PMU=m
CONFIG_ARM_CCI400_PMU=y
CONFIG_ARM_CCI5xx_PMU=y
# CONFIG_ARM_CCN is not set
CONFIG_ARM_PMU=y
CONFIG_ARM_V7_PMU=y
# CONFIG_ARM_PMUV3 is not set
# end of Performance monitor support
# CONFIG_RAS is not set
#
@@ -6254,7 +6116,6 @@ CONFIG_PSTORE_DEFAULT_KMSG_BYTES=10240
CONFIG_PSTORE_COMPRESS=y
CONFIG_PSTORE_CONSOLE=y
CONFIG_PSTORE_PMSG=y
# CONFIG_PSTORE_FTRACE is not set
CONFIG_PSTORE_RAM=y
# CONFIG_PSTORE_BLK is not set
# CONFIG_SYSV_FS is not set
@@ -6816,14 +6677,14 @@ CONFIG_GENERIC_LIB_DEVMEM_IS_ALLOWED=y
#
# printk and dmesg options
#
CONFIG_PRINTK_TIME=y
# CONFIG_PRINTK_TIME is not set
# CONFIG_PRINTK_CALLER is not set
# CONFIG_STACKTRACE_BUILD_ID is not set
CONFIG_CONSOLE_LOGLEVEL_DEFAULT=7
CONFIG_CONSOLE_LOGLEVEL_QUIET=4
CONFIG_MESSAGE_LOGLEVEL_DEFAULT=4
CONFIG_DYNAMIC_DEBUG=y
CONFIG_DYNAMIC_DEBUG_CORE=y
# CONFIG_DYNAMIC_DEBUG is not set
# CONFIG_DYNAMIC_DEBUG_CORE is not set
CONFIG_SYMBOLIC_ERRNAME=y
CONFIG_DEBUG_BUGVERBOSE=y
# end of printk and dmesg options
@@ -6844,10 +6705,7 @@ CONFIG_SECTION_MISMATCH_WARN_ONLY=y
#
# Generic Kernel Debugging Instruments
#
CONFIG_MAGIC_SYSRQ=y
CONFIG_MAGIC_SYSRQ_DEFAULT_ENABLE=0x0
CONFIG_MAGIC_SYSRQ_SERIAL=y
CONFIG_MAGIC_SYSRQ_SERIAL_SEQUENCE=""
# CONFIG_MAGIC_SYSRQ is not set
CONFIG_DEBUG_FS=y
CONFIG_DEBUG_FS_ALLOW_ALL=y
# CONFIG_DEBUG_FS_DISALLOW_MOUNT is not set
@@ -6929,7 +6787,6 @@ CONFIG_RCU_EXP_CPU_STALL_TIMEOUT=0
# CONFIG_RCU_CPU_STALL_CPUTIME is not set
# end of RCU Debugging
CONFIG_NOP_TRACER=y
CONFIG_HAVE_FUNCTION_TRACER=y
CONFIG_HAVE_FUNCTION_GRAPH_TRACER=y
CONFIG_HAVE_DYNAMIC_FTRACE=y
@@ -6938,57 +6795,8 @@ CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y
CONFIG_HAVE_SYSCALL_TRACEPOINTS=y
CONFIG_HAVE_C_RECORDMCOUNT=y
CONFIG_HAVE_BUILDTIME_MCOUNT_SORT=y
CONFIG_BUILDTIME_MCOUNT_SORT=y
CONFIG_TRACE_CLOCK=y
CONFIG_RING_BUFFER=y
CONFIG_EVENT_TRACING=y
CONFIG_CONTEXT_SWITCH_TRACER=y
CONFIG_TRACING=y
CONFIG_GENERIC_TRACER=y
CONFIG_TRACING_SUPPORT=y
CONFIG_FTRACE=y
# CONFIG_BOOTTIME_TRACING is not set
CONFIG_FUNCTION_TRACER=y
CONFIG_FUNCTION_GRAPH_TRACER=y
CONFIG_DYNAMIC_FTRACE=y
CONFIG_DYNAMIC_FTRACE_WITH_REGS=y
# CONFIG_FUNCTION_PROFILER is not set
# CONFIG_STACK_TRACER is not set
# CONFIG_IRQSOFF_TRACER is not set
# CONFIG_PREEMPT_TRACER is not set
# CONFIG_SCHED_TRACER is not set
# CONFIG_HWLAT_TRACER is not set
# CONFIG_OSNOISE_TRACER is not set
# CONFIG_TIMERLAT_TRACER is not set
# CONFIG_FTRACE_SYSCALLS is not set
# CONFIG_TRACER_SNAPSHOT is not set
CONFIG_BRANCH_PROFILE_NONE=y
# CONFIG_PROFILE_ANNOTATED_BRANCHES is not set
# CONFIG_PROFILE_ALL_BRANCHES is not set
# CONFIG_BLK_DEV_IO_TRACE is not set
CONFIG_KPROBE_EVENTS=y
# CONFIG_KPROBE_EVENTS_ON_NOTRACE is not set
CONFIG_UPROBE_EVENTS=y
CONFIG_BPF_EVENTS=y
CONFIG_DYNAMIC_EVENTS=y
CONFIG_PROBE_EVENTS=y
CONFIG_FTRACE_MCOUNT_RECORD=y
CONFIG_FTRACE_MCOUNT_USE_RECORDMCOUNT=y
# CONFIG_SYNTH_EVENTS is not set
# CONFIG_USER_EVENTS is not set
# CONFIG_HIST_TRIGGERS is not set
# CONFIG_TRACE_EVENT_INJECT is not set
# CONFIG_TRACEPOINT_BENCHMARK is not set
# CONFIG_RING_BUFFER_BENCHMARK is not set
# CONFIG_TRACE_EVAL_MAP_FILE is not set
# CONFIG_FTRACE_RECORD_RECURSION is not set
# CONFIG_FTRACE_STARTUP_TEST is not set
# CONFIG_FTRACE_SORT_STARTUP_TEST is not set
# CONFIG_RING_BUFFER_STARTUP_TEST is not set
# CONFIG_RING_BUFFER_VALIDATE_TIME_DELTAS is not set
# CONFIG_PREEMPTIRQ_DELAY_TEST is not set
# CONFIG_KPROBE_EVENT_GEN_TEST is not set
# CONFIG_RV is not set
# CONFIG_FTRACE is not set
# CONFIG_SAMPLES is not set
CONFIG_STRICT_DEVMEM=y
# CONFIG_IO_STRICT_DEVMEM is not set
@@ -7003,7 +6811,6 @@ CONFIG_ARM_UNWIND=y
# CONFIG_DEBUG_USER is not set
CONFIG_DEBUG_LL_INCLUDE="mach/debug-macro.S"
CONFIG_UNCOMPRESS_INCLUDE="debug/uncompress.h"
# CONFIG_ARM_KPROBES_TEST is not set
# CONFIG_PID_IN_CONTEXTIDR is not set
# CONFIG_CORESIGHT is not set
# end of arm Debugging
@@ -7012,7 +6819,6 @@ CONFIG_UNCOMPRESS_INCLUDE="debug/uncompress.h"
# Kernel Testing and Coverage
#
# CONFIG_KUNIT is not set
# CONFIG_FUNCTION_ERROR_INJECTION is not set
CONFIG_ARCH_HAS_KCOV=y
CONFIG_CC_HAS_SANCOV_TRACE_PC=y
# CONFIG_KCOV is not set
@@ -7044,7 +6850,6 @@ CONFIG_RUNTIME_TESTING_MENU=y
# CONFIG_TEST_SYSCTL is not set
# CONFIG_TEST_UDELAY is not set
# CONFIG_TEST_STATIC_KEYS is not set
# CONFIG_TEST_DYNAMIC_DEBUG is not set
# CONFIG_TEST_KMOD is not set
# CONFIG_TEST_MEMCAT_P is not set
# CONFIG_TEST_MEMINIT is not set
File diff suppressed because it is too large. Load diff
Binary file not shown.
Binary file not shown.
Loaded 100 of 169 files, more files were not shown because too many files have changed in this diff. Show more