After recent kernel (3.19.0-28-generic) and upgrades from daily repos, I realised that closing the lid no longer suspends the laptop.
Running a state checker shows the laptop knows the lid is closing:
while true; do cat /proc/acpi/button/lid/LID/state ; sleep 3; done state: open state: open state: closed state: open state: open state: closed state: open state: open
I also made a lid.sh file in /etc/acpi/local, which i think worked once only!
#!/bin/bash if grep -q closed /proc/acpi/button/lid/LID/state then /usr/sbin/pm-suspend fi
This feature used to work fine until recently. Toshiba Portege R830