Jump to content

Master Chief's P5K PRO ACPI Warfare


VegasKarma
 Share

908 posts in this topic

Recommended Posts

Hi Master Chief,

 

First of all thank you for all your efforts and sharing them with us.

 

Nevertheless I've got anyway some issues or should I say a issue with sleep.

 

I have completely rewritten my DSTD to match yours as far as my original can match. Mostly everything is working flawless but the sleep issue is killing me. :D I know, I'm using an Asus P5Q series but as Barnum has wrote mostly all of P5K Pro fits with P5Q and also the ICH9 register with ICH10. I also compared my version with Barnums but with no luck.

 

So what is wrong? When I send the Hack to sleep it goes to the sleep state but immediately wakes up and the in the log you see: Wake Reason = EC EHCI UHCI

 

When I used the below config, it went into sleep and but after waking up Ethernet did not work and the usb drives were not properly dismounted:

 

Device (EHCI) // Before EUSB
{
Name (_ADR, 0x001D0007)
Method (_S3D, 0, NotSerialized)
{
If (LEqual (OSFL (), 0x02))
{
Return (0x02)
}

Return (0x03)
}

Name (_PRW, Package (0x02)
{
0x0D, 
0x03
})
Method (_DSM, 4, NotSerialized)
{
Store (Package (0x04)
{
"AAPL,clock-id", 
Buffer (One)
{
0x01
}, 

"device_type", 
Buffer (0x05)
{
"EHCI"
}
}, Local0)
DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
Return (Local0)
}
}

Device (UHCI) // Before USBE 
{
Name (_ADR, 0x001A0007)
Method (_S3D, 0, NotSerialized)
{
If (LEqual (OSFL (), 0x02))
{
Return (0x02)
}

Return (0x03)
}

Name (_PRW, Package (0x02)
{
0x0D, 
0x03
})
Method (_DSM, 4, NotSerialized)
{
Store (Package (0x04)
{
"AAPL,clock-id", 
Buffer (One)
{
0x02
}, 

"device_type", 
Buffer (0x05)
{
"EHCI"
}
}, Local0)
DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
Return (Local0)
}
}

 

After that I upgraded step by step my DSDT to your v3.2 but that did not solved my problem neither. Now it is waking up right after sleep and yes all the drives are not properly dismounted but Ehernet works. Now i use:

 

Device (EHCI) // Renamed from: EUSB - Extended with Power Management and Port Wake Capabilities.
{
Name (_ADR, 0x001D0007)
Name (_PRW, Package (0x02) // Power Resources for Wake (ACPIspec30a.pdf / 7.2.10 / page 259).
{
0x0D, 
0x04
})

OperationRegion (PMCS, PCI_Config, 0x54, 0x02) // Power Management Control/Status (ICH9R-3169722.pdf / 17.1.19 / page 664).
Field (PMCS, WordAcc, NoLock, Preserve)
{
, 15,
PMES, 1
} // Bit 15, PME Status, single bit.

OperationRegion (PWCR, PCI_Config, 0x62, 0x02) // Port Wake Capabilities Register (ICH9R-316972.pdf / 17.1.25 / page 667).
Field (PWCR, AnyAcc, NoLock, Preserve)
{
URE2, 9
}

Method (_PSW, 1, NotSerialized) // Power State Wake (ACPIspec30a.pdf / 7.2.11 / page 260).
{
Multiply (0x01FF, Arg0, URE2) // Set bit 0-8 based on Arg0 (0 disable- or 1 enable wake capabilities).
}

Method (_DSM, 4, NotSerialized) // Device Specific Method (ACPIspec30a.pdf / 9.15.1 / page 321).
{
Store (Package (0x06)
{
"AAPL,current-available",
0x05DC,

"AAPL,current-extra",
0x04B0,

"AAPL,current-in-sleep",
0x09C4

}, Local0)
MCDP (Arg2, RefOf (Local0))
Return (Local0)
}
}

Device (UHCI) // Renamed from: USBE - Extended with Power Management and Port Wake Capabilities.
{
Name (_ADR, 0x001A0007)
Name (_PRW, Package (0x02) // Power Resources for Wake (ACPIspec30a.pdf / 7.2.10 / page 259).
{
0x0D, 
0x04
})

OperationRegion (PMCS, PCI_Config, 0x54, 0x02) // Power Management Control/Status (ICH9R-3169722.pdf / 17.1.19 / page 664).
Field (PMCS, WordAcc, NoLock, Preserve)
{
, 15,
PMES, 1 
} // Bit 15, PME Status, single bit.

OperationRegion (PWCR, PCI_Config, 0x62, 0x02) // Port Wake Capabilities Register (ICH9R-316972.pdf / 17.1.25 / page 667).
Field (PWCR, AnyAcc, NoLock, Preserve)
{
URE2, 9
}

Method (_PSW, 1, NotSerialized) // Power State Wake (ACPIspec30a.pdf / 7.2.11 / page 260).
{
Multiply (0x7F, Arg0, URE2) // Set bit 0-6 based on Arg0 (0 disable- or 1 enable wake capabilities).
}

Method (_DSM, 4, NotSerialized) // Device Specific Method (ACPIspec30a.pdf / 9.15.1 / page 321).
{
Store (Package (0x06)
{
"AAPL,current-available",
0x05DC,

"AAPL,current-extra",
0x04B0,

"AAPL,current-in-sleep",
0x09C4

}, Local0)
MCDP (Arg2, RefOf (Local0))
Return (Local0)
}
}

 

 

I ask you if you could give me a hint where to look or what could be the reason for such behaviour or if you could just put a quick look to my DSDT and tell me what am I missing.

 

dsdt_vol264.dsl.zip

Thank you,

Link to comment
Share on other sites

Let's start by naming things: What Apple keyboard specifically (model number) and please do me a favor, and make a picture of the lights you are talking about. Thanks.

 

What DSDT are you using? I mean is that DSDT V3.3.1 or any of its predecessors, or your own? In case of the latter; please attach it. Thanks.

 

My DSDT is v3.3 and I have replaced the CPU information.

 

I have this keyboard (see attachment). And the light is the CAPS Lock light.

post-367101-1260910185_thumb.jpg

Link to comment
Share on other sites

So what is wrong? When I send the Hack to sleep it goes to the sleep state but immediately wakes up and the in the log you see: Wake Reason = EC EHCI UHCI

When I used the below config, it went into sleep and but after waking up Ethernet did not work and the usb drives were not properly dismounted:

See post 604

 

I ask you if you could give me a hint where to look or what could be the reason for such behaviour or if you could just put a quick look to my DSDT and tell me what am I missing.

 

I had a similar problem on P5K VM and after a lot of dsdt hacking it turned out to be the setting of the jumpers for USB on mobo. Check out my stuff on PK5 VM thread Here & Here or read your mobo manual page 2-22

Link to comment
Share on other sites

Hi Chief,

i'm here to report my experience with the insane dsdt

On my config it loads but no more Audio and SATA error in Sys Prof

 

Graphic Card, Sata, Usb and audio id in EFI string

Okay so you have two issues. Let's address the first one first. Audio.

 

Have you checked Device (HDEF) in your DSDT? You still have Method (_DSM) in there, or not? I mean, if you have device properties in com.apple.Boot.plist then you can no longer try to make changes from your DSDT.

 

And I take it that with "audio id" you meant "layout-id". Correct? What about other properties? What did you use when things worked for you? All these should be carried over to com.apple.Boot.plist you know.

 

Now. About SATA. Where should I start? I mean I don't even know what error(s) you are talking about, so I can't really help you here now can I.

 

...

I have completely rewritten my DSTD to match yours as far as my original can match. Mostly everything is working flawless but the sleep issue is killing me. ;) I know, I'm using an Asus P5Q series but as Barnum has wrote mostly all of P5K Pro fits with P5Q and also the ICH9 register with ICH10. I also compared my version with Barnums but with no luck.

 

So what is wrong? When I send the Hack to sleep it goes to the sleep state but immediately wakes up and the in the log you see: Wake Reason = EC EHCI UHCI

I don't think that this is caused by a BIOS setting or a jumper, otherwise it won't work with any of the two code snippets.

 

Let's try to narrow down the problem to one single device first - this usually makes things less complicated. Only copy new parts to one single device. One line or thing at a time. Keep testing sleep and making backups. Report back what you find, or PM barnum if sleep works for him.

 

I wonder why you have Wake Reason = EC since that is _L02 and not _L0D Also. What I don't see here is HDEF which is part of _L0D yet it is missing!

 

 

My DSDT is v3.3 and I have replaced the CPU information.

 

I have this keyboard (see attachment). And the light is the CAPS Lock light.

Right. And I thought – more hoping actually – that you had back light working on your Apple keyboard. Not.

 

Anyway. We need a little power to be able to wake the computer from the keyboard / mouse but I have to test sleep here first... Done. Caps lock goes off when I enter sleep. You might try the EHCI / UHCI and UNHn code snippets from my insane DSDT. To see if that works for you. Otherwise you'll have to rip out one line after the other i.e. you do the dirty work your self... not I.

Link to comment
Share on other sites

Hi Master, listen, on my configuration all working perfectly also thanks to yours dsdt, but only thing. Looking in my ioreg i see a unique device: pci8086,2e20@0 without "name" (sorry for my english)

 

00:00.0 Host bridge [0600]: Intel Corporation 4 Series Chipset DRAM Controller [8086:2e20] (rev 02)

 

This device don't load. It's normal or it's possible inject code in dsdt? It's the only..

 

Thanks and hi :blink:

Link to comment
Share on other sites

Right. And I thought – more hoping actually – that you had back light working on your Apple keyboard. Not.

 

Anyway. We need a little power to be able to wake the computer from the keyboard / mouse but I have to test sleep here first... Done. Caps lock goes off when I enter sleep. You might try the EHCI / UHCI and UNHn code snippets from my insane DSDT. To see if that works for you. Otherwise you'll have to rip out one line after the other i.e. you do the dirty work your self... not I.

 

When copying the EHCI and UHCI from the insane DSDT I get several errors when compiling - maybe it's because I'm a noob.

Link to comment
Share on other sites

Hi Master, listen, on my configuration all working perfectly also thanks to yours dsdt, but only thing. Looking in my ioreg i see a unique device: pci8086,2e20@0 without "name" (sorry for my english)

 

This device don't load. It's normal or it's possible inject code in dsdt? It's the only..

 

Thanks and hi ;)

Don't bother. Mine is pci8086,29c0@0 We all got one. Even on real Macs.

 

 

When copying the EHCI and UHCI from the insane DSDT I get several errors when compiling - maybe it's because I'm a noob.

There is no "and" for a single change, remember what I said: Only one single change at a time please. Not two.

 

And you will get compiler errors when you remove (comment out) something, without also fixing the callers! Just use plain old logic and you'll be fine.

Link to comment
Share on other sites

Don't bother. Mine is pci8086,29c0@0 We all got one. Even on real Macs.

 

I have too, and on my mac book pro (4,1) at that addres there is MCHC. I copied the MCHC part from MBP to my hack dsdt and added the device id of the MBP 2a00 and it worked as expected until the .kext that was loaded by this patch returned KP ;)Maybe com.apple.driver.ACPI_SMC_PlatformPluging is something that need to stay where it is in a hackintosh

 

 

Now in c.a.B.p for the audio:

 

  	<key>PciRoot(0x1)/Pci(0x1b,0x0)</key>
 	<dict>
   		<key>PinConfigurations</key>
   		<string></string>
   		<key>built-in</key>
   		<string>0x00</string>
   		<key>layout-id</key>
   		<string>0x73030000</string>
   		<key>PinConfigurations</key>
   		<string>0x00</string>
   	</dict>

in dsdt 3.3.1 that Audio is working i've your code unchanged.

 

for SATA

 

<key>PciRoot(0x0)/Pci(0x1f,0x2)</key>
<dict>
	<key>device-id</key>
	<data>0x2681</data>
</dict>

 

but when i use:

ioreg -lw0 -p IODeviceTree | grep device-properties > out.hex

th id are shwon like: gSY= instead of: 0x2681

 

The sata issue was not fully tested, only things i remember (but now i'll check) was nothing shown in System Profiler and no jmicron device at all (for SATA) in IDE the device are there but nothing connected to test.

So now i'll restart with the EFi injection and the insane untouched (only p-state for my CPU and if there is also firewire but if i don't remember wrong it's commented out in the insanedsdt).

Be right back with more info.

 

EDIT:

Here we are.

In sys prof when i click on SATA it tells me:

There was an error while scanning for Serial-ATA devices.

i can attach my ioreg if it's needed

Link to comment
Share on other sites

...

You have two PinConfigurations. One is enough.

 

for SATA

<key>PciRoot(0x0)/Pci(0x1f,0x2)</key>
<dict>
	<key>device-id</key>
	<data>0x2681</data>
</dict>

but when i use:

ioreg -lw0 -p IODeviceTree | grep device-properties > out.hex

th id are shwon like: gSY= instead of: 0x2681

That's because you are using a string "0x2681" instead of a Base64 converted value, hence the data element here. Please change it into a string, or convert the value first.

Link to comment
Share on other sites

You have two PinConfigurations. One is enough.

Right thank's but is strange that with 3.3.1 it was working either.

 

That's because you are using a string "0x2681" instead of a Base64 converted value, hence the data element here. Please change it into a string, or convert the value first.

Sorry i don't understand this good... if i'm using a string how to change it in a string? B)

 

I've encoded 2681 and i've got this: MjY4MQ==

but now i'm in doubt if I need to convert this 0x2681 and it gives me: MHgyNjgx

 

now i'll try one and the other

 

EDIT: with MjY4Mq== I get the yellow icon so it's wron for shure now i'll try MhgyNjgx

Link to comment
Share on other sites

dho, :P

thanks again now i'm starting to understand a little more that efi trix

 

I talked to early.

 

This is my SATA error, in italian the english is in the post before.

post-464373-1260935015_thumb.png

 

this is the audio part

post-464373-1260935067_thumb.png

 

and this is the code in c.a.B.p

83050000010000000d0000003c0000000100000002010c00d041030a000000000101060
0071a7fff0400180000006400650076006900630065002d00690064000000060000003c3a3c000000
0100000002010c00d041030a0000000001010600021a7fff040018000000640065007600690063006
5002d0069006400000006000000393a3c0000000100000002010c00d041030a000000000101060003
1f7fff0400180000006400650076006900630065002d0069006400000006000000303a3c000000010
0000002010c00d041030a0000000001010600021d7fff040018000000640065007600690063006500
2d0069006400000006000000363a3c0000000100000002010c00d041030a0000000001010600011a7
fff0400180000006400650076006900630065002d0069006400000006000000383a3c000000010000
0002010c00d041030a0000000001010600021f7fff0400180000006400650076006900630065002d0
06900640000000600000081263c0000000100000002010c00d041030a0000000001010600011d7fff
0400180000006400650076006900630065002d0069006400000006000000353a3c000000010000000
2010c00d041030a0000000001010600001a7fff0400180000006400650076006900630065002d0069
006400000006000000373a3c0000000100000002010c00d041030a0000000001010600001d7fff040
0180000006400650076006900630065002d0069006400000006000000343a3c000000010000000201
0c00d041030a0000000001010600071d7fff0400180000006400650076006900630065002d0069006
4000000060000003a3a3c0000000100000002010c00d041030a0000000001010600001f7fff040018
0000006400650076006900630065002d00690064000000060000001629860000000300000002010c0
0d041030a0100000001010600001b7fff0400160000006200750069006c0074002d0069006e000000
0500000000180000006c00610079006f00750074002d0069006400000008000000000003732800000
0500069006e0043006f006e00660069006700750072006100740069006f006e007300000005000000
005d0200000d00000002010c00d041030a000000000101060000010101060000007fff04001e00000
072006f006d002d007200650076006900730069006f006e0000002e0000006e566964696120476546
6f7263652038363030204754204f70656e474c20456e67696e65205b4546495d22000000400030002
c006400650076006900630065005f00740079007000650000000b000000646973706c617910000000
4e00560043004100500000001800000004000000000003000c00000000000007000000000e0000006
e0061006d00650000000b000000646973706c617914000000400030002c006e0061006d0065000000
120000004e5644412c446973706c61792d41100000006d006f00640065006c0000001a0000006e566
9646961204765466f72636520383630302047540e0000004e00560050004d00000020000000010000
0000000000000000000000000000000000000000000000000014000000400031002c006e0061006d0
065000000120000004e5644412c446973706c61792d4220000000400031002c0063006f006d007000
61007400690062006c00650000000e0000004e5644412c4e564d6163220000005600520041004d002
c0074006f00740061006c00730069007a0065000000080000000000001020000000400030002c0063
006f006d00700061007400690062006c00650000000e0000004e5644412c4e564d616322000000400
031002c006400650076006900630065005f007400790070006500000008000000474658301c000000
6400650076006900630065005f00740079007000650000000f0000004e5644412c506172656e74

dsdt in use:

DSDT.dsl.zip

 

and this i what i get now with this:

ioreg -lw0 -p IODeviceTree | grep device-properties > out.hex

83050000010000000d0000003c0000000100000002010c00d041030a000000000101060
0071a7fff0400180000006400650076006900630065002d00690064000000060000003c3a3c000000
0100000002010c00d041030a0000000001010600021a7fff040018000000640065007600690063006
5002d0069006400000006000000393a3c0000000100000002010c00d041030a000000000101060003
1f7fff0400180000006400650076006900630065002d0069006400000006000000303a3c000000010
0000002010c00d041030a0000000001010600021d7fff040018000000640065007600690063006500
2d0069006400000006000000363a3c0000000100000002010c00d041030a0000000001010600011a7
fff0400180000006400650076006900630065002d0069006400000006000000383a3c000000010000
0002010c00d041030a0000000001010600021f7fff0400180000006400650076006900630065002d0
06900640000000600000081263c0000000100000002010c00d041030a0000000001010600011d7fff
0400180000006400650076006900630065002d0069006400000006000000353a3c000000010000000
2010c00d041030a0000000001010600001a7fff0400180000006400650076006900630065002d0069
006400000006000000373a3c0000000100000002010c00d041030a0000000001010600001d7fff040
0180000006400650076006900630065002d0069006400000006000000343a3c000000010000000201
0c00d041030a0000000001010600071d7fff0400180000006400650076006900630065002d0069006
4000000060000003a3a3c0000000100000002010c00d041030a0000000001010600001f7fff040018
0000006400650076006900630065002d00690064000000060000001629860000000300000002010c0
0d041030a0100000001010600001b7fff0400160000006200750069006c0074002d0069006e000000
0500000000180000006c00610079006f00750074002d0069006400000008000000000003732800000
0500069006e0043006f006e00660069006700750072006100740069006f006e007300000005000000
005d0200000d00000002010c00d041030a000000000101060000010101060000007fff04001e00000
072006f006d002d007200650076006900730069006f006e0000002e0000006e566964696120476546
6f7263652038363030204754204f70656e474c20456e67696e65205b4546495d22000000400030002
c006400650076006900630065005f00740079007000650000000b000000646973706c617910000000
4e00560043004100500000001800000004000000000003000c00000000000007000000000e0000006
e0061006d00650000000b000000646973706c617914000000400030002c006e0061006d0065000000
120000004e5644412c446973706c61792d41100000006d006f00640065006c0000001a0000006e566
9646961204765466f72636520383630302047540e0000004e00560050004d00000020000000010000
0000000000000000000000000000000000000000000000000014000000400031002c006e0061006d0
065000000120000004e5644412c446973706c61792d4220000000400031002c0063006f006d007000
61007400690062006c00650000000e0000004e5644412c4e564d6163220000005600520041004d002
c0074006f00740061006c00730069007a0065000000080000000000001020000000400030002c0063
006f006d00700061007400690062006c00650000000e0000004e5644412c4e564d616322000000400
031002c006400650076006900630065005f007400790070006500000008000000474658301c000000
6400650076006900630065005f00740079007000650000000f0000004e5644412c506172656e74

 

Audio still missing. and SATA DVD on jmicron also.

My temperature are 62°C instead of 42°C with dsdt 3.3.1

 

Too many problem for me to try to fix them all. I'll keep some part that works, like usb and trying to understand your modification.

 

Just for an info, after a stop i need to reload the kext of my Attansic1L is that something that could be solved via dsdt. I think the problem is the kext. On Leo there was like a workaround an app that while monitoring the power state was able to unload at stop and reload at wake the kest, in snow it doesn't work anymore and so now i have to use a little script that every time ask me for a password.

Link to comment
Share on other sites

I had a similar problem on P5K VM and after a lot of dsdt hacking it turned out to be the setting of the jumpers for USB on mobo. Check out my stuff on PK5 VM thread Here & Here or read your mobo manual page 2-22

 

Hi,

 

I know that trick with the jumper settings and in any of my versions I try that. When I set the jumper 2-3 (wake up with USB devices) and with device-id injection version of EHCI/UCHI the external disks do not shutdown as by jumper setting 1-2 and the disks still get unproperly unmounted (same in MC's version). So I aggre here with MC that here that should not be the cause. Anyway I'll will experiment with BIOS but also here I do not see any mayor changes.

 

I think I'm missing something. What about boot.apple.com.plist. Should I define something also there?

 

Let's try to narrow down the problem to one single device first - this usually makes things less complicated. Only copy new parts to one single device. One line or thing at a time. Keep testing sleep and making backups. Report back what you find, or PM barnum if sleep works for him.

 

I wonder why you have Wake Reason = EC since that is _L02 and not _L0D Also. What I don't see here is HDEF which is part of _L0D yet it is missing!

 

Just found out... Should I have LegacyACPI_SMC_PP.kext and LegacyAppleAHCIPort.kext installed to get the sleep work properly?

Thanks,

Link to comment
Share on other sites

Just for an info, after a stop i need to reload the kext of my Attansic1L is that something that could be solved via dsdt. I think the problem is the kext. On Leo there was like a workaround an app that while monitoring the power state was able to unload at stop and reload at wake the kest, in snow it doesn't work anymore and so now i have to use a little script that every time ask me for a password.

 

Have try you the kexts here?

Link to comment
Share on other sites

Hi,

 

I know that trick with the jumper settings and in any of my versions I try that. When I set the jumper 2-3 (wake up with USB devices) and with device-id injection version of EHCI/UCHI the external disks do not shutdown as by jumper setting 1-2 and the disks still get unproperly unmounted (same in MC's version). So I aggre here with MC that here that should not be the cause. Anyway I'll will experiment with BIOS but also here I do not see any mayor changes.

No. It's like DB1 said. You need to set that jumper, correctly, and then stay away from it. Please don't change it anymore, but fix your DSDT.

 

Let's go back to before you started to "fix" your DSDT. Did this work, yes or no?

 

Just found out... Should I have LegacyACPI_SMC_PP.kext and LegacyAppleAHCIPort.kext installed to get the sleep work properly?

What model identifier are you using? The default "P5K PRO" like I am, or MacPro3,1 (for example)?

 

LegacyAppleAHCIPort.kext should no longer be required. You should be able to change the SATA device-id (0x2681) in either DSDT or com.apple.Boot.plist

 

...

Audio still missing. and SATA DVD on jmicron also.

My temperature are 62°C instead of 42°C with dsdt 3.3.1

 

Too many problem for me to try to fix them all. I'll keep some part that works, like usb and trying to understand your modification.

Seems like the right thing to do. You might be able to tackle the problems at a later stage :lol:

 

Just for an info, after a stop i need to reload the kext of my Attansic1L is that something that could be solved via dsdt. I think the problem is the kext...

You may need add a Notify (LAN0, value) Just replace LAN0 with the correct path/name and try 0, 1 and 2 for value. It might help, but that's for you to find out.

Link to comment
Share on other sites

No. It's like DB1 said. You need to set that jumper, correctly, and then stay away from it. Please don't change it anymore, but fix your DSDT.

 

Let's go back to before you started to "fix" your DSDT. Did this work, yes or no?

 

 

What model identifier are you using? The default "P5K PRO" like I am, or MacPro3,1 (for example)?

 

LegacyAppleAHCIPort.kext should no longer be required. You should be able to change the SATA device-id (0x2681) in either DSDT or com.apple.Boot.plist

 

Hi MC,

 

First of all I set the jumper back to position 2-3 and I'll leave it there because I made some progress. But let's get started step by step:

 

- I'm using MacPro 3,1. Could that be the reason that your method like in your dsdt v3.2 doesn't works for me? (attached are smbios.plist and com.apple.boot.plist + last DSDT)

- tried LegacyAppleAHCIPort.kext - no diference (I think I have no issues with SATA)

- then I've rewritten my DSDT and changed in EHCI & UHCI from:

 

Store (Package (0x06)
                   {
                       "AAPL,current-available",
                       0x05DC,

                       "AAPL,current-extra",
                       0x04B0,

                       "AAPL,current-in-sleep",
                       0x09C4

                   }, Local0)

 

to:

 

Store (Package (0x04)
                   {
                           "AAPL,clock-id", 
                           Buffer (One)
                           {
                               0x01
                           }, 

                           "device_type", 
                           Buffer (0x05)
                           {
                               "EHCI"
                           }
                   }, Local0)

 

and then suddenly the Hack went to sleep. When I woke it up there was no error of unproperly unmounted disks and Ethernet works too. The only thing that I've noticed is, that I can only wake it up with the power button. And because of the jumper position 2-3 the external USB disks do not shutdown when the computer is shutdown. By sleep they are properly shutdown.

 

Now I must check what happens after some time in sleep. It used to wake up with black screen.

 

 

Thanks,

vol264_boot.zip

Link to comment
Share on other sites

Hi MC,

 

First of all I set the jumper back to position 2-3 and I'll leave it there because I made some progress. But let's get started step by step:

 

- I'm using MacPro 3,1. Could that be the reason that your method like in your dsdt v3.2 doesn't works for me? (attached are smbios.plist and com.apple.boot.plist + last DSDT)

No. I am using MacPro3,1 myself on the HD with Chameleon RC3. No problem here.

 

...

- then I've rewritten my DSDT and changed in EHCI & UHCI from ... to:

Store (Package (0x04)
                   {
                           "AAPL,clock-id", 
                           Buffer (One)
                           {
                               0x01
                           }, 

                           "device_type", 
                           Buffer (0x05)
                           {
                               "EHCI"
                           }
                   }, Local0)

and then suddenly the Hack went to sleep.

Don't tell me... you have a ICH10 based motherboard – we should all add that to our signature, and pronto.

Link to comment
Share on other sites

No. I am using MacPro3,1 myself on the HD with Chameleon RC3. No problem here.

 

 

Don't tell me... you have a ICH10 based motherboard �" we should all add that to our signature, and pronto.

 

Yes I do and I wrote that in my first post. But you are right about the signature and I've updated it.

 

Anyway, autosleep works with the autosleep script. Still no wake up with keyboard.

 

MC, thank you for your effort.

 

Regards,

Link to comment
Share on other sites

Yes I do and I wrote that in my first post. But you are right about the signature and I've updated it.

 

Anyway, autosleep works with the autosleep script. Still no wake up with keyboard.

 

MC, thank you for your effort.

 

Regards,

You are welcome. Now try this. Add this for both EHCI and UHCI:

OperationRegion (PWRC, PCI_Config, 0x52, 0x2F)
Field (PWRC, ByteAcc, NoLock, Preserve)
{
        , 11,
   PMES, 5,
       [color="#FF0000"]Offset (0x2E),
   WRTA,   1[/color]
}

And this in Scope (_SB)

Method (_INI, 0, NotSerialized)
{
[color="#FF0000"]Store (0x01,\_SB.PCI0.EHCI.WRTA)[/color]
Store (0x19, \_SB.PCI0.EHCI.PMES) 
[color="#FF0000"]Store (0x00,\_SB.PCI0.EHCI.WRTA)[/color]

[color="#FF0000"]Store (0x01,\_SB.PCI0.UHCI.WRTA)[/color]
Store (0x19, \_SB.PCI0.UHCI.PMES) 
[color="#FF0000"]Store (0x00,\_SB.PCI0.UHCI.WRTA)[/color]
}

At the top that is. This patch (by mm67) might fix your keyboard / mouse wakeup problem. Just give it a try.

 

Note: I already renamed a few lines, and I don't think that you need the red lines.

Link to comment
Share on other sites

You are welcome. Now try this. Add this for both EHCI and UHCI:
OperationRegion (PWRC, PCI_Config, 0x52, 0x2F)
Field (PWRC, ByteAcc, NoLock, Preserve)
{
        , 11,
   PMES, 5,
       [color="#FF0000"]Offset (0x2E),
   WRTA,   1[/color]
}

And this in Scope (_SB)

Method (_INI, 0, NotSerialized)
{
[color="#FF0000"]Store (0x01,\_SB.PCI0.EHCI.WRTA)[/color]
Store (0x19, \_SB.PCI0.EHCI.PMES) 
[color="#FF0000"]Store (0x00,\_SB.PCI0.EHCI.WRTA)[/color]

[color="#FF0000"]Store (0x01,\_SB.PCI0.UHCI.WRTA)[/color]
Store (0x19, \_SB.PCI0.UHCI.PMES) 
[color="#FF0000"]Store (0x00,\_SB.PCI0.UHCI.WRTA)[/color]
}

At the top that is. This patch (by mm67) might fix your keyboard / mouse wakeup problem. Just give it a try.

 

Note: I already renamed a few lines, and I don't think that you need the red lines.

 

A good way to check if my patch applies is to run this right after boot:

sudo setpci -s 0:0x1a.7 0x52.w

 

On Gigabyte boards result is 0002 when it should be C2C9. Only after first sleep that register gets a proper value.

Link to comment
Share on other sites

You are welcome. Now try this. Add this for both EHCI and UHCI: ...

 

At the top that is. This patch (by mm67) might fix your keyboard / mouse wakeup problem. Just give it a try.

 

Note: I already renamed a few lines, and I don't think that you need the red lines.

 

Hi MC,

 

Tried that, but no good for now. Will research that and let you know.

 

But now another problem is appearing that I've noticed before. After some time (say more than an hour) when I wake up the computer, the screen stays black. I've read somewhere that you should press the button for brightness and the screen wakes up. Not here. Anything I press or do the screen is black but the computer looks like it came back from sleep.

 

Any ideas?

 

Thanks,

Link to comment
Share on other sites

Hi MC,

 

Tried that, but no good for now. Will research that and let you know.

I want you to enter lspci -nn in a terminal window to get output similar like this:

 

00:1d.7 USB Controller [0c03]: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #1 [8086:293a] (rev 02)

00:1a.7 USB Controller [0c03]: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #2 [8086:293c] (rev 02)

 

The next step would be to enter: lspci -d 8086:293a -xxxvvv (using the address you got from step 1) and repeat this procedure for the second controller.

 

p.s. Still don't have lspci and lspcidrv.kext then search for it.

 

But now another problem is appearing that I've noticed before. After some time (say more than an hour) when I wake up the computer, the screen stays black. I've read somewhere that you should press the button for brightness and the screen wakes up. Not here. Anything I press or do the screen is black but the computer looks like it came back from sleep.

 

Any ideas?

 

Thanks,

Maybe. You may need to trigger a refresh in Method _WAK. Try adding a Notify (GFX, 2) where GFX points to your Device (GFX). And when 2 doesn't work, then try 0 or 1. Other than that... no idea. Doesn't happen here.

Link to comment
Share on other sites

 Share

×
×
  • Create New...