masa Posted October 25, 2010 Share Posted October 25, 2010 Hi, guys, I got a problem and I've done everything i can but nothing got changed... Please give me you help, thank in advanc. Fist, my PC: 10.6.4@ Q9550/Asus P5Q-E(ICH10R)/GTX260/PS2 Keyboard/Logitech game mice G500. The problem is simple, just as title, if i let G500 pluging on and click "sleep", my PC just go to sleep but will wake up immediately itself. And if i unplug it then let SL go to sleep us keyboard, the sleep/wake-up function work like a charm. All USB bus are already "built-in". I gooled a lot and find a way to modify the USB device in DSDT, like this: http://www.insanelymac.com/forum/index.php?showtopic=209441 Here are my DSDT before/after modification: before: Device (EHC1) { 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)) } } after: Device (EHC1) { Name (_ADR, 0x001D0002) Name (_PRW, Package (0x02) { 0x0C, 0x04 }) } As you can see, i get rid of some method like _S3D to avoid waking up from any USB devices. I did this on all USB devices in DSDT. But, I got no luck, sleep won't retain over 2 seconds, and after waking up, OS warns me some stuff like removal an USB device correctly. If you have some idea, please let me know. Thank you very much! usbbus.tiff Link to comment Share on other sites More sharing options...
masa Posted October 26, 2010 Author Share Posted October 26, 2010 Hello~~? Do i even have to remove _PRW to disable wake up on USB? Link to comment Share on other sites More sharing options...
masa Posted October 26, 2010 Author Share Posted October 26, 2010 Finally it is solved, even many new issues remained. I was being think that "USB devices prevent sleep" until i realized the "sleep" did have happend, USB devices just caused a wake-up. The method _PRW seems offer a function to wake up PC by the device which has the method. Here is what I did: 1) Remove Method _PRW from all USB device. (about 8 in my case) Identify the USB devices by address, lot of posts about this. 2) Also remove Method _PRW from device GBEC. Although I have no idea what it is, but I found if keep it there, the USB flash memory will prevent sleep too. As the evidence, I found this in log file: kernel[0]: System Wakekernel[0]: The USB device I-O DATA HDP-UP (Port 2 of Hub at 0xfd000000) may have caused a wake by being disconnected kernel[0]: The USB device Mass Storage Device (Port 3 of Hub at 0xfd000000) may have caused a wake by being disconnected kernel[0]: Wake reason = GBEC EUSB Other methods are untouched. You can see, there were multiple reasons caused wake up. After doing these, USB mouse or storage stoped to wake it up any more. Certainly I can't wake up my pc too, bu it doesn't matter. ---Issues remained---- 1. No auto-sleep. Monitor just turns off, but the system won't even i set the auto-sleep time to 1 min. (I waited for 2 min, should I be waiting longer?) 2. After waking up, SL give me a warning about usb removal. I've tried this but nothing get changed. ***if i disable "Energy Star 4.0C" in cmos setting, usb just keep connecting fine without any warning. but, the LED of USB HDD or mouse will keep turning on even I shut the power down. I hate it. 3. Now I can only weke it up by power button, but I can still see this in log file: Oct 26 21:43:20 kernel[0]: Wake reason = PWRBOct 26 21:43:20 kernel[0]: System Wake Oct 26 21:43:20 kernel[0]: The USB device I-O DATA HDP-UP (Port 2 of Hub at 0xfd000000) may have caused a wake by being disconnected Oct 26 21:43:20 kernel[0]: The USB device Mass Storage Device (Port 3 of Hub at 0xfd000000) may have caused a wake by being disconnected Oct 26 21:43:20 kernel[0]: The USB device G500 (Port 1 of Hub at 0x5d000000) may have caused a wake by being disconnected Oct 26 21:43:20 kernel[0]: An Unknown USB Device (Port 5 of Hub at 0xfd000000), may have caused a wake by being connected It is weird because the system konw the "wake reason" IS "PWRB(power button)" but yet list up many "possible" reasons of wake-up. OK, I wish this would help people just like me and i still expect someone can help me to solve remained issues. Link to comment Share on other sites More sharing options...
Recommended Posts