Skip to content

Commit e997074

Browse files
committed
fixes
- renamed Battery Health Reporting to Usage Reporting - fixed DPS status not changing
1 parent 6532011 commit e997074

File tree

14 files changed

+127
-125
lines changed

14 files changed

+127
-125
lines changed

additionals/DisableUR.bat

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
@echo off
2+
wevtutil sl Microsoft-Windows-SleepStudy/Diagnostic /q:false
3+
wevtutil sl Microsoft-Windows-Kernel-Processor-Power/Diagnostic /q:false
4+
wevtutil sl Microsoft-Windows-UserModePowerService/Diagnostic /q:false
5+
reg add "HKLM\SYSTEM\ControlSet001\Services\DPS" /v "Start" /t REG_DWORD /d "4" /f >NUL 2>nul
6+
reg add "HKLM\SYSTEM\ControlSet001\Services\diagsvc" /v "Start" /t REG_DWORD /d "4" /f >NUL 2>nul
7+
reg add "HKLM\SYSTEM\ControlSet001\Services\WdiServiceHost" /v "Start" /t REG_DWORD /d "4" /f >NUL 2>nul
8+
reg add "HKLM\SYSTEM\ControlSet001\Services\WdiSystemHost" /v "Start" /t REG_DWORD /d "4" /f >NUL 2>nul
9+
goto :EOF

additionals/EnableUR.bat

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
@echo off
2+
wevtutil sl Microsoft-Windows-SleepStudy/Diagnostic /q:true
3+
wevtutil sl Microsoft-Windows-Kernel-Processor-Power/Diagnostic /q:true
4+
wevtutil sl Microsoft-Windows-UserModePowerService/Diagnostic /q:true
5+
reg add "HKLM\SYSTEM\ControlSet001\Services\DPS" /v "Start" /t REG_DWORD /d "2" /f >NUL 2>nul
6+
reg add "HKLM\SYSTEM\ControlSet001\Services\diagsvc" /v "Start" /t REG_DWORD /d "2" /f >NUL 2>nul
7+
reg add "HKLM\SYSTEM\ControlSet001\Services\WdiServiceHost" /v "Start" /t REG_DWORD /d "2" /f >NUL 2>nul
8+
reg add "HKLM\SYSTEM\ControlSet001\Services\WdiSystemHost" /v "Start" /t REG_DWORD /d "2" /f >NUL 2>nul
9+
goto :EOF

lib/l10n/intl_de.arb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,15 +65,15 @@
6565
"miscHibernateLabel": "Ruhezustand",
6666
"miscHibernateDescription": "Ein energiesparender S4-Zustand, speichert die aktuelle Sitzung im Ruhezustand und schaltet das Gerät aus. Standardmäßig deaktiviert, um Instabilität beim Dual-Booten oder System-Upgrades zu vermeiden",
6767
"miscHibernateModeLabel": "Ruhezustand",
68-
"miscHibernateModeDescription": "Vollständig Unterstützt Ruhezustand und Schnellstart. Die Ruhezustandsdatei wird 40 % des installierten physischen RAM ausmachen. Ruhezustand kann zum Energiemenü hinzugefügt werden.\n\nReduziert Unterstützt nur Schnellstart ohne Ruhezustand. Die Ruhezustandsdatei wird 20 % des physischen RAM installiert sein und den Ruhezustand aus dem Energiemenü entfernen",
68+
"miscHibernateModeDescription": "Vollständig - Unterstützt Ruhezustand und Schnellstart. Die Ruhezustandsdatei wird 40 % des installierten physischen RAM ausmachen. Ruhezustand kann zum Energiemenü hinzugefügt werden.\n\nReduziert - Unterstützt nur Schnellstart ohne Ruhezustand. Die Ruhezustandsdatei wird 20 % des physischen RAM installiert sein und den Ruhezustand aus dem Energiemenü entfernen",
6969
"miscFastStartupLabel": "Schnellstart",
7070
"miscFastStartupDescription": "Speichern Sie die aktuelle Sitzung unter C:\\hiberfil.sys für einen schnelleren Start, wirkt sich nicht auf Neustarts aus. Standardmäßig deaktiviert, um Instabilität beim Dual-Booten oder System-Upgrades zu vermeiden",
7171
"miscTMMonitoringLabel": "Netzwerk- und GPU-Überwachung",
7272
"miscTMMonitoringDescription": "Überwachungsdienste für Task-Manager aktivieren",
7373
"miscMpoLabel": "Multiplane-Overlay (MPO)",
7474
"miscMpoCodeSnippet": "Empfohlen, auf Nvidia GTX 16xx-, RTX 3xxx- und AMD RX 5xxx-Karten oder neuer auszuschalten.\nWenn dies aktiviert bleibt, kann es zu schwarzen Bildschirmen, Stottern, Flackern und anderen allgemeinen Anzeigeproblemen kommen.",
75-
"miscBHRLabel": "Bericht zum Batteriezustand",
76-
"miscBHRDescription": "Meldet den Zustand des Akkus; durch die Aktivierung erhöht sich die Systemnutzung",
75+
"miscURLabel": "Nutzungsberichte",
76+
"miscURDescription": "Berichte über den Batteriezustand und die Datennutzung; Die Aktivierung kann Ihr System verlangsamen",
7777
"miscCertsLabel": "Stammzertifikate aktualisieren",
7878
"miscCertsDescription": "Verwenden Sie es, wenn Sie Probleme mit Zertifikaten haben",
7979
"miscCertsDialog": "Die Aktualisierung der Stammzertifikate ist abgeschlossen. Probieren Sie die Software, mit der Sie Probleme hatten, erneut aus. Wenn das Problem weiterhin besteht, wenden Sie sich bitte an unseren Support.",

lib/l10n/intl_en.arb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@
8080
"miscTMMonitoringDescription": "Activate the monitoring services for Task Manager",
8181
"miscMpoLabel": "Multiplane overlay (MPO)",
8282
"miscMpoCodeSnippet": "Recommended to turn off on Nvidia GTX 16xx, RTX 3xxx and AMD RX 5xxx cards or newer.\nLeaving this on could cause black screens, stuttering, flickering, and other general display problems",
83-
"miscBHRLabel": "Battery Health Reporting",
84-
"miscBHRDescription": "Reports Battery health status; Enabling will increase system usage",
83+
"miscURLabel": "Usage Reporting",
84+
"miscURDescription": "Reports Battery health and Data usage; Activation may slow down your system",
8585
"miscCertsLabel": "Update Root Certificates",
8686
"miscCertsDescription": "Use it when having issues with certificates",
8787
"miscCertsDialog": "Updating of root certificates has finished. Try the software that you had issues with again, and if the issue persists, please contact our support.",

lib/l10n/intl_fr.arb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@
8080
"miscTMMonitoringDescription": "Active le service de surveillance du gestionnaire des tâches",
8181
"miscMpoLabel": "Superpositions multi-plans (MPO)",
8282
"miscMpoCodeSnippet": "Désactivation recommandée sur les cartes Nvidia GTX 16xx, RTX 3xxx et AMD RX 5xxx ou plus récentes.\nLaisser tel quel peut causer des écrans noirs, bégaiements, scintillements ainsi que d'autres problèmes d'affichage",
83-
"miscBHRLabel": "Rapport d'état de la batterie",
84-
"miscBHRDescription": "Rapports sur l'état de la batterie. Son activation augmentera l'utilisation du système",
83+
"miscURLabel": "Rapports d'utilisation",
84+
"miscURDescription": "Rapporte l'état de la batterie et l'utilisation des données; L'activation peut ralentir votre système",
8585
"miscCertsLabel": "Mise à jour des certificats racine",
8686
"miscCertsDescription": "À utiliser en cas de problèmes avec les certificats",
8787
"miscCertsDialog": "La mise à jour des certificats racine est terminée. Vous pouvez réessayer le logiciel avec lequel vous avez eu des problèmes, si le problème persiste, veuillez contacter notre service d'assistance.",

lib/l10n/intl_pt.arb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@
7070
"miscTMMonitoringDescription": "Ativa os serviços de monitoramento para o Gerenciador de Tarefas",
7171
"miscMpoLabel": "Overlay Multiplane (MPO)",
7272
"miscMpoCodeSnippet": "Recomendado desativar em placas Nvidia GTX 16xx, RTX 3xxx e AMD RX 5xxx ou mais recentes.\nDeixar isso ativado pode causar telas pretas, travamentos, cintilações e outros problemas gerais de exibição",
73-
"miscBHRLabel": "Relatório de Saúde da Bateria",
74-
"miscBHRDescription": "Relata o estado da saúde da bateria; Habilitar isso aumentará o uso do sistema",
73+
"miscURLabel": "Relatório de uso",
74+
"miscURDescription": "Informa a saúde da bateria e o uso de dados; A ativação pode tornar seu sistema lento",
7575
"miscCertsLabel": "Atualizar Certificados Raiz",
7676
"miscCertsDescription": "Use quando tiver problemas com certificados",
7777
"miscCertsDialog": "A atualização dos certificados raiz foi concluída. Tente o software com o qual você teve problemas novamente e, se o problema persistir, entre em contato com nosso suporte.",

lib/l10n/intl_zh.arb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@
7070
"miscTMMonitoringDescription": "激活任务管理器的监控服务",
7171
"miscMpoLabel": "多平面叠加(MPO)",
7272
"miscMpoCodeSnippet": "建议在 Nvidia GTX 16xx、RTX 3xxx 和 AMD RX 5xxx 显卡或更新的显卡上关闭此功能。\n开启此功能可能会导致黑屏、卡顿、闪烁和其他一般显示问题",
73-
"miscBHRLabel": "电池健康报告",
74-
"miscBHRDescription": "报告电池健康状况;启用会增加系统使用率",
73+
"miscURLabel": "使用情况报告",
74+
"miscURDescription": "报告电池健康状况和数据使用情况;激活可能会减慢您的系统速度",
7575
"miscCertsLabel": "更新根证书",
7676
"miscCertsDescription": "在遇到证书问题时使用",
7777
"miscCertsDialog": "根证书更新已完成。再次尝试出现问题的软件,如果问题仍然存在,请联系我们的支持人员",

lib/l10n/intl_zh_tw.arb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@
7272
"miscTMMonitoringDescription": "激活任務管理器的監控服務",
7373
"miscMpoLabel": "多平面疊加 (MPO)",
7474
"miscMpoCodeSnippet": "建議在 Nvidia GTX 16xx、RTX 3xxx 和 AMD RX 5xxx 卡或更新版本上關閉。\n保持此功能打開可能會導致黑屏、卡頓、閃爍和其他一般顯示問題",
75-
"miscBHRLabel": "電池健康報告",
76-
"miscBHRDescription": "報告電池健康狀態,啟用會增加系統使用率",
75+
"miscURLabel": "使用報告",
76+
"miscURDescription": "報告電池健康狀況和數據使用;啟用可能會降低您的系統速度",
7777
"miscCertsLabel": "更新根證書",
7878
"miscCertsDescription": "當證書出現問題時使用它",
7979
"miscCertsDialog": "根證書更新已完成。 再次嘗試遇到問題的軟件,如果問題仍然存在,請聯繫我們的支持人員。",

lib/main.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import 'package:system_theme/system_theme.dart';
99
import 'package:win32_registry/win32_registry.dart';
1010
import 'package:window_plus/window_plus.dart';
1111

12-
void main() async {
12+
Future<void> main() async {
1313
WidgetsFlutterBinding.ensureInitialized();
1414

1515
// createRegistryKey(Registry.localMachine, r'SOFTWARE\Revision\Revision Tool');

lib/screens/pages/miscellaneous_page.dart

Lines changed: 69 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,20 @@ class _MiscellaneousPageState extends State<MiscellaneousPage> {
1515
final MiscellaneousService _miscellaneousService = MiscellaneousService();
1616
late final _hibBool =
1717
ValueNotifier<bool>(_miscellaneousService.statusHibernation);
18-
late final _hibMode =
19-
ValueNotifier<int>(_miscellaneousService.statusHibernationMode!);
18+
// late final _hibMode =
19+
// ValueNotifier<int>(_miscellaneousService.statusHibernationMode!);
2020
late final _fsbBool =
2121
ValueNotifier<bool>(_miscellaneousService.statusFastStartup);
2222
late final _tmmBool =
2323
ValueNotifier<bool>(_miscellaneousService.statusTMMonitoring);
2424
late final _mpoBool = ValueNotifier<bool>(_miscellaneousService.statusMPO);
2525
late final _bhrBool =
26-
ValueNotifier<bool>(_miscellaneousService.statusBatteryHealthReporting);
26+
ValueNotifier<bool>(_miscellaneousService.statusUsageReporting);
2727

2828
@override
2929
void dispose() {
3030
_hibBool.dispose();
31-
_hibMode.dispose();
31+
// _hibMode.dispose();
3232
_fsbBool.dispose();
3333
_mpoBool.dispose();
3434
_bhrBool.dispose();
@@ -54,66 +54,67 @@ class _MiscellaneousPageState extends State<MiscellaneousPage> {
5454
: await _miscellaneousService.disableHibernation();
5555
},
5656
),
57-
ValueListenableBuilder(
58-
valueListenable: _hibBool,
59-
builder: (context, value, child) {
60-
if (value) {
61-
return Column(
62-
children: [
63-
ValueListenableBuilder(
64-
valueListenable: _hibMode,
65-
builder: (context, hibValue, child) {
66-
return CardHighlight(
67-
icon: msicons.FluentIcons.document_save_20_regular,
68-
label: ReviLocalizations.of(context)
69-
.miscHibernateModeLabel,
70-
description: ReviLocalizations.of(context)
71-
.miscHibernateModeDescription,
72-
child: ComboBox(
73-
value: hibValue,
74-
onChanged: (value) {
75-
_hibMode.value = value!;
76-
},
77-
items: [
78-
ComboBoxItem(
79-
onTap: () async {
80-
await _miscellaneousService
81-
.setHibernateModeReduced();
82-
},
83-
value: 1,
84-
child: const Text("Reduced"),
85-
),
86-
ComboBoxItem(
87-
onTap: () async {
88-
await _miscellaneousService
89-
.setHibernateModeFull();
90-
},
91-
value: 2,
92-
child: const Text("Full"),
93-
),
94-
],
95-
),
96-
);
97-
}),
98-
CardHighlightSwitch(
99-
icon: msicons.FluentIcons.weather_hail_night_20_regular,
100-
label: ReviLocalizations.of(context).miscFastStartupLabel,
101-
description: ReviLocalizations.of(context)
102-
.miscFastStartupDescription,
103-
switchBool: _fsbBool,
104-
function: (value) {
105-
_fsbBool.value = value;
106-
value
107-
? _miscellaneousService.enableFastStartup()
108-
: _miscellaneousService.disableFastStartup();
109-
},
110-
)
111-
],
112-
);
113-
}
114-
return const SizedBox();
115-
},
116-
),
57+
// ValueListenableBuilder(
58+
// valueListenable: _hibBool,
59+
// builder: (context, value, child) {
60+
// if (value) {
61+
// return Column(
62+
// children: [
63+
// ValueListenableBuilder(
64+
// valueListenable: _hibMode,
65+
// builder: (context, hibValue, child) {
66+
// return CardHighlight(
67+
// icon: msicons.FluentIcons.document_save_20_regular,
68+
// label: ReviLocalizations.of(context)
69+
// .miscHibernateModeLabel,
70+
// description: ReviLocalizations.of(context)
71+
// .miscHibernateModeDescription,
72+
// child: ComboBox(
73+
// value: hibValue,
74+
// onChanged: (value) {
75+
// _hibMode.value = value!;
76+
// },
77+
// items: [
78+
// ComboBoxItem(
79+
// onTap: () async {
80+
// await _miscellaneousService
81+
// .setHibernateModeReduced();
82+
// },
83+
// value: 1,
84+
// child: const Text("Reduced"),
85+
// ),
86+
// ComboBoxItem(
87+
// onTap: () async {
88+
// await _miscellaneousService
89+
// .setHibernateModeFull();
90+
// },
91+
// value: 2,
92+
// child: const Text("Full"),
93+
// ),
94+
// ],
95+
// ),
96+
// );
97+
// }),
98+
// CardHighlightSwitch(
99+
// icon: msicons.FluentIcons.weather_hail_night_20_regular,
100+
// label: ReviLocalizations.of(context).miscFastStartupLabel,
101+
// description: ReviLocalizations.of(context)
102+
// .miscFastStartupDescription,
103+
// switchBool: _fsbBool,
104+
// function: (value) {
105+
// _fsbBool.value = value;
106+
// value
107+
// ? _miscellaneousService.enableFastStartup()
108+
// : _miscellaneousService.disableFastStartup();
109+
// },
110+
// )
111+
// ],
112+
// );
113+
// }
114+
// return const SizedBox();
115+
// },
116+
// ),
117+
117118
CardHighlightSwitch(
118119
icon: FluentIcons.task_manager,
119120
label: ReviLocalizations.of(context).miscTMMonitoringLabel,
@@ -142,14 +143,14 @@ class _MiscellaneousPageState extends State<MiscellaneousPage> {
142143
),
143144
CardHighlightSwitch(
144145
icon: msicons.FluentIcons.battery_checkmark_20_regular,
145-
label: ReviLocalizations.of(context).miscBHRLabel,
146-
description: ReviLocalizations.of(context).miscBHRDescription,
146+
label: ReviLocalizations.of(context).miscURLabel,
147+
description: ReviLocalizations.of(context).miscURDescription,
147148
switchBool: _bhrBool,
148149
function: (value) async {
149150
_bhrBool.value = value;
150151
value
151-
? await _miscellaneousService.enableBatteryHealthReporting()
152-
: await _miscellaneousService.disableBatteryHealthReporting();
152+
? await _miscellaneousService.enableUsageReporting()
153+
: await _miscellaneousService.disableUsageReporting();
153154
},
154155
),
155156
],

0 commit comments

Comments
 (0)