gsam_fan Posted January 28, 2010 Share Posted January 28, 2010 >>>>>> SLEEP SUCCESS !!! <<<<<<< Fujitsu-Siemens Amilo Xi 3650 , Bios 1.0G (not far from perfect..... only webcam problem left) why no sleep problem it was the ALPS mouse and keyboard to blame. Amilo was going to sleep but the mouse-keyboard wake it up immediately. With the help of "Console" , "dmesg" and IOUSB debug tools from apple i noticed that varius dsdt modes had deferent effects.The basic problem is that the dsdt in that area ( has about 20 methods to wake up !! ) is so complicated that none of the knowed fixes worked for me.The solution is so simple..... remove s3 and s4 state from the peripheral that causes the wake up!!! ...and i don't think that is to hard for me to press the PowerButton to wake up. Don't need the mouse or the keyboard to do it, it's just a laptop General code for S3 S4 state in UHCI-EHCI Device (UHC1) { Name (_ADR, 0x001D0000) ----------------------------------------------------------------------DELETE FROM HERE OperationRegion (U1CS, PCI_Config, 0xC4, 0x04) Field (U1CS, DWordAcc, NoLock, Preserve) { U1EN, 2 } --------------------------------------------------------------------------------- TO HERE Method (_DSM, 4, NotSerialized) { Store (Package (0x02) { "device-id", Buffer (0x04) { 0x34, 0x3A, 0x00, 0x00 } }, Local0) DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0)) Return (Local0) } ----------------------------------------------------------------------DELETE FROM HERE Method (_PSW, 1, NotSerialized) { If (Arg0) { Store (0x03, U1EN) } Else { Store (Zero, U1EN) } } Method (_S3D, 0, NotSerialized) { Return (0x02) } Method (_S4D, 0, NotSerialized) { Return (0x02) } --------------------------------------------------------------------------------- TO HERE Name (_PRW, Package (0x02) { 0x03, 0x03 }) } ...and we get this Device (UHC1) { Name (_ADR, 0x001D0000) Method (_DSM, 4, NotSerialized) { Store (Package (0x02) { "device-id", Buffer (0x04) { 0x34, 0x3A, 0x00, 0x00 } }, Local0) DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0)) Return (Local0) } Name (_PRW, Package (0x02) { 0x03, 0x03 }) } this is so easy... don't bother to follow the WAK_ or the _Lxx into DSDT p.s. with this method i don't loose the "tap" clicking of my ALPS after weak up Link to comment https://www.insanelymac.com/forum/topic/209441-insomnia-patch-into-dsdt-for-usb-devices/ Share on other sites More sharing options...
gsam_fan Posted January 28, 2010 Author Share Posted January 28, 2010 sorry i forgot... Intel ICH9/R Mobile 4 (G45/M) the device USB2 and USB6 was fixed for sleep to work ( removed _S3 & _S4 ), PS2 keyboard and mouse (ALPS 10) This is the uhci-ehci part of dsdt i am using, fully patch for ich10,renamed devs from USB0~6 to UHC1~6 and USBR unused/deleted UHCI_EHCI_Sleep_OK.txt Link to comment https://www.insanelymac.com/forum/topic/209441-insomnia-patch-into-dsdt-for-usb-devices/#findComment-1397991 Share on other sites More sharing options...
nickday Posted January 28, 2010 Share Posted January 28, 2010 Hi, Can you tell me how you used Console, dmesg and IOUSB to find out that it was the ALPS mouse/keyboard that was stopping sleep? I'd like to try the same on my Sony Vaio P in the hope of getting sleep to work! Cheers, Nick Link to comment https://www.insanelymac.com/forum/topic/209441-insomnia-patch-into-dsdt-for-usb-devices/#findComment-1398059 Share on other sites More sharing options...
gsam_fan Posted January 28, 2010 Author Share Posted January 28, 2010 Hi, Can you tell me how you used Console, dmesg and IOUSB to find out that it was the ALPS mouse/keyboard that was stopping sleep? I'd like to try the same on my Sony Vaio P in the hope of getting sleep to work! Cheers, Nick "Console" is into Apps/Utilis: how to find out which dev is doing "wake up" see pics i attached.(you'll see sleep-wake events into "Diagnostic Messages") For dmesg now: 1.open a Terminal ,type sudo -s to go "root" user 2.do sleep (press PowerButton-----> Sleep) 3.after is immediately wake up type into term dmesg ( we do it this way so the last log message we'll see is about sleep ) if this did not help you then "go" for IUSB from XCODE (into apples dev downloads),this is your last tool to use but it's complicated to debug p.s. ignore wake AC PWRB events (this is normal), maybe it's not a USB (... GIGE=ethernet, GFX0=graphics , e.t.c.) ....for me was UHC2 (original name USB1) and UHC6 (original name USB6), i use MacBookPro5,2 into SMBIOS.plit ....pay attention that everything else into "USB" section of DSDT is done properly ...to help you more i attached and my "USB" section that is fixed and working fine for my "Intel ICH9 Mobile 4 Express Chipset" G45/M ..also attached my ALPS kexts and prefpan, kexts into /S/L/E and for prefpan copy it over /S/L/PreferencePanes/ (make a backup of the original one before ).Prefpan is 32bit fixed for ALPS, 64bit won't work for me (only tried with 10.6 , i'll go for 10.6.2 to see if it works later )... but i can now customize my mouse, who cares.... hope i helped you.... ALPS_V10.115_scroll_OK-32bit_PrefPan 1.tiff 2.tiff UHCI_EHCI_Sleep_OK.txt Link to comment https://www.insanelymac.com/forum/topic/209441-insomnia-patch-into-dsdt-for-usb-devices/#findComment-1398402 Share on other sites More sharing options...
gsam_fan Posted January 29, 2010 Author Share Posted January 29, 2010 .............also attached my ALPS kexts and prefpan, kexts into /S/L/E and for prefpan copy it over /S/L/PreferencePanes/ (make a backup of the original one before ).Prefpan is 32bit fixed for ALPS, 64bit won't work for me (only tried with 10.6 , i'll go for 10.6.2 to see if it works later )... but i can now customize my mouse, who cares.... hope i helped you.... ALPS_V10.115_scroll_OK-32bit_PrefPan ...heap..... TrackPad for any ALPS is patched by me... 64bits....from 10.6.2 here it is: Link Link to comment https://www.insanelymac.com/forum/topic/209441-insomnia-patch-into-dsdt-for-usb-devices/#findComment-1399306 Share on other sites More sharing options...
BuXb Posted August 19, 2010 Share Posted August 19, 2010 Hi gsam_fan, same prob here, I need to deactivate wake from sleep via USB in 10.6.4 because a) it doesn't work I don't like and want it anyway. I can't get this to work with your code though, because this Asus DSTD looks completely different. No UHCI/EHCI devices. DSDT.dsl is here. Can you give your two cents about this? Thanks you, Bugs Link to comment https://www.insanelymac.com/forum/topic/209441-insomnia-patch-into-dsdt-for-usb-devices/#findComment-1533415 Share on other sites More sharing options...
Recommended Posts