13 lines
1.3 KiB
Markdown
13 lines
1.3 KiB
Markdown
# B16 — aurora-ui: VPN status, POWER-key pages, auto blank (on top of B14)
|
|
|
|
Source: `src/aurora-ui.c` (+ `font8x16.h`, `font6x8.h` from Linux lib/fonts, GPL-2.0). Build on the board:
|
|
`cd /root/b16/src && make && install -m 0755 aurora-ui /usr/local/bin/aurora-ui && rc-service aurora-ui restart`.
|
|
Launch scripts/OpenRC unchanged from B14 (`b14/run`). Previous binary on the board: `/usr/local/bin/aurora-ui.b14`.
|
|
|
|
- POWER (pm8941_pwrkey, evdev /dev/input/event0, read directly): screen off → backlight on + STATUS; screen on → next page
|
|
STATUS → CLIENTS → FREE-TURN log → WG → STATUS. No press for `AURORA_UI_BLANK_S` s (default 180) → backlight 0, page 0, no drawing.
|
|
- STATUS: row 6 = `WG <handshake age>` (green ≤180 s) + `FT` (free-turn-client alive) / `VPN VLESS` / `VPN OFF`; PMIC temp moved to the clock row.
|
|
- CLIENTS (6x8 font): per station from `iw station dump` (rate = byte delta / 2 s, ↓ = to client) + name/IP from dnsmasq leases; up to 7.
|
|
- FREE-TURN: pid + tail of /run/free-turn.log (date/session stripped, Cyrillic transliterated, WARN yellow/ERROR red).
|
|
- WG: handshake age, rates, totals, endpoint, MTU, FT state + tail of /run/aurora-vpn/vpn.log. No keys are read/stored.
|
|
Holding POWER long may trigger the PMIC S2 hard reset — short presses only.
|