InfiniteMac OSx86  


Reply
 
Thread tools Display modes
  #11  
Old 03-08-2010, 10:55 PM
uninc uninc is offline
Cheetah
 
Join Date: Jun 2009
Posts: 10
Quote:
Originally Posted by uman View Post
Please post the two dsdts: the one that compiles okay with PS2K, and the broken one. I should be able to take a look midday.
the broken dsdt is b/c i dont know how to edit the BCL & BCM, so
i only have one dsdt that needs working on...
do you know what i am saying?
Attached Files
File Type: zip dsdt.zip (21.1 KB, 10 views)

Asus A8N SLI DX . AMD 64X2 +4600 OC 2.69Ghz . Zotac 9800GT 1GB Eco . 4GB DDR 400Mhz OCZ Platinum .
HP DV3510nr . Intel C2D P7350 2Ghz . nVidia 9300M GS 512Mb . 4Gb DDR2 800Mhz
Reply With Quote
  #12  
Old 03-10-2010, 12:25 PM
uman uman is offline
Panther
 
Join Date: May 2009
Location: USA
Posts: 103
Quote:
Originally Posted by uninc View Post
the broken dsdt is b/c i dont know how to edit the BCL & BCM, so i only have one dsdt that needs working on...
do you know what i am saying?
Yes, you said your edits didn't compile. But still it's useful to me to see the edits. I wasn't able to look at this yesterday, but should be able today. I had a strange result yesterday that may be useful for a clue as to why brightness controls are such an issue for Darwin.

I was editing my DSDT to take out parts that were specific for older parts of Windows. I also enabled for Darwin, anything that was specific to Windows 2006. When I rebooted, everything seemed pretty much the same, except I no longer had the brightness controls, which are mapped to the Fn-up, and fn-down arrows.

So I plan to analyze what changed, and then see if I can make them come back. I then may have something useful for you to try.

--
MacBook Pro - have allergy to nickel in the aluminum casing. So my kid gets an expensive toy!

Gateway MX 8738 - Retail, vanilla Snow Leopard 10.6.2 (thanks kizwan!) with Chameleon RC4, modified DSDT. Upgraded to Core 2 CPU (easy to do). Upgraded to 640GB drive. Everything but SD card working. Minor niggles. GMA950 with QE/CI and *no* artifacts.

iMac (luxo/lamp) G4 with Tiger.
Reply With Quote
  #13  
Old 03-12-2010, 01:56 AM
uman uman is offline
Panther
 
Join Date: May 2009
Location: USA
Posts: 103
I spent a couple of hours looking at your DSDT the acpi spec and my dsdt (mine is relatively clean, and tracks the mac pretty well). The bad news is that yours is a hideous monstrosity. It's massive-- more than double the size of a macbook dsdt, and several thousand lines more than mine. Plus it implements a WMID interface (see: http://www.wilsonmar.com/1wmiwbem.htm) and even as checks to make sure the BIOS isn't modified. It also seems to deliberately obfuscate some things-- I believe to lock down some aspects of HP laptops.

So while I did manage to understand some things about the brightness settings, I couldn't suggest anything for you to try, other than running it through a recent DSDT patcher and telling the patcher to emulate Windows Vista or Windows 7. Then you could try that version to see if it helps.

Alternatively, you can search Linux forms for the same issue and for the same laptop. They will likely have the same problem, however, your DSDT specifically checks for Linux. So you could also try "pretending" OS X is Linux in the DSDT and see if that helps.

--
MacBook Pro - have allergy to nickel in the aluminum casing. So my kid gets an expensive toy!

Gateway MX 8738 - Retail, vanilla Snow Leopard 10.6.2 (thanks kizwan!) with Chameleon RC4, modified DSDT. Upgraded to Core 2 CPU (easy to do). Upgraded to 640GB drive. Everything but SD card working. Minor niggles. GMA950 with QE/CI and *no* artifacts.

iMac (luxo/lamp) G4 with Tiger.
Reply With Quote
  #14  
Old 03-13-2010, 09:35 AM
uninc uninc is offline
Cheetah
 
Join Date: Jun 2009
Posts: 10
well that is dissappointing . thanks for looking it over uman.

i tried a vista dsdt with the same result.

the bios is modified, removing the original whitelists. it is from the insanely thread referenced earlier.
there is someone who is using an asus bios for a hp dv3xxx; it was a solution that predated the modified bios. the asus specs are almost identical to my hp. what are the chances the dsdt may solve the sleep/lcd issues using that asus bios?

Asus A8N SLI DX . AMD 64X2 +4600 OC 2.69Ghz . Zotac 9800GT 1GB Eco . 4GB DDR 400Mhz OCZ Platinum .
HP DV3510nr . Intel C2D P7350 2Ghz . nVidia 9300M GS 512Mb . 4Gb DDR2 800Mhz
Reply With Quote
  #15  
Old 03-13-2010, 02:03 PM
uman uman is offline
Panther
 
Join Date: May 2009
Location: USA
Posts: 103
Quote:
Originally Posted by uninc View Post
well that is dissappointing . thanks for looking it over uman.

i tried a vista dsdt with the same result.

the bios is modified, removing the original whitelists. it is from the insanely thread referenced earlier.
there is someone who is using an asus bios for a hp dv3xxx; it was a solution that predated the modified bios. the asus specs are almost identical to my hp. what are the chances the dsdt may solve the sleep/lcd issues using that asus bios?
I would get in touch with that person and find out what the issues were. I hesitate to advise you here because I don't want anything to happen to your system. And given that certain device registers are memory mapped via a DSDT, it may be possible that changes could be made that are difficult to recover from.

--
MacBook Pro - have allergy to nickel in the aluminum casing. So my kid gets an expensive toy!

Gateway MX 8738 - Retail, vanilla Snow Leopard 10.6.2 (thanks kizwan!) with Chameleon RC4, modified DSDT. Upgraded to Core 2 CPU (easy to do). Upgraded to 640GB drive. Everything but SD card working. Minor niggles. GMA950 with QE/CI and *no* artifacts.

iMac (luxo/lamp) G4 with Tiger.
Reply With Quote
  #16  
Old 03-29-2010, 08:01 AM
kizwan kizwan is offline
Jaguar
 
Join Date: Jun 2009
Posts: 36
Hi uman,

Can you post your dsdt? I'm trying to enable display dimming function on my acer, not for Mac OS X but for windows. Brightness hotkey is working perfectly in both OSes but display dimming when idle or when on battery is not available. I'm trying to achieve that in windows. I'm manage to go as far as showing "Adjust screen brightness" at battery indicator but brightness didn't change at all when changing the slider position. The slide also move when power cord attached or detached. I think it missing proper "Return" or "Notify" command in _BCM method.

kizwan

1) Retail Mac OS X 10.6 ** Acer Aspire 9420 Intel C2D T5600 ** 4GB DDR2 ** NVIDIA GeForce Go 7300 128MB ** Dell Wireless 1395 (rebrand to AirPort Extreme) ** ALC883
2) Windows 7 Home Premium 64-bit ** Dell Studio 1557 Intel Core i7 720QM ** 4GB DDR3 1333Mhz ** ATI HD4570 512MB ** Intel WiFi 5300 ** Seagate Momentus 5400.6 SATA 3Gb/s 320-GB Hard Drive 5400RPM ** WLED 1366x768 15.6"
3) Retail Mac OS X 10.5.6 + Vista Ultimate ** Acer Aspire 3680 Intel Celeron M 440
** Linksys WPC54G v3.1 ** ALC883
Reply With Quote
  #17  
Old 03-29-2010, 04:29 PM
uman uman is offline
Panther
 
Join Date: May 2009
Location: USA
Posts: 103
Kiz,

Here they are. I've included the unmodified, original one, and my latest. I seem to remember, in Leopard, that my display would dim when I removed the power cord, but now it does not. However, note that I don't have battery working (VoodooBattery panics, and I am using NullCPUPowerManagement). I don't plan to fix the battery issue because my battery is shot anyway. I suspect that display dimming is tied up to proper PM functioning.

I suspect it would be trivial for me to get dimming to work, since it is clear that Darwin does respond to the _BCM method. Right now if I hit Fn-F8, which on the Gateway has a dim/bright sun icon, the display dims or brightens.

In the DSDT, you'll see that it's using the _Q11 query method.

I don't think the Gateway's LBCM method (which implements what _BCM calls) is implemented very cleanly. I liked the design in uninc's HP dsdt better, but I don't have much interest in fixing the gateway's one. So you might also want to look at the HP one of uninc.
Attached Files
File Type: zip uman-dsdt.zip (47.6 KB, 32 views)

--
MacBook Pro - have allergy to nickel in the aluminum casing. So my kid gets an expensive toy!

Gateway MX 8738 - Retail, vanilla Snow Leopard 10.6.2 (thanks kizwan!) with Chameleon RC4, modified DSDT. Upgraded to Core 2 CPU (easy to do). Upgraded to 640GB drive. Everything but SD card working. Minor niggles. GMA950 with QE/CI and *no* artifacts.

iMac (luxo/lamp) G4 with Tiger.
Reply With Quote
  #18  
Old 03-29-2010, 05:59 PM
kizwan kizwan is offline
Jaguar
 
Join Date: Jun 2009
Posts: 36
Thank you uman for the dsdt.

I see you apply fix for restart/shutdown. Before applying the fix, which one do you have problem, shutdown or restart or both? I have problem with restart & currently using openhaltrestart.kext to fix the issue.

I added PNLF (backlight) in my dsdt but it didn't do anything. The slider in System Preferences always set to maximum & I can't change it. It will always back to maximum position whenever I try to change it. Brightness/backlight doesn't change at all. It make sense since in IORegistryExplorer, min & max value is 0x00. But since Fn key to adjust brightness is working, I don't care much about this.

I have added uninc's DSDT for _BCL, _BCM & _BQC in my dsdt. Will know if dimming working or not in windows after flashing it to BIOS. This kinda difficult because it doesn't exist in my dsdt before. Looks like my acer doesn't use 0x86, 0x87 to control brightness.

As for battery, our machine don't have smart battery (we have control method battery). So trying to apply smart battery in dsdt (to get it detected in Mac OS X) will be waste of time. This what I learn when trying to do it.

I didn't apply PWRB in my dsdt because it seems mine will be "generated" by SLPB. So, in IORegistryExplorer it will list "power-button" instead PWRB. I think it works in Mac OS X because when pressing the power button, I will be presented with sleep, restart & shutdown button.

I see you identified a lot of acronym/variable used in your DSDT. Nice.

kizwan

1) Retail Mac OS X 10.6 ** Acer Aspire 9420 Intel C2D T5600 ** 4GB DDR2 ** NVIDIA GeForce Go 7300 128MB ** Dell Wireless 1395 (rebrand to AirPort Extreme) ** ALC883
2) Windows 7 Home Premium 64-bit ** Dell Studio 1557 Intel Core i7 720QM ** 4GB DDR3 1333Mhz ** ATI HD4570 512MB ** Intel WiFi 5300 ** Seagate Momentus 5400.6 SATA 3Gb/s 320-GB Hard Drive 5400RPM ** WLED 1366x768 15.6"
3) Retail Mac OS X 10.5.6 + Vista Ultimate ** Acer Aspire 3680 Intel Celeron M 440
** Linksys WPC54G v3.1 ** ALC883
Reply With Quote
  #19  
Old 04-01-2010, 01:27 PM
valv valv is offline
Jaguar
 
Join Date: Apr 2010
Posts: 40
hi all,
last days I was playin' with dsdt adding pnlf device and I ended up with the Backlight kext getting loaded fine, I can even use Fn+scroll & Fn+pause to make the sun shine, but it seems there's no values to switch to/from. To be clear, on IORegistryExplorer I get this:
Backlight.png
Does anybody over here know how to change these values?

Last edited by valv; 04-01-2010 at 08:08 PM.
Reply With Quote
  #20  
Old 04-01-2010, 03:34 PM
uman uman is offline
Panther
 
Join Date: May 2009
Location: USA
Posts: 103
Your picture is too low-res, but no matter. I have PNLF, and AppleBacklightDisplay and the values check against a MacBook. The issue is that the brightness/sun is controlled thru AppleIntegratedFrameBuffer (you'll note that AppleBacklightDisplay loads under display in ioreg).

It's possible that some sort of patching of AppleIntegratedFrameBuffer might work. For example, the Asus guys reported a patch for 10.5 that disabled brightness control in AppleIntegratedFrameBuffer, which allowed them to control it via ACPI and the ASUS bios. See here: http://ipis-osx.wikidot.com/forum/t-...htness-control

uninc: this may work for you if you're NOT using SL. It might work for SL, but you'd have to figure out how: http://myhpmini.com/forum/viewtopic.php?t=1542

Quote:
Originally Posted by valv View Post
hi all,
last days I was playin' with dsdt adding pnlf device and I ended up with the Backlight kext getting loaded fine, I can even use Fn+scroll & Fn+pause to make the sun shine, but it seems there's no values to switch to/from. To be clear, on IORegistryExplorer I get this:
Does anybody over here know how to change these values?



💡 Deploy cloud instances seamlessly on DigitalOcean. Free credits ($100) for InfMac readers.


--
MacBook Pro - have allergy to nickel in the aluminum casing. So my kid gets an expensive toy!

Gateway MX 8738 - Retail, vanilla Snow Leopard 10.6.2 (thanks kizwan!) with Chameleon RC4, modified DSDT. Upgraded to Core 2 CPU (easy to do). Upgraded to 640GB drive. Everything but SD card working. Minor niggles. GMA950 with QE/CI and *no* artifacts.

iMac (luxo/lamp) G4 with Tiger.
Reply With Quote
Reply