Jump to content

[Guide] Backlight + Brightness for Intel 8086:0046 (1st gen HD) (GMA 5700MHD)

first generation HD backlight brightness ACPI DSDT 8086:0046 GMA 5700MHD Ironlake Arrandale

  • Please log in to reply
161 replies to this topic

#141
Chaitanya_cr8

Chaitanya_cr8

    InsanelyMac Protégé

  • Members
  • Pip
  • 27 posts
  • Gender:Male

Super_LoP  Do you get these in your verbose boot too? Maybe on to something 

ACPIBacklightPanel: ACPI Methods _DOS _BCL _BCM _BQC found. Device path: (Ill fill in after, camera cut it off)
ACPIBacklightPanel: getIndexForLevel(50) not found in _BCL table ! 
ACPIBacklightPanel: Error in queryACPICurentBrightnessLevel _BQC
ACPIBacklightPanel: getIndexForLevel(16) not found in _BCL table !
ACPIBacklightPanel: Version 1.2

I have a feeling this is blocking the full potential of the patch (Brightness on wake)

About the "ACPIBacklightPanel: getIndexForLevel(50) not found in _BCL table ! " for that, you need proper value table under _BCL method in your DSDT. First two values in it are about your display brightness in AC and battery mode and after that, the 17 levels are for the brightness levels for your screen. Put these values correct, you will have proper brightness and no more such lines in your console.



#142
IntelMacGuy

IntelMacGuy

    InsanelyMac Protégé

  • Members
  • PipPip
  • 66 posts

Your how-to seems very confusing to me.

 

So I add this code (With my edited BAR0, BAR1, BAR2, etc..):

OperationRegion (BRIT, SystemMemory, 0xB0048254, 0x04)
Field (BRIT, AnyAcc, Lock, Preserve)
{
LEVL, 32
}
OperationRegion (BRI2, SystemMemory, 0xB0048250, 0x04)
Field (BRI2, AnyAcc, Lock, Preserve)
{
LEV2, 32
}
OperationRegion (BRI3, SystemMemory, 0xB00C8250, 0x04)
Field (BRI3, AnyAcc, Lock, Preserve)
{
LEVW, 32
}
OperationRegion (BRI4, SystemMemory, 0xB00C8254, 0x04)
Field (BRI4, AnyAcc, Lock, Preserve)
{
LEVX, 32
}

 To here:

 

1.png

 

Then add this code:

Name (_HID, EisaId ("LCD1234"))

To Here:

 

2.png

 

and this code:

Device (PNLF)
{
Name (_HID, EisaId ("APP0002"))
Name (_CID, "backlight")
Name (_UID, 0x0A)
Name (_STA, 0x0B)
Method (_BCL, 0, NotSerialized)
{
Return (Package (0x13)
{
0x64,
0x32,
Zero,
0x06,
0x0C,
0x12,
0x18,
0x1E,
0x24,
0x2A,
0x30,
0x36,
0x3C,
0x42,
0x48,
0x4E,
0x54,
0x5A,
0x64
})
}
Method (_BCM, 1, NotSerialized)
{
Store (0x80000000, LEV2)
If (LGreaterEqual (Arg0, 0x64))
{
Store (0x12FF, LEVL)
}
Else
{
If (LGreaterEqual (Arg0, 0x5A))
{
Store (0x11FF, LEVL)
}
Else
{
If (LGreaterEqual (Arg0, 0x54))
{
Store (0x103A, LEVL)
}
Else
{
If (LGreaterEqual (Arg0, 0x4E))
{
Store (0x0EBB, LEVL)
}
Else
{
If (LGreaterEqual (Arg0, 0x48))
{
Store (0x0B24, LEVL)
}
Else
{
If (LGreaterEqual (Arg0, 0x42))
{
Store (0x0873, LEVL)
}
Else
{
If (LGreaterEqual (Arg0, 0x3C))
{
Store (0x065B, LEVL)
}
Else
{
If (LGreaterEqual (Arg0, 0x36))
{
Store (0x04C8, LEVL)
}
Else
{
If (LGreaterEqual (Arg0, 0x30))
{
Store (0x0396, LEVL)
}
Else
{
If (LGreaterEqual (Arg0, 0x2A))
{
Store (0x02B0, LEVL)
}
Else
{
If (LGreaterEqual (Arg0, 0x24))
{
Store (0x0266, LEVL)
}
Else
{
If (LGreaterEqual (Arg0, 0x1E))
{
Store (0x0218, LEVL)
}
Else
{
If (LGreaterEqual (Arg0, 0x18))
{
Store (0x01D1, LEVL)
}
Else
{
If (LGreaterEqual (Arg0, 0x12))
{
Store (0x0191, LEVL)
}
Else
{
If (LGreaterEqual (Arg0, 0x0C))
{
Store (0x0161, LEVL)
}
Else
{
If (LGreaterEqual (Arg0, 0x06))
{
Store (0x0132, LEVL)
}
Else
{
If (LGreaterEqual (Arg0, Zero))
{
Store (0x82, LEVL)
}
Else
{
Store (0x11FF, LEVL)
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
Method (_BQC, 0, NotSerialized)
{
Return (^^PCI0.GFX0.DD02._BQC ())
}
Method (_DOS, 1, NotSerialized)
{
^^PCI0.GFX0._DOS (Arg0)
}
}

To here:

 

3.png

 

 

If this is how it is I'm getting errors when trying to compile.... Telling me certain devices don't exist....

 

Here is my BAR0 Info:

Device/Vendor ID	0x00468086
Revision ID	0x18
Class Code	0x030000
Cacheline Size	0x00
Latency Timer	0x00
Interrupt Pin	INTA
Interrupt Line	None
BAR1		0xD0000004
BAR2		0x00000000
BAR3		0xC000000C
BAR4		0x00000000
BAR5		0x0000E081
BAR6		0x00000000
Expansion ROM	0x00000000
Subsystem ID	0x1BE21043


#143
fingerr

fingerr

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 260 posts
  • Gender:Male
  • Location:Poland

Hi all,

 

I'd like to ask you something, brightness works OOB on my laptop (Asus U30JC) but I don't have brightness slider. I tried to modify my DSDT but seems there is no name associated with my laptop display. Can anybody take a look at my DSDT and help?

 

--edit--

 

attached new dsdt with modified "magic numbers" but still no slider :-(

 

 

Thanks in advance and best regards,

fingerr.

 

 

Asus U30JC, Core i5-560M, 6GB RAM, 1st Gen HD Graphics, 500GB HDD

Attached Files



#144
fingerr

fingerr

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 260 posts
  • Gender:Male
  • Location:Poland

Hi,

 

is there any debug version of this kext?

 

Second day I'm tryning to get it working, but no luck.

 

In log files I see:

 

02.10.2013 17:03:10,000 kernel[0]: ACPIBacklightPanel: ACPI Methods _DOS _BCL _BCM _BQC found. Device path: _SB.PNLF
02.10.2013 17:03:10,000 kernel[0]: ACPIBacklightPanel: getIndexForLevel(100) not found in _BCL table !
02.10.2013 17:03:10,000 kernel[0]: ACPIBacklightPanel: Version 1.2
 
and can't adjust my DSDT to get it working. 
 
Please find attached my DSDT (I have optimus laptop so last GFX0 in PCI0 is the correct one.) and check if there is any home to get it working.
BTW: I can adjust brihgtness but slider is not working and sun bezel is not shown.
 
Thanks in advance and best regards,
 
fingerr.

Attached Files



#145
lisai9093

lisai9093

    InsanelyMac Protégé

  • Members
  • PipPip
  • 86 posts
  • Gender:Male

I got minimum brightess whenever screen turns off and back again (sleep, reboot, or simply turns off screen for a second). Any one has similar problem? Is it related to nvram.plist? Thx in advance.



#146
georges valch

georges valch

    InsanelyMac Protégé

  • Members
  • Pip
  • 3 posts

 

Your how-to seems very confusing to me.

 

So I add this code (With my edited BAR0, BAR1, BAR2, etc..):

OperationRegion (BRIT, SystemMemory, 0xB0048254, 0x04)
Field (BRIT, AnyAcc, Lock, Preserve)
{
LEVL, 32
}
OperationRegion (BRI2, SystemMemory, 0xB0048250, 0x04)
Field (BRI2, AnyAcc, Lock, Preserve)
{
LEV2, 32
}
OperationRegion (BRI3, SystemMemory, 0xB00C8250, 0x04)
Field (BRI3, AnyAcc, Lock, Preserve)
{
LEVW, 32
}
OperationRegion (BRI4, SystemMemory, 0xB00C8254, 0x04)
Field (BRI4, AnyAcc, Lock, Preserve)
{
LEVX, 32
}

 To here:

 

1.png

 

Then add this code:

Name (_HID, EisaId ("LCD1234"))

To Here:

 

2.png

 

and this code:

Device (PNLF)
{
Name (_HID, EisaId ("APP0002"))
Name (_CID, "backlight")
Name (_UID, 0x0A)
Name (_STA, 0x0B)
Method (_BCL, 0, NotSerialized)
{
Return (Package (0x13)
{
0x64,
0x32,
Zero,
0x06,
0x0C,
0x12,
0x18,
0x1E,
0x24,
0x2A,
0x30,
0x36,
0x3C,
0x42,
0x48,
0x4E,
0x54,
0x5A,
0x64
})
}
Method (_BCM, 1, NotSerialized)
{
Store (0x80000000, LEV2)
If (LGreaterEqual (Arg0, 0x64))
{
Store (0x12FF, LEVL)
}
Else
{
If (LGreaterEqual (Arg0, 0x5A))
{
Store (0x11FF, LEVL)
}
Else
{
If (LGreaterEqual (Arg0, 0x54))
{
Store (0x103A, LEVL)
}
Else
{
If (LGreaterEqual (Arg0, 0x4E))
{
Store (0x0EBB, LEVL)
}
Else
{
If (LGreaterEqual (Arg0, 0x48))
{
Store (0x0B24, LEVL)
}
Else
{
If (LGreaterEqual (Arg0, 0x42))
{
Store (0x0873, LEVL)
}
Else
{
If (LGreaterEqual (Arg0, 0x3C))
{
Store (0x065B, LEVL)
}
Else
{
If (LGreaterEqual (Arg0, 0x36))
{
Store (0x04C8, LEVL)
}
Else
{
If (LGreaterEqual (Arg0, 0x30))
{
Store (0x0396, LEVL)
}
Else
{
If (LGreaterEqual (Arg0, 0x2A))
{
Store (0x02B0, LEVL)
}
Else
{
If (LGreaterEqual (Arg0, 0x24))
{
Store (0x0266, LEVL)
}
Else
{
If (LGreaterEqual (Arg0, 0x1E))
{
Store (0x0218, LEVL)
}
Else
{
If (LGreaterEqual (Arg0, 0x18))
{
Store (0x01D1, LEVL)
}
Else
{
If (LGreaterEqual (Arg0, 0x12))
{
Store (0x0191, LEVL)
}
Else
{
If (LGreaterEqual (Arg0, 0x0C))
{
Store (0x0161, LEVL)
}
Else
{
If (LGreaterEqual (Arg0, 0x06))
{
Store (0x0132, LEVL)
}
Else
{
If (LGreaterEqual (Arg0, Zero))
{
Store (0x82, LEVL)
}
Else
{
Store (0x11FF, LEVL)
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
Method (_BQC, 0, NotSerialized)
{
Return (^^PCI0.GFX0.DD02._BQC ())
}
Method (_DOS, 1, NotSerialized)
{
^^PCI0.GFX0._DOS (Arg0)
}
}

To here:

 

3.png

 

 

If this is how it is I'm getting errors when trying to compile.... Telling me certain devices don't exist....

 

Here is my BAR0 Info:

Device/Vendor ID	0x00468086
Revision ID	0x18
Class Code	0x030000
Cacheline Size	0x00
Latency Timer	0x00
Interrupt Pin	INTA
Interrupt Line	None
BAR1		0xD0000004
BAR2		0x00000000
BAR3		0xC000000C
BAR4		0x00000000
BAR5		0x0000E081
BAR6		0x00000000
Expansion ROM	0x00000000
Subsystem ID	0x1BE21043

Yes, me too, no one else front this?



#147
m1st3r1

m1st3r1

    InsanelyMac Protégé

  • Members
  • Pip
  • 17 posts
  • Gender:Male
  • Location:Indonesia

great tutorial. all works well.

 

btw, it's my first post here. i've just got into Hackintosh-ing.

 

Acer 4740. Maverick. bootloader=clover.

 

for those who still confuse, just follow the tutorial. remember to change the DD0X, the magic number (0xX) and your graphic card (GFX0, IGP, and so on)

 

then in DSDT Editor compile it, make sure there are not too many errors (i have 2 errors, but press the fix errors button then it compiled well).

 

enjoy

 

now i dont have to live with max brightness anymore.

 

thanks



#148
ooxxo

ooxxo

    InsanelyMac Protégé

  • Members
  • Pip
  • 1 posts

wow..I followed this guide and everything is working well, thank you guys.

My laptop is Dell Vostro 3400: i3-380M,4G,HD Graphics. My magic number is "0xFE"

i followed the monorthern's steps and succeed ,hoping this information can help someone. :P



#149
Swag Dog

Swag Dog

    InsanelyMac Protégé

  • Members
  • PipPip
  • 57 posts
  • Gender:Male

Hey Guys, I tried to patch my DSDT with the brightness guide but I failed each time...  I would be very grateful if someone could patch it for me. Thank you very much  :D



#150
m1st3r1

m1st3r1

    InsanelyMac Protégé

  • Members
  • Pip
  • 17 posts
  • Gender:Male
  • Location:Indonesia

Hey Guys, I tried to patch my DSDT with the brightness guide but I failed each time... I would be very grateful if someone could patch it for me. Thank you very much :D

y u no share ur dsdt?

Lol. I can try patch it for you. But it's pretty easy though. I suggest you try for yourself. And what's the error anyway? Is it in dsdt editor or what?

#151
Swag Dog

Swag Dog

    InsanelyMac Protégé

  • Members
  • PipPip
  • 57 posts
  • Gender:Male

Oops, I thought I attached it  :D 
I tried to do it and failed, I could never boot with the DSDT after my attempt at patching

EDIT: Lol it didn't attach again with the forum attacher. Here's uploaded on a website: http://www.speedysha.../CPhNj/dsdt.dsl

Thank You! :)
PS: My magic number is 0xD



#152
m1st3r1

m1st3r1

    InsanelyMac Protégé

  • Members
  • Pip
  • 17 posts
  • Gender:Male
  • Location:Indonesia

Oops, I thought I attached it  :D 
I tried to do it and failed, I could never boot with the DSDT after my attempt at patching

EDIT: Lol it didn't attach again with the forum attacher. Here's uploaded on a website: http://www.speedysha.../CPhNj/dsdt.dsl

Thank You! :)
PS: My magic number is 0xD

hello. you have intel hd 1st gen right? your sig saying you have hd3000 though. :D
if you have intel hd 1st gen, here: http://www76.zippysh...83114/file.html
make sure:
you've backed up everything. or at least you can delete the dsdt in case something's wrong (dont blame me if u cant and destroy you osx :D )

you have the acpibacklight.kext (from the op) installed.

rename the dsdtorangp.aml to dsdt.aml and put it on your osx (it depends on your bootloader)

notes:

i've got no error in compiling, but you send me dsl file, it might be different than aml file, try send the aml file if you got error.

in any case (success or not). please report back :)

 

good luck.



#153
Swag Dog

Swag Dog

    InsanelyMac Protégé

  • Members
  • PipPip
  • 57 posts
  • Gender:Male

I'm using your DSDT right now, it works absolutely perfectly! Thank you so so much!  :D  

The specs in my sig are for my main laptop hehe  ^_^



#154
pedro190d

pedro190d

    InsanelyMac Protégé

  • Members
  • Pip
  • 1 posts

Hi, 

Can someone please fix my DSDT for me? I'm trying to do this patch, but my DSDT is already full of compile errors.

My computer is Toshiba C660-189.

 

This is the original dsdt extract from aida64.

http://www.mediafire...le56c27wg2/c660



#155
Duvelhedz

Duvelhedz

    InsanelyMac Protégé

  • Members
  • Pip
  • 2 posts

Hi There, I have successfully got this working on an IBM x201, Brightness working with scrl lock and Pause buttons above the F keys. The problem I have run into is that now my machine will not go to sleep.

 

Would anyone be so kind as to look at both dsdts and give me a clue as what needs to be fixed (original and modded ones are attached.

 

Thanks :) Attached File  DSDT.zip   37.73KB   6 downloads



#156
iDo

iDo

    InsanelyMac Protégé

  • Members
  • Pip
  • 12 posts
  • Gender:Male

Thanks to HUSABER, the DSDT for my laptop is now errorless. But issues remain there. 

 

I have attached both the original DSDT (which has errors and is purely the the DSDT I extracted) and the fixed DSDT (no errors, applied fixes for SpeedStep, IDE kernel panic, EHCI, UHCI, CMOS reset, and IRQ reallocation with DSDTFixer). Still, after weeks of reading (RTFM first rule! :D) and applying, when I wake up my laptop from sleep, the screen is black. I confirm the keyboard is working. Also, the CPU gets hot (although I applied SpeedStep fix!). I would really really really appreciate if someone can help me resolve these issues.

 

Please delete .txt extension. The zip file has both dsl and aml files. 

 

Thanks! :)

Attached Files



#157
51r

51r

    InsanelyMac Protégé

  • Members
  • Pip
  • 37 posts
  • Gender:Male
  • Location:Sofia, Bulgaria

http://cl.ly/2R0H2D2e0s2D  can somebody help me ... i have made everything but i dont have brightness :/ .. I have the brightness in system preferences/display and brightness buttons works but it don`t change anything ... thanks :)

Device/Vendor ID 0x00468086 Revision ID 0x18 Class Code 0x030000 Cacheline Size 0x00 Latency Timer 0x00 Interrupt Pin INTA Interrupt Line None BAR1 0xFA400004 BAR2 0x00000000 BAR3 0xC000000C BAR4 0x00000000 BAR5 0x0000F081 BAR6 0x00000000 Expansion ROM 0x00000000 Subsystem ID 0x04471028

p.s. Sorry for my english..



#158
elya

elya

    InsanelyMac Protégé

  • Members
  • PipPip
  • 59 posts

Device (PNLF)
{
Name (_HID, EisaId ("APP0002"))
Name (_CID, "backlight")
Name (_UID, 0x0A)
Name (_STA, 0x0B)
Method (_BCL, 0, NotSerialized)
{
Return (Package (0x13)
{
0x64,
0x32,
Zero,
0x06,
0x0C,
0x12,
0x18,
0x1E,
0x24,
0x2A,
0x30,
0x36,
0x3C,
0x42,
0x48,
0x4E,
0x54,
0x5A,
0x64
})
}
Method (_BCM, 1, NotSerialized)
{
Store (0x80000000, LEV2)
If (LGreaterEqual (Arg0, 0x64))
{
Store (0x12FF, LEVL)
}
Else
{
If (LGreaterEqual (Arg0, 0x5A))
{
Store (0x11FF, LEVL)
}
Else
{
If (LGreaterEqual (Arg0, 0x54))
{
Store (0x103A, LEVL)
}
Else
{
If (LGreaterEqual (Arg0, 0x4E))
{
Store (0x0EBB, LEVL)
}
Else
{
If (LGreaterEqual (Arg0, 0x48))
{
Store (0x0B24, LEVL)
}
Else
{
If (LGreaterEqual (Arg0, 0x42))
{
Store (0x0873, LEVL)
}
Else
{
If (LGreaterEqual (Arg0, 0x3C))
{
Store (0x065B, LEVL)
}
Else
{
If (LGreaterEqual (Arg0, 0x36))
{
Store (0x04C8, LEVL)
}
Else
{
If (LGreaterEqual (Arg0, 0x30))
{
Store (0x0396, LEVL)
}
Else
{
If (LGreaterEqual (Arg0, 0x2A))
{
Store (0x02B0, LEVL)
}
Else
{
If (LGreaterEqual (Arg0, 0x24))
{
Store (0x0266, LEVL)
}
Else
{
If (LGreaterEqual (Arg0, 0x1E))
{
Store (0x0218, LEVL)
}
Else
{
If (LGreaterEqual (Arg0, 0x18))
{
Store (0x01D1, LEVL)
}
Else
{
If (LGreaterEqual (Arg0, 0x12))
{
Store (0x0191, LEVL)
}
Else
{
If (LGreaterEqual (Arg0, 0x0C))
{
Store (0x0161, LEVL)
}
Else
{
If (LGreaterEqual (Arg0, 0x06))
{
Store (0x0132, LEVL)
}
Else
{
If (LGreaterEqual (Arg0, Zero))
{
Store (0x82, LEVL)
}
Else
{
Store (0x11FF, LEVL)
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
Method (_BQC, 0, NotSerialized)
{
Return (^^PCI0.GFX0.DD02._BQC ())
}
Method (_DOS, 1, NotSerialized)
{
^^PCI0.GFX0._DOS (Arg0)
}
}
In the code snippet above, you may have to change whenever it says "PCI0.GFX0..." to your equivalent, eg. say "_SB.PCI0.VGA0" or something.
 

 

how to see our "equivalent"??



#159
ludacrisvp

ludacrisvp

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 373 posts
  • Gender:Male
  • Location:USA

Thanks to this thread I'm now able to have backlight control working.

Haven't been able to get the actual Fn key working but for me Ctrl+Home/Ctrl+End works just fine for me with Spark and display notification enabled. 

This gives the sun display when used with Spark and slider works perfectly in the display prefs.

 

This is a Lenovo T410 w/ Core i5 2.66Ghz no nVidia card w/ 8GB RAM and replaced WLAN w/ Dell half-height Broadcom card (dw1510) and BIOS 1.45 w/ whitelist modification to allow unapproved wifi cards.

 

Here is my current DSDT.

 

Edit:

Using a more current version of VoodooPS2Controller.kext I've noticed that ScrLk and Pause function as Brightness Down and Up respectively w/o using the Fn key.

Attached Files



#160
adryano42

adryano42

    InsanelyMac Protégé

  • Members
  • Pip
  • 2 posts
  • Gender:Male
  • Location:Brazil
Hello I'm trying to build my DSDT to work with the brightness control, but without success. Compiled my DSDT without errors more without success. 
Could someone help me I'm lost on this issue. 
 
my setup is: 
 
lenovo G460 
 
Intel core i3 330m 
Intel HD Graphics 
 
My magic number and 0xD
 






Also tagged with one or more of these keywords: first generation HD, backlight, brightness, ACPI, DSDT, 8086:0046, GMA, 5700MHD, Ironlake, Arrandale


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