Repository navigation
Conversation
|
@claude review it |
|
Claude finished @landsman's task in 52s —— View job Review of #390: CPU trayI read the diff and the surrounding The design is sound. Reading the Process counters in one Things worth fixing
Smaller points
VerdictNo blockers. I'd fix item 1 before merge, because it undermines the purpose of the feature, and item 2 because it's cheap. The rest are optional. |
|
All of it addressed, nothing declined. Nothing here can run PowerShell, so CI's parse check is the only check; behaviour still needs a run on the T480.
Smaller points (3070e5d, d9fb2d7): the |
d9fb2d7 to
c1b1d42
Compare
…te, not the last tick's peak
…ndows 10 never writes one
…n apply.ps1 ran under pwsh
…hat the tray cannot see
c1b1d42 to
00bea7a
Compare
|
@claude review it again |
|
Claude finished @landsman's task in 47s —— View job Second review of #390: CPU trayAll four items from my first review are fixed as you described. I read the diff against Checked and fine
Worth a look (small)
Still unverified (from your note)
VerdictNo blockers. Item 1 is a one-line fix and worth doing. Items 2 and 3 are wording only. |
…l be at full speed The load alone does not say whether the cores stepped down, which is the half that costs battery. Hover now reads "CPU 4% 0.9 GHz", and the menu heads with the speed against the nominal clock. It is % Processor Performance times the nominal clock out of the model name, the arithmetic behind Task Manager's Speed. Measured on the T480 in 2 s samples: 0.9-1.8 GHz with a session running, 2.3-3.1 GHz with every core busy. A true idle was not measured, so the readme claims no idle figure. CurrentClockSpeed from WMI only ever returned 1496 or 1696 there, turbo included. MaxClockSpeed is the BIOS ceiling, 1896 against a nominal 1700, and would overstate every figure by 11%. A display language whose counters are not English has no such counter; that is caught at start and the tray runs without the figure.
…e shortcut was the only answer The Startup folder is a folder inside the Start menu, so Windows already has both halves: Start and type "CPU tray" runs it, and Task Manager -> Startup apps is the on/off for sign-in. The old answer, delete the shortcut, is undone by the next apply.ps1 run. Checked that the toggle is keyed by the shortcut's file name under StartupApproved\StartupFolder and survives apply.ps1 rewriting the .lnk: set it disabled, rewrote the shortcut, read 03 00 ... back, restored it.
On 2026-12-04 the fan spun up with nothing open that could explain it. The cause
was a Windows Update preview install:
DismHostandTiWorkerunpacking files,with Defender (
MsMpEng) scanning them as they landed. None of those shows a CPUfigure in
Get-Processwithout elevation, and the fan itself gives no hint whichprocess is behind it.
cpu-tray.ps1puts the answer in the tray:grey when quiet, orange from half the alert threshold, red above it.
name, so twenty
chrome.exeare one line, and the usual background suspectsalso say what they are doing, e.g. Windows Update installing.
the three processes busiest on average over that minute, not the last tick's
peak. It comes once per busy spell, not again until the load drops below 70% of
the threshold.
It reads the Process performance counters rather than
Get-Process, so protectedprocesses are covered too, in one call per tick. A tick that keeps failing (an
English counter name on another display language, say) shows the error in the
tooltip and logs it once to
%TEMP%\cpu-tray.log. The thresholds are parametersat the top of the script.
apply.ps1writes a CPU tray shortcut into the Startup folder on every run, soa moved checkout gets the new path. It always targets Windows PowerShell 5.1, even
when
apply.ps1ran underpwsh. The icon is pinned to the taskbar through thesame
IsPromotedvalue Settings writes; the script looks for that entry duringits first minute only, since Windows 10 never writes one. To stop it starting,
delete the shortcut; to quit the running one, use Quit in its menu.
Not checked on Windows yet: the pin taking effect live, and the load the tray
itself costs.