Jump to content

Brightness DSDT Patching

Brightness; Ideadpad Z510

Best Answer RehabMan, 23 February 2014 - 05:17 PM

Hi, I tried to patch my SSDT with your GFX to IGPU patch and Brightness Haswell patch along with your ACPIbacklight.kext. I have the keyboard hotkey working. I can see the small sun, but adjusting the brightness will not have any effect on the backlight of laptop. I look at the AppleBacklighDisplay string my IOreg file, I can see that my currentpowerstate and max powerstate are both at 0x30. Do you know what could went wrong? I attached my IOReg file.


You have a PNLF device in DSDT and the SSDT. DSDT version will override/prevent SSDT version. Remove PNLF from DSDT.

Also, "Rename GFX0 to IGPU" should be applied to both DSDT and SSDT (you have renamed only SSDT). Go to the full post


  • Please log in to reply
72 replies to this topic

#61
cjin5

cjin5

    InsanelyMac Protégé

  • Members
  • Pip
  • 40 posts

ig-platform-id is set incorrectly. (it is set 0x01660003). It is being set in your /Extra/SSDT.aml.

01660003 is not appropriate for Haswell hardware. It is for Ivy bridge/HD4000 1366x768 screen.

 

You are right ! it is caused by SSDT. I finally got the acceleration after I removed the SSDT.aml. Thank you so much!  So if I want to keep the custom SSDT.aml, which value do you recommend to put instead of 0x01660003?



#62
RehabMan

RehabMan

    InsanelyMac Legend

  • Coders
  • 1,107 posts
  • Gender:Male
  • Location:Bellingham, WA
  • Interests:skiing, software, classic cars

You are right ! it is caused by SSDT. I finally got the acceleration after I removed the SSDT.aml. Thank you so much!  So if I want to keep the custom SSDT.aml, which value do you recommend to put instead of 0x01660003?


You should start over with your SSDT. The injection you have there is completely unnecessary when using IntelAzulFB.

Now you can go back to figuring out brightness...

#63
cjin5

cjin5

    InsanelyMac Protégé

  • Members
  • Pip
  • 40 posts

You should start over with your SSDT. The injection you have there is completely unnecessary when using IntelAzulFB.

Now you can go back to figuring out brightness...

 

I just remembered that I may not modified the SSDT, the custom SSDT I am using right now is the original combination of 4 SSDTs that I extracted using Aida. So if that is the case, how do I change the 0x01660003 to a suitable value? and what suitable value would that be?



#64
RehabMan

RehabMan

    InsanelyMac Legend

  • Coders
  • 1,107 posts
  • Gender:Male
  • Location:Bellingham, WA
  • Interests:skiing, software, classic cars

I just remembered that I may not modified the SSDT, the custom SSDT I am using right now is the original combination of 4 SSDTs that I extracted using Aida. So if that is the case, how do I change the 0x01660003 to a suitable value? and what suitable value would that be?


Remove the _DSM entirely. You don't need it. And I would recommend against "combining SSDTs" It is not necessary and can only lead to errors.

#65
cjin5

cjin5

    InsanelyMac Protégé

  • Members
  • Pip
  • 40 posts

Remove the _DSM entirely. You don't need it. And I would recommend against "combining SSDTs" It is not necessary and can only lead to errors.

 

The reason I was combining the SSDTs is because if I just use one SSDTs to complie from .dsl to .aml, i will get 4 errors, Combine the SSDTs somehow fixed those errors and allow me to save SSDT to .aml format. It is very strange.



#66
RehabMan

RehabMan

    InsanelyMac Legend

  • Coders
  • 1,107 posts
  • Gender:Male
  • Location:Bellingham, WA
  • Interests:skiing, software, classic cars

The reason I was combining the SSDTs is because if I just use one SSDTs to complie from .dsl to .aml, i will get 4 errors, Combine the SSDTs somehow fixed those errors and allow me to save SSDT to .aml format. It is very strange.


Disassemble the SSDTs correctly and you won't have that issue.

Put them all in a single directory (along with DSDT), then disassemble with recent build of iasl:
iasl -da *.aml
Then work with the resulting DSL files.

#67
cjin5

cjin5

    InsanelyMac Protégé

  • Members
  • Pip
  • 40 posts

OK. I will try that and report back tomorrow. Thanks again. :)



#68
cjin5

cjin5

    InsanelyMac Protégé

  • Members
  • Pip
  • 40 posts

Disassemble the SSDTs correctly and you won't have that issue.

Put them all in a single directory (along with DSDT), then disassemble with recent build of iasl:

iasl -da *.aml
Then work with the resulting DSL files.

 

 

Hi, I tried to patch my SSDT with your GFX to IGPU patch and Brightness Haswell patch along with your ACPIbacklight.kext. I have the keyboard hotkey working. I can see the small sun, but adjusting the brightness will not have any effect on the backlight of laptop. I look at the AppleBacklighDisplay string my IOreg file, I can see that my currentpowerstate and max powerstate are both at 0x30. Do you know what could went wrong? I attached my IOReg file.

Attached Files



#69
RehabMan

RehabMan

    InsanelyMac Legend

  • Coders
  • 1,107 posts
  • Gender:Male
  • Location:Bellingham, WA
  • Interests:skiing, software, classic cars

Best Answer

Hi, I tried to patch my SSDT with your GFX to IGPU patch and Brightness Haswell patch along with your ACPIbacklight.kext. I have the keyboard hotkey working. I can see the small sun, but adjusting the brightness will not have any effect on the backlight of laptop. I look at the AppleBacklighDisplay string my IOreg file, I can see that my currentpowerstate and max powerstate are both at 0x30. Do you know what could went wrong? I attached my IOReg file.


You have a PNLF device in DSDT and the SSDT. DSDT version will override/prevent SSDT version. Remove PNLF from DSDT.

Also, "Rename GFX0 to IGPU" should be applied to both DSDT and SSDT (you have renamed only SSDT).

#70
cjin5

cjin5

    InsanelyMac Protégé

  • Members
  • Pip
  • 40 posts

You have a PNLF device in DSDT and the SSDT. DSDT version will override/prevent SSDT version. Remove PNLF from DSDT.

Also, "Rename GFX0 to IGPU" should be applied to both DSDT and SSDT (you have renamed only SSDT).

 

You are truly a Hackintosh legend! My brightness is finally working! I really appreciate all the help you gave to me. Although it is a long process, but I really learned a lot knowledge related to the Hackintosh. Thank you again!



#71
RehabMan

RehabMan

    InsanelyMac Legend

  • Coders
  • 1,107 posts
  • Gender:Male
  • Location:Bellingham, WA
  • Interests:skiing, software, classic cars

You are truly a Hackintosh legend! My brightness is finally working! I really appreciate all the help you gave to me. Although it is a long process, but I really learned a lot knowledge related to the Hackintosh. Thank you again!


Glad you got it working. A bit of a round-about, but...

#72
drtechie

drtechie

    InsanelyMac Protégé

  • Members
  • Pip
  • 3 posts

Hello Rehabman,

 

I hope you can help me too. I have been trying hard to fix the brightness in my friend's Sony vpceh25en laptop. Almost everything is working except for the brightness.

I followed this guide http://www.insanelym...cklight-driver/ and tried patching the dsdt file. I am not an expert and mostly whatever I did was trial and error.

 

First I added the usual PNLF patch. The brightness slider did no appear. I followed the same guide and tried adding the properties. I have been fiddling with the dsdt file ever since and I have not succeeded in loading the brightness slider. 

I deleted the _BCL, _BCM _BQC methods in all other devices other than DGPU.LCD
The ACPIBacklight kext seems to load as I can see the following in the kernel log.

ACPIBacklightPanel: ACPI Methods _DOS _BCL _BCM _BQC found. Device path: _SB.PNLF
ACPIBacklightPanel: getIndexForLevel(50) not found in _BCL table !
ACPIBacklightPanel: getIndexForLevel(255) not found in _BCL table !
ACPIBacklightPanel: Version 1.2

The device path was ...DGPU.LCD when I did not add _BCL table to PNLF device.

 

I went through the forum thread, but couldn't fix the index issue. I have tried changing the BCL tables by adding it from various threads including your github page.

 

The dsdt file is pretty messed up. :(

 

In the Display preferences, the image is that of a computer monitor instead of a laptop screen. Does that mean that my screen is not detected as a laptop one?

 

 

I am attaching the following.

dsdt_before.aml --> The base dsdt, the one that does not have brightness edits. I deleted EHC2 device as it was not allowing the laptop to sleep. I have also added some audio patches.

dsdt_after.aml --> The one I am working with now, after trying all the brightness patches.

ioreg file

 

Other info:

Graphics card is Nvidia 410m

Using FakeSMC and patched ACPIPlatform

Using the SSDT file which you had created for all i3/i5/i7 processors.

 

 

Thanks

Attached Files



#73
RehabMan

RehabMan

    InsanelyMac Legend

  • Coders
  • 1,107 posts
  • Gender:Male
  • Location:Bellingham, WA
  • Interests:skiing, software, classic cars

Hello Rehabman,
 
I hope you can help me too. I have been trying hard to fix the brightness in my friend's Sony vpceh25en laptop. Almost everything is working except for the brightness.
I followed this guide http://www.insanelym...cklight-driver/ and tried patching the dsdt file. I am not an expert and mostly whatever I did was trial and error.
 
First I added the usual PNLF patch. The brightness slider did no appear. I followed the same guide and tried adding the properties. I have been fiddling with the dsdt file ever since and I have not succeeded in loading the brightness slider. 
I deleted the _BCL, _BCM _BQC methods in all other devices other than DGPU.LCD
The ACPIBacklight kext seems to load as I can see the following in the kernel log.

ACPIBacklightPanel: ACPI Methods _DOS _BCL _BCM _BQC found. Device path: _SB.PNLF
ACPIBacklightPanel: getIndexForLevel(50) not found in _BCL table !
ACPIBacklightPanel: getIndexForLevel(255) not found in _BCL table !
ACPIBacklightPanel: Version 1.2
The device path was ...DGPU.LCD when I did not add _BCL table to PNLF device.
 
I went through the forum thread, but couldn't fix the index issue. I have tried changing the BCL tables by adding it from various threads including your github page.
 
The dsdt file is pretty messed up. :(
 
In the Display preferences, the image is that of a computer monitor instead of a laptop screen. Does that mean that my screen is not detected as a laptop one?
 
 
I am attaching the following.
dsdt_before.aml --> The base dsdt, the one that does not have brightness edits. I deleted EHC2 device as it was not allowing the laptop to sleep. I have also added some audio patches.
dsdt_after.aml --> The one I am working with now, after trying all the brightness patches.
ioreg file
 
Other info:
Graphics card is Nvidia 410m
Using FakeSMC and patched ACPIPlatform
Using the SSDT file which you had created for all i3/i5/i7 processors.
 
 
Thanks


My brightness patches are only for Intel integrated. You have nvidia - different situation entirely...

First problem you'll need to solve (looking at your ioreg) is how to make AppleBacklightDisplay load for your display0 (look in ioreg under your graphics device). Currently you have AppleDisplay loaded, which is what loads for external displays (with no backlight control).

I would imagine it involves injecting some properties for your nvidia device, but I don't know the details, as I've never dealt with it.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

© 2014 InsanelyMac  |   News  |   Forum  |   Downloads  |   OSx86 Wiki  |   Mac Netbook  |   PHP hosting by CatN  |   Designed by Ed Gain  |   Logo by irfan  |   Privacy Policy