Skip to content

fix(windows): apply Surface power policy in all modes - #702

Merged
DevSecNinja merged 4 commits into
mainfrom
devsecninja-disable-surface-power-button
Aug 11, 2026
Merged

fix(windows): apply Surface power policy in all modes#702
DevSecNinja merged 4 commits into
mainfrom
devsecninja-disable-surface-power-button

Conversation

@DevSecNinja

@DevSecNinja DevSecNinja commented Aug 11, 2026

Copy link
Copy Markdown
Owner

Surface Laptop 7 devices report their model through SMBIOS as Microsoft Surface Laptop, 7th Edition, while the original detector only accepted names beginning directly with Surface Laptop. This caused supported hardware to be skipped.

The detector now accepts Microsoft’s real SMBIOS naming while still requiring Microsoft Corporation as the manufacturer and a Surface Laptop model family. The setup is also a regular Windows .ps1 chezmoi script instead of a full-profile-only template, so it runs in every Windows installation mode. Non-Windows systems continue to exclude the Windows scripts directory through .chezmoiignore.

Regression coverage uses the exact SMBIOS value reported by the affected device. The corrected policy was verified on the laptop itself, with both AC and battery power-button indexes set to 0 (Do nothing).

DevSecNinja and others added 3 commits August 11, 2026 10:58
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 6c0af4ce-01e4-448b-bc3c-6f7d7ee92610
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 6c0af4ce-01e4-448b-bc3c-6f7d7ee92610
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 6c0af4ce-01e4-448b-bc3c-6f7d7ee92610
@DevSecNinja DevSecNinja changed the title fix(windows): detect Surface Laptop SMBIOS names fix(windows): apply Surface power policy in all modes Aug 11, 2026
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 6c0af4ce-01e4-448b-bc3c-6f7d7ee92610
@DevSecNinja
DevSecNinja merged commit 92f70b1 into main Aug 11, 2026
19 checks passed
@DevSecNinja
DevSecNinja deleted the devsecninja-disable-surface-power-button branch August 11, 2026 09:56
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