# Maintained by: Olderst for: Brightness Patches
# Add_PNLF_For_DG.txt
#
# Created by Den Skop
# Design by Olderst
#
# This patch enables the brightness slider in SysPrefs->Displays
# and will also enable activation of sleep mode by closing
# the laptop lid.
#
# This patch works well for laptops that have working
# Radeon/nVidia Discrete Graphics.
#
# Based on information from the normal laptop DSDT methods,
# optimized for use with ACPIBacklight.kext
#
# Note: This patch should be applied to the DSDT that defines
# your discrete graphics device (always at _ADR 0x00010000).
into_all device label PNLF remove_entry;
into scope label _SB.PCI0.PEG0.GFX0 insert
begin
Device (PNLF)\n
{\n
// normal PNLF declares (note some of this probably not necessary)\n
Name (_ADR, Zero)\n
Name (_HID, EisaId ("APP0002"))\n
Name (_CID, "backlight")\n
Name (_UID, 0x0A)\n
Name (_STA, 0x0B)\n
// _BCM/_BQC: set/get for brightness level\n
Method (_BCM, 1, NotSerialized)\n
{\n
// Update backlight via existing DSDT methods\n
^^LCDD._BCM (Arg0)\n
}\n
Method (_BQC, 0, NotSerialized)\n
{\n
Return (^^LCDD._BQC ())\n
}\n
Method (_BCL, 0, NotSerialized)\n
{\n
Return (^^LCDD._BCL ())\n
}\n
Method (_DOS, 1, NotSerialized)\n
{\n
^^_DOS(Arg0)\n
}\n
}\n
end;
into scope label _SB.PCI0.PEG0.PEGP insert
begin
Device (PNLF)\n
{\n
// normal PNLF declares (note some of this probably not necessary)\n
Name (_ADR, Zero)\n
Name (_HID, EisaId ("APP0002"))\n
Name (_CID, "backlight")\n
Name (_UID, 0x0A)\n
Name (_STA, 0x0B)\n
// _BCM/_BQC: set/get for brightness level\n
Method (_BCM, 1, NotSerialized)\n
{\n
// Update backlight via existing DSDT methods\n
^^LCDD._BCM (Arg0)\n
}\n
Method (_BQC, 0, NotSerialized)\n
{\n
Return (^^LCDD._BQC ())\n
}\n
Method (_BCL, 0, NotSerialized)\n
{\n
Return (^^LCDD._BCL ())\n
}\n
Method (_DOS, 1, NotSerialized)\n
{\n
^^_DOS(Arg0)\n
}\n
}\n
end;
into device label VGA insert
begin
Device (PNLF)\n
{\n
// normal PNLF declares (note some of this probably not necessary)\n
Name (_ADR, Zero)\n
Name (_HID, EisaId ("APP0002"))\n
Name (_CID, "backlight")\n
Name (_UID, 0x0A)\n
Name (_STA, 0x0B)\n
// _BCM/_BQC: set/get for brightness level\n
Method (_BCM, 1, NotSerialized)\n
{\n
// Update backlight via existing DSDT methods\n
^^LCDD._BCM (Arg0)\n
}\n
Method (_BQC, 0, NotSerialized)\n
{\n
Return (^^LCDD._BQC ())\n
}\n
Method (_BCL, 0, NotSerialized)\n
{\n
Return (^^LCDD._BCL ())\n
}\n
Method (_DOS, 1, NotSerialized)\n
{\n
^^_DOS(Arg0)\n
}\n
}\n
end;