onejay09 / osx

osx
8 stars 1 forks source link

about the brightness control introduction #1

Open chinieer opened 6 years ago

chinieer commented 6 years ago

thank you for your share,i have fixed the brigtness control problem you can look for dsdt and replace the code in DSDT->_SB.PCI0.PEG0->GFX0->_DSM step1 replace the method Method (_DSM, 4, NotSerialized) // _DSM: Device-Specific Method { If (LEqual (Arg2, Zero)) { Return (Buffer (One) { 0x03
}) } Return (Package (0x20) { "AAPL,backlight-control", Buffer (0x04) { 0x01, 0x00, 0x00, 0x00
},

                "@0,display-type", 
                Buffer (0x04)
                {
                    "LCD"
                }, 

                "@0,AAPL,boot-display", 
                Buffer (One)
                {
                     0x01                                           
                }, 

                "@0,backlight-control", 
                Buffer (0x04)
                {
                     0x01, 0x00, 0x00, 0x00                         
                }, 

                "@0,use-backlight-blanking", 
                Buffer (0x04)
                {
                     0x01, 0x00, 0x00, 0x00                         
                }, 

                "@0,built-in", 
                Buffer (One)
                {
                     0x01                                           
                }, 

                "@0,connector-type", 
                Buffer (0x04)
                {
                     0x00, 0x08, 0x00, 0x00                         
                }, 

                "@1,connector-type", 
                Buffer (0x04)
                {
                     0x00, 0x04, 0x00, 0x00                         
                }, 

                "@2,connector-type", 
                Buffer (0x04)
                {
                     0x00, 0x04, 0x00, 0x00                         
                }, 

                "@3,connector-type", 
                Buffer (0x04)
                {
                     0x00, 0x04, 0x00, 0x00                         
                }, 

                "@4,connector-type", 
                Buffer (0x04)
                {
                     0x00, 0x04, 0x00, 0x00                         
                }, 

                "@5,connector-type", 
                Buffer (0x04)
                {
                     0x00, 0x04, 0x00, 0x00                         
                }, 

                "@0,pwm-info", 
                Buffer (0x14)
                {
                    /* 0000 */  0x01, 0x14, 0x00, 0x64, 0xA8, 0x61, 0x00, 0x00,
                    /* 0008 */  0x08, 0x52, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00,
                    /* 0010 */  0x00, 0x04, 0x00, 0x00                         
                }, 

                "@0,NVMT", 
                Buffer (0x70)
                {
                    /* 0000 */  0x0E, 0x03, 0x7F, 0x20, 0x00, 0x00, 0x00, 0x00,
                    /* 0008 */  0x40, 0x0B, 0x08, 0x07, 0xE0, 0x0B, 0x70, 0x0B,
                    /* 0010 */  0x90, 0x0B, 0x00, 0x00, 0x3C, 0x07, 0x0B, 0x07,
                    /* 0018 */  0x11, 0x07, 0x00, 0x00, 0xF0, 0xA7, 0x21, 0x14,
                    /* 0020 */  0x00, 0x00, 0x00, 0x01, 0xAF, 0x00, 0x00, 0x00,
                    /* 0028 */  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                    /* 0030 */  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                    /* 0038 */  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                    /* 0040 */  0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0x00, 0x00,
                    /* 0048 */  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                    /* 0050 */  0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF,
                    /* 0058 */  0x00, 0x00, 0x00, 0x00, 0xBC, 0x02, 0x01, 0x5A,
                    /* 0060 */  0x0A, 0x04, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00,
                    /* 0068 */  0x40, 0x0B, 0x08, 0x07, 0x40, 0x0B, 0x08, 0x07 
                }, 

                "NVPM", 
                Buffer (0x1C)
                {
                    /* 0000 */  0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                    /* 0008 */  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                    /* 0010 */  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                    /* 0018 */  0x00, 0x00, 0x00, 0x00                         
                }, 

                "hda-gfx", 
                Buffer (0x0A)
                {
                    "onboard-1"
                }
            })
        }

step2 replace your PNLF at the last of your dsdt Scope (_SB) { Device (PNLF) { Name (_ADR, Zero) // _ADR: Address Name (_HID, EisaId ("APP0002")) // _HID: Hardware ID Name (_CID, "backlight") // _CID: Compatible ID Name (_UID, 0x0A) // _UID: Unique ID Name (_STA, 0x0B) // _STA: Status } }

step 3 edit your applebacklight.kext in sle set the displayid to your id now i can work with my gl502vm i7-6700hq and gtx1060

onejay09 commented 6 years ago

Display I'd is my device I'd vendor id ?

chinieer commented 6 years ago

use this to update your AppleBacklight.kext https://github.com/wmchris/DellXPS15-9550-OSX/blob/master/Additional/PatchAppleBacklight_v2/readme.md

onejay09 commented 6 years ago

thanks could you share your applebacklight.kext or injector so i can see what changes it makes, as im having issues with this step

chinieer commented 6 years ago

AppleBacklight.kext.zip

onejay09 commented 6 years ago

i had issues with incomplete brightness control, the top part of the slider didnt do anything these values are better than the one in the4x40s-backlight.plist

ABEAAAAYACcAOgBSAHEAlgDEAPwBQAGTAfYCbgL+A6oEeAVs

chinieer commented 6 years ago

you could reset the 17 level data in plist,maybe the value is not match perfectly

Xigtun commented 6 years ago

@onejay09 NOTE: the screen Backlight was black when first booted up, i had to set brightness in config.plist

what set brightness in config.plist mean ? just set com.apple.driver.AppleGraphicsDevicePolicy ?

this doesnt work for me, the screen was still black, only see the mouse .

onejay09 commented 6 years ago

If you see the mouse then backlight is on, you have a different issue.

onejay09 commented 6 years ago

AppleGraphicsDevicePolicy.kext/contents/info.plist

Swap your board-id with Mac book pro 11,2 board-id Which gas nvidia graphics, for proper power management.

If you have backlight off on boot then set brightness level in config.plist

animator013 commented 5 years ago

@onejay09 Are you still active? Can you help me with my GL503VS STRIX? I will send details if you are still available.

Nick4PunkZ commented 3 years ago

Hey guys i need help for my Asus gl503vs. Need hackintosh in this machine but stil graphics problem to Fix. Always freeze after the firs reboot after installation of high sierra. Please help me!!! Grazie