Repository navigation
MiControl v0.1.20
·
142 commits
to main
since this release
Immutable
release. Only release title and notes can be modified.
[0.1.20] - 2026-08-27
Added
- External watchdog — MiControl auto-restarts after unexpected death. The MiControlBridge SYSTEM service now hosts a watchdog thread that polls for
micontrol.exeevery 30 s and, after 4 consecutive misses (~2 min, leaving room for the WER restart), relaunches it--minimizedinto the active interactive session viaWTSQueryUserToken+CreateProcessAsUserW. Two%ProgramData%\MiControlmarkers gate it:watchdog_enabled(mirrors the autostart preference) andwatchdog_user_quit(written on intentional quit, removed at next app startup) — a manual quit stays closed until the user reopens the app.
Fixed
- MiControl dying silently and never coming back. Root cause is an upstream WebView2/ETW race:
ControlLib.dllunloads while its ETW provider callback stays registered; ntdll's ETW notification thread later executes the unloaded DLL →0xc0000005NX fault that kills the whole process with no Rust panic and no log flush (also present in 0.1.18 — not a MiControl regression). Two layers now restore the app automatically:RegisterApplicationRestartfixed — it was passing a NULL command line (which removes the registration) plusRESTART_NO_CRASH|RESTART_NO_HANG(opting out of crash restarts); now registers--minimizedwith flags 0 so WER can restart the app on crash.- External watchdog (see Added) restores the app even when WER does not act.
--minimizednow honored at startup — starts tray-only without flashing a window (used by autostart and watchdog relaunches; previously the window was briefly shown).
Changed
- Ambient-light sensor: cached COM sensor stack.
get_ambient_lux_com()no longer re-creates theISensorManagerand re-enumerates sensors every 2 s; the COM stack is cached per-thread (thread-local,wmi_cachepattern) and only invalidated on failure.