Forum Archive Old/outdated threads will end up here.

 
 
LinkBack Thread Tools Display Modes
  (#1) Old
Expert Member
 
Posts: 962
Join Date: Dec 2008
Default Soution to prevent SDHC card hang after sleep - 01-03-2009, 02:50 AM

I have found a workaround to the problem of the spinning beach ball after resuming from sleep and forgetting to eject your SDHC card.

This happened to me many times and I needed to find a solution. Here is what I found work for me. Maybe you will find it helpful.

What you need:

1. Type11 v7.5 installation (7.1 will probably work also)
2. sleepwatcher from http://www.bernhard-baehr.de/
3. Some time

Solution:

1. Open your install.dmg and move the kext IOSDHCIBlockDevice.kext from Extentions to LocalExtensions
2. Run miniscript and only perform an update. This will copy IOSDHCIBlockDevice.kext to your local System/Library/Extensions. IOSDHCIBlockDevice.kext does not need to be in the EFI partition.
3. Install both "Sleepwatcher" and "Sleepwatcher startup" (contained in the same dmg)
4. Add the following to the end of /etc/rc.sleep

Code:
umount -f /dev/disk1s1
sleep 1
kextunload /System/Library/Extensions/IOSDHCIBlockDevice.kext/
5. Add the following to the end of /etc/rc.wakeup

Code:
kextload /System/Library/Extensions/IOSDHCIBlockDevice.kext/
Now, every time you close the lid or put you Mini to sleep the SDHC card will be unmounted and the kext be unloaded. After wake up the kext is loaded back and the SDHC drive will mount again in the finder, ready for you to use!

This should be helpful until a fix is found for the sleep issue with the SDHC kext.

Note that Sleepwalker take about a minute to kick in... so when testing wait a little bit before putting to sleep.

I tried something similar with teh AppleHDA.kext extension to try to resolve the audio issue but unfortunately it does not work. Maybe someone can find the right kext to unload/load to get audio working again in the same manner?


Dell Mini 9
8GB SSD, 1GB RAM
OS X 10.5.6
  (#2) Old
Junior Member
 
Posts: 13
Join Date: Dec 2008
Location: Kennewick, WA
Send a message via AIM to ajcowell Send a message via MSN to ajcowell
Default Re: Soution to prevent SDHC card hang after sleep - 01-03-2009, 05:11 PM

Nice work, although something isn't working quite right for me. When I close the lid, sleep is engaged but on waking I get a device removal error (you know, the device was not yada yada). After a second or two the SD card mounts and all is good but I'm a little worried about delay writes to the card.

By the way, same happens if I use sleep from the Apple menu.

I've restarted a couple of times too, in case that was the issue.

Any ideas appreciated.

A.

EDIT: Running df in terminal shows my SDHC to be /dev/disk1s2. Making that change in rc.sleep makes everything work okay. Thanks again!


Dell Mini 9 Ice Blue
2GB RAM :: RunCore 32GB SSD :: Bluetooth :: 1.3Mp Webcam :: Custom Keyboard Map
Mac OS X 10.5.6 (Type11/Boot132 v8.02b1) :: iLife '09 :: Microsoft Office 2008
  (#3) Old
Member
 
Posts: 88
Join Date: Nov 2008
Default Re: Soution to prevent SDHC card hang after sleep - 01-03-2009, 06:34 PM

Just as an FYI, km9 has fixed the sleep problem the right way (the driver now knows how to sleep and wake up) so this fix shouldn't be necessary once we do the next release (probably no later than Sunday evening) of the driver.
  (#4) Old
Expert Member
 
Posts: 962
Join Date: Dec 2008
Default Re: Soution to prevent SDHC card hang after sleep - 01-03-2009, 07:12 PM

I just loaded the new kext and all is good without the sleepwalker trick!

So go for it!


Dell Mini 9
8GB SSD, 1GB RAM
OS X 10.5.6
 

« Mac OSX can not be installed !!! | Runcore 16g or 32g? »
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Copyright © 2008-2011 MyDellMini.com.