PDA

View Full Version : UHCI/EHCI Built in with dsdt fix


wwbsox
08-31-2009, 12:29 AM
First the issues, than the fixes.

My usb1 (UHCI) and usb2 (EHCI) ports were showing up in system profiler as "expansion slots". This was causing 2 main problems for me. First, I had to use the power button to wake the computer from sleep. Second, if I had a usb drive plugged in when the computer went to sleep, I would get a "device removal error" when the computer woke from sleep.

I combined two different dsdt fixes I found. One fixed UHCI but not EHCI, the other did just the opposite.

I combined the dsdt fix for UHCI found here: http://www.insanelymac.com/forum/index.php?showtopic=168014&st=20

and the EHCI fix found here:
http://www.insanelymac.com/forum/index.php?showtopic=155345&start=0&p=1240686&#entry1240686

Now I can wake the computer from sleep by clicking my USB mouse and I dont have to eject USB drives before putting the computer to sleep. I also do not get the "controller will be unloaded across sleep" error when booting in verbose mode.

This works great on ep-35-ds3p, but should work for most ich9 and ich10 gigabyte boards, since device id's were changed to match ich10.

Also, pay attention to the usb device with address 0x001D0003, for me it was US31, dont edit this device.

omargoa
08-31-2009, 01:32 AM
your links doesn't work ...

wwbsox
08-31-2009, 01:52 AM
Thanks. Links got truncated somehow. fixed now.

Ianxxx
08-31-2009, 02:06 AM
Yeh these are pretty cool fixes, no patching of kexts anymore

wwbsox
08-31-2009, 03:11 AM
Apex gets credit for the EHCI fix.

On another note. The SATA fix in the first link works great even for ich9 board like mine. AHCI now shows up as ich10 in system profiler instead of "unknown ahci controller". Dont have an SATA section in my dsdt, but IDE1 had the same address so I added that method there and it works.

Snow
08-31-2009, 07:18 AM
Hi m8,

I have the same issue. Sometimes my keyboard and mouse would not work. I say would because those chameleon commands (USB related) do seem to fix that.
I still have the expansion slot issue though and have to wake up from sleep with case power button.
I added the content in dsl but get these errors when trying to compile (I already have the DTGP section in my dsdt)

/Users/Snow/Desktop/dsdt.dsl 4032: DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
Error 4067 - Object is not accessible from this scope ^ (DTGP)

/Users/Snow/Desktop/dsdt.dsl 4066: DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
Error 4067 - Object is not accessible from this scope ^ (DTGP)

/Users/Snow/Desktop/dsdt.dsl 4100: DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
Error 4067 - Object is not accessible from this scope ^ (DTGP)

/Users/Snow/Desktop/dsdt.dsl 4134: DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
Error 4067 - Object is not accessible from this scope ^ (DTGP)

/Users/Snow/Desktop/dsdt.dsl 4188: DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
Error 4067 - Object is not accessible from this scope ^ (DTGP)

/Users/Snow/Desktop/dsdt.dsl 4222: DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
Error 4067 - Object is not accessible from this scope ^ (DTGP)

/Users/Snow/Desktop/dsdt.dsl 4267: DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
Error 4067 - Object is not accessible from this scope ^ (DTGP)

/Users/Snow/Desktop/dsdt.dsl 4306: DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
Error 4067 - Object is not accessible from this scope ^ (DTGP)

Any ideas? Thx

Ianxxx
08-31-2009, 09:25 AM
Hi m8,

I have the same issue. Sometimes my keyboard and mouse would not work. I say would because those chameleon commands (USB related) do seem to fix that.
I still have the expansion slot issue though and have to wake up from sleep with case power button.
I added the content in dsl but get these errors when trying to compile (I already have the DTGP section in my dsdt)

/Users/Snow/Desktop/dsdt.dsl 4032: DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
Error 4067 - Object is not accessible from this scope ^ (DTGP)

/Users/Snow/Desktop/dsdt.dsl 4066: DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
Error 4067 - Object is not accessible from this scope ^ (DTGP)

/Users/Snow/Desktop/dsdt.dsl 4100: DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
Error 4067 - Object is not accessible from this scope ^ (DTGP)

/Users/Snow/Desktop/dsdt.dsl 4134: DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
Error 4067 - Object is not accessible from this scope ^ (DTGP)

/Users/Snow/Desktop/dsdt.dsl 4188: DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
Error 4067 - Object is not accessible from this scope ^ (DTGP)

/Users/Snow/Desktop/dsdt.dsl 4222: DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
Error 4067 - Object is not accessible from this scope ^ (DTGP)

/Users/Snow/Desktop/dsdt.dsl 4267: DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
Error 4067 - Object is not accessible from this scope ^ (DTGP)

/Users/Snow/Desktop/dsdt.dsl 4306: DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
Error 4067 - Object is not accessible from this scope ^ (DTGP)

Any ideas? Thx


Hi I have attached my dsdt its for ga-p35-ds3l, if you search DTGP you should find the code your missing

Snow
08-31-2009, 09:32 AM
Will take a peek, thx a lot m8 ;)

Snow
08-31-2009, 09:47 AM
Tried it (I had DTGP in the wrong section) but now this error pops up.

bloody dsdt!

Intel ACPI Component Architecture
ASL Optimizing Compiler version 20090521 [Jun 22 2009]
Copyright (C) 2000 - 2009 Intel Corporation
Supports ACPI Specification Revision 3.0a

/Users/Snow/Desktop/dsdt.dsl 203: OSTP ()
Error 4063 - Object does not exist ^ (OSTP)

/Users/Snow/Desktop/dsdt.dsl 254: }Method Notify (\_SB.PWRB, 0x02)
Error 4095 - ^ syntax error, unexpected PARSEOP_METHOD, expecting $end


Elapsed time for major events


Miscellaneous compile statistics

456 : Parse nodes
82 : Namespace searches
47 : Named objects
4 : Control methods
10 : Memory Allocations
188850 : Total allocated memory
0 : Constant subtrees folded

ASL Input: /Users/Snow/Desktop/dsdt.dsl - 5646 lines, 189478 bytes, 96 keywords
Compilation complete. 2 Errors, 0 Warnings, 0 Remarks, 0 Optimizations

wwbsox
08-31-2009, 10:49 AM
@snow

The last error is just a syntax error. Just need to "cross your t's and dot your i's"
Probably a missing comma, or spacing.

Compare with mine.

Snow
08-31-2009, 12:13 PM
Alright bro, I'll check it out, thx.

Snow
08-31-2009, 12:27 PM
Alright, found the culprit, I had a wrong } set somewhere so fixed.

Thx for infol all and I'll try the aml on the next reboot.

Oh and do I still need this code in my com.apple.boot.plist with this fix?

<key>EHCIacquire</key>
<string>Yes</string>
<key>UHCIreset</key>
<string>Yes</string>
<key>USBBusFix</key>
<string>Yes</string>

aed0101@hotmail
08-31-2009, 02:25 PM
Thank you! Worked like a charm (though I got 98 syntax errors - will sort them out later).

Offtopic: I use USB Bluetooth Dongle to connect my wireless mighty mouse. The option to enable Bluetooth mouse to wake up computer is grayed out as Bluetooth is detected as external device and not built-in. Maybe somebody knows if there is any chance to set it as built-in via DSDT or efi-string as we do with Ethernet.

wwbsox
08-31-2009, 05:02 PM
@snow. I dont have those in my com.apple.boot.plist and everything is working.

Snow
08-31-2009, 06:31 PM
rgr that bro, thx again ;)

Snow
08-31-2009, 08:14 PM
Alright, it worked for my high speed bus EHCI (shows up as built in) but didn't work for normal USB UHCI (still shows as expansion)

Update: Well, actually, only the bus where my keyboard and mouse are listed shows as expansion but all the other busses (including high speed) show as built-in.

Any ideas?

Snow
08-31-2009, 08:41 PM
1 USB bus shows up as expansion so I reckon code for this bus is missing in my dsdt.

Seems the device id code needs to be 37 so shall I just add another bus, like USB6 or?

USB-bus:

Locatie hostcontroller: Uitbreidingssleuf
Besturingsbestand hostcontroller: AppleUSBUHCI
PCI-apparaatcode: 0x2937
PCI-revisiecode: 0x0002
PCI-fabrikantcode: 0x8086
Busnummer: 0x1a

compared to

USB-bus:

Locatie hostcontroller: Ingebouwde USB-interface
Besturingsbestand hostcontroller: AppleUSBUHCI
PCI-apparaatcode: 0x3a36
PCI-revisiecode: 0x0002
PCI-fabrikantcode: 0x8086
Busnummer: 0x5d

Thx

Update: Got it! Name ADR strings were wrong for USB3 and US31. All ok now. Going to remove the code from boot.plist.

Locatie hostcontroller: Ingebouwde USB-interface
Besturingsbestand hostcontroller: AppleUSBUHCI
PCI-apparaatcode: 0x3a37
PCI-revisiecode: 0x0002
PCI-fabrikantcode: 0x8086
Busnummer: 0x1a

I can finally use my sleep button on keyboard now to wake up (just like in windows)

Thx for guiding all!

mormegil
08-31-2009, 10:04 PM
Gelukwens!

I've tried everything. Just can't get my system to even sleep let alone waking up :(

wwbsox
09-01-2009, 02:40 AM
@mormegil

Are you using the sleepenabler.kext for snow leopard? Also required would be nullcpupowermanagement.kext as sleep enabler will conflict with powermanagement. I don't have the board you are using but I have read a lot of post from people that do, seems to be pretty good board for osx86.

Snow
09-01-2009, 07:25 AM
Mormegil, double check if you have all the right kexts loaded (SL compability)

fakesmc
IOAHCIBlockStorageInjector
NullPowerManagement
OpenHaltRestart
PlatformUUID
SleepEnabler

proper dsdt!
kextutility built proper mkexts?

Ianxxx
09-01-2009, 09:05 AM
[QUOTE=Snow;32957]



Update: Got it! Name ADR strings were wrong for USB3 and US31. All ok now. Going to remove the code from boot.plist.

/QUOTE]

I forgot about that mine were the wrong way round too. Did you use windows Patcher02Beta5 to create your dsdt.aml?

Snow
09-01-2009, 09:24 AM
Long time ago but I think so yeah.

mormegil
09-01-2009, 11:28 AM
@mormegil

Are you using the sleepenabler.kext for snow leopard? Also required would be nullcpupowermanagement.kext as sleep enabler will conflict with powermanagement. I don't have the board you are using but I have read a lot of post from people that do, seems to be pretty good board for osx86.

Finally nailed it! It was my JMicron controller set to IDE instead AHCI :mad:

Yeah this board has been very compatible with OSX. It applies to all P45 boards I think. SATA and ethernet works out of the box. Sound works great by patching AppleHDA. Now I have suspend-to-ram :D

wwbsox
09-01-2009, 11:36 AM
I have used ACPI Patcher in windows because it allows you to do more fixes. The names (USB3), (US31) are arbitrary, whats important is the address.

As I said in the original post:"pay attention to the usb device with address 0x001D0003, for me it was US31, dont edit this device."

On another note, Has anyone seen an IOATA kexts yet that works in 64bit? Would really like to disable AHCI mode in the bios.

kDawg
09-01-2009, 12:17 PM
First the issues, than the fixes.

My usb1 (UHCI) and usb2 (EHCI) ports were showing up in system profiler as "expansion slots". This was causing 2 main problems for me. First, I had to use the power button to wake the computer from sleep. Second, if I had a usb drive plugged in when the computer went to sleep, I would get a "device removal error" when the computer woke from sleep.

I combined two different dsdt fixes I found. One fixed UHCI but not EHCI, the other did just the opposite.

I combined the dsdt fix for UHCI found here: http://www.insanelymac.com/forum/index.php?showtopic=168014&st=20

and the EHCI fix found here:
http://www.insanelymac.com/forum/index.php?showtopic=155345&start=0&p=1240686&#entry1240686

Now I can wake the computer from sleep by clicking my USB mouse and I dont have to eject USB drives before putting the computer to sleep. I also do not get the "controller will be unloaded across sleep" error when booting in verbose mode.

This works great on ep-35-ds3p, but should work for most ich9 and ich10 gigabyte boards, since device id's were changed to match ich10.

Also, pay attention to the usb device with address 0x001D0003, for me it was US31, dont edit this device.

Can I ask you to post your whole DSDT? I'm interested in how you're able to wake your computer via USB mouse.

Ianxxx
09-01-2009, 12:22 PM
Can I ask you to post your whole DSDT? I'm interested in how you're able to wake your computer via USB mouse.

You can find mine on page 1 of this thread, sleep from keyboard or mouse working

kDawg
09-01-2009, 02:39 PM
You can find mine on page 1 of this thread, sleep from keyboard or mouse working

That looks to just be the DSDT part for the USB/EHCI only. I have the same motherboard and I'm unable to wake from mouse or keyboard. There's either something different in your DSDT or in your BIOS settings that I'm missing. I'm wondering what it is.

wwbsox
09-02-2009, 12:05 AM
Update: added my DSDT.aml to original post. Has the USB section edited, and the IDE1 section for the ICH10 device id's.

kramer2k
09-02-2009, 01:48 AM
So, I'm also having the issue of not being able to wake via USB keyboard or mouse. All of my USB are listed as USB, with 1 or 2 being listed as High-Speed USB.

I'm not exactly sure how to go about enabling it...

Also, under Serial-ATA, my actual devices show, but it's blank where it should list the chipset (I.e. ICH10, 9, etc...) Is this a DSDT issue or kext issue?

please note that I'm not a noobie doobie (I've been installing it since deadmoo)...but I'm at a loss regarding this...

Please find my DSDT attached...

Specs
P31-DS3L (ICH7)
ALC 888
e7200 @3.42

Snow
09-02-2009, 09:48 AM
Alright wwbsox, thx for the update on IDE1, I've got the devices listed as ICH10 now.
Could you tell me where the section for GFX is in your dsdt or tell me how to inject my own 8800GT code?
I'm not keen on using those patchers so I prefer the manual method.

Thx in advance lad.

Pre/Post ICH10 injection:

PRE
http://a.imagehost.org/0195/Schermafbeelding_2009-09-02_om_10_45_07.png (http://a.imagehost.org/view/0195/Schermafbeelding_2009-09-02_om_10_45_07)

POST
http://a.imagehost.org/0687/Schermafbeelding_2009-09-02_om_10_45_23.png (http://a.imagehost.org/view/0687/Schermafbeelding_2009-09-02_om_10_45_23)

kDawg
09-02-2009, 10:04 AM
Alright wwbsox, thx for the update on IDE1, I've got the devices listed as ICH10 now.
Could you tell me where the section for GFX is in your dsdt or tell me how to inject my own 8800GT code?
I'm not keen on using those patchers so I prefer the manual method.

Thx in advance lad.



That's very specific to each card. Depends on how much video ram your card has, what kind of ports you have and more importantly which slot it's in. I've commented what you need to change. Google gfxutil and you should find out how to find your PCI locations.

Here is a patch you need to place within the Device (PCI0) section. This is for a 512 8800GT with two DVI ports)


Device (PEGP)
{
Name (_ADR, 0x00010000) //<-- This is the location on the PCI bus (important)
Method (_STA, 0, NotSerialized)
{
Return (0x0F)
}

Method (_PRW, 0, NotSerialized)
{
Return (Package (0x02)
{
0x09,
0x05
})
}

Device (GFX1)
{
Name (_ADR, Zero)
Name (_SUN, 0x0B)
Method (_PRW, 0, NotSerialized)
{
Return (Package (0x02)
{
0x0B,
0x04
})
}

Method (_DSM, 4, NotSerialized)
{
Store (Package (0x16)
{
"@0,compatible",
Buffer (0x0B)
{
"NVDA,NVMac"
},

"@0,device_type",
Buffer (0x08)
{
"display"
},

"@0,name",
Buffer (0x0F)
{
"NVDA,Display-A"
},

"@1,compatible",
Buffer (0x0B)
{
"NVDA,NVMac"
},

"@1,device_type",
Buffer (0x08)
{
"display"
},

"@1,name",
Buffer (0x0F)
{
"NVDA,Display-B"
},

"NVCAP", //<-- This denotes the ports in the card (not as important)
Buffer (0x18)
{
/* 0000 */ 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00,
/* 0008 */ 0x0C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07,
/* 0010 */ 0x00, 0x00, 0x00, 0x00
},

"VRAM,totalsize", //<-- How much RAM you have (important)
Buffer (0x04)
{
0x00, 0x00, 0x00, 0x20
},

"device_type",
Buffer (0x0D)
{
"NVDA,GeForce"
},

"model",
Buffer (0x17)
{
"NVIDIA Geforce 8800 GT"
},

"rom-revision",
Buffer (0x06)
{
"3173a"
}
}, Local0)
DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
Return (Local0)
}
}
}

wwbsox
09-02-2009, 11:44 AM
@snow Of course you know it is card specific, but I am posting my DSDT with the graphics included. Look for the PEGP section under PCI0. This will give you something to compare it to.

And it looks like kDawgs last post includes the section for the same card you have.

Anyways, I used ACPI patcher in windows. Under graphics, select your card and memory amount. For NVCAP I selected dual DVI (dont use anything else). For location PCI 0 check the "use dsdt gfx" box and the PEGP box.

Works for me, although I can only use .aml's created by ACPI patcher. Iaslme can decompile and recompile them fine. But if I try to use a .dsl created by ACPI patcher, Iaslme cannot compile it b/c of too many errors? Hmmm....

Good Luck.

Snow
09-02-2009, 11:48 AM
Alright guys, will try kDawgs code first since I have the same card, 8800GT, 512MB and dual DVI's in pci-x slot 0 I think (the first)

If this doesnt work out I"ll prob use ACPI patcher, thing is though, this patcher starts all over and I don't want it to mess with the code I already have.

I'll post back with update!

Thx

Update: where would I find the pci location (ADR) in IORegistryExplorer tool?

Update 2: DevicePath = PciRoot(0x1)/Pci(0x1,0x0)/Pci(0x0,0x0) is what GFXutil reports to me. does that mean ADR string should be:

0x101000000

wwbsox
09-02-2009, 01:17 PM
@snow

I didnt want to start all over with my DSDT either. So I generated a dsdt with the graphics and copied the entire PEGP section to my current DSDT with the other fixes.

Also, I'm pretty sure my card showed up in ioreg as a PCI address 1, but when I selected this address in ACPI patcher, it never added it to the dsdt. Had to choose PCI 0.

Snow
09-02-2009, 01:36 PM
Done!

I pasted the exact same code as kDawgs since my ADR was 0x00010000 and not what I thought before.

http://a.imagehost.org/0013/Post_fix.png (http://a.imagehost.org/view/0013/Post_fix)

Thx again all for the help!

Snow
09-02-2009, 01:41 PM
I think I have only 1 issue remaining (until I get me one of those fancy mac keyboards)

I've made my own keyboard layout wit ukelele a long time ago and it matches my belgian point keyboard perfectly but now and then osX decides to load the default keyboard (which is belgian but apple layout)
I've tried removing the bundle from S/L/Keyboard Layouts to block the default load but I think I ran into issues. I don't know if its directly related to the removal or to my dsdt patching etc but I lost my keyboard alltogether.
Now with putting the bundle back in all is fine.

I guess I have to start modding with Quickeys :/

Voyn1x
09-02-2009, 01:45 PM
Thanks for posting this fix! (Y)

I played with my DSDT for weeks trying to solve this problem. Up to now i've been using Slices modified IOUSBFamily as a work around.

wwbsox
09-02-2009, 02:09 PM
Thanks for posting this fix! (Y)

I played with my DSDT for weeks trying to solve this problem. Up to now i've been using Slices modified IOUSBFamily as a work around.
Glad it worked for you. Credit goes to the original posters. All I did was consolidate the 2 fixes and put it where you dont have to read through a ton of posts to find it.

EnzoFX
09-02-2009, 09:26 PM
Snow, I also used ACPI Patcher to enable my 9800gt through dsdt, works just fine. Just gotta make sure you get the right settings.


I am wondering if anyone's using this on a P35-DS3L
My usb ports also show up as "Expansion Slot", and only 2 are "High-Speed"
I cannot wake from sleep with kb/mouse. Most importantly however, sometimes my keyboard isn't detected @ startup. In BIOS, I do have kb usb support (Not mouse), which I always wondered if it was related.
EDIT: just checked if I got the "Device Removal" error with a usb flash drive, yup, sure do.



I'd like to try this (Never have edited manually). Why is one device with that specific address left alone?
Attached is my dsdt.dsl usb portion of my file, In case someone wants to speed up my process =P

wwbsox
09-03-2009, 01:07 AM
@EnzoFX

Here you go.

EnzoFX
09-03-2009, 01:10 AM
Thanks a lot wwbsox!

Edit:
So far so good =D
I can wake on kb/mouse now, I'm ecstatic. Now.. onto my sleep on idle issue. heh.

wwbsox
09-03-2009, 01:57 AM
What issue are you having with sleep on idle?

EnzoFX
09-03-2009, 03:59 AM
Well I'm afraid this did not fix my usb keyboard not being detected @ startup, every other restart. =(
If I disable usb kb support in BIOS it won't work in Chameleon selection screen right? haha so no point in trying that =/

My issue with sleep on idle was this:
I had the DVD burner causing sleep on idle to fail, as detailed here:http://www.insanelymac.com/forum/index.php?showtopic=171929&st=0&gopid=1238915&#entry1238915 (The last point is mine, which gives more detail)
Before it was a usb drive that was causing it, but I did a fresh reinstall, and I have yet to plug in any DVD drive to the system (install from HDD to HDD), and it fails to go to sleep when it is scheduled to. I believe I hear the drive make a noise at that time, so I think the system does try, but something isn't letting it.

and another issue: The screensaver doesn't come up =P No matter what I set the different time intervals to, screensaver, power off display, sleep computer, etc. I use this to work around the init issue my graphics card has. To go into specifics: This only happens when the display is powered off, and I'm still @ the computer, so I immediately move the mouse to bring the screen back on. Again, this only happens when I do it quickly, the monitor doesn't even finish going into standy, before I move the mouse. It is only in this condition, that once the screen comes back on, I get this crazy, pure static like image. It eventually initializes properly and I see my desktop again after a few seconds. Sometimes several. This card has always done that with me. Whether I enabled it through EFI strings or DSDT. If anyone has any input on what I can do to fix this, that'd be very much appreciated, but for now I use the screensaver as a middle-step, so then that becomes the moment where I move the mouse to get the desktop back haha =P. Then if I really am AFK, then it can turn off display, sleep, whatever.

Ianxxx
09-03-2009, 09:54 AM
I think I have only 1 issue remaining (until I get me one of those fancy mac keyboards)

I've made my own keyboard layout wit ukelele a long time ago and it matches my belgian point keyboard perfectly but now and then osX decides to load the default keyboard (which is belgian but apple layout)
I've tried removing the bundle from S/L/Keyboard Layouts to block the default load but I think I ran into issues. I don't know if its directly related to the removal or to my dsdt patching etc but I lost my keyboard alltogether.
Now with putting the bundle back in all is fine.

I guess I have to start modding with Quickeys :/

The only fix I found for this was to put keyboard layout in before first boot and pick your keyboard when first setting up.

Snow
09-03-2009, 11:13 AM
And that sticked? dang, odd solution but hey if it works. I'm not going to reinstall though hehe.

btw, I just noticed I have my 8800GT listed in sys prof as PCI card. Everything works and I have input kDawgs code exactly as listed but without checking the proper PCI bus so at PCI0.

This is still ok right?

Thx

http://a.imagehost.org/0301/PCI.png (http://a.imagehost.org/view/0301/PCI)

Ianxxx
09-03-2009, 09:07 PM
Can you re-run set up without installing I'm sure theres a way

EnzoFX
09-03-2009, 09:08 PM
http://kttns.org/ztux
Bus: PCIe Is the only diff I see...

Anyone recommend a fix for my usb-kb not being detected every now and then on startup?
I'm on a GA-P35-DS3L, Cham2. GFX, Ether, this USB-fix, Legacy HDA, through DSDT.

Edit: I just noticed that I had to re-plug in my Printer to print something =/. What is causing this? My mouse has never been affected...

Should I try this strings in Cham's boot.plist?
<key>EHCIacquire</key>
<string>Yes</string>
<key>UHCIreset</key>
<string>Yes</string>
<key>USBBusFix</key>
<string>Yes</string>

I'm not exactly sure if they'd conflict with this combined fix in this thread. Anyone?

wwbsox
09-04-2009, 11:01 AM
@EnzoFX

I have messaged a few others with your mother board and they are not experiencing the same issues. If you'd like, post your dsdt and I will take a look at it. See if I can figure it out.

wwbsox
09-04-2009, 11:05 AM
@Everyone with Gigabyte boards

Anybody have working p-states/c-states using dsdt?

I am thinking of starting a dsdt speed step thread for gigabyte boards..... unless anyone knows of a good one already.

I have not modified my dsdt for speed step...yet. But CPU-I shows it is working somewhat. The multiplier and frequency are throttling up and down, but the voltage remains at the highest p-state (kinda defeats the purpose).

Snow
09-04-2009, 01:46 PM
CPU-I?

How to check speedstep?

wwbsox
09-04-2009, 03:28 PM
CPU-i is a utility I downloaded from applelife.ru (russian). I have used that in conjunction with CPUTEST w/ 4 instances running (prime95 like for Mac) to compare idle vs. fully loaded cpu readings. Another nice feature about CPU-i is it will list all of the p-states available for your CPU along with multiplier and voltage combinations for each, mine has six.

Using this information I should be able to add all six p-states to my dsdt. c-state information can be extracted from SSDT's and incorporated into dsdt also. I have found really good info on this including finished DSDT.aml for my processor (Q9550) but they were compiled on an Asus MB, so dsdt is quite different.

I plan on putting the software and some screen shots up this weekend.

Found good threads: http://www.insanelymac.com/forum/index.php?showtopic=177497 and http://www.insanelymac.com/forum/index.php?showtopic=145792 (although I dont believe SSDT loading at boot is needed as these tables can now be included in DSDT directly. I think....

EnzoFX
09-04-2009, 09:53 PM
It would be extremely helpful if you can look at my dsd wwbsox! I was just beginning to think if It all started when I started using dsdt, prob not, but I just don't know what to think ATM.

I checked, and I believe my USB-Keyboard and Printer are affected at the same time, when affected. Maybe it's the BIOS version? Also, more rarely, there are times when my Display Color Profile isn't loaded, Launching Sys Prefs and clicking on Displays forces it to load properly. Maybe my GFX isn't set up properly through DSDT? I suppose I could try other settings in ACPI Patcher.

Can there be a conflict if I disable several things in BIOS, and the dsdt file has them all enabled, essentially? e.g. I disable all legacy ports/controllers.

I am on:
GA-P35-DS3L rev. 2
9800GT enabled with ACPI Patcher, as well as Ether, Sound.
Here is my dsdt.dsl file: http://kttns.org/0zjbl
and I want to verify, that all components/devices seem to work fine under Win7, which I dual boot into a few times.

wwbsox
09-05-2009, 01:58 AM
When you look in system profiler. All your usb ports show as internal? Does the printer and keyboard show up under usb or high speed usb? I believe you stated you already tried disabling "Legacy usb" in the bios, maybe? I've read where that helped on other MB's but havent experienced your problem on the gigabyte p35 boards. I will take a look at your dsdt later tonight.

As far as disabling things in the bios... this will not change your dsdt. The dsdt is built from the full bios ROM, which has all ports/options available wether you have them selected in bios or not. Make sure you have updated your board to the latest available bios though. I have also read that this has fixed many bugs for other users.

If you think your dsdt may be causing the problem, try building one in acpi patcher from your downloaded bios rom file, and compile it with out all the patches and devices added. If you still have the problem, then you know it is something other than dsdt.

Snow
09-05-2009, 07:48 AM
Can you re-run set up without installing I'm sure theres a way

Missed your post m8

I don't think setup assistant will even show my modded keyboard layout because it isnt included in the bundle.
I wish there was a way to extract the dat files in the bundle though so I could actualy mod the default belgian keyboard layout.

@wwbsox, your keyboard and mouse are listed as High Speed USB devices? because on my rig they are not but the printer is.

Thx for the above info btw and good luck with the dsdt patching

Snow
09-05-2009, 07:57 AM
And that sticked? dang, odd solution but hey if it works. I'm not going to reinstall though hehe.

btw, I just noticed I have my 8800GT listed in sys prof as PCI card. Everything works and I have input kDawgs code exactly as listed but without checking the proper PCI bus so at PCI0.

This is still ok right?

Thx

http://a.imagehost.org/0301/PCI.png (http://a.imagehost.org/view/0301/PCI)

I haven't changed anything except remove the dsdt.aml from my root dir and keep it in E/E and the GFX is now listed as PCI-e

http://a.imagehost.org/0748/Nvidia.png (http://a.imagehost.org/view/0748/Nvidia)

I'm not complaining though, just an odd observation, has a mind on its own apparently.

wwbsox
09-05-2009, 01:56 PM
@Snow

My apple keyboard shows up in system profiler under high speed usb bus, my rocketfish apple mouse shows up just under usb. Also, I found a page that has the DSDT entry for your Q6600 to enable speedstep with all the p-states enabled. Gotta find the link again, I will get that to you later. I just need to find it for my Q9550.


Here is CPU-i.

Snow
09-05-2009, 02:41 PM
Hmm, I really should get me one of those fancy apple keyboards. I guess the apple KB is USB2.0 and this Logitech Media KB is still at USB1.1.
Speedstep ey? I'm using VoodooPower in Leo, havent found a proper solution for Snow so that would be very welcome.
Thx a bunch for CPU-i m8, is that kext 64bit compatible btw?

Laters

ps. the above was a stupid mistake I made by checking PCI tab the first time and video tab on the second screenshot :/

Snow
09-05-2009, 03:05 PM
http://img32.imageshack.us/img32/4159/statusvb.png (http://img32.imageshack.us/i/statusvb.png/)

http://img245.imageshack.us/img245/4589/pstates.png (http://img245.imageshack.us/i/pstates.png/)

Temps in Leo are low 30's, especially now with colder climate. I guess it doesn't drop the voltage properly.

wwbsox
09-05-2009, 05:48 PM
I'm having the same problem. The multiplier/ frequency drops but the voltage always stays at the highest p-state.

But there is a way to enter into dsdt, the p-states and c-states available for your cpu. Still researching this but I am going to give it a try.

Snow
09-05-2009, 07:58 PM
Alright, good luck lad, don't break anything ;)

infinitek
09-06-2009, 08:43 AM
Thanx for posting your dsdt wwbsox.... not only did it fix my USB ports allowing me to sleep..
but it also fixed my built-in audio on SL as well.....!!!!

I noticed 2 things i wanted to ask about.
Y did my serial-ATA go from ich9 to JMicron AHCI...??
How do you get rid of sound assertion lines on boot?

Thanx again.........

Snow
09-06-2009, 12:14 PM
JMicron should be a diff path no? nothing to do with other ports. I still have 2 unknown devices which are prob the JMicron.
In Leo they were listed properly but I used a custom JMicron kext.

http://a.imagehost.org/0225/Jmicron.png (http://a.imagehost.org/view/0225/Jmicron)

wwbsox
09-06-2009, 06:55 PM
The ICH9/R (unsupported) didn't change, I just changed the device ID's to those of ICH10 (supported). Just kinda tricking mac OSX into thinking we are running supported hardware.

I have the Jmicron SATA disabled in the bios. Waiting for someone to compile the needed kext for 64bit support. Shouldn't be long as Apple has released SL sources.

As far as the sound assertion errors on boot. I haven't started working on those yet. But I think it is because the layout ID and Pin configs in the DSDT don't match what is in the HDA kext. The kext overrides those values... I think.

Once I finish adding native speedstep (p-states,c-states) to my dsdt, then I will start on the sound.

EnzoFX
09-07-2009, 04:23 AM
When you look in system profiler. All your usb ports show as internal? Does the printer and keyboard show up under usb or high speed usb? I believe you stated you already tried disabling "Legacy usb" in the bios, maybe? I've read where that helped on other MB's but havent experienced your problem on the gigabyte p35 boards. I will take a look at your dsdt later tonight.

As far as disabling things in the bios... this will not change your dsdt. The dsdt is built from the full bios ROM, which has all ports/options available wether you have them selected in bios or not. Make sure you have updated your board to the latest available bios though. I have also read that this has fixed many bugs for other users.

If you think your dsdt may be causing the problem, try building one in acpi patcher from your downloaded bios rom file, and compile it with out all the patches and devices added. If you still have the problem, then you know it is something other than dsdt.

Yeah, after applying the fix in this thread, my usb ports now show up as internal. Also, all my usb devices show up under a regular USB Bus, and not a "High-Speed" Bus, of which I have 2. There are 6 regular "USB Bus"

For BIOS settings, I have all legacy support disabled, except for KB support, because that'd render my usb keyboard useless at the Chameleon prompt, though I haven't tried since going to Cham 2.

I am also running the latest BIOS version, and built the dsdt from it.
I will try out a "clean" dsdt without fixes/patching, and see how that goes. In the meantime, any insight into my DSDT.dsl file would be greatly appreciated.

wwbsox
09-09-2009, 01:46 PM
EnzoFX, have you tried any of the other dsdt's posted in this thread. Lanxxx and some others, have the same board that you are using. I dont have any USB disabled in bios. Just the onboard controller (jmicron) disabled.

EnzoFX
09-13-2009, 09:03 AM
I see a dsdt for an EP35-DS3L, but not P35-DS3L, worth a shot?

The last few restarts have been good, but still no sleep on idle. Could it be because I have no DVD drive connected? I know some drives are causing issues, so what about having none, like I do? haha maybe I'm just hoping for a quick fix.

Edit:
In your guys' experience, if GFX is enabled through DSDT, is it simply a matter of it working or not working? I.e. QE/CI on or off. OR, can it be something where like it looks like QE/CI is on, but can still get graphical glitches that can mean something is wrong with dsdt implementation? I hope this makes sense.
Basically, my issue is that every now and then my display color profile isn't loaded @ login.

wwbsox
09-14-2009, 02:18 PM
Havent had any graphical problems using dsdt for 8800gts. with SL QE/CI no longer shows up in system profiler. EP35/P35 should be very similar, same chipset. EP35 is supposed to be more energy efficient.

As far as sleep on idle. Mine works but.... It takes exactly five minutes after the display goes to sleep before the system sleeps. So if I set it to go to sleep in 1 hour, the display sleeps in an hour. But the computer stays on for an extra five minutes, then goes to sleep. No big deal to me though.

kramer2k
09-14-2009, 02:54 PM
@VWbsox
Are you able to wake from your USB2.0 keyboard? I've got the newest apple kb, which is identified as Highspeed with EHCI, but I'm unable to wake from it. However, my logitech mouse, when plugged directly to a port (as opposed to the KB) will wake my machine.

Waking from my KB is important as I also have a BT mighty mouse, which can't wake it from sleep either.
Thanks

GA-P31-DS3L - e7200 - BFG 8800GT - 10.6.1 retail

Ianxxx
09-14-2009, 04:19 PM
Anyone recommend a fix for my usb-kb not being detected every now and then on startup?
I'm on a GA-P35-DS3L, Cham2. GFX, Ether, this USB-fix, Legacy HDA, through DSDT.


Enzo if your still having this prob, I know it might sound stupid but make sure that your keyboard is plugged in to one of the usb sockets nearest the board, I sometimes have this glitch with my microsoft habu mouse but doesn't happen if I plug it in to one of those two ports "same board as you ga-p35-ds3l rev 2"

wwbsox
09-14-2009, 06:16 PM
No I cant wake from my apple aluminum keyboard. I have a rocketfish apple mouse that wakes the system from sleep. I found a different dsdt setup for the ehci ports that I want to try (as soon as I find it again). If it works I will add it to the original post

Many people have had sucess waking with usb keyboard... if its not an apple keyboard.

sk1nhd33t
09-14-2009, 08:14 PM
@VWbsox
Are you able to wake from your USB2.0 keyboard? I've got the newest apple kb, which is identified as Highspeed with EHCI, but I'm unable to wake from it. However, my logitech mouse, when plugged directly to a port (as opposed to the KB) will wake my machine.

Waking from my KB is important as I also have a BT mighty mouse, which can't wake it from sleep either.
Thanks

GA-P31-DS3L - e7200 - BFG 8800GT - 10.6.1 retail

No I cant wake from my apple aluminum keyboard. I have a rocketfish apple mouse that wakes the system from sleep. I found a different dsdt setup for the ehci ports that I want to try (as soon as I find it again). If it works I will add it to the original post

Many people have had sucess waking with usb keyboard... if its not an apple keyboard.

same here on my ES2L mobo, i have an aluminum wired KB w/o numpad and i cant wake my machine from sleep too, same goes to my wireless BT mighty mouse.. not an issue though since i barely use sleep but if anyone has a fix i would be the first one to try it :-d anyone tried the aluminum kb w/ numpad?

ow i also have an Apple wired KB (white one) and it wakes my machine fine, beats me why it works haha..

EnzoFX
09-14-2009, 11:42 PM
Thanks lanxxx,
The last several restarts have been good, no screw ups, so next time it happens I will definitely try it out. My mouse is always the one that's connected closest to the MB. Now that I think about it, the Printer is on the second set of USB ports, which ALSO is on the further end, away from the MB. But then, where do I move that one to? haha there are only 2 ports closest to the MB =P

Anyways, is it possible to force a device to run at High-Speed? My mouse, a Logitech G9, isn't supported under OS X. I have worked well around this, but it is supposed to run at high-speed, but just doesn't under OS X. If I could fix this, it might make it feel as smooth as it does on Windows.

Snow
09-15-2009, 07:25 AM
No I cant wake from my apple aluminum keyboard. I have a rocketfish apple mouse that wakes the system from sleep. I found a different dsdt setup for the ehci ports that I want to try (as soon as I find it again). If it works I will add it to the original post

Many people have had sucess waking with usb keyboard... if its not an apple keyboard.

Yeah no issues here whatsoever, both devices (Logitech Media Keyboard and Creative Mouse 5500) wake the PC. I can't even make this happen in Windows :/ go figure.

wwbsox
09-16-2009, 01:09 PM
Well I tried a few different dsdt usb configurations. Still no wake from sleep by apple keyboard. On my ep45-ds3l board this worked OOB, no dsdt modification. Must because that board is ICH10.

kDawg
09-16-2009, 01:46 PM
Have you posted your most current DSDT file somewhere? Let me take a look. Both my MOBOs woke on keyboard or mouse a GA-EP35-DS4 and GA-EP45-UD3P.

Update:
I grabbed your DSDT from an earlier post. Try the attached DSDT. I modified the EHCI devices. Also you should have your USB mouse and keyboard connected directly to the motherboard and not any kind of hub? If you're using Slice's IOUSBFamily.kext I would try reverting back to the vanilla. Let me know if this helps.

676

Update #2:
Retract the last post. It seems you might have tried the approach I detail above.

wwbsox
09-16-2009, 06:14 PM
@kDawg

On your DS4.... Are you using an Apple Aluminum Keybaord?

kDawg
09-16-2009, 09:27 PM
@kDawg

On your DS4.... Are you using an Apple Aluminum Keybaord?

It's an older extended Apple USB keyboard not an aluminum.

If you use the DSDT above do you get your EHCI devices showing up as ICH10 built-in?

xwin78
09-17-2009, 09:24 PM
@wwbsox--will you post your most current DSDT. I am having issues with the SATA/USB fix not compiling & I have the same hardware set up except 8800 GT 512 instead of GTS.

Thanks

kDawg
09-17-2009, 11:46 PM
@wwbsox--will you post your most current DSDT. I am having issues with the SATA/USB fix not compiling & I have the same hardware set up except 8800 GT 512 instead of GTS.

Thanks


Take a look at this post:
http://www.infinitemac.com/f84/uhci-ehci-built-in-with-dsdt-fix-t3849/post35037.html

xwin78
09-18-2009, 12:36 AM
kDawg--thanks I saw this post & just wanted to be sure it was the MOST CURRENT DSDT file.

I read the entire thread...there have been so many hacks and revisions.

kDawg
09-18-2009, 10:57 AM
kDawg--thanks I saw this post & just wanted to be sure it was the MOST CURRENT DSDT file.

I read the entire thread...there have been so many hacks and revisions.


I created that DSDT so I know it compiles fine.

twr
09-18-2009, 01:38 PM
hello there !

been working for a while on my dsdt using pieces of code taken here and there, and everything but keyboard/mouse (wired Apple alu. + Razer Diamondback plasma) wake-on-sleep and shutdown menu call from power button (even with the _CID trick ...)

for now, using retail 10.5.8 with boot-think 2.3.18 (modded AppleLPC, fakesmc v.2, CPUPMdisabler, R1000 & vanilla IONet + IOPCI and sleepenabler in D/L/E.mkext) ; EFI strings for TM / en0 builtin fix and video (GeForce 8800GS + 384 Mo DDR3 SDRAM, PEG) on a GA G31M-ES2L rev. 1.1.

I know it could look kind of rude, but kDawg, would you be kind enough to take a look at my .dsl (compiles fine, no error nor warning) and tell me what might be wrong ? :confused:

thx by advance.

kDawg
09-18-2009, 03:01 PM
hello there !

been working for a while on my dsdt using pieces of code taken here and there, and everything but keyboard/mouse (wired Apple alu. + Razer Diamondback plasma) wake-on-sleep and shutdown menu call from power button (even with the _CID trick ...)

for now, using retail 10.5.8 with boot-think 2.3.18 (modded AppleLPC, fakesmc v.2, CPUPMdisabler, R1000 & vanilla IONet + IOPCI and sleepenabler in D/L/E.mkext) ; EFI strings for TM / en0 builtin fix and video (GeForce 8800GS + 384 Mo DDR3 SDRAM, PEG) on a GA G31M-ES2L rev. 1.1.

I know it could look kind of rude, but kDawg, would you be kind enough to take a look at my .dsl (compiles fine, no error nor warning) and tell me what might be wrong ? :confused:

thx by advance.

I'm not sure what you're saying is the problem. Do you have a sleep/wake problem?

twr
09-18-2009, 06:53 PM
1°my usb keyboard & mouse aren't able to wake up OSX from S3 mode (whereas they do it in Windows) ;

2°I can put OSX into S3 mode with the power button if this option is activated in pref. sys., but when not, it does nothing ; it should make the shutdown menu show up.

I'm assuming it might be a DSDT issue.

edit: so sorry, I forgot some words ... I wanted to say : everything is working as it should, but USB wake-on-sleep & shutdown menu from power button.

wanna help me anyway ?

xwin78
09-19-2009, 12:47 AM
I created that DSDT so I know it compiles fine.

Sorry--it was not an issue of compiling ---I wanted to make sure I got all the hacks for ethernet/usb etc.

I added some stuff and after 17 revisions I now have a fully functional SL machine w/ only 1 modded kext (thanks SNOW) for 5.1 Surround Sound!
that is more vanilla than my MacBook Pro.

Thanks to kDawg----wwbsox---SNOW and all you others!

kDawg
09-19-2009, 01:25 PM
Sorry--it was not an issue of compiling ---I wanted to make sure I got all the hacks for ethernet/usb etc.

I added some stuff and after 17 revisions I now have a fully functional SL machine w/ only 1 modded kext (thanks SNOW) for 5.1 Surround Sound!
that is more vanilla than my MacBook Pro.

Thanks to kDawg----wwbsox---SNOW and all you others!


That's great. Would you mind sharing your setup, i.e. what's in your extras folder?

xwin78
09-19-2009, 07:16 PM
I'd be glad to:

Gigabyte EP35-DS3P Rev.2.1 w/F6c BIOS
Xeon E3110 (e8400)
EVGA 8800 GT 512

Chameleon 2 RC3
Extras folder includes: com.apple.Boot.plist, dsdt.alm, SMBIOS.plist
fakesmc.kext
IOAHCIBlockStorageInjector.kext
NullCPUPowerManagement.kext
OpenHaltRestart.kext
PlatformUUID.kext
SleepEnabler.kext

I am still working to get sleep enabled & tryign to reduce boot time...LONG compared to Leo

Thanks for your help

Jedric
09-19-2009, 08:44 PM
Need some help. EHCI is now working. I followed the guide to replace dsdt code for UHCI suddenly im getting this error on compile. I did this over and over and I always get the same error. I put the old code back and compiles ok. There was no reference on the original code that I replaced to this lines so I'm stummped.

Mac-Pro:Tools admin$ ./iasl dsdt.dsl

Intel ACPI Component Architecture
ASL Optimizing Compiler version 20080926 [Oct 4 2008]
Copyright (C) 2000 - 2008 Intel Corporation
Supports ACPI Specification Revision 3.0a

dsdt.dsl 9195: If (SS1)
Error 4095 - ^ syntax error, unexpected PARSEOP_IF

dsdt.dsl 9239: \_SB.PCI0.SBRG.SIOS (Arg0)
Error 4063 - Object does not exist ^ (\_SB.PCI0.SBRG.SIOS)

dsdt.dsl 9240: \_SB.PCI0.SBRG.SPTS (Arg0)
Error 4063 - Object does not exist ^ (\_SB.PCI0.SBRG.SPTS)

dsdt.dsl 9241: \_SB.PCI0.NPTS (Arg0)
Error 4063 - Object does not exist ^ (\_SB.PCI0.NPTS)

dsdt.dsl 9242: \_SB.PCI0.GFX0.OPTS (Arg0)
Error 4063 - Object does not exist ^ (\_SB.PCI0.GFX0.OPTS)

dsdt.dsl 9248: \_SB.PCI0.SBRG.SIOW (Arg0)
Error 4063 - Object does not exist ^ (\_SB.PCI0.SBRG.SIOW)

dsdt.dsl 9249: \_SB.PCI0.SBRG.SWAK (Arg0)
Error 4063 - Object does not exist ^ (\_SB.PCI0.SBRG.SWAK)

dsdt.dsl 9250: \_SB.PCI0.NWAK (Arg0)
Error 4063 - ^ Object does not exist (\_SB.PCI0.NWAK)

dsdt.dsl 9251: \_SB.PCI0.GFX0.OWAK (Arg0)
Error 4063 - Object does not exist ^ (\_SB.PCI0.GFX0.OWAK)

ASL Input: dsdt.dsl - 9256 lines, 295803 bytes, 4252 keywords
Compilation complete. 9 Errors, 0 Warnings, 0 Remarks, 0 Optimizations


Original DSDT code that is being replaced.

Device (USB0)
{
Name (_ADR, 0x001D0000)
OperationRegion (BAR0, PCI_Config, 0xC4, One)
Field (BAR0, ByteAcc, NoLock, Preserve)
{
USBW, 2,
Offset (0x01)
}

Method (_S3D, 0, NotSerialized)
{
If (LOr (LEqual (OSFL (), One), LEqual (OSFL (), 0x02)))
{
Return (0x02)
}
Else
{
Return (0x03)
}
}

Method (_PSW, 1, NotSerialized)
{
If (Arg0)
{
Store (0x03, USBW)
}
Else
{
Store (Zero, USBW)
}
}

Method (_PRW, 0, NotSerialized)
{
Return (GPRW (0x03, 0x04))
}
}

Device (USB1)
{
Name (_ADR, 0x001D0001)
OperationRegion (BAR0, PCI_Config, 0xC4, One)
Field (BAR0, ByteAcc, NoLock, Preserve)
{
USBW, 2,
Offset (0x01)
}

Method (_S3D, 0, NotSerialized)
{
If (LOr (LEqual (OSFL (), One), LEqual (OSFL (), 0x02)))
{
Return (0x02)
}
Else
{
Return (0x03)
}
}

Method (_PSW, 1, NotSerialized)
{
If (Arg0)
{
Store (0x03, USBW)
}
Else
{
Store (Zero, USBW)
}
}

Method (_PRW, 0, NotSerialized)
{
Return (GPRW (0x04, 0x04))
}
}

Device (USB2)
{
Name (_ADR, 0x001D0002)
OperationRegion (BAR0, PCI_Config, 0xC4, One)
Field (BAR0, ByteAcc, NoLock, Preserve)
{
USBW, 2,
Offset (0x01)
}

Method (_S3D, 0, NotSerialized)
{
If (LOr (LEqual (OSFL (), One), LEqual (OSFL (), 0x02)))
{
Return (0x02)
}
Else
{
Return (0x03)
}
}

Method (_PSW, 1, NotSerialized)
{
If (Arg0)
{
Store (0x03, USBW)
}
Else
{
Store (Zero, USBW)
}
}

Method (_PRW, 0, NotSerialized)
{
Return (GPRW (0x0C, 0x04))
}
}

Device (USB3)
{
Name (_ADR, 0x001D0003)
OperationRegion (BAR0, PCI_Config, 0xC4, One)
Field (BAR0, ByteAcc, NoLock, Preserve)
{
USBW, 2,
Offset (0x01)
}

Method (_S3D, 0, NotSerialized)
{
If (LOr (LEqual (OSFL (), One), LEqual (OSFL (), 0x02)))
{
Return (0x02)
}
Else
{
Return (0x03)
}
}

Method (_PSW, 1, NotSerialized)
{
If (Arg0)
{
Store (0x03, USBW)
}
Else
{
Store (Zero, USBW)
}
}

Method (_PRW, 0, NotSerialized)
{
Return (GPRW (0x0E, 0x04))
}
}

Device (USB4)
{
Name (_ADR, 0x001A0000)
OperationRegion (BAR0, PCI_Config, 0xC4, One)
Field (BAR0, ByteAcc, NoLock, Preserve)
{
USBW, 2,
Offset (0x01)
}

Method (_S3D, 0, NotSerialized)
{
If (LOr (LEqual (OSFL (), One), LEqual (OSFL (), 0x02)))
{
Return (0x02)
}
Else
{
Return (0x03)
}
}

Method (_PSW, 1, NotSerialized)
{
If (Arg0)
{
Store (0x03, USBW)
}
Else
{
Store (Zero, USBW)
}
}

Method (_PRW, 0, NotSerialized)
{
Return (GPRW (0x0E, 0x04))
}
}

Device (USB5)
{
Name (_ADR, 0x001A0001)
OperationRegion (BAR0, PCI_Config, 0xC4, One)
Field (BAR0, ByteAcc, NoLock, Preserve)
{
USBW, 2,
Offset (0x01)
}

Method (_S3D, 0, NotSerialized)
{
If (LOr (LEqual (OSFL (), One), LEqual (OSFL (), 0x02)))
{
Return (0x02)
}
Else
{
Return (0x03)
}
}

Method (_PSW, 1, NotSerialized)
{
If (Arg0)
{
Store (0x03, USBW)
}
Else
{
Store (Zero, USBW)
}
}

Method (_PRW, 0, NotSerialized)
{
Return (GPRW (0x05, 0x04))
}
}

Device (USB6)
{
Name (_ADR, 0x001A0002)
OperationRegion (BAR0, PCI_Config, 0xC4, One)
Field (BAR0, ByteAcc, NoLock, Preserve)
{
USBW, 2,
Offset (0x01)
}

Method (_S3D, 0, NotSerialized)
{
If (LOr (LEqual (OSFL (), One), LEqual (OSFL (), 0x02)))
{
Return (0x02)
}
Else
{
Return (0x03)
}
}

Method (_PSW, 1, NotSerialized)
{
If (Arg0)
{
Store (0x03, USBW)
}
Else
{
Store (Zero, USBW)
}
}

Method (_PRW, 0, NotSerialized)
{
Return (GPRW (0x20, 0x04))
}
}
}

wwbsox
09-20-2009, 12:45 AM
If you could...post the entire dsdt.dsl before any changes. I will try to patch the dsdt and recompile. The errors list different line numbers to look at, but without a complete dsdt I cant track those down.

Also, what hardware are you using, this info may help people with the same setup offer help.

xwin78
09-20-2009, 02:30 AM
@ wwbsox

could you post your DSDT file---I would like to compare it to mine for order etc.

thanks

Jedric
09-20-2009, 03:04 AM
Here you go folks.

Jedric
09-20-2009, 05:57 AM
Apparently my EHCI was being detected built-in even without the DSDT. So its just the UHCI that im really having problems with being detected as Expansion slot.

AppleUSBUHCI[0x6e76000]::start unable to initialize UIM

twr
09-20-2009, 09:24 AM
nobody wanna help me ? pleeeease.

ohwhyme
09-21-2009, 12:44 AM
I have a P35-DS3P and I just downloaded your dsdt.aml file and the ethernet works, sound, sata is displayed as ich10 but cant seem to wake up the computer with the keyboard or mouse. My old dsdt showed the removal device when I woke up from sleep and my pci network card worked so now I can just use the internal card :) I have the apple aluminum keyboard as well hehe. The Usb mouse works for waking up which is odd but the keyboard doesnt do anything. Does hibernate work for anyone? Does wake from bluetooth work for anything? I read the only way you can wake from bluetooth is via internal apple or a dlink 120 bluetooth adapter is this true?

kDawg
09-21-2009, 10:31 AM
1°my usb keyboard & mouse aren't able to wake up OSX from S3 mode (whereas they do it in Windows) ;

2°I can put OSX into S3 mode with the power button if this option is activated in pref. sys., but when not, it does nothing ; it should make the shutdown menu show up.

I'm assuming it might be a DSDT issue.

edit: so sorry, I forgot some words ... I wanted to say : everything is working as it should, but USB wake-on-sleep & shutdown menu from power button.

wanna help me anyway ?

#1: You have a ICH7 motherboard? If you've tried the USB/EHCI pathces in the attached DSDT file (http://www.infinitemac.com/f84/uhci-ehci-built-in-with-dsdt-fix-t3849/post35037.html) then you might have to try Slice's IOUSBFamily.kext (http://www.projectosx.com/forum/index.php?showtopic=337). The problem might be that your USB/EHCI port aren't being reported as "built-in". Other than that as long as your keyboard and mouse are attached directly to the back of your motherboard it should work. Try Slices' kext and see if that fixes it. If so there may be something else going on. Perhaps a BIOS setting.

I believe your #2 problem is normal behavior for a OSX86 machine. When I push my power button my sleep menu does not show up. It will however go to sleep.

This patch had at one point worked for me. It doesn't anymore.
http://www.infinitemac.com/f84/various-dsdt-mods-t1960/post21188.html

k

wwbsox
09-21-2009, 11:30 AM
@xwin78

My DSDT is in the original post.

Also, does anybody have an old USB 1 hub? I'm working on getting the Apple aluminum keyboard to wake the computer from sleep.

My Rocketfish apple mouse will wake the computer as it is detected as USB 1 (UHCI), my keyboard is detected as High Speed USB (EHCI). My theory is that if the keyboard was plugged into an old USB hub and not detected as high speed.... It might work then. Unfortunately I dont have an old hub to test.

osxfr33k
09-21-2009, 06:22 PM
I have the Asus Maximus Formula and the GA-EP35-DS$ very similar to the posts here.

I used DSDTSE and all the fixes are in place. DTGP, HPET and RTC. I am trying to figure out exactly where the graphics section go. Here is the one I tried to fix, look in the section DEVICE (PCI0). Its very obvious where I started the the code. I could not move it over to the left and align everything.

Do I need to start the code right under DEVICE (PCI0)? I started the code right between DEVICE (PCI0) and Name (_HID, EisaId ("PNP0A08")). I have a feeling I have placed it incorrectly or something?

Is there an easy way in DSDTSE to insert the code generated into the main editor and have it automatically go to the correct section and insert correctly?

File Attached

osxfr33k
09-21-2009, 06:28 PM
Sorry the file did not attach the first time before I clicked Submit. I see there was a Submit below where the attached window was so I had to post this file in a reply. Sorry about that. Any help on formatting this correctly would be greatly appreciated!!

sk1nhd33t
09-21-2009, 06:35 PM
@wwbsox

hopefully we can find a fix for our aluminum keyboard waking from sleep, on my ES2L mobo it's the only thing that's missing since automatic sleep is now working thanks to PleaseSleep :)

BTW are you using the one with num pad or without?

twr
09-21-2009, 06:52 PM
#1: You have a ICH7 motherboard? If you've tried the USB/EHCI pathces in the attached DSDT file (http://www.infinitemac.com/f84/uhci-ehci-built-in-with-dsdt-fix-t3849/post35037.html) then you might have to try Slice's IOUSBFamily.kext (http://www.projectosx.com/forum/index.php?showtopic=337). The problem might be that your USB/EHCI port aren't being reported as "built-in". Other than that as long as your keyboard and mouse are attached directly to the back of your motherboard it should work. Try Slices' kext and see if that fixes it. If so there may be something else going on. Perhaps a BIOS setting.

I believe your #2 problem is normal behavior for a OSX86 machine. When I push my power button my sleep menu does not show up. It will however go to sleep.

This patch had at one point worked for me. It doesn't anymore.
http://www.infinitemac.com/f84/various-dsdt-mods-t1960/post21188.html

k

gonna check my EHCI/UHCI DSDT.dsl editing ...

my mobo is a G31M-ES2L : it looks as if I'm not the only one facing its USB/sleep issues !

my BIOS settings are OK (S3 + USB wake from S3 in advanced options) : if the DSDT trick doesn't make it, I'm gonna try the Slices' .kext.

thx for your help !

sk1nhd33t
09-21-2009, 07:08 PM
hello there !

been working for a while on my dsdt using pieces of code taken here and there, and everything but keyboard/mouse (wired Apple alu. + Razer Diamondback plasma) wake-on-sleep and shutdown menu call from power button (even with the _CID trick ...)

for now, using retail 10.5.8 with boot-think 2.3.18 (modded AppleLPC, fakesmc v.2, CPUPMdisabler, R1000 & vanilla IONet + IOPCI and sleepenabler in D/L/E.mkext) ; EFI strings for TM / en0 builtin fix and video (GeForce 8800GS + 384 Mo DDR3 SDRAM, PEG) on a GA G31M-ES2L rev. 1.1.



it wont work, tried a few dsdt patch on leo and snow and still the KB wont wake my machine from sleep.. we have the same mobo and kb except that for the mouse im using wireless mighty mouse. I can wake from sleep using a keyboard if i use my old wired apple keyboard (plastic w/ white clear keys).

for the PWRB dsdt hack, same goes here. my machine just sleeps but it's not showing the shutdown menu :( .. not a biggie though, im much more interested in waking from sleep using a Kb instead of my power button.

wwbsox
09-21-2009, 11:33 PM
@osxfr33k if you could post your entire dsdt it would be much easier to fix.

@sk1nhd33t I am using the extended keyboard (with number pad)

EnzoFX
09-22-2009, 12:42 AM
If your still using IOAHCIBlockStorageInjector and/or AHCIPortInjector, try the SATA Fix, then you can omit those 2 kexts.

I also want to add that with this fix, I can wake from sleep with usb kb+mouse. I am using an old MS Keyboard, and a Logitech G9.

My power button can only sleep the system with the setting ticked in sys prefs. This is after the pwrb dsdt fix. Otherwise, with the option disabled, it does nothing.

My snow leopard is running beautifully. I have but one issue, that is switching between spaces, it is laggy!. I don't think this is on my side, because every other thing is incredibly smooth, smoother than Leopard, and this animation in Leopard worked well. Am I correct in assuming this much?

I think a few real mac users are experiencing this, and there is one "fix" that involves messing with QE, and I'm not sure I'm ready to do that. Some reported it went away eventually, other say it's only when booting in 64bit, which alludes to the issue residing on apple's drivers? I dunno... Right now, I'm just trying to ignore it...

wwbsox
09-22-2009, 12:54 AM
Alright.... Still working on wake from apple keyboard issue. But I think we are the right track with the USB1 theory. It is because the keyboard is detected as usb2 that it will not work.

In my bios, under integrated peripherals, I can disable USB2 controller. With this disabled the apple alum. keyboard wakes the system from sleep every time.

Not a real fix, especially if you are using external USB drives (mine are eSATA). Another problem is that only 2 of the 8 rear USB ports on the board work with USB2 disabled.

But I do believe that if someone tried the keyboard plugged into a USB1 hub, that it might work... as far as waking system from sleep.

All this leads me to believe that the EHCI portion of the DSDT could be changed to resolve this. I have tried 4 or 5 different EHCI "fixes" and none have worked. But the answer is out there somewhere... I'll keep looking.

ohwhyme
09-22-2009, 01:59 AM
does that mean that I can turn off that option and 2 of the ports will be usb 1.1 and the rest will be 2.0? That would work fine for me :p.

osxfr33k
09-22-2009, 02:06 AM
wwbsox here ya go. The DSDT.dsl is the one that works I would say 100% except for the graphics not being inserted. I used DSDTSE to create the DSDT.dsl. The dropdown had separate fixes for DTGP, HPET and RTC etc and it seems that they must have gotten put into place or maybe not? I am not sure if powermanagement is working but I have sleep/awake/restart/shutdown is flawless. USB no problems.

Graphics is 7300GT 256mb, which I have changed a few things as you will see in the dsdt-graphics.dsl file. Also will be putting in a 9800 GT 512MB one day to

I would like to incorporate that into the DSDT.dsl and remove the EFI string from the com.apple.boot.plist if its possible. The Marvell Lan's work Great!! I do see kexts for the marvel in my Extra/extensions so I would like to have that ready made in the DSDT so I don't have to load them unless its not being used and its already fixed in the DSDT file?

I am unsure if the CMOS fix was done but I don't suffer any changes in my Bios? I am in Snow 10.6.1 using an Asus Maximus Formula X38 chipset with the latest Bios. I also have the GA-EP35-DS4 gigabyte that I willbe working on next after I solve the remaining minor details on this ASus Board.

I am attaching now. Hope you can help and greatly appreciated to. dsdt.dsl's generated by DSDTSE.

CAn you let me know exactly where the Graphics-dsdt.dsl script should be placed or maybe place it for me so I can see. I think I shoul dhave maybe put it further down the Device (PCI0) script or not? I got scripting erros when I merged it between the Device (PCI0) and Name (_HID, EisaId ("PNP0A08")).

Should it be placed somewhere else?

Thanks

EDITED a Few Minutes later.

It does not look like I have the RTC, CMOS nor PWRB fix? I assumed it was put into place with DSDTSE. Now I wonder if HPET and DTGP fixes are in place? If not its weird how well the DSDT is working so far except a major crash when I launch Chess is OSX. I verfied with other utils etc that acceleration is working fine.

wwbsox
09-22-2009, 10:55 AM
@osxfr33k

Not all MB need the CMOS reset fix for Snow (Your Gigabyte will though)

I looked at it real quick. Method DTGP is in your DSDT, but i dont think think the placement of the graphics section looks correct. So lets get that fixed so you can remove the string from your boot.Plist.

I downloaded the latest bios rom for your board from Asus. I am going to generate a DSDT with ACPI Patcher in windows with all the fixes and graphics included.

Using that... I can compare the graphics sections and fix your DSDT. I will also upload the newly generated DSDT for you to try (after work).

wwbsox
09-22-2009, 11:07 AM
@ohwhyme

No.... Unfortunately on my board, when I disable USB2 Controller in the bios, only 2 of the rear usb ports work (USB1) and no USB2 at all. I didn't test it much, just moved the mouse from port to port. The mouse worked in only the 2 bottom ports on the board. Didn't test the 2 front usb ports. And of course the 2 USB ports on the keyboard work.

USB2 is not port specific (that would be great), its device specific. No matter what USB port you use if you plug in a USB2 device, it will register as such. Same for USB1.

The problem is... trying to get the keyboard registered as USB1. This will fix wake from sleep issue.

Jedric
09-22-2009, 02:04 PM
If you could...post the entire dsdt.dsl before any changes. I will try to patch the dsdt and recompile. The errors list different line numbers to look at, but without a complete dsdt I cant track those down.

Also, what hardware are you using, this info may help people with the same setup offer help.

wwbsox did you get a chance to look at my dsdt, pertaining to the errors I was getting when replacing the USB0-USB6?

Thanks

osxfr33k
09-22-2009, 06:45 PM
wwbsox, If you do that I would feel more comfortable to donate. I am the kind of person that if someone can do you a favor you should return the favor as well. Please PM you paypal address. I have to check my bios make sure its the latest one. I am sure it is from december2008/jan 2009.

That seems to be a very compatible board with osx86.

Could you send me one with graphics and without. Reason is because it seems chameleon is handling my 7300GT well. Dunno about when I install my 9800 GT 512 mb card? Will the dsdt have to be extracted again with a different Graphics card as long as the code for it is not in the dsdt?

Could I have the source or .dsl file with it to so I can compare it to a couple I have already.

Not sure about the Dual Marvel Lan but most users have to have a kext for it in the extra/extensions.

The new version of DSDTSE seems to automatically put in the three fixes RTC, DTGP and HPET even though they are in the drop down hack menu?

I wish there aw a tutorial on where to actually place the hacks in DSDTSE?

I get a kernel panic when I launch Chess and only Chess. I have checked Acceleration with the usual ways with no panics.


I have BIOS Version 1302 back in December 2008 is when that was released. The DSDT.aml is the one extracted from the Linux Ubuntu Live CD. The DSDT.dsl-working_but-possibly-not-all-fixes.zip shoudl be the one I already attached for you. The log.txt.zip I think I already attached from my prior thread but here it is again just in case

Thanks again


EDITED a few hours later:


I did not think about this but let me also send to you the DSDT.aml created in Ubnuntu 9.04 Live CD because that DSDT.dsl I sent you was created on a nearly working Asus Maximus Formula in Snow. So I am not sure if it is extracting some of the exsiting DSDT already loaded from the /extra folder or not? I am also attaching my error log file again about the graphics and really important my ioreg dump from leopard. Just in case you need them.

EnzoFX
09-23-2009, 12:47 AM
If you get your 9800gt working perfectly in Snow LMK your method!

I got it enabled through DSDT and for some reason, switching between spaces is noticeably choppy.

I also have an initialization issue/display sleep issue. It only arises when: The display is about to sleep and before the monitor even finishes going into standby mode, quickly move the mouse to wake it up, and I get this grey static image for a few seconds or more.
So only in this instant does it happen, maybe with Chameleon's vga rom injection this could be fixed? I should look into that.

wwbsox
09-23-2009, 01:21 AM
@Jedric

I added the fixes for usb0-usb6. I did not change the EHCI area as you stated that was working for you. It compiled with no errors. There were a few warning... related to section in your DSDT that has something to do with vcore voltage settings, but this did not prevent it from compiling. Attached is the .dsl and compiled .aml. Give them a try. If you compare the usb sections you will notice the changes. Good luck.

wwbsox
09-23-2009, 01:49 AM
@osxfr33k

I compiled a dsdt using the latest bios rom for your board. Had some overflow error while compiling it. Might be a thing with the Asus board?? But the graphics section was added.

I am attaching the graphics section of the dsdt in a text format. Also, I am including the .dsl generated by ACPI patcher in windows (for reference) so that you can see exactly where this portion belongs in the PCI0 section. Hope this works for you.

Jedric
09-23-2009, 02:23 AM
@Jedric

I added the fixes for usb0-usb6. I did not change the EHCI area as you stated that was working for you. It compiled with no errors. There were a few warning... related to section in your DSDT that has something to do with vcore voltage settings, but this did not prevent it from compiling. Attached is the .dsl and compiled .aml. Give them a try. If you compare the usb sections you will notice the changes. Good luck.

BIG THANKS wwbsox. Works great :)

sylvester328
09-23-2009, 02:46 AM
@ohwhyme

The problem is... trying to get the keyboard registered as USB1. This will fix wake from sleep issue.

I think even if you manage to do that, it is not really a solution. The Apple aluminium keyboard is a USB2 device because it is in fact a USB hub with two USB ports at both end. Will making it a USB1 device crapple the transfer speed of those ports? If so, I'll rather connect my mighty mouse (USB1 device) to a separate port on the motherboard and click on the mouse to wake up my hac.

wwbsox
09-23-2009, 03:27 AM
@sylvester328

Yes, that would reduce the usb ports on the keyboard to USB1 also. Not sure... but I think those ports are usb1 anyways. The reason I say this is that when I plug a USB2 device into them, I get a message that the device needs more power than the port can provide, SL automatically ejects the device after that. Hmmm?

Yet, I have many request however from individuals that need the wake from keyboard function enabled on an apple aluminum kb. This is only one solution.

As I have stated before. I believe there is a way to patch the EHCI section of the dsdt to enable this on a high speed usb port. Just havent found it yet.

My keyboard wakes the system just fine on a EP45-DS3L with no patching at all. Not so on the EP35-DS3P.

osxfr33k
09-23-2009, 04:48 AM
wwbsox Thanks so much. Couple quick questions. I inserted the audio part where you have it but I get an error?

This stuff here was right after PCI0 but now I noticed its at the end of the graphics script and the number in "Name (_HID, EisaId ("PNP0A03"))
Name (_ADR, Zero)
Method (^BN00, 0, NotSerialized)"

which was PNP0A08 is now PNP0A03. if I change it back to 8 I get an error so I left it alone. SO what happened to this section below? LIke I said I see it at the end of the graphics script now with a "3" instead of 8?

Name (_HID, EisaId ("PNP0A08"))
Name (_ADR, Zero)
Method (^BN00, 0, NotSerialized)
{

I even compiled your dsdt and OSX stops at the 4096 cluster and io something.

Here is the log.

wwbsox
09-23-2009, 11:59 AM
@osxfr33k

First, keep your audio where it was. ACPI Patcher only inserts audio for alc888 and 889a codecs. Which your board doesn't have. I only generated it to see the graphics info.

Next, as far as the exact placement of the graphics info... This is where ACPI patcher put it. I don't know if it makes a difference and I don't have this board to test it.

Next, as far as the 8 or 3 thing. Don't know either. I compiled the DSDT from the bios rom file for your mother board (v1302). I have checked a few others (both Asus and Gigabyte) and all the ones I have worked on have: Name (_HID, EisaId ("PNP0A03")) under this device.

Lastly, I attached the .dsl, I forgot... For some reason, if I create a .dsl with ACPI patcher in windows, it will not compile using iasl in macOSX. Yet, if I create the .aml in windows... it will decompile and recompile fine. So this attachment has the .aml (for reference).

The best method for you is to use the DSDT you have that works. And add/change it with fixes/patches, instead of trying to use this .aml. I have no way of testing this DSDT without having the MB.

Good Luck

osxfr33k
09-23-2009, 04:22 PM
Thanks will work on it some more. Is this extracting/patching etc similar to true hacking where one takes a compiled source code and dissasembles it, then uses a debuger to watch where the program lands it for example when the program asks for a serial then the hacker knows where ithat part of the code is being used? Then they do some trial and error changes and then assemble it and test it?

Are these DSDT.dsl files basically the same thing, starting out originally as source code that was compiled into a BIOS ROM and flashed to the MB.

We are dissasembling what was once source code but now machine code that is dissasembled??

Am I way off base with this analogy?


Because if this is kinda what we are doing no wonder it difficult to get things right.

CyCLoBoT
09-23-2009, 05:56 PM
I am having a problem with waking my computer up using USB keyboard/mouse. I tried to replace the USB fix code in my DSDT file but I started getting KP. Anyone know how I can fix the USB wake issue on a Gigabyte EP45-DQ6 board?

I have attached my current DSDT file that I'm using.

http://www.mediafire.com/?mol3mzimzmz

wwbsox
09-24-2009, 01:45 AM
@cyclobot.

Working on the issue. If you have a USB1 keyboard or mouse, they should wake the system.

I added the usb section to your dsdt, give this a try.

twr
09-24-2009, 09:16 AM
after some new DSDT editings, still no luck on my G31M-ES2L with USB Alu. keyboard : sleeps very well, but won't wake without PWRB. :(

here is my .dsl ...

CyCLoBoT
09-24-2009, 04:31 PM
@cyclobot.

Working on the issue. If you have a USB1 keyboard or mouse, they should wake the system.

I added the usb section to your dsdt, give this a try.

Thanks wwbsox. It does wake up with the mouse without giving any errors.

Update:
Well after I started using your modified DSDT file, I started getting KP. Not sure what's causing it but I had to switch back to my original one.

wwbsox
09-24-2009, 10:47 PM
@cyclobot

That was the dsdt that I got from you. I just edited the usb section. But for the record... You have an EP45-DQ6, is this ICH10 south bridge? I know my EP45-DS3L is and I dont need any DSDT patching. Sleeps ok. Wakes from keyboard fine too.

CyCLoBoT
09-25-2009, 01:00 AM
@cyclobot

That was the dsdt that I got from you. I just edited the usb section. But for the record... You have an EP45-DQ6, is this ICH10 south bridge? I know my EP45-DS3L is and I dont need any DSDT patching. Sleeps ok. Wakes from keyboard fine too.

Yes it is ICH10R. My computer goes to sleep just fine and it does wake up as well but only with the power button.

spanakorizo
09-25-2009, 02:59 PM
hi all 1st post here, i have 2 things to ask :)

1) tried gfx injection of the 8800gt (by dsdt) and i had no luck, maybe the bus location could be wrong? (where do i find it exactly for my card?)

also my pci0 device starts likes this:
Device (PCI0)
{

Name (_HID, EisaId ("PNP0A08"))
could that be a problem? (some users said it should be 03)

2) i was able via dsdt to make the uhci and ahci appear as internal and the sata now shown as intel esb2 AHCI, but my mobo has also Jmircron and the 2 Jmicron devices shown as "Unknown"
any fix for this?

removed a lot of kexts in /e folder , now i only got FakeSMC and, UUID.kext :) (+ionetworking for my net and openhaltrestart)
i'll try now to rebuild mkext without openhaltrestart.kext and see if i still need it

spanakorizo
09-25-2009, 03:38 PM
i was testing sleep after the UHCI/EHCI modifications to the dsdt and after a lot of time i have sleeep WORKING!!:D
wake up via mouse works, no keyboard but my keyboard is ps2 and loaded with hacked kexts (voodoops2+appleacpips2nub)
but i noticed a strange KP...
when pc wakes if i go again to control panel and mess with the power settings i get kernel panic (no debug but the "you neeed to restart your computer..."
how can i see what caused the kp?
anyone else with this issue?

EDIT: KP is because of my 2nd pci audio card M-AUDIO and hacked drivers of envy24HT (known kp)
i switched to the onboard soundcard after wake and there is no kp so everything ok

EnzoFX
09-28-2009, 11:15 AM
For those with an Apple keyboard, what about getting a strictly USB 1.1 hub? and plug it in through there =P

BugsB
10-03-2009, 07:43 AM
I have been trying hard to correct my dsdt.dsl, but to no avail. My USB devices do not mount at all in SnowLeo. In Leo I have been using the EHCI mods from orByte, Slice or AnV.

Sorry, but I have already spent useless hours and could really need some help with this. If somebody kind could look at my dsdt and correct it I would be forever grateful. I would even be willing to contribute something back.

The dsdt.dsl for my Toshiba Satellite P100 is attached.

Hoping .. ,
Bugs

EnzoFX
10-05-2009, 10:17 AM
I got a question about the fact that your supposed to leave device 0x001D0003 alone,
I'm doing this to another board now, and none of it's usb devices have that Name/ID, so then do I not worry about leaving one alone now?

wwbsox
10-06-2009, 04:49 PM
@EnzoFX

I believe that is correct. I have seen other boards without the D3 address. The actual addresses that get modified should be D0,D1,D2,A0,A1 and A2.

Also, The USB1.1 hub should work for anybody that "MUST" wake from aluminum keyboard. But I dont have an old hub to test out.

xwin78
10-07-2009, 06:23 AM
@ wwbsox

thanks for all the help w/ my DSDT file--I just added my GFX info and all is well except I can not sleep, my system just powers down and when I strike the keyboard it boots back up (cold). I have the same setup as your sig---what is your BIOS rev and what are your BIOS settings (specifically your power related BIOS settings)?

Thanks

kDawg
10-07-2009, 02:31 PM
@EnzoFX

I believe that is correct. I have seen other boards without the D3 address. The actual addresses that get modified should be D0,D1,D2,A0,A1 and A2.

Also, The USB1.1 hub should work for anybody that "MUST" wake from aluminum keyboard. But I dont have an old hub to test out.

I actually think this is a mistake on Gigabyte's behalf. The D3 device is a mystery. I have a GA-EP45-UD3P and it doesn't reference the D3 address. I also found an error in the USB device section in the DSDT for my other MOBO a GA-EP35-DS4.

Some companys do a better job generating their DSDT than others. I do happen to think Gigabyte does an OK job.

sylvester328
10-09-2009, 05:50 AM
I actually think this is a mistake on Gigabyte's behalf. The D3 device is a mystery. I have a GA-EP45-UD3P and it doesn't reference the D3 address. I also found an error in the USB device section in the DSDT for my other MOBO a GA-EP35-DS4.

Some companys do a better job generating their DSDT than others. I do happen to think Gigabyte does an OK job.

Just upgrading the BIOS for my EP45-DS3R. In the process of DSDT patching, I noticed that the new BIOS (F11e) no longer has this D3 device. They also fixed a couple of bugs which caused compilation warnings as well.

I really hope someone find a DSDT hack soon to enable the wake from sleep using USB2 keyboard.

kDawg
10-09-2009, 10:37 AM
Just upgrading the BIOS for my EP45-DS3R. In the process of DSDT patching, I noticed that the new BIOS (F11e) no longer has this D3 device. They also fixed a couple of bugs which caused compilation warnings as well.

I really hope someone find a DSDT hack soon to enable the wake from sleep using USB2 keyboard.


Have you posted your DSDT somewhere? If not attach it here so I can take a quick look.

Ianxxx
10-09-2009, 11:20 AM
The dsdt.dsl for my Toshiba Satellite P100 is attached.

Bugs
I don't think it is?

wwbsox
10-11-2009, 01:56 AM
Master Chief over at insanelymac has a dsdt patch that on the p5k boards enables wake from usb2 keyboard, including apple keyboard. I have tried for a few days to get this to work on a gigabyte board to no avail. Still trying though.

If you have a p5k, I suggest you look up him up. He has sooooo many dsdt patches for that board it will make your head spin. Seriously.

sk1nhd33t
10-11-2009, 04:50 AM
Master Chief over at insanelymac has a dsdt patch that on the p5k boards enables wake from usb2 keyboard, including apple keyboard. I have tried for a few days to get this to work on a gigabyte board to no avail. Still trying though.

If you have a p5k, I suggest you look up him up. He has sooooo many dsdt patches for that board it will make your head spin. Seriously.

i wanna take a look at this if you have a direct DL link and try? im also having issues waking from sleep using my aluminum keyboard... or maybe a dsdt.dsl will do if you dont mind :rolleyes:

wwbsox
10-12-2009, 09:07 PM
@sk1nhd33t

http://www.insanelymac.com/forum/index.php?showtopic=188920

The third post from master chief has all his DSDT's.

Again... great if you have a P5K Pro. Still trying to get wake from aluminum keyboard working on the Gigabyte tho.

pandar
10-19-2009, 11:34 PM
Hi

I have an installation of 10.6.1 on the ds3p and would like to borrow your solution. I have an 8600gt however. How would I deal with that? I'm using Chameleon RC3 and Netkas's latest boot file. If you can clue me in a bit, I'd appreciate it.

Thanks

Pandar

wwbsox
10-20-2009, 04:35 PM
@Pandar

If your referring to the USB fix. All you have to do is replace the usb section of your DSDT with what is in the original post.

If you need more detailed instructions just PM me.

Are you currently using DSDT for your graphics? If so... it will not affect that section. If you are wanting to add graphics to the DSDT than you will need to generate that portion of the DSDT, Device (PGEP), under Device (PCI0). I used ACPI patcher to generate that section.

kantok
10-31-2009, 07:53 PM
Thanks wwbsox!
The combination of the methods works perfectly on my EP45-UD3P!
Wake-up issue by mouse and Keyboard has come!!

stayupforever90
11-04-2009, 07:57 PM
Hi Everyone

Thanks to wwbsox to start with, also everyone else who has posted in this thread it has been a lot of help. I am having a problem adding graphics to my DSDT, have searched for PEGP but could not find it. I can find it in registry explorer but have to admit not very good at that bit. Also I think there may be a problem with my SATA fix as SATA shows up as ICH10 AHCI but I cant remove the IOAHCIBlockStorage.kext I am using, if anyone could take a look at my DSDT that would be great. I am using a GA-G33M-DS2R mother board with core2duo E6600 and 4GB ram Nvidia 8800 GTS 512mb graphics running 10.6.1 Retail . Also wondering does anyone's graphics card show up in the PCI cards section of system profiler, and thanks in advance to anyone who takes the time to look at my DSDT :)

atomiX_X
11-05-2009, 03:41 AM
Hi all. I've had a working SL setup for months now but I'm still unable to make my Asus P5E wake from USB. Sleep works fine while waking from power button but not from USB. I got this to work in 10.5 using a modified IOUSBFamily.kext but I haven't been able to find one for SL. I realize that this can be fixed with DSDT edits.

I've tried to simply replace the USB section with the one displayed at the start of this thread as wwbsox and others have said but I get a ridiculous amount of compile errors. I get the same results using DSDTse and iASLMe. I'd really appreciate it if someone could take a look. Please see attached and let me know if more specific info is required.

FYI, DSDT is already patched to fake ICH9 as ICH10 and as a result, all my USB ports show as built in and any mass storage devices connected survive sleep/wake.

wwbsox
11-05-2009, 06:01 PM
@stayupforever90

I have the same video card and the DSDT that I attached to post #32 has the PEGP section that you are looking for.

I cant comment on IOAHCIBlockStorage kext as I dont use it. I believe there is a DSDT fix (by the King) to eliminate that on ProjectOSX site.

And Yes, I believe my video card shows up in the PCI card section of system profiler.

wwbsox
11-05-2009, 06:15 PM
@atomiX_X

With your Asus board you cant just replace the USB section. Hence all the compile errors. But it looks like you added method (_DSM, 4..... to all of your USB devices with the correct device ID's. The EHCI devices are different than mine, (EUSB and USBE) not sure what difference this makes.

If the issue is only with not being able to wake from sleep using USB devices, check to see if your mouse/keyboard show up in system profiler under UHCI or EHCI (hi-speeed). If they show up under hi-speed usb that is the reason they will not wake the system from sleep. My Rocketfish apple mouse (USB 1) wakes the system fine. But my Apple Keyboard (USB 2) will not.

Since you have an Asus board, you might want to take a look at Master Chief's DSDT in the P5K Pro thread at insanelymac. He claims to have wake up from Apple Keyboard working on his board using DSDT edit. good luck.

atomiX_X
11-05-2009, 11:45 PM
Thanks for the info wwbsox. I checked and my keyboard and mouse show up under regular USB and not high speed. I tried with another mouse and keyboard to make sure and same deal.

Now that you mention it though this isn't the only issue I've had but it has been the only one that bothers me. The machine also can't do a full hardware restart or shutdown on it's own. Not exactly sure why since I'm using OpenHaltRestart. I'm thinking these might be related.

stayupforever90
11-08-2009, 10:36 PM
Thanks wwbsox but have come across a very strange issue with adding the graphics fix to my dsdt.aml. I have added it with dsdt patcher and my typing it my self all with the same result. My dsdt compiles fine with only one warning as before but OpenGL stops working. By this I mean spinning squares test is not visiable in xbench and also OpenGL Extensions Viewer.app has only Apple software as the render and no choice for my graphics card. My xbench scores fall from around 170 to 110 and my OpenGL Extensions Viewer.app scores fall from in the 3400 range to 60-70 range. I have try'd all different ways of editing both my com.apple.Boot.plist the system one and the one in my extra folder all to no avail. I have try'd to enable OpenGL with the dev tools app Quartz Debug also, the app tells me it is enabled but has no effect. Two really strange things are that front row and chess work though, and I thought both these apps needed OpenGL to run. I have attached a copy of my dsdt with graphics if you could take a look and see if i have made a mistake thank you, just don't know where I am going wrong.

Ps My card did start showing up in PCI cards in system profiler, would really like to get this working any help would be great

stayupforever90
11-13-2009, 12:39 AM
Hey All

I have done it GFX are now fully working through through DSDT it seems the main issue was EFI strings. Let me explain I run a lot of different partitions for different reasons I have 3 snow leopard partitions 1 leopard partition there is also Linux and Windows 7 in the mix as well (see attached pic). I know its not the best but is just how things have gone as times gone by. Now I was trying to install the DSDT GFX to my SNOWGUID partition. First of all I did not remove the EFI strings from this partition's extra com.apple.Boot.plist but did remove the graphics enabler string. No joy the card would be in system profiler but i just had no QE/OpenGL working as such. So i spent some time working with DSDTSE.app as my DSDT is a bit strange any way. I try'd to many different with not much luck of inserting the graphics code with this great app (a big thank you to EvOSX86 for the app). Then I all most gave up and went back to EFI strings I say all most. My next step was thinking I have to be vanilla as possible so I disconected all of my drives apart from one and reinstalled Snow Leopard on a GUID partition and then I try'd a fresh DSDT.aml with USB SATA and GFX fix it worked how happy was I. Then I reconected my other two drives and it stopped working:'(:'(:'(. So from there I applied the same fixes to my other Snow partitions, but it didn't work on my main MBR Snow partition why? It seems at some time I had written my GFX string to my Library/Preferences/SystemConfiguration/com.apple.Bootplist once deleted I had working QE/OpenGL on all my partitions. I have feel have learned a lot from from doing this and just wanted to share my experience with others may be it could be of some use. For me I have learned EFI and DSDT do not mix but maybe thats just me. Am going to finish with a question though, how does Chameleon reference Boot.plists files from other partitions it is not booting though. And before you think it yes Chameleon was separately installed on all partitions. Thank you to wwbosx and all who have posted in this thread on to my next project speedstepping and sleep thank you again to all OSX86 fans

adityaxavier
01-08-2010, 11:33 AM
Hi,

I was actually wondering if anyone know how to do it the other way round.. i.e. make the USB from built-in to external. Cause i have my bluetooth in USB3 and its turned off every time the laptop goes to sleep and doesnt work on wak..

Thanks,
Xavier

twistoflemon
01-19-2010, 06:07 PM
Is there a guide somehwere of how to do this? I try using dsdt patcher but when adding the usb code I get compilation errors.

As my ehci usb are also listed as expansion slots I'm hoping this might also help with some other usb problems I'm having like bandwidth problems for my usb webcam...

stayupforever90
01-19-2010, 06:38 PM
What i would say is download an app called DSDTSE it is a very good place to start. I found it very helpful also look at threads about DSDT for your motherboard. All the best and respect to all here :)

EnzoFX
02-20-2010, 03:07 AM
So I just got a BT Apple KB, and can't wake from sleep with it. Also, doesn't even re-connect or stay connected (however it's supposed to work) after waking. I have to manually disconnect and re-connect it.
I have this UHCI/EHCI implemented, is there something else I can try? Or should I just try another BT adapter. This is the second one I've tried, the first one is an old BT v1.1, and this is a v2.1.
I believe Apple only officially supports a D-Link, and even that one has some revisions that don't allow this functionality. I have found a Kensington that's known to work for someone else, and they are using the UHCI/EHCI fix implemented in Chameleon2. I'd hate to just go out and buy it and it still not work for me.
Any ides are welcomed, thanks guys.

xzeroGx
03-07-2010, 10:03 PM
I'd hate to just go out and buy it and it still not work for me.
Any ides are welcomed, thanks guys.


Hey EnzoFX,

i've got a Targus ACB10US-B (the silver 4cm one)
bought it in the US for 7$...(shipping to europe was very expensive...)

wake from sleep works via mouse, wired apple alu KB and wireless BT apple KB.
i'm on a Gigabyte G33M-DS2R on 10.6.2 via DSDT mods.




to all who have problems with wake from sleep with a USB 2.0 device:

check your _WAK section in DSDT.
after various tests, i found the solution for me:

the section for "If (LEqual (Arg0, 0x04))" should look like this:
(maybe this works only on my board...)
....
If (LEqual (Arg0, 0x04))
{
If (LEqual (OSFL, Zero))
{
Store (0x58, SMIP)
}

If (LEqual (OSFL, One))
{
Store (0x56, SMIP)
}

If (LEqual (OSFL, 0x02))
{
Store (0x57, SMIP)
}

If (LEqual (OSFX, 0x03))
{
Store (0x59, SMIP)
}
}
...

Before patching, there were some nested if clauses... i deleted them and left only the code above. Maybe this helps someone :)
sorry for my english.

greets

xzeroGx

Stone-D
04-03-2010, 05:54 PM
Those look like operating system checks.

thepiecesfit
07-04-2010, 12:42 AM
First the issues, than the fixes.

My usb1 (UHCI) and usb2 (EHCI) ports were showing up in system profiler as "expansion slots". This was causing 2 main problems for me. First, I had to use the power button to wake the computer from sleep. Second, if I had a usb drive plugged in when the computer went to sleep, I would get a "device removal error" when the computer woke from sleep.

I combined two different dsdt fixes I found. One fixed UHCI but not EHCI, the other did just the opposite.

I combined the dsdt fix for UHCI found here: http://www.insanelymac.com/forum/index.php?showtopic=168014&st=20

and the EHCI fix found here:
http://www.insanelymac.com/forum/index.php?showtopic=155345&start=0&p=1240686&#entry1240686

Now I can wake the computer from sleep by clicking my USB mouse and I dont have to eject USB drives before putting the computer to sleep. I also do not get the "controller will be unloaded across sleep" error when booting in verbose mode.

This works great on ep-35-ds3p, but should work for most ich9 and ich10 gigabyte boards, since device id's were changed to match ich10.

Also, pay attention to the usb device with address 0x001D0003, for me it was US31, dont edit this device.

You are the man. This fixed my issues on p35-DS3L and now i can wake my 10.6.4 hack using the keyboard !

wwbsox
07-10-2010, 09:13 PM
No problem... Its been sooo long since I have been on this board. Glad to see some people are still using the information. I just finished putting together a machine for a friend that is having this exact problem. Hopefully it will work for his too.

Mack N Tosh
07-21-2010, 07:43 AM
Hi folks!
Any idea if this fix can work on a hackintosh netbook? (It dismounts/crashes USB disks after sleep.) Any ideas? I realize this is an old thread.
thanks. Peace.

Epal
08-16-2010, 08:15 AM
Hi all, well good news, it fix a part of the issue.

Now i can wake from an usb mouse directly connected to the mobo.

But i cant from the apple alu keyboard, although it is detected during sleep !!!

16/08/10 08:10:28 kernel Wake reason =
16/08/10 08:10:28 kernel System Wake
16/08/10 08:10:28 kernel USB (EHCI):Port 3 on bus 0xfd has remote wakeup from some device
16/08/10 08:10:28 kernel The USB device Keyboard Hub (Port 3 of Hub at 0xfd000000) may have caused a wake by issuing a remote wakeup
16/08/10 08:10:28 kernel The USB device Apple Keyboard (Port 2 of Hub at 0xfd300000) may have caused a wake by issuing a remote wakeup

but i had to wake up using power button or mouse to do this, then in the console, i see the USB controller saw the tries to wake up from USB keyboard !


Help ! what can i do to fix this ?


I've got GA P35 DS3R

here"s my DSL

hackaroni
09-26-2011, 10:48 PM
Wow, 2 years later and @wwbsox's original post of the DSDT USB fix worked for me on a Gigabyte EP45-UD3P ... I believe it's ICH10R. Had success doing this method twice, once for the same board under 10.6.8 and one under 10.5.8.

I used these basic instructions http://tonymacx86.blogspot.com/2009/11/create-and-modify-your-dsdtaml.html to extract, modify, and compile my DSDT but had to add two fixes. Steps 1-4, 7, 8, 9.

Here's the general idea:
1) You get the DSDT tool, install it, and use it to extract your DSDT
2) You use Tonymac blog instructions about adding "Method DGTP" before the _WAK area... you only use part of the fix he mentions so don't copy/paste the whole thing...the important part of the "method" is at the beginning and then it has a sample area.
3) You find the USB section that starts with "Device (USB0)" and you'll replace the entire USB sections with the text from @wwbsox's fix in the first post here. You're basically swapping out the USB sections. I left a one-line space before and after my insertion.
4) If you just try to compile now, you'll probably get some warnings and errors so
5) One of the TonyMac comments tells you the first fix 'The gigabyte-included DSDT is flawed and will not compile. In the two error lines, change the first Local0 parameter to "Zero" (without the quotes).' What they mean is that there are two areas where you will see (Local0, Local0) and you want it to look like (Zero, Local0)
6) And add this at the end of the _WAK Method:
Return(Package(0x02){0x00, 0x00})
7) If you do it right, when you go to compile your DSDT you won't get any warnings.
8) I moved mine to /Extra, renamed it from dsdt.aml to DSDT.aml... and did a sudo chown 0:0 on the DSDT.aml file (or sudo chown root:wheel if you prefer) and sudo chmod 755 on it for good measure... and repaired permissions.... then I restarted.
9) This enabled me to sleep/wake USB drives with no device removal errors! Wooohoooo! I have used some alternative IOUSBFamily.kexts before but believe I can remove them now... If your system hangs or something, you can probably boot into single user mode (-s) and remove the DSDT.aml file from there (rename it to DSDT.bak if you want)

Good luck everybody!