Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm using a Macbook Pro 6,1 and have jumped through a few hoops to get to where I am. I finally have a working system, but there's one thing I haven't been able to find a solution on. When I close my lid on my Macbook it goes to suspend mode. When I open my Macbook again it wakes and goes back to my desktop. Only problem is it won't load the windows I previously had open. It's as if I logged out instead of my computer going into suspend. Is there any way to get my programs not to close when I close my laptop? I have the latest Nvidia drivers installed.

share|improve this question

1 Answer 1

up vote 0 down vote accepted

I think I found an answer to my own question. The solution is the same one listed on here http://ubuntuforums.org/showthread.php?t=2150687

Create the file /etc/acpi/local/lid.sh.post if it's not already created. You may have to make the 'local' folder. Add the following to the file:

#!/bin/bash
grep -q closed /proc/acpi/button/lid/*/state
if [ $? = 0 ]
then
/usr/sbin/pm-suspend
fi

Then make this file executable. Everything works for me now... at least it has so far.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.