Jump to content

UPDATED 20.12. GenericBrightness.kext


ivik
 Share

674 posts in this topic

Recommended Posts

Yes... but for what driver?

This driver and this one all tried same results to me. I can change levels without these method but no brightness bar know as the sun sign shows up. FN+F7 is up, FN+F8 is down in my case. When I press FN+PauseBreak and FN+Del the Brightness Bar shows up, strange huh? :D Maybe map FN+PauseBreak to FN+F7 and FN+Del to FN+F8 will solve the problem.

Link to comment
Share on other sites

You can't move brightness slider?

@ivik

no, as u can see, I can move the slider but no change of the brightness, any idea?

Does this driver contain my laptop's brightness levels? Should I added something in the info.plist? :)

b.t.w. below is what the kernel log said about brightness when I used ur driver and insert those BCM BTBL BQC BCL methods under PNLF device of my DSDT.

IG: Invalid firmware max backlight setting
Acpi brightness levels:8, lowest brightness:13, highest brightness:100

 

display: Not usable
GenericBrightness: No object of method _BCM
GenericBrightness: No object of method _BCM
GenericBrightness: No object of method _BCM
GenericBrightness: No object of method _BCM
GenericBrightness: No object of method _BCM
GenericBrightness: No object of method _BCM
GenericBrightness: No object of method _BCM
GenericBrightness: No object of method _BCM
GenericBrightness: No object of method _BCM
GenericBrightness: No object of method _BCM
GenericBrightness: No object of method _BCM
GenericBrightness: No object of method _BCM
GenericBrightness: No object of method _BCM
GenericBrightness: No object of method _BCM
GenericBrightness: No object of method _BCM
GenericBrightness: No object of method _BCM
GenericBrightness: No object of method _BCM
GenericBrightness: No object of method _BCM
GenericBrightness: No object of method _BCM
GenericBrightness: No object of method _BCM
GenericBrightness: No object of method _BCM
GenericBrightness: No object of method _BCM
GenericBrightness: No object of method _BCM
GenericBrightness: No object of method _BCM
GenericBrightness: No object of method _BCM
GenericBrightness: No object of method _BCM
GenericBrightness: No object of method _BCM

Should I inject some values in ur driver to make it work?

post-216278-1290818296_thumb.png

post-216278-1290821479_thumb.png

Link to comment
Share on other sites

Something is wrong here... maybe you are loading wrong driver. Are you sure you deleted old ones?

 

It is weird that _BCM could not be found, but _BCL is found, since they are all under same device...

 

Try this compiled dsdt.

@viki

thnx man, it works. But still a bit buggy. I can use the FN+Del and FN+PauseBreak keys to control brightness now, but my original keys for brightness adjustments are FN+F7(UP) and FN+F8(Down). Any idea how to modify this stuff to keep the original keys working instead of both FN+Del and FN+F8 dim the screen but FN+F8 shows no brightness bar(SUN symbol). b.t.w. I only have 8 levels brightness changing states but after using this driver I got 16, will this do some damage to my laptop LCD? :)

Seems a little bit strange the KERNEL.LOG said the display isn`t usable and the brightness is at the invalid max level. Any idea to fix :( ?

IG: Invalid firmware max backlight setting
Acpi brightness levels:8, lowest brightness:13, highest brightness:100

display: Not usable

Link to comment
Share on other sites

It won't hurt your LCD since driver calls your native brightness methods.

 

Brightness keys must be mapped to your hardware keys. Read topic how to get scancodes from your hardware keys. There is voodoops2 with debuging enabled in this topic.

 

If they emit scancodes, then they could be mapped to SUN.

Buggy is because you have only 8 brightness levels. I have 16 and it works like on real mac. It looks like 16 levels are static and predifined on all macs.

 

Brightness slider works ok?

Link to comment
Share on other sites

It won't hurt your LCD since driver calls your native brightness methods.

 

Brightness keys must be mapped to your hardware keys. Read topic how to get scancodes from your hardware keys. There is voodoops2 with debuging enabled in this topic.

 

If they emit scancodes, then they could be mapped to SUN.

Buggy is because you have only 8 brightness levels. I have 16 and it works like on real mac. It looks like 16 levels are static and predifined on all macs.

 

Brightness slider works ok?

 

@ivik

Yes, slider works. Is this driver 10.5 compatible and can be put in the EFI partition? Can u shed the light on making the 2-finger scrcolling of voodoops2.kext work on a generic PS2 trackpad? I tried a few ways but still cannot make it work. How to check what type of trackpad I`m using?

Link to comment
Share on other sites

Hi Ivik,

 

Thought I'd report back that finally got the PS2 sources modified to enable Fn+Up/Down working.

As a recap and maybe helps others, what I'd confused was the output of the debug scancode information...

 

I'd not used the right scan-codes in the ..ADBmap.h file.

Debug output (eg: Fn-Up):

ApplePS2Keyboard: Unknown ADB key for PS2 scancode: 0x8

ApplePS2Keyboard: PS/2 scancode 0xe0

ApplePS2Keyboard: PS/2 scancode 0x88

ApplePS2Keyboard: Unknown ADB key for PS2 scancode: 0x88

 

I'd incorrectly thought the scancode to "match" against 0x90 ADB was e0 88.

In fact, needs to be matched against e0 08

 

That, plus adding NX_KEYTPYE_BRIGHTNESS_UP and also changing the entry for ADB 0x90 from 0x00 0x00 0x00 to 0xff in the ..keyboard.cpp file makes things work. Similar for ADB 0x91 brightness down.

 

I can still use FunctionFlip etc to re-map to use of F-keys (as on real mac), should I want to.

Link to comment
Share on other sites

Nice!

I didn't see 0xe0 before 0x8, so i tought that this was brightness. :(

Yeah, me too; was getting really confused! :D

Now I finally get how this works, got to see if can "permanently" map to F keys, like me MBP.

 

EDIT: Done it, easy! First tried VoodooPS2, but keypad responsiveness was a bit erratic (IRQ issue?), and trackpad not so great; so reverted to patching of Meklort's ApplePS2 (from his googlecode project).

 

Thanks again for your kext, encouragement & advice.

Link to comment
Share on other sites

Hi 'weizh126'

interesting, why do you think that ?

..

and here is how you can assign hot keys to ivik's brightness utility:

 

1. Copy brightness utility to /usr/brightness

2. Create three scripts with AppleScript Editor:

for brightness up

do shell script "/usr/brightness up"

for brightness down

do shell script "/usr/brightness down"

for brightness set

do shell script "/usr/brightness set 50"

3. Save them in your Scripts folder (or anywhere you want, applications folder?)

4. Use any program that can assign hot keys for apps, scripts (I used DragThing) to run your scripts (I did F4-brightness set, F5-bup, F6-bdown)

 

hope that will help

Regards

s

 

Thanks. With applescript that you mentioned, finally I could make the screen to dim automatically, by using scriptsaver program, which runs the script automatically with the start time screensaver.

 

a link for scriptsaver

http://swannman.wordpress.com/projects/scriptsaver/

Link to comment
Share on other sites

Hello,

I get a kernel panic with the second method ( All.zip ). I used this 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.GFX0.DD02._BCM (Arg0)
}

Method (_BQC, 0, NotSerialized)
{
Return (BRTL)
}
}

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

Thanks
Link to comment
Share on other sites

 Share

×
×
  • Create New...