Jump to content

UPDATED 20.12. GenericBrightness.kext


  • Please log in to reply
671 replies to this topic

#221
PiSToLBR

PiSToLBR

    InsanelyMac Protégé

  • Members
  • Pip
  • 43 posts
  • Gender:Male
  • Location:Brazil - Recife - PE
Can anyone help me make this work ? I have a HP mini 110-1025nr.

I don't know how to edit DSDT.

Here is my DSDT

Attached File  dsdt.new.dsl.zip   37.9KB   5 downloads


Thanks,
PiSToL

#222
ivik

ivik

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 280 posts
Try this

Attached Files



#223
shenor

shenor

    InsanelyMac Protégé

  • Members
  • PipPip
  • 70 posts
I'm using cinema display 23 inch with gtx 470 and brightness control change very little.My dsdt doesn't have pnlf.What must I do?

Thanks

#224
sw170

sw170

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 212 posts
  • Gender:Male
  • Location:UK

...
a link for scriptsaver
http://swannman.word...ts/scriptsaver/

nice one, me thanks too!

#225
Scorpy22

Scorpy22

    InsanelyMac Protégé

  • Members
  • Pip
  • 18 posts
Hello,

I get a kernel panic with the second method ( All.zip ). I used this BRGT device:
[codebox]Device (BRGT)
{
Name (_HID, EisaId ("APP0321"))
Name (_CID, "brightness")
Name (_UID, 0x0A)
Name (_STA, 0x0B)
Method (_BCL, 0, NotSerialized)
{
Store (One, VDRV)
Return (Package (0x0A)
{
0x50,
0x0D,
0x07,
0x0D,
0x14,
0x1E,
0x2D,
0x3C,
0x50,
0x64
})
}

Method (_BCM, 1, NotSerialized)
{
^^PCI0.GFX0.DD02._BCM (Arg0)
}

Method (_BQC, 0, NotSerialized)
{
Return (BRTL)
}
}[/codebox]

The kernel panic had GenericBrightness.kext in his backtrace.
Is there anything I can do ?

Thanks

#226
ivik

ivik

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 280 posts
Always?
Maybe _BQC doesn't return brightness level.
Try third driver if you have slider working. Third driver doesnt need _BQC, just for test.

Edit... i see that you don't have slider working.
Try editing _BQC like[codebox]Method (_BQC, 0, NotSerialized)
{
Return (0x64)
}[/codebox]

for testing

#227
Scorpy22

Scorpy22

    InsanelyMac Protégé

  • Members
  • Pip
  • 18 posts
It seems the KP problem is with the _BQC method, I edited it like you suggested and it doesn't KP anymore however the brightness still doesn't change and 'brightness get' always returns 100 ( as expected). I tried to change the brightness with the utility and the menu applet but no succes.

Thanks for you help.

#228
ivik

ivik

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 280 posts
I think that you are calling wrong brightness methods.

Your graphics is on POP2.

P0P2.NVID.LCD._BCM (Arg0)

#229
Scorpy22

Scorpy22

    InsanelyMac Protégé

  • Members
  • Pip
  • 18 posts
OK, still no panic, which is good :wacko:. However I still can't change brightness with the utility or the menu applet ( still returns 100). I am going to try to disable the NVDIA driver, and reboot, I think it might be interfering.

My current BRGT device
Device (BRGT)                    {                        Name (_HID, EisaId ("APP0321"))                        Name (_CID, "brightness")                        Name (_UID, 0x0A)                        Name (_STA, 0x0B)                        Method (_BCL, 0, NotSerialized)                        {                            Store (One, VDRV)                            Return (Package (0x0A)                            {                                0x50,                                 0x0D,                                 0x07,                                 0x0D,                                 0x14,                                 0x1E,                                 0x2D,                                 0x3C,                                 0x50,                                 0x64                            })                        }                        Method (_BCM, 1, NotSerialized)                        {                            ^^PCI0.P0P2.NVID.LCD._BCM (Arg0)                        }                        Method (_BQC, 0, NotSerialized)                        {                            Return (0x64)                        }                    }

I have this in /var/log/kernel.log
Acpi brightness levels:8, lowest brightness:7, highest brightness:100  GenericBrightness: Kernel Control Registered

EDIT: Theory correct, without nvidia driver I can change the brightness with the menu applet

#230
ivik

ivik

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 280 posts
Do you have OSYS set to 0x07D6?

Somewhere on this topic i posted info about nvidia registers. Try changing them.
Also.. your _BCL is wrong.
[codebox] Method (_BCL, 0, NotSerialized)
{
Or (VDRV, 0x02, VDRV)
Return (Package (0x0A)
{
0x50,
0x0D,
0x07,
0x0D,
0x14,
0x1E,
0x2D,
0x3C,
0x50,
0x64
})
}
[/codebox]

#231
Scorpy22

Scorpy22

    InsanelyMac Protégé

  • Members
  • Pip
  • 18 posts
Concerning the nvidia registers, I used to use a version of nvclock that I modified myself, it worked fine, however it also gave me random kernel panic at boot. That is why I am trying to find an alternative. About the OSYS, I will change them and then I'll get back to you, finally I don't know what you mean about my _BCL being wrong, it comes from a freshly extracted DSDT.

Again, thanks for you help ( and your time)

#232
ivik

ivik

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 280 posts
That _BCL is for intel graphics. (it writes 1 to VDRV)

Nvidia _BCL writes 2 to VDRV.

#233
kellis

kellis

    InsanelyMac Protégé

  • Members
  • PipPip
  • 93 posts
  • Gender:Male
  • Location:Austin, tx
awesome progress,
what would it be if the graphics was on pop2 and using nvidia?
I am getting confused a little bit.
We might get this working on all the dvx series on HP.
That would be awesome

#234
ivik

ivik

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 280 posts
I don't understand question. ;)

If you have multiple _BCM, _BQC. _BCL methods, then find your graphics with ioreg and use methods under that device.
Some dsdt have support for multiple graphics. For example, my acer was also made with nvidia graphics, so it had PEGP device.

#235
weizh126

weizh126

    InsanelyMac Protégé

  • Members
  • PipPip
  • 64 posts
Hi ivik,
I still have a question, if the max backlight equals 0, then there is no hope to show the SUN logo?
Thanks.

#236
ivik

ivik

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 280 posts
You can show it (with pnlf), but progress bar will always be at 100%.

#237
weizh126

weizh126

    InsanelyMac Protégé

  • Members
  • PipPip
  • 64 posts
I think I know the reason why I couldnot get the SUN logo when using the DSDT before, I insert the following codes into the GFX0 in DSDT
"@0,built-in", 
								Buffer (One)
								{
									0x01
								},
then the SUN logo shows, but the progress bar is always at 100% as you said.
Really thanks for your great work and teach me so much knowledge.

#238
nobb1x

nobb1x

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 331 posts
  • Location:Italy
i got backlights values into the registry always set to 0 too, i have seen that with my nvidia card i can see that values different from 0 only if i patch the dsdt adding @0,NVTM keys.
I totally ignore what it mean, what i did is to take a real mac ioregistry and tried to add keys until i saw something change into the backlight values.

this is the complete patch i did, i use graphicsenabler=yes
btw, all of this at the end of VGA0 device.

Ivik, nice job, ty, i used the PNLF device (with _BCL,_BCM and _BQC taken from my original dsdt) and seem to work great.

                                "@0,NVMT", 
Buffer (0x60)
{
/* 0000 */ 0x0B, 0x03, 0xFF, 0x20, 0x06, 0x10, 0x85, 0x9C,
/* 0008 */ 0xA0, 0x05, 0x84, 0x03, 0x40, 0x06, 0xD0, 0x05,
/* 0010 */ 0xF0, 0x05, 0x00, 0x00, 0x9E, 0x03, 0x87, 0x03,
/* 0018 */ 0x8D, 0x03, 0x00, 0x00, 0xB0, 0x37, 0x4A, 0x05,
/* 0020 */ 0x00, 0x00, 0x01, 0x01, 0xFF, 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, 0x40, 0xFF, 0x10, 0x05,
/* 0050 */ 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
/* 0058 */ 0x00, 0x08, 0x00, 0x00, 0xFF, 0x03, 0x00, 0x00
},
"@0,pwm-info",
Buffer (0x14)
{
/* 0000 */ 0x01, 0x14, 0x00, 0x64, 0x78, 0x69, 0x00, 0x00,
/* 0008 */ 0x08, 0x52, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00,
/* 0010 */ 0x00, 0x04, 0x00, 0x00
},
"AAPL,aux-power-connected",
Buffer (0x04)
{
0x01, 0x00, 0x00, 0x00
},
"AAPL,backlight-control",
Buffer (0x04)
{
0x01, 0x00, 0x00, 0x00
},
"AAPL00,blackscreen-preferences",
Buffer (0x04)
{
0x00, 0x00, 0x00, 0x08
},
"AAPL00,DataJustify",
Buffer (0x04)
{
0x01, 0x00, 0x00, 0x00
},
"AAPL00,Dither",
Buffer (0x04)
{
0x00, 0x00, 0x00, 0x00
},
"AAPL00,DualLink",
Buffer (0x04)
{
0x00, 0x00, 0x00, 0x00
},
"AAPL00,Inverter",
Buffer (0x04)
{
0x00, 0x00, 0x00, 0x00
},
"AAPL00,InverterCurrent",
Buffer (0x04)
{
0x00, 0x00, 0x00, 0x00
},
"AAPL00,InverterFrequency",
Buffer (0x04)
{
0x1e, 0x02, 0x00, 0x00
},
"AAPL00,LinkFormat",
Buffer (0x04)
{
0x00, 0x00, 0x00, 0x00
},
"AAPL00,LinkType",
Buffer (0x04)
{
0x00, 0x00, 0x00, 0x00
},
"AAPL00,PixelFormat",
Buffer (0x04)
{
0x00, 0x00, 0x00, 0x00
},
"AAPL00,T1",
Buffer (0x04)
{
0x00, 0x00, 0x00, 0x00
},
"AAPL00,T2",
Buffer (0x04)
{
0x01, 0x00, 0x00, 0x00
},
"AAPL00,T3",
Buffer (0x04)
{
0xC8, 0x00, 0x00, 0x00
},
"AAPL00,T4",
Buffer (0x04)
{
0xC8, 0x00, 0x00, 0x00
},
"AAPL00,T5",
Buffer (0x04)
{
0x01, 0x00, 0x00, 0x00
},
"AAPL00,T6",
Buffer (0x04)
{
0x00, 0x00, 0x00, 0x00
},
"AAPL00,T7",
Buffer (0x04)
{
0x90, 0x01, 0x00, 0x00
}
}, Local0)
DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
Return (Local0)
}
}
_linenums:0'>Method (_DSM, 4, NotSerialized) { Store (Package (0x34) { "@0,backlight-control", Buffer (0x04) { 0x01, 0x00, 0x00, 0x00 }, "@0,display-cfg", Buffer (0x04) { 0x03, 0x01, 0x00, 0x00 }, "@0,connector-type", Buffer (0x04) { 0x02, 0x00, 0x00, 0x00 }, "@0,use-backlight-blanking", Buffer (0x00) { }, "@0,EDID", Buffer (0x80) { /* 0000 */ 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x00, /* 0008 */ 0x30, 0xE4, 0x01, 0xCF, 0x00, 0x00, 0x00, 0x00, /* 0010 */ 0x00, 0x12, 0x01, 0x03, 0x80, 0x22, 0x13, 0x78, /* 0018 */ 0x0A, 0xAB, 0xB5, 0x9F, 0x59, 0x54, 0x96, 0x26, /* 0020 */ 0x16, 0x50, 0x54, 0x00, 0x00, 0x00, 0x01, 0x01, /* 0028 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, /* 0030 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x3E, 0x1C, /* 0038 */ 0x56, 0xA0, 0x50, 0x00, 0x16, 0x30, 0x30, 0x20, /* 0040 */ 0x35, 0x00, 0x58, 0xC2, 0x10, 0x00, 0x00, 0x19, /* 0048 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0050 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0058 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0xFE, 0x00, 0x4C, /* 0060 */ 0x47, 0x20, 0x44, 0x69, 0x73, 0x70, 0x6C, 0x61, /* 0068 */ 0x79, 0x0A, 0x20, 0x20, 0x00, 0x00, 0x00, 0xFC, /* 0070 */ 0x00, 0x4C, 0x50, 0x31, 0x35, 0x36, 0x57, 0x48, /* 0078 */ 0x32, 0x2D, 0x54, 0x4C, 0x45, 0x31, 0x00, 0xDC },<strong class='bbc'> "@0,NVMT", Buffer (0x60) { /* 0000 */ 0x0B, 0x03, 0xFF, 0x20, 0x06, 0x10, 0x85, 0x9C, /* 0008 */ 0xA0, 0x05, 0x84, 0x03, 0x40, 0x06, 0xD0, 0x05, /* 0010 */ 0xF0, 0x05, 0x00, 0x00, 0x9E, 0x03, 0x87, 0x03, /* 0018 */ 0x8D, 0x03, 0x00, 0x00, 0xB0, 0x37, 0x4A, 0x05, /* 0020 */ 0x00, 0x00, 0x01, 0x01, 0xFF, 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, 0x40, 0xFF, 0x10, 0x05, /* 0050 */ 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0058 */ 0x00, 0x08, 0x00, 0x00, 0xFF, 0x03, 0x00, 0x00 }, </strong> "@0,pwm-info", Buffer (0x14) { /* 0000 */ 0x01, 0x14, 0x00, 0x64, 0x78, 0x69, 0x00, 0x00, /* 0008 */ 0x08, 0x52, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, /* 0010 */ 0x00, 0x04, 0x00, 0x00 }, "AAPL,aux-power-connected", Buffer (0x04) { 0x01, 0x00, 0x00, 0x00 }, "AAPL,backlight-control", Buffer (0x04) { 0x01, 0x00, 0x00, 0x00 }, "AAPL00,blackscreen-preferences", Buffer (0x04) { 0x00, 0x00, 0x00, 0x08 }, "AAPL00,DataJustify", Buffer (0x04) { 0x01, 0x00, 0x00, 0x00 }, "AAPL00,Dither", Buffer (0x04) { 0x00, 0x00, 0x00, 0x00 }, "AAPL00,DualLink", Buffer (0x04) { 0x00, 0x00, 0x00, 0x00 }, "AAPL00,Inverter", Buffer (0x04) { 0x00, 0x00, 0x00, 0x00 }, "AAPL00,InverterCurrent", Buffer (0x04) { 0x00, 0x00, 0x00, 0x00 }, "AAPL00,InverterFrequency", Buffer (0x04) { 0x1e, 0x02, 0x00, 0x00 }, "AAPL00,LinkFormat", Buffer (0x04) { 0x00, 0x00, 0x00, 0x00 }, "AAPL00,LinkType", Buffer (0x04) { 0x00, 0x00, 0x00, 0x00 }, "AAPL00,PixelFormat", Buffer (0x04) { 0x00, 0x00, 0x00, 0x00 }, "AAPL00,T1", Buffer (0x04) { 0x00, 0x00, 0x00, 0x00 }, "AAPL00,T2", Buffer (0x04) { 0x01, 0x00, 0x00, 0x00 }, "AAPL00,T3", Buffer (0x04) { 0xC8, 0x00, 0x00, 0x00 }, "AAPL00,T4", Buffer (0x04) { 0xC8, 0x00, 0x00, 0x00 }, "AAPL00,T5", Buffer (0x04) { 0x01, 0x00, 0x00, 0x00 }, "AAPL00,T6", Buffer (0x04) { 0x00, 0x00, 0x00, 0x00 }, "AAPL00,T7", Buffer (0x04) { 0x90, 0x01, 0x00, 0x00 } }, Local0) DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0)) Return (Local0) } }


#239
ivik

ivik

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 280 posts
Nice!! Could you post your dsdt?

Acers usually have nice dsdt. Just to see brightness methods. :D

#240
nobb1x

nobb1x

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 331 posts
  • Location:Italy

Nice!! Could you post your dsdt?

Acers usually have nice dsdt. Just to see brightness methods. :(


sure, here is, this laptop is a mess, it has two graphic cards and just one works with osx.
just for the record, i can adjust brightness in two ways now, using Fn+left/right (doing this don't affect brightness ioreg values)
and using Fn+F12/Pause (doing this affect brightness ioreg values)

Attached File  dsdt.zip   40.54KB   60 downloads





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