Skip to content

Commit 861faf5

Browse files
committed
feat(tweaks): Phase 5.4 Energy & Battery Management — +50 tweaks, 5 new modules (v6.25.0)
BatterySaver.cs +10, ChargingOptimization.cs +10, StandbyStates.cs +10, CPUPowerStates.cs +10, DisplayPower.cs +10 Total: 7,479 tweaks, 127 categories, 175 modules, 3,230 tests (0 failures)
1 parent 1d9e616 commit 861faf5

24 files changed

Lines changed: 1053 additions & 49 deletions

.github/copilot-instructions.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
> Auto-loaded by GitHub Copilot on every chat/agent session in this workspace.
44
> Keep this file accurate — it is the fastest path to project understanding.
5-
> Last verified: 2026-04-07 (v6.24.0, ~7,429 tweaks, 122 categories, 3,230 tests).
5+
> Last verified: 2026-04-07 (v6.25.0, ~7,479 tweaks, 127 categories, 3,230 tests).
66
77
## Companion Instruction Files
88

@@ -81,9 +81,9 @@ Rules:
8181
| Build | `dotnet build` / MSBuild via `RegiLattice.sln` |
8282
| Test | xUnit 2.9.3 — 3,230 tests (0 failures) |
8383
| GUI | WinForms with 11 themes (Catppuccin Mocha/Latte, Nord, Dracula + 7 more) |
84-
| Version | 6.24.0 |
84+
| Version | 6.25.0 |
8585
| Install | `dotnet build RegiLattice.sln -c Release` |
86-
| Tweaks | 7,429 across 122 categories (170 files) |
86+
| Tweaks | 7,479 across 127 categories (175 files) |
8787
| Tests | 3,230 passing (0 consistent failures) |
8888
| NuGet | System.Management 10.0.5, Microsoft.NET.Test.Sdk 17.14.1 |
8989

.github/instructions/lessons-learned.instructions.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ applyTo: "**/*.cs,**/tests/**,**/*Tests/**"
77
> Accumulated hard-won insights from the Python → C# migration, test coverage sprints,
88
> the 453-tweak restoration campaign, and the large-file splitting campaign.
99
> These rules are **as important as the coding standards** — they prevent recurring mistakes.
10-
> Last updated: 2026-04-07 (v6.24.0, C# 13 / .NET 10.0-windows, ~7,429 tweaks, 122 categories, 3,230 tests)
10+
> Last updated: 2026-04-07 (v6.25.0, C# 13 / .NET 10.0-windows, ~7,479 tweaks, 127 categories, 3,230 tests)
1111
1212
---
1313

@@ -1635,7 +1635,8 @@ Version history:
16351635
| v6.22.0 | 8 | +80 | 672–679 (SecurityWDAG/Printer/LSA/MSI/NTP/WinRM/CredGuard/IEZones; fix SnapshotManager.Save() live StatusMap() hang via optional cachedStatus param) |
16361636
| v6.23.0 | 8 | +80 | 680–687 (GamingDirectStorage/VRR/LatencyTuning/GPUPower/NetworkOpt/AudioOpt/AccessibilityMotor/AccessibilityVisual; CI paths-ignore + weekly mutation tests; fix 3 broken ApplyAction impls; 7,349 tweaks) |
16371637
| v6.24.0 | 8 | +80 | — (Phase 5.3 Accessibility remaining + Phase 5.5 Developer: MagnifierAdvanced/LiveCaptions/EyeControlSettings/VoiceAccessControl/WinDbgSettings/WSLAdvanced/GitCredManager/ContainerRuntime) |
1638-
**Current version**: v6.24.0 — 7,429 tweaks, 122 categories, 170 files (31 original + 139 extracted/split). Run full gap analysis on all three phases before creating any new module.
1638+
| v6.25.0 | 5 | +50 | — (Phase 5.4 Energy & Battery Management: BatterySaver/ChargingOptimization/StandbyStates/CPUPowerStates/DisplayPower; 7,479 tweaks, 127 categories, 175 modules) |
1639+
**Current version**: v6.25.0 — 7,479 tweaks, 127 categories, 175 files (31 original + 144 extracted/split). Run full gap analysis on all three phases before creating any new module.
16391640

16401641
---
16411642

.github/skills/debug-fix/SKILL.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ CS8132: Cannot deconstruct a tuple of N elements into M variables
7676
Settings file provided does not conform to required format. An XML comment cannot
7777
contain '--', and '-' cannot be the last character. Line NN, position PP.
7878
```
79-
**Fix**: Remove any `--flag-syntax` (double hyphen) from XML comment text inside `.runsettings`.
80-
XML 1.0 prohibits `--` anywhere inside `<!-- ... -->` content (the delimiters themselves are fine).
79+
**Fix**: Remove any `--flag-syntax` (double hyphen) from XML comment text inside `.runsettings`.
80+
XML 1.0 prohibits `--` anywhere inside `<!-- ... -->` content (the delimiters themselves are fine).
8181
```xml
8282
<!-- ❌ BAD — "--" in comment content is fatal in .NET SDK 10.0.201+ -->
8383
<!-- Equivalent to passing --blame-hang-timeout 30s on the CLI -->
@@ -100,8 +100,8 @@ dotnet test tests/RegiLattice.GUI.Tests/... --no-build --settings tests/.runsett
100100

101101
### PublishTrimmed → IL2026 (48+ errors)
102102
**Symptom**: `IL2026 Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access...`
103-
**Fix**: Remove `<PublishTrimmed>true</PublishTrimmed>` from any project referencing `RegiLattice.Core`.
104-
Core services use `System.Text.Json` reflection-based serialization and cannot be safely trimmed
103+
**Fix**: Remove `<PublishTrimmed>true</PublishTrimmed>` from any project referencing `RegiLattice.Core`.
104+
Core services use `System.Text.Json` reflection-based serialization and cannot be safely trimmed
105105
without migrating all of them to source-generation contexts first.
106106
```xml
107107
<!-- ❌ BAD — causes 48 IL2026 errors on CLI self-contained publish -->

Directory.Build.props

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@
1919
Configuration Manager to the x64 platform. Both are required. -->
2020
<Platforms>x64</Platforms>
2121
<PlatformTarget>x64</PlatformTarget>
22-
<Version>6.24.0</Version>
23-
<AssemblyVersion>6.24.0.0</AssemblyVersion>
24-
<FileVersion>6.24.0.0</FileVersion>
25-
<InformationalVersion>6.24.0</InformationalVersion>
22+
<Version>6.25.0</Version>
23+
<AssemblyVersion>6.25.0.0</AssemblyVersion>
24+
<FileVersion>6.25.0.0</FileVersion>
25+
<InformationalVersion>6.25.0</InformationalVersion>
2626
<Deterministic>true</Deterministic>
2727
<ContinuousIntegrationBuild Condition="'$(GITHUB_ACTIONS)' == 'true'">true</ContinuousIntegrationBuild>
2828
<TieredCompilation>true</TieredCompilation>

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
shutup10 alternative w10privacy alternative O&O ShutUp10 winutil win11debloat
66
windows 11 tweaks windows 10 tweaks gaming optimization security hardening
77
registry backup corporate IT sysadmin gpo intune-compatible compliance audit
8-
7429 tweaks 122 categories declarative regop engine dry-run snapshot diff
8+
7479 tweaks 127 categories declarative regop engine dry-run snapshot diff
99
RegiLattice windows-optimizer tweak-manager registry-automation open-source
1010
-->
1111

@@ -23,15 +23,15 @@
2323
![Tests](https://img.shields.io/badge/tests-3230%20passing-brightgreen)
2424
![Platform](https://img.shields.io/badge/platform-Windows%20x64-0078D6?logo=windows&logoColor=white)
2525
![License](https://img.shields.io/badge/license-MIT-green)
26-
![Version](https://img.shields.io/badge/version-6.24.0-blue)
26+
![Version](https://img.shields.io/badge/version-6.25.0-blue)
2727

28-
A comprehensive **Windows 10 / Windows 11 registry tweak toolkit** and system optimizer — debloater · privacy hardening tool · performance optimizer · security hardening · group policy alternative — with **7,429 verified tweaks** across **122 categories**, a **declarative RegOp engine**, a **full CLI** with 25+ commands, an **interactive console menu**, and a **WinForms GUI** with **11 switchable themes**. Built on **.NET 10 (C# 13)** for native performance on Windows 10/11 x64.
28+
A comprehensive **Windows 10 / Windows 11 registry tweak toolkit** and system optimizer — debloater · privacy hardening tool · performance optimizer · security hardening · group policy alternative — with **7,479 verified tweaks** across **127 categories**, a **declarative RegOp engine**, a **full CLI** with 25+ commands, an **interactive console menu**, and a **WinForms GUI** with **11 switchable themes**. Built on **.NET 10 (C# 13)** for native performance on Windows 10/11 x64.
2929

3030
## Download & Install
3131

3232
**Pre-built installer (recommended):**
3333

34-
👉 **[Download RegiLattice v6.24.0](https://github.com/RajwanYair/RegiLattice/releases/latest)** (MSI installer + portable EXE) from the [Releases page](https://github.com/RajwanYair/RegiLattice/releases)
34+
👉 **[Download RegiLattice v6.25.0](https://github.com/RajwanYair/RegiLattice/releases/latest)** (MSI installer + portable EXE) from the [Releases page](https://github.com/RajwanYair/RegiLattice/releases)
3535

3636
The MSI installer:
3737
- Installs **GUI** (`RegiLattice.GUI.exe`) under `Program Files\RegiLattice\GUI\`
@@ -50,7 +50,7 @@ Download `RegiLattice.GUI.exe` or `RegiLattice.exe` directly from the [Releases
5050
<img src="docs/assets/stats.svg" alt="RegiLattice Stats" width="100%"/>
5151
</p>
5252

53-
- **7,429 verified tweaks** across 122 categories — each fully reversible with apply + remove
53+
- **7,479 verified tweaks** across 127 categories — each fully reversible with apply + remove
5454
- **Declarative RegOp pattern** — most tweaks defined as data (`ApplyOps`/`RemoveOps`/`DetectOps`), not code
5555
- **3 interfaces** — WinForms GUI, CLI with 25+ commands, interactive console menu
5656
- **WinForms GUI** — 11 switchable themes (Catppuccin Mocha/Latte, Nord, Dracula, Tokyo Night, Gruvbox Dark, Solarized Dark, One Dark Pro, Rosé Pine, Everforest, Cyberpunk), collapsible categories, scope badges (USER/MACHINE/BOTH), live search, checkbox selection, status filters, profile selector
@@ -110,9 +110,9 @@ Download `RegiLattice.GUI.exe` or `RegiLattice.exe` directly from the [Releases
110110
<img src="docs/assets/themes-preview.svg" alt="11 Switchable Colour Themes" width="100%"/>
111111
</p>
112112

113-
## Tweak Categories (122)
113+
## Tweak Categories (127)
114114

115-
122 categories spanning privacy, performance, security, accessibility, gaming, networking, browser hardening, developer tools, cloud storage, remote desktop, virtualization, and more. Each tweak is fully reversible with apply/remove/detect operations.
115+
127 categories spanning privacy, performance, security, accessibility, gaming, networking, browser hardening, developer tools, cloud storage, remote desktop, virtualization, and more. Each tweak is fully reversible with apply/remove/detect operations.
116116

117117
See [docs/TweakCategories.md](docs/TweakCategories.md) for the full category reference, or use `--categories` for live counts.
118118

@@ -321,7 +321,7 @@ MIT — see [LICENSE](LICENSE) for details.
321321

322322
Paste this into the repository **Description** field for maximum GitHub search visibility:
323323

324-
> Windows 10/11 registry tweaks toolkit — 7,429 tweaks, debloater, privacy hardening, performance optimizer, security hardening, group policy alternative. WinForms GUI + CLI. .NET 10, C# 13.
324+
> Windows 10/11 registry tweaks toolkit — 7,479 tweaks, debloater, privacy hardening, performance optimizer, security hardening, group policy alternative. WinForms GUI + CLI. .NET 10, C# 13.
325325
326326
### Recommended GitHub Topics
327327

@@ -331,7 +331,7 @@ Set the following topics on the repository (GitHub UI → "About" gear → Topic
331331

332332
### Repository Description *(paste into GitHub → About gear → Description)*
333333

334-
> Windows 10/11 registry tweaks toolkit — 7,429 tweaks, debloater, privacy hardening, performance optimizer, security hardening, group policy alternative, compliance audit. WinForms GUI + CLI. .NET 10, C# 13. Open source.
334+
> Windows 10/11 registry tweaks toolkit — 7,479 tweaks, debloater, privacy hardening, performance optimizer, security hardening, group policy alternative, compliance audit. WinForms GUI + CLI. .NET 10, C# 13. Open source.
335335
336336
### Search Keywords
337337

chocolatey/regilattice.nuspec

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<metadata>
1515
<id>regilattice</id>
1616
<!-- Version is replaced by the release workflow during choco pack -->
17-
<version>6.24.0</version>
17+
<version>6.25.0</version>
1818
<packageSourceUrl>https://github.com/RajwanYair/RegiLattice/tree/main/chocolatey</packageSourceUrl>
1919
<owners>RajwanYair</owners>
2020
<title>RegiLattice</title>
@@ -28,11 +28,11 @@
2828
<docsUrl>https://github.com/RajwanYair/RegiLattice/blob/main/docs/Development.md</docsUrl>
2929
<bugTrackerUrl>https://github.com/RajwanYair/RegiLattice/issues</bugTrackerUrl>
3030
<tags>registry tweaks windows optimization privacy performance security gui cli admin</tags>
31-
<summary>Windows Registry Tweak Toolkit — 7,429 tweaks across 122 categories</summary>
31+
<summary>Windows Registry Tweak Toolkit — 7,479 tweaks across 127 categories</summary>
3232
<description><![CDATA[
3333
## RegiLattice
3434
35-
A comprehensive Windows registry tuning toolkit featuring **7,429 expert-curated tweaks** across **122 categories** — from privacy hardening and performance optimisation to security policies and enterprise management.
35+
A comprehensive Windows registry tuning toolkit featuring **7,479 expert-curated tweaks** across **127 categories** — from privacy hardening and performance optimisation to security policies and enterprise management.
3636
3737
### Features
3838

docs/CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,22 @@ All notable changes to RegiLattice are documented here.
44
Format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
55
This project adheres to [Semantic Versioning](https://semver.org/).
66

7+
## [6.25.0] — 2026-04-07
8+
9+
### Added — Phase 5.4: Energy & Battery Management (+50 tweaks, +5 modules)
10+
11+
- `BatterySaver.cs` — 10 Battery saver threshold, auto-dim, hibernate, wake-on-pattern tweaks (`batt-*`)
12+
- `ChargingOptimization.cs` — 10 Expose battery level/action settings in Power Options UI (`chrg-*`)
13+
- `StandbyStates.cs` — 10 Connected Standby, hybrid sleep, wake timers, S1/S2 states (`standby-*`)
14+
- `CPUPowerStates.cs` — 10 CPU min/max state, boost mode, EPP, core parking, perf policies (`cpupwr-*`)
15+
- `DisplayPower.cs` — 10 Display timeout, adaptive dimming/brightness, display-required policy (`dispwr-*`)
16+
17+
### Stats
18+
19+
- Tweaks: 7,479 (+50) across 127 categories
20+
- Modules: 175 files (+5)
21+
- Tests: 3,230 (2,434 Core + 434 CLI + 362 GUI), 0 failures
22+
723
## [6.24.0] — 2026-04-07
824

925
### Added — Phase 5.3 Accessibility (remaining) + Phase 5.5 Developer Modules (+80 tweaks, +8 modules)

docs/assets/architecture.svg

Lines changed: 3 additions & 3 deletions
Loading

docs/assets/banner.svg

Lines changed: 3 additions & 3 deletions
Loading

docs/assets/stats.svg

Lines changed: 2 additions & 2 deletions
Loading

0 commit comments

Comments
 (0)