Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
up vote 1 down vote accepted

I think I found an answer to my own question. The solution is the same one listed on here

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

grep -q closed /proc/acpi/button/lid/*/state
if [ $? = 0 ]

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

share|improve this answer

Your Answer


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.