Can’t Sleep in 10.5.8? We can fix it!

September 21, 2009

Some users (including myself) have experienced the sleep function not working after upgrading to 10.5.8. In my case, the screen, keyboard, and trackpad would all turn off, but the fans and lights would all stay on and running. If you tried to turn it back on, the system would be unresponsive.

The only way to repair this is to revert back to the 10.5.7 kernel. You still get the updates that are applied in 10.5.8, we just need 10.5.7’s kernel back to enable sleep again.You can make sleep/resume work on 10.5.8 by replacing your kernel with 10.5.7’s kernel.

There’s something with Kernel 9.8.0 (10.5.8’s kernel) that breaks sleep. If you’re already on 10.5.8 and using kernel 9.8.0, setting Mac OS X to hibernatemode 0 will brick your install. I did that and the result was that I couldn’t even boot in superuser mode, got stuck at the infamous “MAC framework successfully initialized using 5242 buffer headers and 4096 cluster IO buffer headers“. Once you’ve replaced kernel 9.7.0, you can set hibernatemode to 0 to get rid of that “sleepimage has garbage” error message at boot up and recover the 2GB of hdd space occupied by the sleepimage in your /Private/var/vm folder.
-LeMaurien19

Let’s get started. First of all, download the folowing zip file: 1057Kernel.and.Kexts.zip and if you do not have these already (you should) the HP Mini Essential Files.

  1. After downloading the .zip, extract the contents to your desktop.
  2. Open the 10.5.7Kernel_system_seatbelt folder.
  3. Open the ShowAllFiles app.
  4. Choose to SHOW all hidden files. Finder will automatically restart.
  5. Back in the 10.5.7Kernel_system_seatbelt folder, you will now see a file called mach_kernel. Move that file directly to your Desktop.
  6. Now we need Termnial. Go to Applications > Utilities > Terminal.app.

Type the following into terminal:

     sudo mv /mach_kernel /mach_kernel.patched

That will back up the current kernel as mach_kernel.patched.

Now type:

     sudo cp /Users/YOURUSERNAMEHERE/Desktop/mach_kernel /

to install the new kernel.

Exit Terminal.

Now, we need to go into our HP Mini Essential files (if you haven’t already, go ahead an extract the .zip file to the desktop.)

  1. Open the HP Mini Essential Files folder.
  2. Open the OSX86Tools_.1.0.150 folder.
  3. Open OSX86Tools.
  4. Click “Install Kexts“.
  5. Navigate to your 10.5.7Kernel_system_seatbelt folder from earlier.
  6. Choose the two kexts, “seatbelt.kext” and “System.kext“.
  7. Click “OK” at all the prompts and choose to restart when it asks you to.
  8. After you reboot, open OSX86Tools again, and check off Repair Permissions. Run the selected tasks.
  9. Reboot.

After reboot, your sleep should now be working. It might take a minute for it to sleep, but it should fully go into sleep mode with the blinking power light. I hope this fix works for you, as it did for me.

If you have any questions or comments, feel free to comment below. Don’t forget about MyHPMini.com’s forums. There are plenty of knowledgable people over there willing to help!

A big thanks to LeMaurien19 over at MyHPMini.com forums for letting me use and his kernel, kexts, and info so that I could create a guide for you guys to use here at OSXHPMini.info. He frequently posts at MyMacbookMini.com.

Advertisements