Jump to content

UPDATED 20.12. GenericBrightness.kext


ivik
 Share

674 posts in this topic

Recommended Posts

...

Any ideas?

 

Edit: When I change the brightness and update the ioreg afterwards, I can see the brightness values changing but actual LCD brightness doesn't change.

 

Hi JBraddock,

 

try with this DSDT and Ivik's kext in S/L/E (82Kb one) - I edited your PNLF Device

all you need in your Video injection is "@0,pwm-info" and "@0,backlight-control" I didn't change your DSDT here but you can test it yourself

JBraddock.zip

 

good luck

s

Link to comment
Share on other sites

Hi JBraddock,

 

try with this DSDT and Ivik's kext in S/L/E (82Kb one) - I edited your PNLF Device

all you need in your Video injection is "@0,pwm-info" and "@0,backlight-control" I didn't change your DSDT here but you can test it yourself

JBraddock.zip

 

good luck

Thank you for this.

I tried that but the driver didn't get loaded.

It seems to me that in my case LCD is the problem.

 

Honestly, I don't feel needing brightness too much but it would be nice to have it working natively.

I'll try further when I have enough time.

 

Thank you again.

 

Edit: Please see the post below as I have it working now.

Link to comment
Share on other sites

Hi all.

 

There are 2 drivers for brightness:

1.

For those who have apple brightness slider working (max backlight>0 in ioreg) can use GenericBrightness.kext.zip. There is also VoodooPS2Controller with mapped keys for brightness for hp, acer, dell, samsung and lg.

To make native slider work, you need to add PNLF device:

Device (PNLF)
{
Name (_HID, EisaId ("APP0002"))
Name (_CID, "backlight")
Name (_UID, 0x0A)
Name (_STA, 0x0B)
}

 

After that you need to find where _BCM, _BCQ and _BCL methods are and what graphics you use, since a lot of dsdt had multiple methods, because there is support for multiple cards in bios.

 

If your graphics is (for example) GFX0 (search it from ioreg), then you should find that device in dsdt. Under that device, there are other devices (usually LCD, CRT, TV...). Look for the device that has those methods (_BCM, _BCQ and _BCL) and then put Name (_HID, EisaId ("LCD1234")).

Example:

 Device (LCD)
{
Name (_ADR, 0x0400)
Name (_HID, EisaId ("LCD1234")) //this must be added
Method (_DCS, 0, NotSerialized)
{
}
Method (_DGS, 0, NotSerialized)
{
}
Method (_BCL, 0, NotSerialized)
{
}
Method (_BCM, 1, NotSerialized)
{
}
Method (_BQC, 0, NotSerialized)
{
}

 

 

2.

The second one (NoSlider.zip) can control brightness without PNLF. But you still have to add some code to dsdt.

Only Name (_HID, EisaId ("LCD1234")) is needed, like in first method.

 

In NoSlider there are also 2 apps:

console utility brightness with parameters:

 

brightness get => returns current brightness

brightness set yourbrightness => sets your brightness (from 0 to 100)

brightness up => one step up (usefull for keyboard mapping)

brightness down => one step down

 

Second app is Brightness Menulet. It is menubar plugin with slider for setting brightness. :)

 

@Ivik

 

Not working with leopard and brightness cannot save. Any fix? B.T.W. can we do this the DSDT DTGP way?

Link to comment
Share on other sites

Hi all!
Sorry. I'm little busy now. Last exam is on monday...

That KP are hard to solve. It looks like on hdmi/resolution change something changes in ioreg, pointer to brightness values get lost. I corect them if they get lost in kext, but sometimes is too late.

I was thinking about userspace daemon which would monitor brightness values:

err = IODisplayGetFloatParameter(service, kNilOptions, kDisplayBrightness,
&brightness);

That code returns brightness in percentage, (don't need max brightness) so that value could be used as argument to call brightess kext with, same way like in kext which doesn't need slider working.

Also, harware brightness will sync slider value on daemon init on login:
err = IODisplaySetFloatParameter(service, kNilOptions, kDisplayBrightness,
brightness);

I think it could work without KP. :)
Link to comment
Share on other sites

1.

For those who have apple brightness slider working (max backlight>0 in ioreg) can use GenericBrightness.kext.zip. There is also VoodooPS2Controller with mapped keys for brightness for hp, acer, dell, samsung and lg.

To make native slider work, you need to add PNLF device:

       Device (PNLF)
       {
           Name (_HID, EisaId ("APP0002"))
           Name (_CID, "backlight")
           Name (_UID, 0x0A)
           Name (_STA, 0x0B)
       }

 

After that you need to find where _BCM, _BCQ and _BCL methods are and what graphics you use, since a lot of dsdt had multiple methods, because there is support for multiple cards in bios.

 

If your graphics is (for example) GFX0 (search it from ioreg), then you should find that device in dsdt. Under that device, there are other devices (usually LCD, CRT, TV...). Look for the device that has those methods (_BCM, _BCQ and _BCL) and then put Name (_HID, EisaId ("LCD1234")).

Example:

                Device (LCD)
               {
                   Name (_ADR, 0x0400)
            Name (_HID, EisaId ("LCD1234")) //this must be added
                   Method (_DCS, 0, NotSerialized)
                   {
                   }
                   Method (_DGS, 0, NotSerialized)
                   {
                   }
                   Method (_BCL, 0, NotSerialized)
                   {
                   }
                  Method (_BCM, 1, NotSerialized)
                  {
                  }
                  Method (_BQC, 0, NotSerialized)
                  {
                  }

 

 

2.

In addition to the above-mentioned DSDT fixes and GenericBrightness.kext being installed to E/E , I did use the following code for my 9600M GT and now I have native brightness working including auto dimming on battery.

 

Method (_DSM, 4, NotSerialized)
                   {
                       Store (Package (0x32)
                           {
                               "@0,AAPL,boot-display", 
                               Buffer (Zero) {}, 
                               "@0,backlight-control", 
                               Buffer (0x04)
                               {
                                   0x01, 0x00, 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
                               }, 

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

                               "AAPL,aux-power-connected", 
                               Buffer (0x04)
                               {
                                   0x01, 0x00, 0x00, 0x00
                               }, 

                               "@0,built-in", 
                               Buffer (Zero) {}, 
                               "@0,compatible", 
                               Buffer (0x0B)
                               {
                                   "NVDA,NVMac"
                               }, 

                               "@0,device_type", 
                               Buffer (0x08)
                               {
                                   "display"
                               }, 

                               "@0,name", 
                               Buffer (0x0F)
                               {
                                   "NVDA,Display-A"
                               }, 

                               "@0,use-backlight-blanking", 
                               Buffer (Zero) {}, 
                               "@1,can-hot-plug", 
                               Buffer (Zero) {}, 
                               "@1,compatible", 
                               Buffer (0x0B)
                               {
                                   "NVDA,NVMac"
                               }, 

                               "@1,device_type", 
                               Buffer (0x08)
                               {
                                   "display"
                               }, 

                               "@1,name", 
                               Buffer (0x0F)
                               {
                                   "NVDA,Display-B"
                               }, 

                               "NVCAP", 
                               Buffer (0x14)
                               {
                                   /* 0000 */    0x05, 0x01, 0x01, 0x01, 0x00, 0x00, 0x01, 0x00, 
                                   /* 0008 */    0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x0B, 
                                   /* 0010 */    0x00, 0x00, 0x00, 0x00
                               }, 

                               "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
                               }, 

                               "VRAM,totalsize", 
                               Buffer (0x04)
                               {
                                   0x00, 0x00, 0x00, 0x20
                               }, 

                               "device_type", 
                               Buffer (0x0D)
                               {
                                   "NVDA,GeForce"
                               }, 

                               "model", 
                               Buffer (0x18)
                               {
                                   "nVidia GeForce 9600M GT"
                               }, 

                               "rom-revision", 
                               Buffer (0x26)
                               {
                                   "nVidia GeForce 9600M GT OpenGL Engine"
                               }, 

                               "AAPL,HasPanel", 
                               Buffer (0x04)
                               {
                                   0x01, 0x00, 0x00, 0x00
                               }, 

                               "AAPL01,DualLink", 
                               Buffer (0x04)
                               {
                                   0x01, 0x00, 0x00, 0x00
                               }, 

                               "@0,EDID", 
                               Buffer (0x80)
                               {
                                   /* 0000 */    0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x00, 
                                   /* 0008 */    0x4C, 0xA3, 0x4D, 0x31, 0x00, 0x00, 0x00, 0x00, 
                                   /* 0010 */    0x00, 0x12, 0x01, 0x03, 0x80, 0x23, 0x14, 0x78, 
                                   /* 0018 */    0x0A, 0x87, 0xF5, 0x94, 0x57, 0x4F, 0x8C, 0x27, 
                                   /* 0020 */    0x27, 0x50, 0x54, 0x00, 0x00, 0x00, 0x01, 0x01, 
                                   /* 0028 */    0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 
                                   /* 0030 */    0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x1D, 0x36, 
                                   /* 0038 */    0x80, 0xA0, 0x70, 0x38, 0x1E, 0x40, 0x30, 0x20, 
                                   /* 0040 */    0x25, 0x00, 0x61, 0xC6, 0x10, 0x00, 0x00, 0x19, 
                                   /* 0048 */    0x00, 0x00, 0x00, 0x0F, 0x00, 0x00, 0x00, 0x00, 
                                   /* 0050 */    0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x91, 0x02, 
                                   /* 0058 */    0x64, 0x00, 0x00, 0x00, 0x00, 0xFE, 0x00, 0x53, 
                                   /* 0060 */    0x41, 0x4D, 0x53, 0x55, 0x4E, 0x47, 0x0A, 0x20, 
                                   /* 0068 */    0x20, 0x20, 0x20, 0x20, 0x00, 0x00, 0x00, 0xFE, 
                                   /* 0070 */    0x00, 0x31, 0x36, 0x30, 0x48, 0x54, 0x30, 0x33, 
                                   /* 0078 */    0x2D, 0x30, 0x30, 0x31, 0x0A, 0x20, 0x00, 0x60
                               }, 

                               "AAPL,slot-name", 
                               Buffer (0x0F)
                               {
                                   "PCI Slot@1,0,0"
                               }, 

                               "reg", 
                               Buffer (0x78)
                               {
                                   /* 0000 */    0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 
                                   /* 0008 */    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 
                                   /* 0010 */    0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x01, 0x02, 
                                   /* 0018 */    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 
                                   /* 0020 */    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 
                                   /* 0028 */    0x14, 0x00, 0x01, 0x42, 0x00, 0x00, 0x00, 0x00, 
                                   /* 0030 */    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 
                                   /* 0038 */    0x00, 0x00, 0x00, 0x10, 0x1C, 0x00, 0x01, 0x02, 
                                   /* 0040 */    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 
                                   /* 0048 */    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 
                                   /* 0050 */    0x24, 0x00, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 
                                   /* 0058 */    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 
                                   /* 0060 */    0x80, 0x00, 0x00, 0x00, 0x30, 0x00, 0x01, 0x02, 
                                   /* 0068 */    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 
                                   /* 0070 */    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00
                               }
                           }, Local0)
                       DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
                       Return (Local0)
                   }

 

I don't have an HDMI device to test if it gives KP but so far it seems to work fine. I lost the Rotation Option under Display Preferences but I don't use it anyway.

 

@ivik and those who made great contributions to this hack.

Thank you.

Link to comment
Share on other sites

  • 2 weeks later...

Hi ivik,

someone finds that the brightness after login has some relation with the @0,NVMT

0B03FF20 0610909C 00052003 8F053005 50050000 4E032303 29030000 20435204 00000101 E0000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 FFFF0000 00000000 40FF1005 01000000 00000000 00080000 80000000

The last 8 values, that is,

80000000
can control the value of AppleBacklightAtBoot under pnlf in ioreg. And for example, changing it to 80000000,80030000 and 80040000 are also OK.

So do you have any idea about this question, saving the value of the brightness register (such as BRTS on my notebook) and then passing the corresponding value to the AppleBacklightAtBoot?

On my notebook, the brightness is the same with last shut down when booting, while after logining into the desktop and several seconds, the brightness will go back to the fixed value.

I think the brightness change has some relation with the genericbrightness.kext.

BTPollTimer->setTimeoutMS(10000);	
}
else {
	BTPollTimer->setTimeoutMS(1000);

It seems that the time back to the fixed brightness is caused by the BTPollTimer.

 

Thanks.

Link to comment
Share on other sites

Hi ivik,

I'm here again with some question about my zotac mobo.

It uses the same chipset and integratedGPU of some MacBookPro, iMac and MacMini and anly the last one don't support brightness control because of it has no internal monitor.

But now, after a lot of test, I can have the brightness bezel and the key on my Apple keyboard natively working using dev prop from the IMac. But I have no change in brightness value, the slider moves and that's all.

 

I was thinking that if I have brightness working in win or linux it could be possible to find out where it's stored and apply that on the hack, but I have no idea how to do it. can you help me and all other nvidia user in having brightness also on desktop?

 

NOTE:

Rotation control menu under SnowLeo can be forced!

  1. Start Sistem Preferences (close and restart if already open)
  2. press alt+cmd while clicking on Monitor icon
  3. change your rotation settings and close

Link to comment
Share on other sites

Hi all.

There are 2 drivers for brightness:

Hello ivik,

sorry to jump up on this topic but i've been told that you are the "Wizard of Brightness"

so since I need really a miracle to solve my brightness problems... here I am.

 

Last week I installed SL over my intel laptop. it has a core 2 duo T6400 as CPU and a Nvidia G105M as graphic. MaLd0n in the DSDT Auto Patcher topic helped me with DSDT and we arrived at a point I actually have the dsdt.aml i attached in this post, in a zip file.

 

The problem is that now I have no absolutely brightness control, neither by any of the keyboard keys (I tried all combinations) and neither in the monitor preference menu (there's no slider at all).

Before, when I had my system running without any DSDT at all, I could change brightness by native brightness keys (Fn + arrows) ... now not anymore :wacko:

 

Do you have any suggestion on what best I can try now, to make brightness work? I would love to have... native brightness, with keyboard keys and inside the dsdt directly... but I dont wanna dream for now... It would be just good also to have a little slider (for now)

 

Thanks in advance for a possible reply!

dsdt.La_2_.zip

Link to comment
Share on other sites

Second app is Brightness Menulet. It is menubar plugin with slider for setting brightness. :wacko:

Hello again,

can someone tell me how to make the Brightness Menulet

to start up everytime OSX Starts? so that i see it already everytime in the upper bar menu, beside wireless bluetooth and all the other icons

 

thanks

Link to comment
Share on other sites

Hello ivik,

sorry to jump up on this topic but i've been told that you are the "Wizard of Brightness"

so since I need really a miracle to solve my brightness problems... here I am.

 

Last week I installed SL over my intel laptop. it has a core 2 duo T6400 as CPU and a Nvidia G105M as graphic. MaLd0n in the DSDT Auto Patcher topic helped me with DSDT and we arrived at a point I actually have the dsdt.aml i attached in this post, in a zip file.

 

The problem is that now I have no absolutely brightness control, neither by any of the keyboard keys (I tried all combinations) and neither in the monitor preference menu (there's no slider at all).

Before, when I had my system running without any DSDT at all, I could change brightness by native brightness keys (Fn + arrows) ... now not anymore :)

 

Do you have any suggestion on what best I can try now, to make brightness work? I would love to have... native brightness, with keyboard keys and inside the dsdt directly... but I dont wanna dream for now... It would be just good also to have a little slider (for now)

 

Thanks in advance for a possible reply!

What have you patched in dsdt?

Surely you need to patch it less.

Try to apply one patch at time to find out what is the one that break your brightness.

Or at least post the dsdt with brightness working i would like to take a look at it (and ioreg also).

Link to comment
Share on other sites

What have you patched in dsdt?

Surely you need to patch it less.

Try to apply one patch at time to find out what is the one that break your brightness.

Or at least post the dsdt with brightness working i would like to take a look at it (and ioreg also).

Hi scrax! and thanks a lot for your kind reply among all of these "silent" users :) I really appreciate.

 

The problem with my laptop is that Native Brightness works only WITHOUT the use of a DSDT.

So when I make an OSX installation from scratch, and install my other proprietary kexts (fakesmc, audio, etc) just in /extra/extensions without any DSDT in the /Extra folder, my laptop works fine with native brigtness.

I was even impressed of that because the Fn + arrow (up and down) keys natively could change the brigtness level.

 

But you can understand that in this situation I dont have for example the advantage of native power management and some other minor limitations like speedstep... so last week they (MadL0n) helped me to generate a DSDT in the other thread ---> "DSDT Auto Patcher" and the modded dsdt works fine, but except for the brightness :)

In this situation I saw that the brightness control is there in the menu config panel, but the slider is always at max, and I cannot move it or change the level from there.

 

But last night I have decided to try the second solution "NoSlider" here in this thread (since the 1st solution failed!), and I have deleted from my current DSDT the (PNLF) part which was added.

And now brightness works!! It works with that little tool contained in the NoSlider package, called brightness menulet. Thats why In my earlier post here I wanted to know if there could be any solution to make this application stay always in the top menu bar, even at boot!

 

So If there's no other "native" solution in changing my DSDT I have to use this NoSlider one,

but do you know if there's any chance to make this brigtness menulet application to start up automatically every time SL boot?

 

Thanks in advance!

Link to comment
Share on other sites

Hello ivik, I have a problem with brightness control on my samsung n130 , I need your help!

 

The problem is, that I cant control brightness after wake up from sleep ( i can see the sun but brightness wont change).

I´m running SL 10.6.6 installed with netbook installer, and I´m using this DSDT:

 

dsdt

 

 

I noticed i have the PNFL section but I dont understand why birghtness wont work after sleep.

 

Thanks

Link to comment
Share on other sites

Hi scrax! ...

Thanks in advance!

hi again,

I didn't follow this topic recently so I see your answer only now.

 

When you start without a patched DSDT in /Extra you are using a default DSDT stored in your BIOS.

The one MadL0n has made is not correct , or better it's overpatched because, probably just one, of the patchs he applied broke your working brightness.

So instead of looking for a workaround to a problem you added to your DSDT i'll try to fix the problem.

That could be done redoing the DSDT one patch at time to find out what is the one that kill your brightness.

 

EDIT: After lookin at the file you posted on the other thread I've removed some patch from the dsdt, try it now (rename it to dsdt.aml):

dsdt0.2.aml.zip

Link to comment
Share on other sites

EDIT: After lookin at the file you posted on the other thread I've removed some patch from the dsdt, try it now (rename it to dsdt.aml):

dsdt0.2.aml.zip

Hi scax! first of all thanks so much for your help and dedication.

unfortunately I have just tried your dsdt and sad to say that native brightness doesn't work. Neither there is the slider in the video control panel, to adjust brightness.

 

Here ---> http://www.mediafire.com/?zwy2tj4ccnprz59

I uploaded the DSDT extracted from my system, when I was using NO dsdt, and native brightness (with even proprietary keys) was working. Maybe you can look into that, and see what changes between that one, and the modified ones... :D

Link to comment
Share on other sites

Hi scax! first of all thanks so much for your help and dedication.

unfortunately I have just tried your dsdt and sad to say that native brightness doesn't work. Neither there is the slider in the video control panel, to adjust brightness.

I've already downloaded it and I saw few patch so we can go on removing one at time to find out were could be the problem.

 

But i need some confirmation to what I have understood:

 

without any DSDT (using the one of your sistem) you have

brightness working with slider and no rotation in preferences panel AND with the key (with the bezel).

 

with the DSDT patched by MadL0n you have

NO brightness working slider visible and no rotation in preference panel ADN NO key workin (no bezel).

 

with the dsdt0.2 you have

same as MadL0n ones but without slider in pref panel ?

 

What other problem you had without DSDT patch?

 

Try this three dsdt and note the differences. dsdt 0.1 is the original without patches only fixed some code,

0.3 has minimal patching.

On 0.4 I have all the patches MadL0n did minus some that I didn't understand why they where done.

 

If 0.4 works you are ok so test it first! :)

Archivio.zip

Link to comment
Share on other sites

I've already downloaded it and I saw few patch so we can go on removing one at time to find out were could be the problem.

 

But i need some confirmation to what I have understood:

 

without any DSDT (using the one of your sistem) you have

brightness working with slider and no rotation in preferences panel AND with the key (with the bezel).

 

with the DSDT patched by MadL0n you have

NO brightness working slider visible and no rotation in preference panel ADN NO key workin (no bezel).

 

with the dsdt0.2 you have

same as MadL0n ones but without slider in pref panel ?

 

What other problem you had without DSDT patch?

 

Try this three dsdt and note the differences. dsdt 0.1 is the original without patches only fixed some code,

0.3 has minimal patching.

On 0.4 I have all the patches MadL0n did minus some that I didn't understand why they where done.

 

If 0.4 works you are ok so test it first! :)

Archivio.zip

 

scrax!! you're amazing

I have just tested the 0.4 dsdt and the brightness control works finally natively with its keys! Fn + arrow up and arrow down!

The only thing which I'm missing is the slider in the Monitor control panel menu.... where there's the resolutions selection. Also one of the USB port is disabled, don't know why.

 

I have tested all the dsdt I had till now, including the ones made by Madl0n, and I noticed that the ONLY ONE which had the slider in the control panel "monitor" menu is the first made by MadL0n at this link:

http://www.insanelymac.com/forum/index.php...st&id=88962

This one has the slider, but it's always at MAX so If you try to change the brightness with that, it doesn't change anyway.

All the other dsdt, dont have the slider at all.

 

Also in the latest dsdt made by MadL0n here

http://www.insanelymac.com/forum/index.php...st&id=88975

all the USB ports were working, with your 0,4 i'm missing one on the left.... dont know why

Link to comment
Share on other sites

I have tested all the dsdt I had till now, including the ones made by Madl0n, and I noticed that the ONLY ONE which had the slider in the control panel "monitor" menu is the first made by MadL0n at this link:

http://www.insanelymac.com/forum/index.php...st&id=88962

This one has the slider, but it's always at MAX so If you try to change the brightness with that, it doesn't change anyway.

All the other dsdt, dont have the slider at all.

 

So this is because it's the only one with added the PNLF Device, but it's useless because it is just cosmetic, until someone maybe ivik can find out how to use it with the EC controller (that I understood Apple won't use) or the one we use...

 

Also in the latest dsdt made by MadL0n here

http://www.insanelymac.com/forum/index.php...st&id=88975

all the USB ports were working, with your 0,4 i'm missing one on the left.... dont know why

 

That's probably because I've left off a patch. I'll take a look and post a 0.5 as soon as I can, but I'm in the middle of an HD transfer so please be patient :rolleyes:

Link to comment
Share on other sites

That's probably because I've left off a patch. I'll take a look and post a 0.5 as soon as I can, but I'm in the middle of an HD transfer so please be patient :)

I will be patiently waiting!

you're my hero! :D

 

its a pity that ivik doesn't post in this forum anymore... it's a big loss :P

but let's hope that he's fine, wherever he is, and busy with something beautiful :)

Link to comment
Share on other sites

@ivik

 

Big thank you for your method. I'm closer to getting brightness fully working.

 

I have an Asus M60J notebook Core i7 720QM with nvidia GT 240M. I'm using MacBookPro6,1 as the identifier.

 

I'm using Scorpy22's MacBookPro6,1 device properties string to which I made a few customizations. (Thanks Scorpy22 for that discovery)

 

- I corrected the Display device ACPI path to mine PciRoot(0x0)/Pci(0x3,0x0)/Pci(0x0,0x0)

-Removed EDID and NVMT injection (those are screen specific I believe)

-Removed the whole ACPI path section PciRoot(0x0)/Pci(0x2,0x0) (that's for integrated graphics processor which I don't have)

-Removed AAPL01, blackscreen-preferences (According to Krazubu, that's for an internal secondary display which I don't have)

-Corrected the NVCAP to mine

-Changed @1,connector-type to 0x00000800 (HDMI Connector). 0x00000400 is for DisplayPort

 

The last ACPI device path is for the firewire device. I corrected the ACPI path to my firewire's ACPI path

 

 

Now, for the Brightness method.

 

I'm using the GenericBrightness kext in S/L/E. I added the PNLF device to my dsdt.

 

RESULTS:

 

-Slider works, SUN with brightness level notches appear and work. But effects are reversed. Moving to the right decreases brightness. Moving to the left increases brightness. I think there is a big clue about that in the kernel log:

 

kernel[0]: Acpi brightness levels:14, lowest brightness:90, highest brightness:12

 

How do I correct this? I have included my dsdt.

 

Also, is it possible to implement your GenericBrightness driver in dsdt alone? Using your GenericBrightness kext gives me a kernel panic anytime I plug or unplug the hdmi connector. When not using your kext, slider and SUN brightness level notches work but no effect on brightness.

 

SIDENOTE: using the MacBookPro6,1 device properties string has the added unexpected benefit of giving me some speedstep with the GT 240M. Before, my GT 240M was always operating on high speed. The resting temperature was 78 Celsius doing nothing just outputting the desktop to my 21 inch 1080p monitor. Now, the resting temperature is 68 Celsius. A full 10 degrees cooler. The notebook fan speed is much quieter too for running at a lower speed. When using Geekbench I still get 5600+, so it can still switch to high gear when needed and lower gear when doing nothing (some degree of speedstep). But I don't have GPULimit 0x0 in IORegRegistryExplorer.

 

Thanks again to you and Scorpy22 for getting me closer to fully working brightness.

 

post-104137-1302023958_thumb.png

 

dsdt.aml.zip

Link to comment
Share on other sites

hi mate. someone needs to correct your bcl code, windows seems to have it all in reverse compaed to macs

 

Method (_BCL, 0, NotSerialized)

{

Store (Zero, Local0)

Store (BRTI, Local4)

ShiftLeft (Local4, 0x04, Local4)

While (LLess (Local0, 0x10))

{

Subtract (0x10, Local0, Local3)

Subtract (Local3, One, Local3)

Store (Add (Local4, Local3), Local3)

Store (DerefOf (Index (^^^^LPCB.EC0.PWAC, Local3)), Local1)

Store (Divide (Multiply (Local1, 0x64), 0xFF, ), Local2)

Store (Local2, Index (PCTG, Local0))

Increment (Local0)

}

 

Return (PCTG)

}

 

can someone help him?

 

thanks :-)

Link to comment
Share on other sites

 Share

×
×
  • Create New...