13.10 Laptop goes to sleep instead of shutting down when lid is closed

view full story

http://askubuntu.com – Sometimes (but not always), I use my laptop exactly like a desktop computer: I power it on with the lid closed and an external monitor and USB keyboard and mouse connected. When I later want to shut it down, the lid is still closed. It used to power down just fine with previous versions of Ubuntu (12.04 and 12.10 for sure, 13.04 probably as well). Ever since I installed Ubuntu 13.10, instead of powering down, my laptop now goes to sleep immediately after logging me off. The actual shutdown sequence only happens if I open the lid again, otherwise my laptop stays suspended. So I have been caug (HowTos)