kidalive Posted November 26, 2010 Share Posted November 26, 2010 Which package? Second or third? Hi, ivik. I tried this package and the first one of your thread still not working. DSDT fix? How can I fix this? Link to comment Share on other sites More sharing options...
ivik Posted November 26, 2010 Author Share Posted November 26, 2010 Second one is if you can't move display brightness under display preferences with BGRT method, 3rd one is for PNLF method. Link to comment Share on other sites More sharing options...
kidalive Posted November 26, 2010 Share Posted November 26, 2010 Second one is if you can't move display brightness under display preferences with BGRT method, 3rd one is for PNLF method. Can u have a check of my DSDT? I don`t know if this is correct in my case. DSDT.dsl.zip Link to comment Share on other sites More sharing options...
ivik Posted November 26, 2010 Author Share Posted November 26, 2010 Yes... but for what driver? Link to comment Share on other sites More sharing options...
kidalive Posted November 26, 2010 Share Posted November 26, 2010 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? Maybe map FN+PauseBreak to FN+F7 and FN+Del to FN+F8 will solve the problem. Link to comment Share on other sites More sharing options...
ivik Posted November 26, 2010 Author Share Posted November 26, 2010 Please send me aml file. For some reason i can't compile dsdt. (bus eror) Link to comment Share on other sites More sharing options...
kidalive Posted November 26, 2010 Share Posted November 26, 2010 @ivik Here is my DSDT.aml. When I added those methods under PNLF I got a few errors while compiling 'em. DSDT.aml.zip Link to comment Share on other sites More sharing options...
ivik Posted November 26, 2010 Author Share Posted November 26, 2010 @ivikHere is my DSDT.aml. When I added those methods under PNLF I got a few errors while compiling 'em. And use 3rd driver since you use PNLF method. And make sure that max brightness is not 0 in ioreg. DSDT.dsl.zip Link to comment Share on other sites More sharing options...
kidalive Posted November 26, 2010 Share Posted November 26, 2010 And use 3rd driver since you use PNLF method. And make sure that max brightness is not 0 in ioreg. @viki you mean this one? What`s that DSDT.dsl u had uploaded for? b.t.w. the brightness always sets to the max in the brightness adjusting bar. Link to comment Share on other sites More sharing options...
ivik Posted November 26, 2010 Author Share Posted November 26, 2010 You can't move brightness slider? Link to comment Share on other sites More sharing options...
kidalive Posted November 27, 2010 Share Posted November 27, 2010 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? Link to comment Share on other sites More sharing options...
ivik Posted November 27, 2010 Author Share Posted November 27, 2010 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. DSDT.aml.zip Link to comment Share on other sites More sharing options...
kidalive Posted November 27, 2010 Share Posted November 27, 2010 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 More sharing options...
ivik Posted November 27, 2010 Author Share Posted November 27, 2010 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 More sharing options...
kidalive Posted November 28, 2010 Share Posted November 28, 2010 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 More sharing options...
ivik Posted November 28, 2010 Author Share Posted November 28, 2010 Didn't try it from Extra or with 10.5 2 finger scrolling workd with voodoops2 and synaptics 6.2. Don't know about ALPS, syntelic or others.. Link to comment Share on other sites More sharing options...
humph Posted November 28, 2010 Share Posted November 28, 2010 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 More sharing options...
ivik Posted November 28, 2010 Author Share Posted November 28, 2010 Nice! I didn't see 0xe0 before 0x8, so i tought that this was brightness. Link to comment Share on other sites More sharing options...
humph Posted November 28, 2010 Share Posted November 28, 2010 Nice!I didn't see 0xe0 before 0x8, so i tought that this was brightness. Yeah, me too; was getting really confused! 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 More sharing options...
jinnggoff Posted November 30, 2010 Share Posted November 30, 2010 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 More sharing options...
PiSToLBR Posted December 3, 2010 Share Posted December 3, 2010 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 dsdt.new.dsl.zip Thanks, PiSToL Link to comment Share on other sites More sharing options...
ivik Posted December 3, 2010 Author Share Posted December 3, 2010 Try this dsdt.new.aml.zip Link to comment Share on other sites More sharing options...
shenor Posted December 3, 2010 Share Posted December 3, 2010 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 Link to comment Share on other sites More sharing options...
sw170 Posted December 3, 2010 Share Posted December 3, 2010 ...a link for scriptsaver http://swannman.wordpress.com/projects/scriptsaver/ nice one, me thanks too! Link to comment Share on other sites More sharing options...
Scorpy22 Posted December 4, 2010 Share Posted December 4, 2010 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 More sharing options...
Recommended Posts