Bioinformatics Analyst at Seven Bridges & PhD Student at METU

Suspend Laptop When Lid Closed Ubuntu 12.04 LTS in Lenovo Z500

I guess this is a bug. Although suspend is set in Power settings, it doesn’t suspend the laptop when its lid is closed.

To solve it, I’ve found a workaround on web. Here is how you implement it:

Generate folder if it’s not present:

sudo mkdir /etc/acpi/local

Set its permissions:

sudo chmod 755 /etc/acpi/local

Generate the script:

sudo gedit /etc/acpi/local/lid.sh.post

Copy-paste the following:


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

Make script executable

sudo chmod +x /etc/acpi/local/lid.sh.post

After these operations, you should be able to suspend it when lid is closed and awaken back when it’s open. Note: it doesn’t show lock screen.