Tags: mkl159/miyoodeck
Tags
v1.6: fix infoPanel timeout, add preview screenshot, update README - launch.sh: reduce infoPanel --timeout from 20s to 10s so physical buttons work immediately after the overlay auto-dismisses - docs/preview.png: add interface screenshot for README - README: update framebuffer section (auto-detect 16/32-bit via ioctl) - ARM binary rebuilt Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
fix: auto-detect framebuffer format + read battery from /tmp/percBat screenshot: - getFbInfo() reads BPP (16 or 32) and R/G/B channel offsets via FBIOGET_VSCREENINFO ioctl — works for both RGB565 (MM original) and ABGR8888 (MM Plus) without hardcoding assumptions - channelTo8bit() extracts any channel using kernel-provided offset+length, correct for any pixel format the driver reports - No more hardcoded BGR565 — color channels are now always accurate battery: - Read percentage from /tmp/percBat (written by Onion's batmon daemon) This is the correct method for ALL Miyoo Mini models on Onion OS Previous code read from sysfs /sys/class/power_supply/ which does not exist on the original Miyoo Mini - readChargingState() tries /tmp/axpState cache, then GPIO59 fallback - Still falls back to sysfs for edge cases Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
fix: image rotation, tearing, refresh rate, infoPanel timeout - screenshot: rotate image 180deg - Miyoo Mini framebuffer is stored upside-down relative to display orientation; flip both X and Y axes to correct - fb_linux.go: FBIOGET_VSCREENINFO ioctl to seek to the currently displayed triple-buffer before reading, eliminates old TV tearing effect - fb_other.go: stub for non-Linux builds (go build on Windows still works) - screenshot: switch WebSocket stream to JPEG quality 80 - 5x faster than PNG on ARM Cortex-A7, smoother live preview - websocket: screenshot interval 3s->1.5s (menu), 5s->3s (in-game) - launch.sh: infoPanel timeout 8s->20s so IP is visible long enough to type Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>