Comment 10 for bug 89983

Revision history for this message
Turbo Fredriksson (turbo-bayour) wrote :

I have (had) the same problem with a up-to-date Feisty, but I managed to find a workaround. I created the file /etc/acpi/local/lid.sh.post with the following content

----- s n i p -----
#!/bin/sh

grep -q closed /proc/acpi/button/lid/*/state
if [ $? = 0 ]
then
    # Lidstate = closed
    /sbin/s2ram -f -s -p -a 2
fi
----- s n i p -----

Then I installed the 'uswsusp' package. I had to use all the params to s2ram because my MacBook was not detected/unknown:

----- s n i p -----
Machine is unknown.
This machine can be identified by:
    sys_vendor = "Apple Computer, Inc."
    sys_product = "MacBook2,1"
    sys_version = "1.0"
    bios_version = " MB21.88Z.00A5.B00.0610192027"
----- s n i p -----

This worked like a charm! It took only one or two seconds until the machine was in a suspended state, and wakeup was also quick...