Skip to content

Commit

Permalink
fix: re-enable brightness service on v0.3.x
Browse files Browse the repository at this point in the history
  • Loading branch information
he3als committed Nov 29, 2023
1 parent 2f4549b commit 9db7e99
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/playbook/Executables/FINALIZE.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -213,4 +213,5 @@ powershell -nop -c "if ((Get-Computerinfo).CsPCSystemType -eq 'Desktop') { exit
if errorlevel 532 set disableBright=true
powershell -nop -c "Get-WmiObject -Namespace root/WMI -Class WmiMonitorBrightnessMethods -EA 0; if (!$?) {exit 533}"
if errorlevel 533 set disableBright=true
if "%disableBright%"=="true" call %windir%\AtlasModules\Scripts\setSvc.cmd DisplayEnhancementService 4
if "%disableBright%"=="true" (set brightStartup=4) else (set brightStartup=2)
call %windir%\AtlasModules\Scripts\setSvc.cmd DisplayEnhancementService %brightStartup%

0 comments on commit 9db7e99

Please sign in to comment.