| Posted on: Yesterday, 06:45 PM | |
|
InsanelyMac Legend ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 740 Joined: 7-January 09 Member No.: 351,169 |
Well now that I know why you set it up that way I want to look into it more and run a few tests, that's all. I prefer your method because it's shorter and simpler. I like your approach to DSDT patching. Shorter, simpler and more logical. Do you actally notice an improvement in boot times? Yes. It is two seconds quicker. Look at the spinner below the Apple logo, and notice a slight improvement before your sceen is initialized. That's where the improved should be noticed. DB1 confirmed he has the same problem; we are using same files. In that case additional testing is required (for P5K VM users). I understand that it hangs at a point where your BIOS screen should be displayed, which makes me wonder if OSXRestart.kext is still loaded as the same thing happens when I unload the kext and try to restart from the Apple menu. You might want to try: sudo kextunload OSXRestart.kext before entering sleep, and use: sudo kextload OSXRestart.kext after sleep, before doing a restart, to see if that helps. And restart-after-sleep fails in both 32 and 64 bit mode? |
| Forum: OSx86 10.6 (Snow Leopard) · Post Preview: #1337938 · Replies: 441 · Views: 38,608 |
| Posted on: Yesterday, 03:08 PM | |
|
InsanelyMac Legend ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 740 Joined: 7-January 09 Member No.: 351,169 |
I don't see the problem. BIOS intializes AHCI for SATA ports. The bootloader takes over the responsibility after all ports have been initialized, not? And with the beta BIOS with AHCI version 1.20something AHCI initialization wasn't such a problem anymore. I'm talking about skipping the BIOS initialization, which slows down the boot process considerably. Just ask William Parker Note: I want firmware (BIOS) to load the kernel without any initialization whatsoever, because OS X can handle it... enter Google OS – I am pretty sure that its source code is being read a lot these days. People looking for clues... |
| Forum: Intel SpeedStep · Post Preview: #1337767 · Replies: 603 · Views: 41,277 |
| Posted on: Yesterday, 03:02 PM | |
|
InsanelyMac Legend ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 740 Joined: 7-January 09 Member No.: 351,169 |
... Is not exactly the case for me: See P0P3; nothing is hooked there but still shows in the RegExplorer That's the "PCI Express Port 1" which is a root domain controller. Look for PCITOPLevel in ioreg -l output. There's your answer (the other ports are linked to it). and ... P0P4 still there after disabling Jmicron controller, but P0P5 is gone (ethernet disabed) Anyways, you've been reading the ICH9 spec sheets and I didnt so better I put the P0P code back into my dsdt. Thanks again! And P0P4 should not be visible when the Jmicron controller is disabled in the BIOS. However, you may have forced a connection from your DSDT. And you could check this by looking at the ioreg output, because it should not be there without anything connected to it. Or there's something else active. Just to give you some ideas. p.s. You may want to renamed these, because it was confusing the heck out of me I see your logic. You agree? Should I read this as a confirmation? |
| Forum: OSx86 10.6 (Snow Leopard) · Post Preview: #1337760 · Replies: 441 · Views: 38,608 |
| Posted on: Yesterday, 01:30 PM | |
|
InsanelyMac Legend ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 740 Joined: 7-January 09 Member No.: 351,169 |
|
| Forum: OSx86 10.6 (Snow Leopard) · Post Preview: #1337696 · Replies: 441 · Views: 38,608 |
| Posted on: Yesterday, 01:25 PM | |
|
InsanelyMac Legend ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 740 Joined: 7-January 09 Member No.: 351,169 |
Yes, Im using that kext too. But still restart breaks after sleep-wake Ok, Just asking, to be sure. Are other P5K-VM users here having a similar restart problem? The problem is that the computer wont go to sleep by itself. I thought it might be the dvd drive... That might indeed be a problem. You could disconnect the drive to see if that solves it. At least then you know for sure? I see. But why they dont show in the IOreg then?, P5K-VM has two PCI-E slot less than the P5K-Pro so, wouldnt at least two ports not be there? You should only see active ports with ioreg and IORegistryExplorer, where some sort of connection has been established. And not only by inserting a PCI(E) card, because P0P8 won't show up until I enable the PATA device in my BIOS. Just to name one example p.s. I ripped another 365 bytes, not by removing features or functionality, but by re-writing some of the code. |
| Forum: OSx86 10.6 (Snow Leopard) · Post Preview: #1337689 · Replies: 441 · Views: 38,608 |
| Posted on: Yesterday, 11:40 AM | |
|
InsanelyMac Legend ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 740 Joined: 7-January 09 Member No.: 351,169 |
Thanks man!; I apreciate the work you're doing! I brought my P5K-VM dsdt to match yours; everything seems to work good for me, except sleep-wake-restart sequence (which hangs at the point you should see the BIOS boot screen). No problem here, but my DSDT is optimized to work with OSXRestart.kext – see attachments in post #3 I got a question about: CODE ... see post # 427 As I understand, this is to be able to auto-sleep your CD-DVD drive, isnt it? If so, would be possible to use the same kind of code to work in a drive hooked to the Jmicron IDE connector (present on the P5K-VM)? I've tryed something like this: CODE Notify (\_SB.PCI0.P0P4.JMB0.IDE0, 0x81) But didnt work so far... No, unfortunately not. You may remove this code. And what exactly is the problem? The drive won't spin down for sleep? A note for the P5K-VM: One could delete the code for P0P devices addressed at 0x001C0001-3 as they dont appear in the IOReg, and probably they dont exist phisically either: [attachment=62140:Screensh...56.34_AM.jpg] No! These are part of each ICH9 chip set. Even the ICH10 and older chipsets. And the minute people plug in something BOOM Thanks So you removed GPRW? Yes, because the _Sn data is static in Apple DSDT's and it isn't expecting a shift in S state. |
| Forum: OSx86 10.6 (Snow Leopard) · Post Preview: #1337611 · Replies: 441 · Views: 38,608 |
| Posted on: Yesterday, 11:30 AM | |
|
InsanelyMac Legend ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 740 Joined: 7-January 09 Member No.: 351,169 |
@MC In your C-states shouldn't this be 0x02? CODE Name (_CST, Package (0x04) { 0x03, Package (0x04){ResourceTemplate (){Register (FFixedHW,0x01,0x02,0x0000000000000000,0x00,)},0x01,0x01,0x03E8}, Package (0x04){ResourceTemplate (){Register (SystemIO,0x08,0x00,0x0000000000000814, ,)},0x03,0x01,0x01F4}, //<-- 0x02?? Package (0x04){ResourceTemplate (){Register (SystemIO,0x08,0x00,0x0000000000000815, ,)},0x03,0x55,0xFA} }) Absolutely! Good catch – a failing last minute change. Thanks! When I consolidate C-states to the first CPU like yours I loose that independent multiplier definition. And see my x7 multiplier much less. I wouldn't know why, but I will try to figure it out – by adding a dummy _CST object under CPU2. Edit: No change whatsoever with a dummy object. Not to mention that Apple DSDT's are using: CODE Scope (\_PR.CPU1) { Method (_CST, 0, NotSerialized) { Return (\_PR.CPU0._CST) } } So I don't think so. I mean it isn't using any _CST object on the second Processor definition block. That's why I removed it a while ago |
| Forum: OSx86 10.6 (Snow Leopard) · Post Preview: #1337604 · Replies: 441 · Views: 38,608 |
| Posted on: Yesterday, 10:56 AM | |
|
InsanelyMac Legend ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 740 Joined: 7-January 09 Member No.: 351,169 |
Another highly optimized DSDT, with a massive code reduction (25%) is now available (as example) in the P5K PRO Snow Leopard Thread. Happy Hacking! Here are lspci's. Great – I was a little busy the other day, but I will have a look at it, later today. At least with the GA-P35-DS3 (not the EP35-DS3!) you don't have a choice. You either enable AHCI for all ICH9-SATA ports or you don't. Now imagine a smart boot loader, one selecting ACPI mode for your chipset... problem solved – you end up with a blistering fast boot process (no more ACPI nagging at boot time). |
| Forum: Intel SpeedStep · Post Preview: #1337547 · Replies: 603 · Views: 41,277 |
| Posted on: Yesterday, 09:46 AM | |
|
InsanelyMac Legend ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 740 Joined: 7-January 09 Member No.: 351,169 |
DSDT V3.2 has been released today – see attachments in post #3 The size of our previous update was: dsdt.dsl 111.179 bytes dsdt.aml 10.690 bytes And todays update: dsdt.dsl 95.260 bytes dsdt.aml 7.957 bytes A massive 25% off. Which makes it a rather significant update. With lots of new comments. Making the code reduction of dsdt.dsl even more impressive, since I have been adding so much spaces/text. Let's have a look at a few examples: CODE Device (UHC1) // Renamed from: USB0 { Name (_ADR, 0x001D0000) Name (_PRW, Package (0x02) // Power Resources for Wake (ACPIspec30a.pdf / 7.2.10 / page 259). { 0x03, 0x04 }) Name (_S3D, 0x02) // S3 Device State (ACPIspec30a.pdf / 7.2.15 / page 262). OperationRegion (BAR0, PCI_Config, 0xC4, One) // Newly added: USB_RES—USB Resume Enable Register (ICH9R-3169722.pdf /16.1.24 / page 642). Field (BAR0, ByteAcc, NoLock, Preserve) { USBW, 2, Offset (0x01) } Method (_PSW, 1, NotSerialized) // Power State Wake (ACPIspec30a.pdf / 7.2.11 / page 260). { Multiply (0x03, Arg0, USBW) // Set bit 0-1 based on Arg0 (0 disable- or 1 enable wake capabilities). } Method (_DSM, 4, NotSerialized) // Device Specific Method (ACPIspec30a.pdf / 9.15.1 / page 321). { Return (MCID (Arg2, 0x3A34)) } } And this one: CODE Device (P0P4) // PCI Express Port 1 { Name (_ADR, 0x001C0000) Name (_PRT, Package (0x04) // PCI Routing Table AR04 (ACPIspec30a.pdf / 6.2.11 / page 204). { Package (0x04) { 0xFFFF, Zero, Zero, 0x10 }, Package (0x04) { 0xFFFF, One, Zero, 0x11 }, Package (0x04) { 0xFFFF, 0x02, Zero, 0x12 }, Package (0x04) { 0xFFFF, 0x03, Zero, 0x13 } }) Name (_PRW, Package (0x02) // Power Resources for Wake (ACPIspec30a.pdf / 7.2.10 / page 259). { 0x09, 0x04 }) } Again highly optimized – without going back in terms of readability – to squeeze out even the very last byte. And not a single change was done by 'trial and error' but after doing a lot more, additional, reading of the ACPI specification. Quite a few hours to be honest – I don't go change anything anymore without first knowing what it does / how it works. And while I was working on code reduction of GPRW, which I have eliminated with this update, I realized to have made an error. That is why I moved the buffers out of Methods MCID and MCBN into the global name space, because this way we reduce the memory footprint. Yup. Learned something new again. I also know that this update might be a little too much for some. A judgment error. Which is entirely my fault. And if DB1 hadn't mentioned a new release... it might have been Christmas by now. Yeah, I should have released an update earlier, but I didn't realize what I had done since V3.1. Well, just hang in, and feel free to ask for help. As long as it's you doing most of the work Well. I think this covers it. And as always; Happy Hacking! @julia24 & blackosx: Thank you! |
| Forum: OSx86 10.6 (Snow Leopard) · Post Preview: #1337508 · Replies: 441 · Views: 38,608 |
| Posted on: Yesterday, 09:11 AM | |
|
InsanelyMac Legend ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 740 Joined: 7-January 09 Member No.: 351,169 |
|
| Forum: OSx86 10.6 (Snow Leopard) · Post Preview: #1337493 · Replies: 441 · Views: 38,608 |
| Posted on: Nov 20 2009, 08:04 PM | |
|
InsanelyMac Legend ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 740 Joined: 7-January 09 Member No.: 351,169 |
I am going to CODE Name (PRWP, Package (0x02) { Zero, Zero }) Method (GPRW, 2, NotSerialized) { Store (Arg0, Index (PRWP, Zero)) Store (ShiftLeft (SS1, One), Local0) Or (Local0, ShiftLeft (SS2, 0x02), Local0) Or (Local0, ShiftLeft (SS3, 0x03), Local0) Or (Local0, ShiftLeft (SS4, 0x04), Local0) If (And (ShiftLeft (One, Arg1), Local0)) { Store (Arg1, Index (PRWP, One)) } Else { ShiftRight (Local0, One, Local0) FindSetLeftBit (Local0, Index (PRWP, One)) } Return (PRWP) } One of the reasons is that I looked at it a couple of times, and I keep wondering about the red line. I mean S2 isn't even supported on our Asus board so what is it doing there? Why add something when you, as developer, know that it is useless? A contractor getting payed by the line maybe? Not to mention that this code is called up to 16 times at boot time (UHC[1-6], P0P[2-9], PCIB, EHCI and UHCI). 14 times minimum (without EHCI and UHCI). And all this bit shifting can be done with one single line. I think. What if I make it static? I mean it sure isn't going to change at run time. Does it? Nah. No way. Yeah. Let me give it a try. I like to burn my fingers on other peoples code... This should work: CODE Field (BIOS, ByteAcc, NoLock, Preserve) { SLPM, 8, } Name (SLPS, Zero) Name (PRWP, Package (0x02) { Zero, Zero }) Method (GPRW, 2, NotSerialized) { Store (Arg0, Index (PRWP, Zero)) If (And (ShiftLeft (One, Arg1), SLPS)) { Store (Arg1, Index (PRWP, One)) } Else { FindSetLeftBit (SLPM, Index (PRWP, One)) } Return (PRWP) } At least it compiles. ACPI CA Debugger started... Oops. I forgot to add ShiftLeft (SLPM, One, SLPS) Method _PIC is my temporarily target for it. And now it works. I think. Testing... Done. It works. Uhg. A mere four bytes smaller. Not exactly what I hoped for, but it wasn't my main concern. Boot speed is Note: This is an Asus specific change. Do not add Method (GPRW) when you don't already have one. However, every BIOS with Power Management (and sleep) settings should have something like this. This change will also be part of DSDT V3.2 Right. Kids are home from school so daddy is going to have some quality time now. Later folks. And as always... Happy Hacking! |
| Forum: OSx86 10.6 (Snow Leopard) · Post Preview: #1337051 · Replies: 441 · Views: 38,608 |
| Posted on: Nov 20 2009, 03:41 PM | |
|
InsanelyMac Legend ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 740 Joined: 7-January 09 Member No.: 351,169 |
Hi Master Chief, How did you got these values with reggie_se? That was actually part of a previous post (#378) but here's the one to get the sleep byte: sudo reggie_se -D PhysAddr -r -a 0xCFF8E064 -B 8 Note: Most other values in the BIOS table are 32 bit wide so you have to change the 8 in 32. And change the address of course |
| Forum: OSx86 10.6 (Snow Leopard) · Post Preview: #1336817 · Replies: 441 · Views: 38,608 |
| Posted on: Nov 20 2009, 03:14 PM | |
|
InsanelyMac Legend ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 740 Joined: 7-January 09 Member No.: 351,169 |
Okey, here are two files: Ioreg -l with firewire card and ioreg -l without firewire card. Yes, I think everything else is working. And you are right, we should try to fix the sleep problem first Lines are cut off. Do a lspci -xxxvvv in a terminal window and ZIP/attach it. Tip: Don't use .rtf but .txt next time Hi there, i have a question; i've extracted my dsdt from the latest bios file and there's some info about LPT1, PS2M & PS2K. Can i just delete it or is it necessary for something else Thnx for the help Thijmus Yes, you can remove these, along with UAR1 and all junk used by it. Done. The only thing I have you might not, is all the serial/parallel ports + the floppy drive disabled. Post back if you figure it out, it might help others. Which is a smart thing to do, because this way you free IRQ's! How many of you have ACPI enabled for all SATA ports, instead of just the boot drive? You might want to give this a try, for dedicated OS X machines, since this will reduce your boot time! |
| Forum: Intel SpeedStep · Post Preview: #1336784 · Replies: 603 · Views: 41,277 |
| Posted on: Nov 20 2009, 01:55 PM | |
|
InsanelyMac Legend ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 740 Joined: 7-January 09 Member No.: 351,169 |
Someone asked me why I use this: CODE Multiply (0x01FF, Arg0, URE2) Instead of the old: CODE If (LEqual (Arg0, Zero)) { Store (Zero, URE2) // Clear all bits. } If (LEqual (Arg0, One)) { Store (0x01FF, URE2) // Set bits 0-8 } And: CODE Alias (\_PR.CPU1._CST, _CST) instead of: CODE Method (_CST, 0, NotSerialized) { Return (\_PR.CPU1._CST) } Which I think was a good question and thus here goes: It isn't only shorter in terms of lines numbers, but also saves a few extra bytes in your dsdt.aml due to the fact that my code is highly optimized. The first one reduced the AML code by 15 bytes, and the latter by 4. And that for each time this was used! And thus I thought this to be worth the trouble. |
| Forum: OSx86 10.6 (Snow Leopard) · Post Preview: #1336739 · Replies: 441 · Views: 38,608 |
| Posted on: Nov 20 2009, 09:56 AM | |
|
InsanelyMac Legend ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 740 Joined: 7-January 09 Member No.: 351,169 |
Here's the first part of the Asus BIOS table: CODE OperationRegion (BIOS, SystemMemory, 0xCFF8E064, 0xFF) Field (BIOS, ByteAcc, NoLock, Preserve) { SS1, 1, // 0xCFF8E064 : bit 0 – Sleep State 1 ( 0x1) SS2, 1, // 0xCFF8E064 : bit 1 – Sleep State 2 ( 0x0) SS3, 1, // 0xCFF8E064 : bit 2 – Sleep State 3 ( 0x1) SS4, 1, // 0xCFF8E064 : bit 3 – Sleep State 4 ( 0x1) Offset (0x01), IOST, 16, // 0xCFF8E065 : IO STate ( 0x1400) TOPM, 32, // 0xCFF8E067 : TOP of Memory (0xD0000000) ROMS, 32, // 0xCFF8E06B : ROM Space (0xFFF00000) MG1B, 32, // 0xCFF8E06F : Memory Gap 1 Base Address (0x000D0000) MG1L, 32, // 0xCFF8E073 : Length of Gap 1 (0x00010000) MG2B, 32, // 0xCFF8E077 : Memory Gap 2 Base Address (0xD0000000) MG2L, 32, This is my own, personal interpretation. Not officially documented information, and thus I might be wrong. We also no longer include TOPM and ROMS (wasn't used anyway) but IOST will also be gone in DSDT V3.2 The P5K Pro BIOS has one sleep setting, and the table below shows you how the sleep bits change, when you select one of the options: 1001 S1 (POS) only 1100 S3 only 1101 Auto Next up: The IOST one, which is the only one I am uncertain about. Note: I used reggie_se to get the values (for my board and BIOS settings). |
| Forum: OSx86 10.6 (Snow Leopard) · Post Preview: #1336562 · Replies: 441 · Views: 38,608 |
| Posted on: Nov 20 2009, 09:53 AM | |
|
InsanelyMac Legend ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 740 Joined: 7-January 09 Member No.: 351,169 |
Yes, sleep works without firewire card. Right. Now enter: ioreg -l in a terminal window and attached the output, as a compressed (ZIP) file here. And everything else but sleep works? Nice. Should I try some other card or modify my dsdt.dsl file? Also my firewire card is not listed in system profiler PCI-cards section, is it problem? Thanks for the help! You're welcome. And the omission of the card in System Profiler, well that is just a cosmetic glitch (need ioreg output for fix). Let's address that sleep problem first shall we. Or at least give it a try |
| Forum: Intel SpeedStep · Post Preview: #1336558 · Replies: 603 · Views: 41,277 |
| Posted on: Nov 20 2009, 06:01 AM | |
|
InsanelyMac Legend ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 740 Joined: 7-January 09 Member No.: 351,169 |
Hi all, Let's try some good old logic:I need help because my Hackintosh (retail 10.6.2) won't sleep. I have tried almost everything. Hackintosh goes to sleep but wake-up immediately. I attach also my dsdt.dsl file if someone could check it. I think my problem is related somehow to firewire pci-card.... 1) Remove the card. 2) Test sleep. 3) Result: Sleep either works now, or still fails. Update: It seems MasterChief has gotten shutdown See here. Someone see if they can adapt it to their Gigabyte boards. I'm away from my right right now. Note it appears the value ASSB seems to be the key. At least from what I can tell. This may not have a direct correlation to any Gigabyte board. I'll look into it myself later tonight. That's because Asus boards have functional BIOS features, which appears to be missing, or failing on (some) GB boards. |
| Forum: Intel SpeedStep · Post Preview: #1336449 · Replies: 603 · Views: 41,277 |
| Posted on: Nov 20 2009, 05:41 AM | |
|
InsanelyMac Legend ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 740 Joined: 7-January 09 Member No.: 351,169 |
It works fine for me too, thanks Done, sorry It is good to hear that other people are using it, and that it works for them... thank you for the confirmation and the newly added signature, but it is taking up quite a bit of vertical space. You may want to change it into 3-5 long lines. I mean think about the poor notebook users. Not to mention that I have to concentrate real hard before I can even read the green parts. Pretty distracting right now. Or are my old eyes losing it? |
| Forum: OSx86 10.6 (Snow Leopard) · Post Preview: #1336446 · Replies: 441 · Views: 38,608 |
| Posted on: Nov 19 2009, 04:16 PM | |
|
InsanelyMac Legend ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 740 Joined: 7-January 09 Member No.: 351,169 |
That debug card comes with my board(P6T6 WS Revolution) is a TPM module. About that codes AA/AC they come from _PIC method on original DSDT Something is weird with P8XH method hmn... I wouldn't be surprised when the Asus card simply reads PICM, especially since Method _PIC returns nothing, and this is Asus. You could add the one used in your Asus DSTD – which I presume is PICM – and see if that helps. |
| Forum: OSx86 10.6 (Snow Leopard) · Post Preview: #1335885 · Replies: 441 · Views: 38,608 |
| Posted on: Nov 19 2009, 03:37 PM | |
|
InsanelyMac Legend ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 740 Joined: 7-January 09 Member No.: 351,169 |
![]() According to my debug card, when shutdown stalls I get code: 05=S5 Nice. Might this be a post test card? Link? Edit: Never mind. Found it. This is the Asus test card supplied by Asus with certain motherboards. Tried to implement SPTS/SWAK on Apple DSDT but leads to not working shutdown If I delete from SPTS Store (One, PS1S) and Store (One, PS1E) shutdown is fine... That means that Apple is doing things differently. Let me check this after my reply. Another weird stuff with original DSDT my debug card say that OS is in APIC mode(code AA) with Apple DSDT is in PIC mode(code AC) The card might be looking for something under a different name. There's nothing in the manual about it? They don't have a support forum for this card? I mean maybe you can ask it there. I noticed that Restart after power fail feature is gone in 10.6.2, is the same on you guys or is just on me(removed something from DSDT)? Not if you are talking about the: "Start up after a power failure" because that is still part of my Energy Saver panel. BTW Master Chief you didn't said what is with that server feature on power options. Oh right. Sorry. I copied SystemVersion.plist to ServerVersion.plist because I tried to install OS X 10.6 in VMware Fusion (which is what I use for EFI hacking) which works now with a simple script. Edit: The upgrade to 10.6.2 completed without a hitch. Another swell Apple upgrade. |
| Forum: OSx86 10.6 (Snow Leopard) · Post Preview: #1335862 · Replies: 441 · Views: 38,608 |
| Posted on: Nov 19 2009, 03:11 PM | |
|
InsanelyMac Legend ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 740 Joined: 7-January 09 Member No.: 351,169 |
So you don't necessarily think this is the "key" to shutdown/restart? I'd like to try and simulate the patch on my Gigabyte board. I've posted your patch on the Gigabyte board so we'll see what happens. Unfortunately I'm art work right now because I think this is a big milestone. I want to give it a whirl. This isn't related to any kind of restart fix. Unfortunately not. Shutdown only. And most likely for Asus boards only. BTW: I am still waiting for someone with a GB board to test the Asus BIOS table address, minus one, to see if that points to Sleep State bits, so please give it a go for me |
| Forum: OSx86 10.6 (Snow Leopard) · Post Preview: #1335840 · Replies: 441 · Views: 38,608 |
| Posted on: Nov 19 2009, 02:59 PM | |
|
InsanelyMac Legend ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 740 Joined: 7-January 09 Member No.: 351,169 |
OK, these work fine for me. Like the instantaneous shutdown! CODE ... see post #404 And this works for me fine also. Got the Too few arguments error on compile so changed the "Method (SPTS" to 0 from 1 and hey presto good to go & working sweet. Thanks. Great. Now you are in par for the next set of changes |
| Forum: OSx86 10.6 (Snow Leopard) · Post Preview: #1335828 · Replies: 441 · Views: 38,608 |
| Posted on: Nov 19 2009, 01:02 PM | |
|
InsanelyMac Legend ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 740 Joined: 7-January 09 Member No.: 351,169 |
Thanks Chief shutdown behaving now with those modifications. Ok. Time for another update. Try this: CODE Method (_PTS, 1, NotSerialized) // Prepare To Sleep. { \_SB.PCI0.LPCB.SPTS (Arg0) Store (Arg0, ASSB) If (LGreaterEqual (Arg0, 0x05)) { Store (One, \_SB.PCI0.LPCB.AG3E) } \_SB.PCI0.SBUS.DISB () } Next would be the one I am using. And while you're at it, remove this: CODE Method (RRIO, 4, NotSerialized) { Store ("RRIO", Debug) } Method (RDMA, 3, NotSerialized) { Store ("rDMA", Debug) } And change this: CODE Method (^BN00, 0, NotSerialized) // Can't we just return Zero? { Return (Zero) } Method (_BBN, 0, NotSerialized) // PCI bus number setup by the BIOS. { Return (BN00 ()) } into: CODE Method (_BBN, 0, NotSerialized) // PCI bus number setup by the BIOS. { Return (Zero) } These will also be gone in DSDT V3.2 along with 13K unused code. MC, have you figured out what ASSB is referencing? I remember a bit back you were trying to figure it out. It seems this is the key. Unfortunately not no (Asus is tight lip about it) but I do know that it is doing the same as what I did with: CODE Store (Sleep_State, SLPT) Store (One, SLPE) The other parts are most likely related to either fan control, power management, or both. |
| Forum: OSx86 10.6 (Snow Leopard) · Post Preview: #1335716 · Replies: 441 · Views: 38,608 |
| Posted on: Nov 19 2009, 10:08 AM | |
|
InsanelyMac Legend ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 740 Joined: 7-January 09 Member No.: 351,169 |
I am going to CODE Method (_PTS, 1, NotSerialized) // Prepare To Sleep. { If (LNotEqual (Arg0, 0x05)) { \_SB.PCI0.LPCB.SPTS () Store (Arg0, ASSB) } } Edit: Just did a quick sleep - wake - sleep - wake - shutdown - boot, without any problem whatsoever. And another one. Both sleep and shutdown work. Time to add back the missing pieces And this is it: CODE Method (_PTS, 1, NotSerialized) // Prepare To Sleep. { If (LEqual (Arg0, 0x05)) // S5 (shutdown). { Store (One, \_SB.PCI0.LPCB.AG3E) // Return to S5 after power failure. } Else // S1, S3 or S4 (S2 is not supported). { \_SB.PCI0.SBUS.DISB () \_SB.PCI0.LPCB.SPTS () Store (Arg0, ASSB) } } Additional comments in DSDT V3.2 p.s. This is funny; The Asus support site has an option for MAC OS. I wonder what their response is when you select it... not-supported I guess |
| Forum: OSx86 10.6 (Snow Leopard) · Post Preview: #1335585 · Replies: 441 · Views: 38,608 |
| Posted on: Nov 19 2009, 05:47 AM | |
|
InsanelyMac Legend ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 740 Joined: 7-January 09 Member No.: 351,169 |
The shutdown changes didn't work here: with the new _PTS it seemed to shutdown completely, then it restarted on its own I played a bit with that method and I found out that like this it works perfectly (shutdown and sleep are both faster, as you said): CODE Method (_PTS, 1, NotSerialized) // Prepare To Sleep. { Store (And (Arg0, 0x0F), Local0) \_SB.PCI0.LPCB.SPTS () Store (Arg0, ASSB) If (LEqual (Arg0, 0x05)) { Store (One, \_SB.PCI0.LPCB.AG3E) Store (0x07, SLPT) Store (One, SLPE) } \_SB.PCI0.SBUS.DISB () } Here's my current dsdt That doesn't look right. You first trigger sleep state (S3) and then change that into shutdown. Which is what we used to do, simply because Asus did it this way, but I like to change it... because it makes no sense. And I don't seem to need it anymore. This is what I use now: CODE Method (_PTS, 1, NotSerialized) // Prepare To Sleep. { If (LEqual (Arg0, 0x05)) { Store (One, \_SB.PCI0.LPCB.AG3E) Store (0x07, SLPT) Store (One, SLPE) } Else { Store (And (Arg0, 0x0F), Local0) \_SB.PCI0.LPCB.SPTS () Store (Arg0, ASSB) } \_SB.PCI0.SBUS.DISB () } I verified the Energy Settings setting: "Start up automatically after power failure" which has no influence on the sleep/shutdown process here – both on and off work. I also verified the BIOS settings under APM Configuration where I have everything set to [Disabled] except for the first one, being: "Restore on AC Power Loss" which I can set to (from the top of my head): Power On, Power Off or Last State. Either one works. p.s. Please add a signature (My Control) because I don't know what hardware you are using, only after downloading the attached DSDT, which makes things a little more complicated for me. Thank you! Post 366 - shutdown. Initially did 366,367, 368 all in one go then had to back track to try to find where problem. Shutdown goes to power off then auto reboots, works more like a restart than a shutdown for me. On P5K VM shutdown has not been / is not an issue, current problem area is restart partially solved by your kext as after a sleep no restart. It obviously something to do with the state change were detecting in lspci before/after sleep. I'll have a quick look at your DSDT, right now... The attached DSDT includes most of the patches, but little changes to Method _PTS. Please give it a try.
Attached File(s)
|
| Forum: OSx86 10.6 (Snow Leopard) · Post Preview: #1335443 · Replies: 441 · Views: 38,608 |
New Replies No New Replies Hot Topic (New) Hot Topic (No New) |
Poll (New) Poll (No New) Locked Topic Moved Topic |
|
Lo-Fi Version | Time is now: 22nd November 2009 - 02:21 AM |