Contribute
Register

[SOLVED] End of the road to install Snow Leopard on Dell 530

Status
Not open for further replies.
Re: End of the road trying to install Snow Leopard on Dell 530

Thx humph for the log.
Doh...I should have thought of that as I have a Netbook Hack...
So there is sign of things happening when you go to sleep and wake on your MBP but I don't anything on the DELL.

I just got home, open the lid of my netbook (after a couple days) and I see plenty of "action" related to sleep & wake:
Code:
Dec  8 20:37:23 MacBook kernel[0]: AirPort: Link Down on en2. Reason 4 (Disassociated due to inactivity).
Dec  8 20:37:24 MacBook kernel[0]: System Sleep
Dec 10 17:40:18 MacBook kernel[0]: Wake reason = LID0 USB7
Dec 10 17:40:18 MacBook kernel[0]: System Wake
Dec 10 17:40:18 MacBook kernel[0]: Previous Sleep Cause: 0
Dec 10 17:40:18 MacBook kernel[0]: VoodooHDADevice[0x1377f000]::resume
Dec 10 17:40:18 MacBook kernel[0]: Resetting controller...
Dec 10 17:40:18 MacBook kernel[0]: USB (EHCI):Port 4 on bus 0xfd connected or disconnected: portSC(0x301002)
Dec 10 17:40:18 MacBook kernel[0]: USB (EHCI):Port 8 on bus 0xfd connected or disconnected: portSC(0x301803)
Dec 10 17:40:18 MacBook kernel[0]: The USB device SAMSUNG HSPA Modem (Port 4 of Hub at 0xfd000000) may have caused a wake by being disconnected
Dec 10 17:40:18 MacBook kernel[0]: Enabling output audio routing switching at node 21:
Dec 10 17:40:18 MacBook kernel[0]: Enabling input audio routing switching at node 24:
Dec 10 17:40:18 MacBook kernel[0]: The USB device WebCam SCB-0340N (Port 8 of Hub at 0xfd000000) may have caused a wake by being disconnected
Dec 10 17:40:22 MacBook kernel[0]: AirPort: Link Up on en2
Dec 10 17:40:22 MacBook kernel[0]: AirPort: RSN handshake complete on en2

But on the desktop, some code is NOT being run as I don't see any of the above.
Something is NOT being triggered by Sleep or by Wake in the OS.

Really need to see someone's Desktop log out put related to Sleep.

Is Chameleon out of the way once booted or does it get involved in Sleep ?
 
BREAKTHROUGH to install Snow Leopard on Dell 530

BREAK THROUGH :headbang: :headbang:

Got the Dell 530 to sleep AND wakeup :clap:

In the DSDT Method _INI, the logic for checking which OS is running seems all wrong
Generically (most DSDT files I have seen) have this logic:

Code:
IF OS = Microsoft Windows
THEN
      do something for Microsoft Windows
ELSE
      IF OS = Microsoft Windows NT
      THEN
            IF OS = Windows 2001
            THEN
                  do something for Windows 2001 ......
            ENDIF

            IF OS = Windows 2006
            THEN
                  do something for windows 2006......
            ENDIF

            IF OS = Darwin
            THEN
                  do something for Darwin ......
            ENDIF
      ELSE
           do something for some other type of OS ......
      ENDIF
ENDIF

What's wrong with the logic here ??
Well, IF the OS is NOT Microsoft Windows NT, then the check for Darwin will never be TRUE (and thus whatever is required to be done never gets done).
That is, the check for Darwin is in the wrong place.

The logic should be:
Code:
IF OS = Microsoft Windows
THEN
     do something for Microsoft Windows
ELSE
     IF OS = any variant of Windows NT
     THEN
          check for other variants of Windows NT and do whatever is required
     ELSE
          IF OS = Darwin
          THEN
               do whatever is required for DARWIN (let's just assume it's Darwin)
          ELSE
               do whatever is required for non-windows, non-Darwin OS (e.g. Linux)
          ENDIF
     ENDIF
ENDIF

I actually short cut a little by NOT checking for Darwin (since I only run Windows or Darwin). So, to get the Dell 530 to wake up, following "do whatever is required for DARWIN" values must be set in the ELSE part:
Code:
                         Store (0x59, SMIP)
                         Store (Zero, OSFL)
                         Store (0x03, OSFX)

So now my _INI Method is like this:
Code:
                Method (\_SB.PCI0._INI, 0, NotSerialized)
                {
                    If (STRC (\_OS, "Microsoft Windows"))
                    {
                        Store (0x56, SMIP)
                    }
                    Else
                    {
                        If (STRC (\_OS, "Microsoft Windows NT"))
                        {
                            If (CondRefOf (\_OSI, Local0))
                            {
                                If (_OSI ("Windows 2001"))
                                {
                                    Store (0x59, SMIP)
                                    Store (Zero, OSFL)
                                    Store (0x03, OSFX)
                                }

                                 If (\_OSI ("Windows 2006"))
                                {
                                    Store (0x59, SMIP)
                                    Store (Zero, OSFL)
                                    Store (0x04, OSFX)
                                }
                            }
                            Else // It's some other variant of Windows
                            {
                                Store (0x58, SMIP)
                                Store (Zero, OSFX)
                                Store (Zero, OSFL)
                            }
                        }
                        Else
                        {
                        /* Original  ELSE statement (assumes Linux ???):
                            Store (0x57, SMIP)
                            Store (0x02, OSFX)
                            Store (0x02, OSFL)
                        */
                        
                         // IF OS is NOT Windows (or it's variant) THEN assume it is Darwin (should really check for Darwin)
                         Store (0x59, SMIP)
                         Store (Zero, OSFL)
                         Store (0x03, OSFX)
                        }
                    }
                }

Now, when the systems goes to sleep, and if I touch the USB keyboard, it wakes up almost instantly. The power button also wakes up the system too.

There are entries in the kernel.log file now that shows when/why the system went to sleep and when/why the system woke up.
Two issues (talk about two-steps forward, and one step back) :rolleyes:

1. Timed sleep does not work. That is, setting System preferences to either Sleep after xx minutes or sleep at specific time. I don't care about the latter but will investigate the sleep-after-x-minutes issue further.

2. This one is serious: Sounds does not work after waking from sleep. Tried different AppleHDA.kexts but all did the same. With voodooHDA, I never get any sound on boot (4 x HDMI inputs & outputs as if it is trying to use my GT 240 HDMI codec). Need help here. Will gather the log file entries.

Anyway, a major step forward for all Dell 530 users.
 
i had same issue after wake in 10.5.8 LAN would return dead.. instead of your audio.. sounds like shared irq switching to 2 devices.
can you post this dsdt? im rebuilding mine as sleep apparently didnt work in 10.6.7 with my old and partially wrong DSDT that 10.5.8 sleep worked.

EDIT: it was the 8400 GS 10c3 device id . horrible!. replaced with 9500 GT and sleep works with my dsdt..

BY THE WAY try adding ESB2 id 2681 to Sat0 aka SATA in my dsdt.. RAID (AHCI) on in bios!
I replaced the sat1 totoaly. out. and left the operation region of sat0 .. then added device-id and works nice.. and faster.
 
Hello macnb

I have a Dell 530 but mine is the Dual Core version not the Quad. How can I modify your DSDT to work on my system? I would really appreciate the help.

Thank you
 
Status
Not open for further replies.
Back
Top