Contribute
Register

Asus N551 brightness patch

Status
Not open for further replies.
Joined
Mar 14, 2015
Messages
40
Motherboard
Asus N551
CPU
i7 4510hq
Graphics
HD4600+GTX860M
Mac
  1. 0
Classic Mac
  1. 0
Mobile Phone
  1. Android
hi, i'm trying to fix the brightness controls on my N551 laptop. i've applied the patch Brightness Fix (Haswell) taken from the git repository. as the docs report the patch have to be applied where the device with 0x00020000 address is so i found it on my ssdt5 file and patched that file. compilation went good and i've also included the acpibacklight.kext into the Clover kext folder. i've patched the dsdt for battery also and it works good with the acpibatterymanager.kext
i also made sure to include the dsdt and the modified ssdt5 into EFI/ACPI/patched folder, in the clover config i've told to drop the oem ssdt tables.
i'm here because the pnlf device don't show at all in ioreg, nor the brigthness control on monitor, even if i can see on the clover boot.log it load both the dsdt and ssdt5.
obviously i'm doing something wrong but can't guess what.

attached my unpatched Linux extracted acpi tables, that i've used with MaciASL to patch and compile

i'm using last available clover bootloader with 10.10.2 ,can post more file if needed.i use the intel 4600 gfx card patched with 9mb cursor and device id which work with acceleration and the nvidia is disabled
thanks for any advice
 

Attachments

  • tables.zip
    86.2 KB · Views: 117
hi, i'm trying to fix the brightness controls on my N551 laptop. i've applied the patch Brightness Fix (Haswell) taken from the git repository. as the docs report the patch have to be applied where the device with 0x00020000 address is so i found it on my ssdt5 file and patched that file. compilation went good and i've also included the acpibacklight.kext into the Clover kext folder. i've patched the dsdt for battery also and it works good with the acpibatterymanager.kext
i also made sure to include the dsdt and the modified ssdt5 into EFI/ACPI/patched folder, in the clover config i've told to drop the oem ssdt tables.
i'm here because the pnlf device don't show at all in ioreg, nor the brigthness control on monitor, even if i can see on the clover boot.log it load both the dsdt and ssdt5.
obviously i'm doing something wrong but can't guess what.

attached my unpatched Linux extracted acpi tables, that i've used with MaciASL to patch and compile

i'm using last available clover bootloader with 10.10.2 ,can post more file if needed.i use the intel 4600 gfx card patched with 9mb cursor and device id which work with acceleration and the nvidia is disabled
thanks for any advice

Download patchmatic: https://bitbucket.org/RehabMan/os-x-maciasl-patchmatic/downloads/RehabMan-patchmatic-2015-0107.zip
Extract the 'patchmatic' binary from the ZIP. Copy it to /usr/bin, such that you have the binary at /usr/bin/patchmatic.

In terminal,
Code:
rm -R ~/Downloads/RehabMan
mkdir ~/Downloads/RehabMan
cd ~/Downloads/RehabMan
patchmatic -extract

Post contents of Downloads/RehabMan directory (as ZIP).

Also, post ioreg: http://www.tonymacx86.com/audio/58368-guide-how-make-copy-ioreg.html. Please, use the IORegistryExplorer v2.1 attached to the post! DO NOT reply with an ioreg from any other version of IORegistryExplorer.app.
 
here is what you asked, i hope to have done it good.
included my clover config.plist too, if needed.

thanks
 

Attachments

  • n551.zip
    414.6 KB · Views: 168
  • config.plist.zip
    2 KB · Views: 122
here is what you asked, i hope to have done it good.
included my clover config.plist too, if needed.

thanks

You have a bogus patch to your DSDT...

This code was (wrongly) added:
Code:
            Device (PEG0)
            {
                Name (_ADR, 0x00020000)
                Device (GFX0)
                {
                    Name (_ADR, 0x0000FFFE)
                    Method (_DSM, 4, NotSerialized)
                    {
                        Store (Package (0x04)
                            {
                                "device-id", 
                                Buffer (0x04)
                                {
                                    0x12, 0x04, 0x00, 0x00
                                }, 

                                "vendor-id", 
                                Buffer (0x04)
                                {
                                    0x86, 0x80, 0x00, 0x00
                                }
                            }, Local0)
                        DTGP (Arg0, Arg1, Arg2, Arg3)
                        RefOf (Local0)
                        Return (Local0)
                    }
                }
            }

It is causing the SSDT with PNLF to be rejected as it also contains a definition for PEG0.

You should also remove config.plist/ACPI/DSDT/Fixes/FIX_INTELGFX_1000000. It could be that this Clover option is adding the bogus code to DSDT.
 
Yes! that was!
just removing the FIX_INTELGFX_1000000 from clover's config.plist did the trick.
dunno why it was there, maybe because i copy/paste too much..

so i can confirm both these Patches works great for the N551JM
https://github.com/RehabMan/Laptop-DSDT-Patch/blob/master/battery/battery_ASUS-G75vw.txt
https://github.com/RehabMan/Laptop-DSDT-Patch/blob/master/graphics/graphics_PNLF_haswell.txt
this last one have to be applied to the ssdt5

now next challenge is to fix the fn Keys and backlight keyboard
 
Status
Not open for further replies.
Back
Top