Skip to content

Ask for PawnIO and other missing software when this PC needs it - #80

Merged
kleju13 merged 1 commit into
mainfrom
requirements
Nov 12, 2026
Merged

kleju13 merged 1 commit into
mainfrom
requirements

Conversation

@kleju13

@kleju13 kleju13 commented Nov 12, 2026

Copy link
Copy Markdown
Owner

What changes

On Windows, CPU temperature needs PawnIO and its signed module for the CPU's maker, and neither comes with Windows. Until now the app only said "CPU temp off" with the raw error, and the README was the one place that said what to install. People on Reddit hit this on Intel: one found the fix alone, the next one did not.

  • The service lists what it needs from elsewhere. New src/requirements.rs. On Windows: PawnIO (C:\Program Files\PawnIO\PawnIOLib.dll), the module for this CPU (IntelMSR.bin or AMDFamily17.bin, from the CPU's maker in the registry), and Microsoft Edge or Chrome while an LCD shows a web page. On Linux: a Chromium browser for web pages. Each entry says what it is for, what camless found that needs it ("camless found an Intel CPU, Intel(R) Core(TM) i5-6500T…") and how to get it. It goes out in GET /v1/status as service.requirements.
  • The app adds its own. On Linux, curl for updates, in /api/state as requirements.
  • A dialog when something is missing. Once each time the app starts, after the service answers. Get it opens pawnio.eu or the PawnIO.Modules release, through the app's own list of links. Open folder opens camless's folder for the module (POST /api/open-folder with {"app": true}). Later asks again at the next start. Don't ask again stops it for those items.
  • Settings → Software from elsewhere lists everything with Installed, Missing or Not installed.
  • No restart after installing. The service checks every 5 s. When the list changes and CPU temperature is off, it tries PawnIO again every 5 s for 30 s, since the setup may still be starting the driver when its files appear.
  • camless report has a Missing: line with names only, no folders.
  • The PawnIO module path code moved from main.rs to sensors.rs, so the daemon can read it again.

Testing

  • cargo test --workspace for x86_64-pc-windows-gnu: 165, 36 and 27 tests pass. cargo test --workspace --release on Linux: 176, 36 and 25. Six tests are new: five for the requirement texts and links, one for the report line. The links test also checks that every link the service names is one the app opens.
  • Windows demo service under Wine, which has no PawnIO and no Edge, and a demo LCD on a web page: the service found all three missing and named the Intel CPU. Playwright at 1446 x 834, dark and light: the dialog shows all three, Get it sends pawnio and pawnio-modules, Open folder sends {"app":true}. Later closes it and it does not come back in that session. After a reload it shows again. After Don't ask again and a reload, it stays closed. With everything stubbed as installed there is no dialog, and Settings shows Installed.
  • Put a fake IntelMSR.bin next to camless.exe in the demo: within 5 s the status showed the module installed, the service tried 6 times over 25 s, and the CPU error changed from "file not found" to "PawnIO is not installed".

Not tested: a real PawnIO install on Windows, so the step where CPU temperature starts without a restart has not run end to end. The app's real WebView2 window was not tested either. Both need a Windows PC.

Claude Opus 5.5 on behalf of kleju13

🤖 Generated with Claude Code

The service lists what camless uses from elsewhere: PawnIO and the module for
this CPU's maker on Windows, and a Chromium browser while an LCD shows a web
page. The app adds curl on Linux. Settings shows each one, and the app opens a
dialog once per start when something this PC needs is missing, with what
camless found, a link to get it and the folder the module goes in.

The service checks every 5 s, and after a change tries CPU temperature again
for 30 s, so it starts once PawnIO and its module are in place.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Nov 12, 2026

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: f180cff8-469e-446b-9a25-0eed90005730

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@kleju13

kleju13 commented Nov 12, 2026

Copy link
Copy Markdown
Owner Author

Tested on Windows hardware

An agent ran this on the owner's PC (AMD Ryzen 7 5800X3D, PawnIO installed), in the real WebView2 window, with the service as administrator.

  • Tests. cargo test --workspace --release on Windows: 165, 36 and 27 pass. The branch merges cleanly with main at 0.6.0-beta.4.
  • Detection. The service ran from target\release, which has no AMDFamily17.bin. /v1/status listed PawnIO as installed, AMDFamily17.bin as missing with "camless found an AMD CPU, AMD Ryzen 7 5800X3D", and Edge as installed.
  • Dialog. It showed once after start and looked right. Open folder opened Explorer in target\release, the exe's folder. Later closed it.
  • No restart. The module was copied in at 02:23:56.05. CPU temperature showed at 02:23:57.65, 58.25 °C, and the "Pump runs at the failsafe 50%" banner went away. Settings showed all three items as Installed. The service checks every 5 s, so 1.6 s was a lucky draw. Expect up to 5 s.
  • Report. With the module removed, camless report has Missing: AMDFamily17.bin (CPU temperature and power on AMD CPUs, through PawnIO).

Not tested: a fresh PawnIO install, since the driver was not uninstalled; it goes through the same retry code the module took. Get it and Don't ask again were not clicked on this PC; both passed under Wine with Playwright.

Left as is: with the module deleted while the service runs, CPU temperature keeps reading, because the driver already holds the module, and Settings shows it as missing. That is right for the next start of the service, which would have no CPU temperature.

Claude Opus 5.5 on behalf of kleju13

@kleju13
kleju13 merged commit 2e644c1 into main Nov 12, 2026
3 checks passed
@kleju13
kleju13 deleted the requirements branch November 12, 2026 01:42
@kleju13 kleju13 mentioned this pull request Nov 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant