Skip to content

Commit

Permalink
fix(brightness): weird bug with find.exe
Browse files Browse the repository at this point in the history
  • Loading branch information
he3als committed Nov 28, 2023
1 parent 1f4eebb commit 448ae85
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 @@ -211,5 +211,6 @@ if "%diskDrive%" == "SSD" (
:: Disable brightness slider service if it's not supported on the current display
powershell -nop -c "if ((Get-Computerinfo).CsPCSystemType -eq 'Desktop') { exit 532 }"
if errorlevel 532 set disableBright=true
powershell -nop -c "Get-WmiObject -Namespace root/WMI -Class WmiMonitorBrightnessMethods" | find "Not supported" > nul || set disableBright=false
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

0 comments on commit 448ae85

Please sign in to comment.