Got a suspend to ram success story  with my macbook2 (not pro)


Running Vanilla Kernel 2.6.21-1
Latest SVN of s2ram
Latest mactel patches for 2.6.20

Attached .bz2 file contains the following:
--
AHCI patch to 2.6.21 from
http://teknoraver.campuslife.it/software/mac-ahci.diff
my .config file. configured AHCI support by default and PIIX as a module.
IDE is disabled.
my s2ram whitelist entry (optional). I believe "s2ram -f" will do as well.
---

To suspend, I run the following script.
==============
#!/bin/bash

# S2RAM script.

CD_DEV=/dev/sr0
MOUNTED_DIR=`cat /etc/mtab | grep sr0 | gawk '{ print $2 }'`
echo "Kill all processes using the dvd drive"
/bin/fuser -k $CD_DEV
echo "umount dvd drive"
umount $MOUNTED_DIR
echo "unload dvd kernel modules"
/sbin/rmmod sr_mod
/sbin/rmmod cdrom
/sbin/rmmod ata_piix
sleep 1
/usr/local/sbin/s2ram
==================

Since I don't use my dvd drive much, i actually just
unmount ata_piix during bootup and only mount it when i need the dvd drive.

Tried 20 tests. worked every time. backlight light is low after resuming but
that's okay. at least it suspends now :)

Question: Is there a patch for ata_piix  in 2.6.21 to make it suspend
properly  ?

Attachment: suspend_macbook2_notpro.tar.bz2
Description: BZip2 compressed data

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Mactel-linux-users mailing list
Mactel-linux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mactel-linux-users

Reply via email to