Help - Search - Members - Calendar
Full Version: Unstable/hangs After Wake Up
Project OS X Forums > Snow Leopard Guides & Tutorials > DSDT Patching
fuzzy80
This is my first post and I'd like to say hello.
I've spent some time for searching similar problem but haven't found a solution.
After wake up, OSX is getting unstable and can't run any application, just the spinning wheel is shown. There is nothing but hard reset and after that OSX is waking from the sleep image fine and works without any problem. I tried to mod DSDT by changing UHCI/EHCI sections but with no success. The weird thing is that in the dsdt there was no USB2 section at all, I needed to add it and after that laptop is going sleep fine. But there is a problem with waking. Attached dsdt unmodified and after mods.
My system is:
HP Pavilion dv6940ew (as MBP 5,1)
10.6.3 Retail (works in 64bit)
T2390 (SpeedStep works)
PM965+ICH8M
8400M GS (GraphicEnabler)
lan RTL8101E (works)
wlan BCM4310 (bcm43xx_enabler)
sound ALC268 (VooDooHDA)
There are also some other problems: no battery indication (VoodooBattery made OSX unstable), no brightness (FN key won't work), BT can't be turned off, no shutdown/restart (restart fixed with EvOreboot.kext).
Click to view attachment
Click to view attachment
Click to view attachment
18seven
QUOTE (fuzzy80 @ Jun 12 2010, 08:02 AM) *
Attached dsdt unmodified and after mods.


Please fix, not placed.
Gringo Vermelho
QUOTE (fuzzy80 @ Jun 12 2010, 10:02 AM) *
HP Pavilion dv6940ew (as MBP 5,1)


MBP 5,1 is not the best match for your hardware, it has Nvidia MCP79 chipset:
http://launchpadlibrarian.net/43921373/Lspci.txt
(link comes from here: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/561532 )

MBP3,1 fits much, much better:
DMI info for smbios.plist: https://bugs.launchpad.net/linux/+bug/482380
LSPCI output: http://launchpadlibrarian.net/35665934/Lspci.txt

A DSDT dump from a MacBookPro3,1 would be useful as well so that you can compare. There's a thread around here somewhere with DSDT dumps from Macs.
fuzzy80
QUOTE (Gringo Vermelho @ Jun 14 2010, 05:50 AM) *
MBP 5,1 is not the best match for your hardware, it has Nvidia MCP79 chipset:
http://launchpadlibrarian.net/43921373/Lspci.txt
(link comes from here: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/561532 )

MBP3,1 fits much, much better:
DMI info for smbios.plist: https://bugs.launchpad.net/linux/+bug/482380
LSPCI output: http://launchpadlibrarian.net/35665934/Lspci.txt

A DSDT dump from a MacBookPro3,1 would be useful as well so that you can compare. There's a thread around here somewhere with DSDT dumps from Macs.


Thanks for a hint. I used MBP5,1 to get PM working natively, with MBP3,1 I would probably need DSDT mod.
fuzzy80
QUOTE (18seven @ Jun 13 2010, 10:11 PM) *
Please fix, not placed.


Sorry, I don't know why they were missing. Fixed.
Slice
Look here
CODE
            Store (0x07D0, OSYS)
            If (CondRefOf (_OSI, Local0))
            {
                If (_OSI ("Linux"))
                {
                    Store (One, LINX)
                }

                If (_OSI ("Windows 2001"))
                {
                    Store (0x07D1, OSYS)
                }

                If (_OSI ("Windows 2001 SP1"))
                {
                    Store (0x07D1, OSYS)
                }

                If (_OSI ("Windows 2001 SP2"))
                {
                    Store (0x07D2, OSYS)
                }

                If (_OSI ("Windows 2006"))
                {
                    Store (0x07D6, OSYS)
                }
            }

I think you need
CODE
                If (_OSI ("Darwin"))
                {
                    Store (0x07D2, OSYS)
                }
Gringo Vermelho
Why is using the Windows 2001 code preferred to using the Windows 2006 code?

Why is the latest not the greatest in this case.

Just curious, I ripped all the OSI stuff out a long time ago following Master Chief's P5K DSDT edits.
fuzzy80
QUOTE (fuzzy80 @ Jun 14 2010, 07:28 AM) *
Thanks for a hint. I used MBP5,1 to get PM working natively, with MBP3,1 I would probably need DSDT mod.


As I thought: after changing to MBP3,1 PM stops working, the CPUPLimit is not 0x0 though there are CSTInfo and PerformanceStateArray.
Still I have a problem with waking up the OSX, just freezes.

QUOTE (Slice @ Jun 15 2010, 12:44 PM) *
I think you need
CODE
                If (_OSI ("Darwin"))
                {
                    Store (0x07D2, OSYS)
                }


Didn't help.

I don't know where I suppose to look to solve the sleep/wake issue. Any other hints?
Slice
Other hints (my example is MB41, I have sleep/restart/battery)
ACPI_SMC_PlatformPlugin
CODE
      <key>ConfigArray</key>
      <array>
        <dict>
          <key>WWEN</key>
          <true/>
          <key>model</key>
          <string>MacBook4,1</string>
          <!-- Slice added  -->
                        <key>restart-actions</key>
                        <dict>
                            <key>cpu-p-state</key>
                            <integer>0</integer>
                        </dict>
            <!-- -->
..........
<!--  Slice exlcude    <key>CStateDict</key>
      <dict>
        <key>MacBook4,1</key>
        <string>CSD3</string>
        <key>MacBook4,1</key>
        <string>CSD3</string>
        <key>CSD3</key>
        <dict>
          <key>C6</key>
          <dict>
            <key>enable</key>
            <false/>
          </dict>
        </dict>
      </dict> -->
......................
          <!-- Slice added -->
          <key>PLimitDict</key>
          <dict>
            <key>MacBook4,1</key>
            <integer>0</integer>
          </dict>
          <!-- -->
fuzzy80
What about DSDT mod? I'm looking for other ways than kext mods. As my laptop looks quite like MBP3,1 / MBP4,1. Anyone can look at my dsdt, please?
fuzzy80
OK, I managed to enable sleep/wake up working as it should. I needed to remove AppleHDA.kext that blocked OSX to wake up properly. Now the system works fine after wake up! I'm still working on other issues: brightness and battery (Slice's kext mod works only in 32bit). Here's my latest DSDT with only UHCI (needed to add UHC2 since it was missing-weird) and EHCI (AAPL added) mods. In the meantime I had to reinstal OSX, now I have 10.6, will try to update to 10.6.4 and check if sleep/wake up still working.
Any help how to enable battery and brightness very appreciated.
Click to view attachment
Nameci
Hello fuzzy,

We have almost the same notebook config. Afaik, 965 and T2390 (Merom) is on MBP 3,1.

Mine is using MBP 4,1. I cannot get my notebook to sleep thru lid close and cannot wake thru lid open. I am on 10.6.4.

My wired ethernet card does not seem to connect but my wireless is 100% working (bcm 4311).

I have patched my dsdt with PNLF, DTGP. Notebook can sleep on lid close but still cannot wake on lid open. I have a logitech wireless mouse paired to its usb dongle. The wireless mouse can wake the notebook from sleep but it will immediately goes back to sleep. If I remove PNLF, I can sleep through Fn+F1 and can wake thru the wireless mouse but still no wake on lid open. Likewise if it wakes the fans turns faster, it seems that it breaks the speedstepping.

Can I downgrade from MBP 4,1 to MBP 3,1? And how will I do that.

The King if you are around, can you provide help?
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2012 Invision Power Services, Inc.