# brightness into device label IGPU code_regex (OperationRegion\s\(IGD2,\sPCI_Config[^\}]*\}) remove_matched; into device label IGPU code_regex (OperationRegion\s\(IGDP,\sPCI_Config[^\}]*\}) replace_matched begin %1\n OperationRegion (IGD2, PCI_Config, 0x10, 4)\n Field (IGD2, AnyAcc, NoLock, Preserve)\n {\n BAR1,32,\n }\n end; # OS Darwin check > need for USB 3 into method label _INI parent_label _SB.PCI0 code_regex If\s+\(_OSI\s+\(\"Windows\s2006\"\)\) replace_matched begin If(LOr(_OSI("Darwin"),_OSI("Windows 2006"))) end; #syscl_fixBrightnesskey_VoodooPS2 into method label BRT6 replace_content begin If (LEqual (Arg0, One))\n {\n Notify (LCD, 0x86)\n Notify (^^LPCB.PS2K, 0x0406)\n }\n If (And (Arg0, 0x02))\n {\n Notify (LCD, 0x87)\n Notify (^^LPCB.PS2K, 0x0405)\n }\n end; # _OSI(WIN7) Wird für die Brightness Tasten benötigt. Bildschirm an bei Aufklappen dann nur über Tastaturdruck into method label OSID code_regex _OSI\s+\(WIN7\) replaceall_matched begin LOr(_OSI(WIN7),_OSI("Darwin")) end; # Patch Brightness save after restart into Scope label _SB insert begin Device (_SB.ALS0)\n {\n Name (_HID, "ACPI0008") // _HID: Hardware ID\n Name (_CID, "smc-als") // _CID: Compatible ID\n Name (_ALI, 0x012C) // _ALI: Ambient Light Illuminanc\n Name (_ALR, Package (0x01) // _ALR: Ambient Light Response\n {,\n Package (0x02)\n {\n 0x64,\n 0x012C\n }\n })\n }\n end; # Patch Fix USB Sleep into Scope label _SB insert begin Device (_SB.EC)\n {\n Name (_HID, "EC000000") // _HID: Hardware ID\n }\n \n Device (_SB.USBX)\n {\n Name (_ADR, Zero) // _ADR: Address\n Method (_DSM, 4, NotSerialized) // _DSM: Device-Specific Method\n {\n If (LNot (Arg2))\n {\n Return (Buffer (One)\n {\n 0x03\n })\n }\n \n Return (Package (0x08)\n {\n "kUSBSleepPortCurrentLimit",\n 0x0834,\n "kUSBSleepPowerSupply", \n 0x13EC, "kUSBWakePortCurrentLimit", \n 0x0834, \n "kUSBWakePowerSupply", \n 0x13EC\n })\n }\n }\n end;