Jump to content

Help finetuning Lion install


Xtro
 Share

13 posts in this topic

Recommended Posts

I just installed Lion (Apple Store version) clean install, without updating from Snow Leopard. Everything went quite smooth. I only added this Kexts:

 

- AD2000b.kext

 

- HDAEnabler.kext

 

- IOAHCIBlockStorageInjector.kext

 

- skge.kext

 

- NullCPUPowerManagement.kext

 

- FakeSMC.kext

 

 

 

The problem is when computer goes to sleep, even from the Apple Menu Bar, fans are still on, and screen off. I have to hard reset the computer, so no sleep & no wake up

 

Other thing I noticed is when I turn the computer off, the USB is still powered because the mouse led are on. This doesn't happen in Windows or Linux.

 

Last problem, is I cannot change volume control when audio is in SPDIF, for analog it works ok.

 

 

 

The computer is the one in my signature, and I used DSDT Autopatcher.

 

 

 

Thanks

Link to comment
Share on other sites

first remove those

 

skge.kext

NullCPUPowerManagement.kext

 

and install this kext for your LAN

Attansic / Atheros L1E for Snow Leopard from here http://code.google.com/p/iats/

 

 

and add this to your boot.plist file

<key>GenerateCStates</key>

<string>Yes</string>

<key>GeneratePStates</key>

<string>Yes</string>

 

 

 

 

Thanks Noam AA, but I think my motherboard doesn't have Atheros LAN, both LANs are Marvell. My board is basically an Asus P5Q Deluxe, so I need these kexts

Link to comment
Share on other sites

THIS is your LAN! (at least one of them, i saw you have dual lan- and it's on most p5q series)

and just to be sure, please download lspci, and post the hardware here (or you can use app called 'system info' to do this)

but anyway, your sleep not working because of the NullCPU

Link to comment
Share on other sites

THIS is your LAN! (at least one of them, i saw you have dual lan- and it's on most p5q series)

and just to be sure, please download lspci, and post the hardware here (or you can use app called 'system info' to do this)

but anyway, your sleep not working because of the NullCPU

 

I tried removing NullCPU and sleep doesn't work, the computer freezes giving screen corruption. Anyway this is the lspci log:

 

00:00.0 Host bridge: Intel Corporation 4 Series Chipset DRAM Controller (rev 03)

00:01.0 PCI bridge: Intel Corporation 4 Series Chipset PCI Express Root Port (rev 03)

00:1a.0 USB Controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #4

00:1a.1 USB Controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #5

00:1a.2 USB Controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #6

00:1a.7 USB Controller: Intel Corporation 82801JI (ICH10 Family) USB2 EHCI Controller #2

00:1b.0 Audio device: Intel Corporation 82801JI (ICH10 Family) HD Audio Controller

00:1c.0 PCI bridge: Intel Corporation 82801JI (ICH10 Family) PCI Express Root Port 1

00:1c.2 PCI bridge: Intel Corporation 82801JI (ICH10 Family) PCI Express Root Port 3

00:1c.4 PCI bridge: Intel Corporation 82801JI (ICH10 Family) PCI Express Root Port 5

00:1c.5 PCI bridge: Intel Corporation 82801JI (ICH10 Family) PCI Express Root Port 6

00:1d.0 USB Controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #1

00:1d.1 USB Controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #2

00:1d.2 USB Controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #3

00:1d.7 USB Controller: Intel Corporation 82801JI (ICH10 Family) USB2 EHCI Controller #1

00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev 90)

00:1f.0 ISA bridge: Intel Corporation 82801JIR (ICH10R) LPC Interface Controller

00:1f.2 SATA controller: Intel Corporation 82801JI (ICH10 Family) SATA AHCI Controller

00:1f.3 SMBus: Intel Corporation 82801JI (ICH10 Family) SMBus Controller

01:00.0 VGA compatible controller: ATI Technologies Inc Cypress [Radeon HD 5800 Series]

01:00.1 Audio device: ATI Technologies Inc Cypress HDMI Audio [Radeon HD 5800 Series]

02:00.0 Ethernet controller: Marvell Technology Group Ltd. 88E8056 PCI-E Gigabit Ethernet Controller (rev 12)

03:00.0 IDE interface: Marvell Technology Group Ltd. 88SE6121 SATA II Controller (rev b1)

04:00.0 Multimedia controller: Philips Semiconductors SAA7162 (rev 01)

06:02.0 Ethernet controller: Marvell Technology Group Ltd. 88E8001 Gigabit Ethernet Controller (rev 14)

06:03.0 FireWire (IEEE 1394): Agere Systems FW322/323 (rev 70)

Link to comment
Share on other sites

i found this for your kan

For Ethernet to work, only the first LAN port (Marvel 88E8056) will be enabled; the second port (Marvell 88E8001) can be managed with an additional kext (skge.kext), but, as of 10.6.5, this kext seems not to work). If you can live with just one Gigabyte LAN port, better avoid this driver; otherwise, it is needed to unload/reload the driver on sleep/wakeup cycles.

 

To enable the first LAN port (which, of the two available ports, is the one further away from the keyboard/mouse ports), the best approach is, on every OS update, to edit the file /System/Library/Extensions/IONetworkingFamily.kext/Contents/PlugIns/AppleYukon2.kext/Contents/Info.plist, find the key Yukon-88E8053, and replacing it with the key name Yukon-88E8056; in the values associated to this key, update also:

 

The key IOPCIPrimaryMatch, which has value 0x436211ab should have instead value 0x436411ab

The key Model should be also edited to have value Yukon Gigabit Adapter 88E8056 Singleport Copper SA

from here http://www.coderazzi.net/osx/p5q-e/snowleopard/index.htm

 

so you are right, sorry for mistake, but as you see, this driver is very old, and might cause some problems, even if sleep will work.

 

anyway post your kextstat from terminal i will try to help further

one more thing, did you patched AppleRTC for sleep to work? (almost every Board out-there need this fix, otherwise you can get sleep and wake but CMOS reset, or no sleep at all, leaving your screen black)

Link to comment
Share on other sites

I removed nullcpu & skge, computer tries to sleep but fans still on, the result is bios cleared because I don't have patched AppleRTC.

 

Here is the kextstat, hope it helps:

 

 

Index Refs Address Size Wired Name (Version) <Linked Against>

1 66 0xffffff806ad2e000 0x683c 0x683c com.apple.kpi.bsd (11.1.0)

2 6 0xffffff800b61d000 0x3d0 0x3d0 com.apple.kpi.dsep (11.1.0)

3 81 0xffffff806ad35000 0x1b9d8 0x1b9d8 com.apple.kpi.iokit (11.1.0)

4 86 0xffffff806ad51000 0x9b54 0x9b54 com.apple.kpi.libkern (11.1.0)

5 76 0xffffff800b3e4000 0x88c 0x88c com.apple.kpi.mach (11.1.0)

6 27 0xffffff806ad5b000 0x4938 0x4938 com.apple.kpi.private (11.1.0)

7 49 0xffffff806ad22000 0x22a0 0x22a0 com.apple.kpi.unsupported (11.1.0)

8 15 0xffffff7f8072e000 0x7000 0x7000 com.apple.iokit.IOACPIFamily (1.4) <7 6 4 3>

9 22 0xffffff7f80735000 0x1d000 0x1d000 com.apple.iokit.IOPCIFamily (2.6.5) <7 6 5 4 3>

10 1 0xffffff7f80752000 0x58000 0x58000 com.apple.driver.AppleACPIPlatform (1.4) <9 8 7 6 5 4 3 1>

11 0 0xffffff7f807aa000 0x2000 0x2000 org.tgwbd.driver.NullCPUPowerManagement (1.0.0d2) <7 4 3>

12 0 0xffffff7f807ae000 0x2a000 0x2a000 com.apple.driver.AppleIntelCPUPowerManagement (166.0.0) <7 6 5 4 3 1>

13 1 0xffffff7f807d9000 0xc000 0xc000 com.apple.driver.AppleKeyStore (28.18) <7 6 5 4 3 1>

14 8 0xffffff7f807e5000 0x25000 0x25000 com.apple.iokit.IOStorageFamily (1.7) <7 6 5 4 3 1>

15 0 0xffffff7f8080a000 0x19000 0x19000 com.apple.driver.DiskImages (326) <14 7 6 5 4 3 1>

16 0 0xffffff7f80823000 0x8000 0x8000 com.apple.nke.applicationfirewall (3.0.30) <7 6 5 4 3 1>

17 2 0xffffff7f8082d000 0x4000 0x4000 com.apple.kext.AppleMatch (1.0.0d1) <4 1>

18 1 0xffffff7f80831000 0x11000 0x11000 com.apple.security.sandbox (165) <17 7 6 5 4 3 2 1>

19 0 0xffffff7f80842000 0x5000 0x5000 com.apple.security.quarantine (1) <18 17 7 6 5 4 2 1>

20 0 0xffffff7f80848000 0x3000 0x3000 com.apple.security.TMSafetyNet (7) <7 6 5 4 2 1>

21 0 0xffffff7f8084b000 0x3000 0x3000 com.apple.driver.AppleAPIC (1.5) <4 3>

22 0 0xffffff7f8084f000 0x4000 0x4000 com.apple.driver.AppleSMBIOS (1.7) <7 4 3>

23 0 0xffffff7f80854000 0x7000 0x7000 com.apple.driver.AppleRTC (1.4) <8 5 4 3 1>

24 0 0xffffff7f8085d000 0x3000 0x3000 com.apple.driver.AppleHPET (1.6) <8 7 5 4 3>

25 2 0xffffff7f80861000 0x6b000 0x6b000 com.apple.iokit.IOHIDFamily (1.7.0) <13 7 6 5 4 3 2 1>

26 0 0xffffff7f808cc000 0x4000 0x4000 com.apple.driver.AppleACPIButtons (1.4) <25 10 8 7 6 5 4 3 1>

27 0 0xffffff7f808d2000 0x7000 0x7000 org.netkas.FakeSMC (3.1.0) <8 7 5 4 3>

28 7 0xffffff7f808d9000 0x4e000 0x4e000 com.apple.iokit.IOUSBFamily (4.4.0) <9 7 5 4 3 1>

29 0 0xffffff7f80927000 0x10000 0x10000 com.apple.driver.AppleUSBUHCI (4.4.0) <28 9 7 5 4 3 1>

31 1 0xffffff7f80941000 0x4000 0x4000 com.apple.driver.AppleEFIRuntime (1.5.0) <7 6 5 4 3>

32 0 0xffffff7f80945000 0x17000 0x17000 com.apple.driver.AppleUSBEHCI (4.4.0) <28 9 7 5 4 3 1>

33 0 0xffffff7f80964000 0x7000 0x7000 com.apple.driver.AppleEFINVRAM (1.5.0) <31 7 5 4 3>

34 3 0xffffff7f8096d000 0xa000 0xa000 com.apple.iokit.IOAHCIFamily (2.0.6) <5 4 3 1>

35 0 0xffffff7f80977000 0x16000 0x16000 com.apple.driver.AppleAHCIPort (2.1.8) <34 9 5 4 3 1>

36 4 0xffffff7f80993000 0x29000 0x29000 com.apple.iokit.IONetworkingFamily (2.0) <7 6 5 4 3 1>

37 0 0xffffff7f809bc000 0x9000 0x9000 com.apple.skge (1.0.0d1) <36 9 4 3 1>

38 2 0xffffff7f809c9000 0x75000 0x75000 com.apple.iokit.IOFireWireFamily (4.4.3) <5 4 3 1>

39 0 0xffffff7f80a3e000 0x28000 0x28000 com.apple.driver.AppleFWOHCI (4.8.6) <38 9 7 6 5 4 3 1>

40 0 0xffffff7f80a77000 0x3000 0x3000 com.apple.iokit.IOUSBUserClient (4.4.0) <28 7 5 4 3 1>

41 0 0xffffff7f80a7a000 0x5000 0x5000 com.apple.AppleFSCompression.AppleFSCompressionTypeDataless (1.0.0d1) <7 6 4 3 2 1>

42 0 0xffffff7f80a81000 0x5000 0x5000 com.apple.AppleFSCompression.AppleFSCompressionTypeZlib (1.0.0d1) <6 4 3 2 1>

43 0 0xffffff7f80a88000 0x11000 0x11000 com.apple.driver.AppleUSBHub (4.4.0) <28 5 4 3 1>

44 0 0xffffff7f80a9d000 0x9000 0x9000 com.apple.BootCache (32) <7 6 5 4 3 1>

45 3 0xffffff7f80aa7000 0x2a000 0x2a000 com.apple.iokit.IOSCSIArchitectureModelFamily (3.0.0) <5 4 3 1>

46 0 0xffffff7f80ad1000 0xc000 0xc000 com.apple.iokit.IOAHCISerialATAPI (2.0.0) <45 34 5 4 3 1>

47 0 0xffffff7f80add000 0x15000 0x15000 com.apple.iokit.IOAHCIBlockStorage (2.0.0) <34 14 5 4 3 1>

48 0 0xffffff7f80afa000 0x4000 0x4000 com.apple.driver.XsanFilter (403) <14 5 4 3 1>

49 3 0xffffff7f80afe000 0xd000 0xd000 com.apple.iokit.IOCDStorageFamily (1.7) <14 5 4 3 1>

50 2 0xffffff7f80b0b000 0xb000 0xb000 com.apple.iokit.IODVDStorageFamily (1.6) <49 14 5 4 3 1>

51 1 0xffffff7f80b16000 0xa000 0xa000 com.apple.iokit.IOBDStorageFamily (1.6) <50 49 14 5 4 3 1>

52 0 0xffffff7f80b20000 0x1a000 0x1a000 com.apple.iokit.IOSCSIMultimediaCommandsDevice (3.0.0) <51 50 49 45 14 5 4 3 1>

54 0 0xffffff7f80b3e000 0x7000 0x7000 com.apple.iokit.SCSITaskUserClient (3.0.0) <45 14 5 4 3 1>

56 0 0xffffff7f80b4a000 0x6000 0x6000 com.apple.driver.AppleUSBComposite (3.9.0) <28 4 3 1>

57 0 0xffffff7f80b50000 0x8000 0x8000 com.apple.iokit.IOUSBHIDDriver (4.4.0) <28 25 5 4 3 1>

58 2 0xffffff7f80b58000 0x5000 0x5000 com.apple.kext.triggers (1.0) <7 6 5 4 3 1>

59 0 0xffffff7f80b5d000 0x9000 0x9000 com.apple.filesystems.autofs (3.0) <58 7 6 5 4 3 1>

60 1 0xffffff7f80b68000 0xe000 0xe000 com.apple.iokit.IOSerialFamily (10.0.5) <7 6 5 4 3 1>

63 0 0xffffff7f80b86000 0x3000 0x3000 com.apple.driver.AppleLPC (1.5.1) <9 5 4 3>

64 0 0xffffff7f80b8a000 0x3000 0x3000 com.apple.driver.AppleSMBusPCI (1.0.10d0) <9 5 4 3>

65 1 0xffffff7f80b8d000 0x13000 0x13000 com.apple.driver.IOPlatformPluginFamily (4.7.0b2) <8 7 6 5 4 3>

66 2 0xffffff7f80ba0000 0xc000 0xc000 com.apple.driver.AppleSMC (3.1.1d2) <8 7 5 4 3>

67 0 0xffffff7f80bac000 0x11000 0x11000 com.apple.driver.ACPI_SMC_PlatformPlugin (4.7.0b2) <66 65 9 8 7 6 5 4 3>

68 2 0xffffff7f80bc2000 0xc000 0xc000 com.apple.iokit.IOHDAFamily (1.9.9f12) <5 4 3 1>

69 10 0xffffff7f80bce000 0x38000 0x38000 com.apple.iokit.IOGraphicsFamily (2.3) <9 7 5 4 3>

70 1 0xffffff7f80c06000 0x1e000 0x1e000 com.apple.driver.AppleHDAController (1.9.9f12) <69 68 9 5 4 3 1>

71 2 0xffffff7f80c24000 0x6000 0x6000 com.apple.kext.OSvKernDSPLib (1.3) <5 4>

72 5 0xffffff7f80c2a000 0x2a000 0x2a000 com.apple.iokit.IOAudioFamily (1.8.3fc11) <71 5 4 3 1>

73 0 0xffffff7f80c54000 0x4000 0x4000 com.apple.driver.AudioIPCDriver (1.2.0) <72 5 4 3 1>

74 0 0xffffff7f80c5a000 0xd000 0xd000 com.apple.iokit.IOFireWireIP (2.2.3) <38 36 5 4 3 1>

75 2 0xffffff7f80c67000 0x186000 0x186000 com.apple.kext.ATISupport (7.0.4) <69 9 8 7 5 4 3 1>

76 0 0xffffff7f80ded000 0x3f000 0x3f000 com.apple.kext.ATI5000Controller (7.0.4) <75 69 9 8 5 4 3 1>

77 1 0xffffff7f80e2c000 0x4000 0x4000 com.apple.iokit.IOSMBusFamily (1.1) <5 4 3>

78 0 0xffffff7f80e30000 0xe000 0xe000 com.apple.driver.AppleSMBusController (1.0.10d0) <77 9 8 5 4 3>

79 2 0xffffff7f80e3e000 0x12000 0x12000 com.apple.iokit.IONDRVSupport (2.3) <69 9 7 5 4 3>

80 1 0xffffff7f80e50000 0xa6000 0xa6000 com.apple.driver.DspFuncLib (1.9.9f12) <72 71 5 4 3 1>

81 0 0xffffff7f80ef6000 0xce000 0xce000 com.apple.driver.AppleHDA (1.9.9f12) <80 79 72 70 69 68 5 4 3 1>

82 0 0xffffff7f80fe4000 0x5000 0x5000 com.apple.Dont_Steal_Mac_OS_X (7.0.0) <66 7 4 3 1>

87 0 0xffffff7f81006000 0x296000 0x296000 com.apple.ATIRadeonX3000 (7.0.4) <79 69 9 7 6 5 4 3 1>

89 0 0xffffff7f81342000 0xe000 0xe000 com.apple.iokit.IOBluetoothSerialManager (2.5f17) <60 7 5 4 3 1>

90 0 0xffffff7f81350000 0x12000 0x12000 com.apple.kext.ATIFramebuffer (7.0.4) <75 69 9 8 7 5 4 3 1>

91 0 0xffffff7f81367000 0x12000 0x12000 com.apple.iokit.IOSurface (80.0) <7 5 4 3 1>

92 0 0xffffff7f81379000 0xa000 0xa000 com.apple.driver.AppleMCCSControl (1.0.24) <69 9 7 5 4 3 1>

93 0 0xffffff7f81388000 0x6000 0x6000 com.apple.iokit.IOUserEthernet (1.0.0d1) <36 6 5 4 3 1>

94 0 0xffffff7f81391000 0x5000 0x5000 com.apple.driver.AppleUpstreamUserClient (3.5.9) <69 9 8 7 5 4 3 1>

95 0 0xffffff7f81398000 0x5000 0x5000 com.Cycling74.driver.Soundflower (1.5.1) <72 5 4 3>

96 0 0xffffff7f8139f000 0x5000 0x5000 com.apple.driver.AudioAUUC (1.59) <72 69 9 8 7 5 4 3 1>

97 0 0xffffff7f813a6000 0x7000 0x7000 com.parallels.kext.prl_usb_connect (7.0 14920.689535) <28 7 5 4 3 1>

98 0 0xffffff7f813af000 0x35000 0x35000 com.paragon-software.filesystems.ntfs (82) <7 5 4 1>

99 0 0xffffff7f813f3000 0x58000 0x58000 com.parallels.kext.prl_hypervisor (7.0 14920.689535) <9 8 7 5 4 3 1>

100 0 0xffffff7f81450000 0x4000 0x4000 com.parallels.kext.prl_hid_hook (7.0 14920.689535) <7 5 4 3 1>

101 0 0xffffff7f81455000 0xc000 0xc000 com.parallels.kext.prl_netbridge (7.0 14920.689535) <5 4 3 1>

102 0 0xffffff7f81464000 0x4000 0x4000 com.parallels.kext.prl_vnic (7.0 14920.689535) <36 5 4 3 1>

103 0 0xffffff7f81469000 0x35000 0x35000 com.apple.filesystems.smbfs (1.7.0) <58 7 6 5 4 3 1>

Link to comment
Share on other sites

the only notable are nullcpu and sage as i said, did you already tried to delete both and see if sleep work? (don't forget nativePM on chameleon)

(but also, i don't know if paragon NTFS or sound flower causing this, though I'm positive it's not)

one more thing, does usb shows up as built in in system-profiler?

and you still didn;t answer, did you applied the appleRTC patch?

Link to comment
Share on other sites

Sorry I edited the message while you where posting. Yes, I deleted sage & nullcpu. I am not using AppleRTC patch.

 

In chameleon pref pane I don't see any nativePM (My Hackintosh is Spanish), but generate C-States & P-States is disabled , should I enable them?

Link to comment
Share on other sites

yep, and also do the RTC patch, this and P&C states are likely to be your problem

sudo perl -pi -e 's|\x75\x30\x44\x89\xf8|\xeb\x30\x44\x89\xf8|; s|\x75\x3d\x8b\x75\x08|\xeb\x3d\x8b\x75\x08|' /System/Library/Extensions/AppleRTC.kext/Contents/MacOS/AppleRTC

backup the kext first if you like

Link to comment
Share on other sites

Finally good news! Sleep is working now perfectly and also the problem of usb with power after shutdown is gone. The solution was real easy, there is a bios option with Energy Star 4.0c compatibility that should stay disabled.

 

Now the only thing giving trouble is when the computer wakes I have no LAN. The solution is unload the next before sleep and reload it when awake, but I don't know how to do that automatically.

Link to comment
Share on other sites

Thanks again Noam AA, I removed sage.kext and patched the other LAN, works flawlessly even after sleep.

 

I made a mistake thinking the shutdown issue with the USB was fixed, but it isn't. USB power is on after shutdown (when sleep all leds are off). Any ideas of what can I try?

 

The other thing is audio volume control using SPDI, I think is not possible but can someone confirm.

 

Anyway I'm happy to solve the sleep problem that was very annoying.

 

Thanks

Link to comment
Share on other sites

 Share

×
×
  • Create New...