Repository navigation
anaveto's fixes: fans, autotune, MangoHud log, PL2 label, Game section, thermal log, ES-DE per game - #190
Merged
Conversation
msi-wmi-platform keeps whole EC percent and rounds down both ways (% = pwm * 100 / 255 on write, pwm = % * 255 / 100 on read). to_pwm rounded to nearest, so 47 of the 101 duties landed one percent low: Quiet's 75 became 74 and Cooling's 68 and 75 became 67 and 74, and the readback then said the preset hadn't applied. to_pwm now rounds up, the smallest pwm that keeps the duty, and the readback allows 1 % for a driver that rounds another way. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A curve between Cooling and Full speed: off under 38 °C, then 45, 70, 90 and 100 % up to 82 °C (MSI's automatic control tops out at 84 %). It is the first preset with its own temperature points (PRESET_TEMPS), written so that the table stays in order after every single write. Every preset now starts from MSI's tables (enable=2 on both fans, which makes the driver write back the tables it read at boot, temperatures included), so a preset chosen after Extreme is on MSI's temperatures again. The readback checks the temperatures too. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
It said Cooling keeps the chip cooler. On the Claw 8 EX, MSI's automatic tables (read back 2026-11-13) are 60/64/68/74/80/84 % at 47/50/57/64/71/78 °C, and Cooling (40/45/58/68/75/75 % on the same temperatures) is slower at every point. The description now says so, and the module notes keep MSI's tables. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The descriptions were hidden behind the explanations toggle and said
nothing about the actual curve. The picked preset's short description
now always shows, followed by the table read back from the EC
("47 °C 0 % · 50 °C 40 % · …", per fan if the two differ; an
ONEXPLAYER fan's fixed speed). Picking a preset applies it, so the
curve shown is the one in use, MSI's own for Automatic.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
When the guard trips there was no record of what the fans were doing: nothing logged fan speed. Each guard check now also writes a row to thermal.csv in the plugin's log folder: package temperature, package power (RAPL energy since the last row), the TDP, the guard's step-down, the fan mode (MSI's automatic control or ClawDeck's table) and both fans' rpm. No timer of its own: the rows come with the guard's checks, every 10 s while thermald is paused. The file moves to thermal.csv.1 at 8 MB (about two weeks of rows). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The wrapper hid MangoHud with no_display. MangoHud up to 0.8.4 skips its per-frame update while the HUD is hidden and no log runs, and autostart_log is started from that update, so the log never started: autotune had no frame rate in any game without XeLL (Enshrouded on the Claw 8 EX). An empty layout at zero alpha hides it instead, also in place of a no_display in the user's own MANGOHUD_CONFIG; the launch log says when the log is on. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The newest CSV in the log folder was taken as the running game's, and read from the start: after a plugin restart, Order of the Sinking Star's first reading was Enshrouded's old log. And a new log was looked for every 30 s. Now only a log written since the game started counts, looked for every second until it appears. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
When autotune gave up on a game whose frame rate it can't read (no XeSS/XeLL, no MangoHud log), it paused but left what start() had applied: a target's mid-range start (22 W of a 35 W pick), or a saved CPU ceiling, boost and GPU floor. Enshrouded (Vulkan, own FSR3) ran at 22 W for the whole game, 30-40 fps instead of 60, until autotune was switched off. start() now notes the levers as the pick left them, and giving up puts them back (TDP to the set TDP, under the temperature guard's step if there is one). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Giving up after 30 s without a frame rate was for the whole session, so a game slower than that to its first frame (Order of the Sinking Star, 54 s) never got autotune. Giving up still puts your pick back; frames after that hand the game back to autotune (from your pick; most-frames mode measures again). A manual change pauses it for good, also after it gave up. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
PL2 is saved per power source, but only the hidden explanation said so: a PL2 set while plugged in looked lost on battery. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The PL2 slider's label (and the picks and PL2 it shows) stayed on the old power source until the panel was closed and opened again (user test, 2026-11-14): the panel only re-read its state on its own while a game ran. Once the backend has switched to the new power source's picks (index.tsx), an open Power panel reads its state again. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The section showed the first game in the list whenever the running game wasn't one ClawDeck can set up, and also with no game running: Enshrouded's upscaler and frame generation showed in Steam's menus, in ES-DE, and during an NES or PS3 game from ES-DE, as if they were the running game's. Now the user's pick shows, else the running game when it can be set up, else nothing until the user picks one. The pick holds until a game starts or stops. Closing Steam's dropdown re-mounts Quick Access, and the new panel took the running game over the pick, so a pick made while ES-DE ran showed nothing; and a pick kept for as long as the plugin stays loaded showed again in Steam's menus after ES-DE quit. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Steam only sees an emulator frontend: every ROM started from ES-DE runs as ES-DE's shortcut, so an NES game, a PS3 game and a Switch game all shared one limit, and without the launch wrapper on that shortcut Autotune had no frame rate. ES-DE's custom event scripts now tell ClawDeck which game starts and ends (frontend.py). Each game is kept under "<ES-DE appid>#<system>/<ROM>" with its own pick and learning; a game without its own pick starts at ES-DE's, never with ES-DE's learning, and ES-DE's menus keep ES-DE's pick. The plugin watches the event file with inotify only while a game runs: no timer, it wakes when the script writes. Fixes has an ES-DE section (in the side panel too) that sets it up: the scripts, ES-DE's custom-event-scripts setting (only while ES-DE is closed, since it writes its settings when it quits), and ClawDeck's launch wrapper in ES-DE's launch options, so every emulator writes a MangoHud log. Remove takes the scripts out again. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
At each start ClawDeck rewrites every saved game's launch file. A game ES-DE started is saved as "<ES-DE appid>#<system>/<ROM>" and launches as ES-DE, so it has none: each start logged "launch file not rewritten: appid must be numeric" for every such game. The start-up pass is now a method (_refresh_game_launches) and skips them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Brings in anaveto's ten ready PRs as their own commits (author kept), rebased onto main in one branch, because several of them touch the same lines and GitHub can't merge them one after another without conflicts:
#183 (exact fan duties), #184 (Extreme fan preset), #185 (fan curve shown, Cooling description), #186 (thermal.csv), #178 (MangoHud log starts again), #182 (only the running game's MangoHud log), #177 (no frame rate: your limit back), #188 (PL2 slider names the power source), #189 (Game section shows the running or picked game), #187 (ES-DE: each game gets its own power and autotune).
Conflicts resolved by keeping both sides:
fan.py: Fix fan duties landing one percent low #183's 1 % readback tolerance plus Add an Extreme fan preset with its own temperatures #184's temperature readback; the module notes keep both texts and Show each fan preset's curve, and correct Cooling's description #185's MSI table line.FanBattery.tsx: Show each fan preset's curve, and correct Cooling's description #185's final Cooling text plus Add an Extreme fan preset with its own temperatures #184's Extreme line.STATUS.md: every "Needs the maintainer" entry kept.#179 (autotune target rework) is still a draft and isn't included.
Checked here: the branch is identical to merging the ten PRs one by one with the same resolutions; 283 tests pass, tsc and the build are clean.
Generated by Claude Code