TorqueX86 Posted April 4, 2007 Share Posted April 4, 2007 Hello all, I came across this idea when today I managed to get my Mac to sleep and wake from sleep. It was just a matter of a few BIOS settings that we will not talk about in detail here, just enable suspend to RAM Well, I found out that upon waking, my mac is perfectly working, save one thing: USB. Keyboard and mouse work perfectly, Bluetooth dongle needs to be unplugged and replugged, and USB Audio (Altec Lansing USB speakers) remains stuttery no matter how many times I plug and replug it. So, here's the deal: unload and reload USB kext upon wake! How to do that? Some friend told me it's easy to write a post-wake script, something looking like that: NSNotificationCenter *nCenter = [[NSWorkspace sharedWorkspace] notificationCenter]; [nCenter addObserver:self selector:@selector(INSERTTHEUNLOADANDLOADKEXTCOMMANDHERE:) name:NSWorkspaceDidWakeNotification object:nil]; But that needs to be brought on in detail: Which kext(s) should be unloaded and reloaded? What is the procedure to set the script upon wake? Cheers, this might really be the solution of it! Link to comment https://www.insanelymac.com/forum/topic/47415-getting-there-sorting-sleep-once-and-for-all/ Share on other sites More sharing options...
guilliamo Posted April 4, 2007 Share Posted April 4, 2007 While a software solution may be more elegant, I solved this issue on MY system by plugging the keyboard & mouse into the hub built into the Dell 2405FPW monitor. This apparently resets the USB hub when then monitor wakes and EVERYTHING just works. Not clear to me how the USB keyboard can wake the machine & then not work UNLESS the keyboard is plugged into the monitor hub, but why argue with success ?? G =============================== Pentium D 3.2 Ghz - Intel Motherboard D945GNTKLR 10.4.9 Build 8P2137/Darwin 8.9.1 Kernel: Thu Mar 15 20:55:00 PST 2007; netkas: 792.18.15~1/ RELEASE_I386 2 GB Ram - 2x 1GB DDR2 667 HD 400 GB - Seagate SATA Onboard Firewire 400 Onboard 10/100/1000 LAN DVD-RW-DL Pioneer DVR-110D ( Shows as Apple Shipped/Supported) Belkin F5D7000 Wireless PCI Video ATI/ATI X1600 Pro PCIE 512MB Display Dell 2405FPW Link to comment https://www.insanelymac.com/forum/topic/47415-getting-there-sorting-sleep-once-and-for-all/#findComment-339492 Share on other sites More sharing options...
Spart Posted April 4, 2007 Share Posted April 4, 2007 I am experiencing an issue similar to this, however my USB devices will not work even after re-plugging. They don't even get power as far as I can tell after being plugged back in. For example, the LED on the mouse will be on after waking from sleep, but when you un-plug and re-plug, you get nothing. Link to comment https://www.insanelymac.com/forum/topic/47415-getting-there-sorting-sleep-once-and-for-all/#findComment-339523 Share on other sites More sharing options...
TorqueX86 Posted April 4, 2007 Author Share Posted April 4, 2007 While a software solution may be more elegant, I solved this issue on MY system by plugging the keyboard & mouse into the hub built into the Dell 2405FPW monitor.This apparently resets the USB hub when then monitor wakes and EVERYTHING just works. Not clear to me how the USB keyboard can wake the machine & then not work UNLESS the keyboard is plugged into the monitor hub, but why argue with success ?? Heh, my stuff is plugged into the hub of the Apple cinema display as well... And keyboard and mouse work after wake... But not Bluetooth or USB Audio... Today I'll buy a NEC USB card and see what happens if I connect stuff there... Link to comment https://www.insanelymac.com/forum/topic/47415-getting-there-sorting-sleep-once-and-for-all/#findComment-339643 Share on other sites More sharing options...
Recommended Posts