Skip to content

Commit

Permalink
Docs: Fix PNLF code for CFL+ (#284)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lorys89 authored Aug 8, 2021
1 parent 3389b3b commit 43cbf70
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions Docs/AcpiSamples/Source/SSDT-PNLF.dsl
Original file line number Diff line number Diff line change
Expand Up @@ -183,29 +183,6 @@ DefinitionBlock("", "SSDT", 2, "ACDT", "PNLF", 0)
}, MEQ, Local0, MTR, 0, 0))
{
if (Ones == Local2) { Local2 = COFFEELAKE_PWMMAX }
INI1(Local4)
// change/scale only if different than current...
Local1 = ^LEVX
If (!Local1) { Local1 = Local2 }
If (!(8 & Local4) && Local2 != Local1)
{
// set new backlight PWMMax but retain current backlight level by scaling
Local0 = (^LEVD * Local2) / Local1
//REVIEW: wait for vblank before setting new PWM config
//For (Local7 = ^P0BL, ^P0BL == Local7, ) { }
If (Local2 > Local1)
{
// PWMMax is getting larger... store new PWMMax first
^LEVX = Local2
^LEVD = Local0
}
Else
{
// otherwise, store new brightness level, followed by new PWMMax
^LEVD = Local0
^LEVX = Local2
}
}
}
// otherwise must be Haswell/Broadwell/Skylake/KabyLake/KabyLake-R (FBTYPE_HSWPLUS)
Else
Expand Down

0 comments on commit 43cbf70

Please sign in to comment.