I upgraded from 12.04 to 14.04, and notice a different behaviour in multi-monitor mode. In 12.04, when I plugged in the external monitor and then closed the laptop lid, the laptop would not suspend and I could work with the external monitor, but when I removed the external monitor, I could suspend by closing the lid. In 14.04, when I close the lid the laptop suspends. I want to get back to the original behaviour: i.e.: close lid when monitor present = do nothing; close lid with no monitor = suspend.
This question How can I tell Ubuntu to do nothing when I close my laptop lid? gives solutions to always prevent the laptop from suspending, my question is specifically about different behaviours depending on whether a monitor is attached.
My laptop is a Thinkpad Edge 13 with Intel integrated graphics
(I found a similar question but referring to Ubuntu 11.04 Problems with external monitors on my laptop , the answer mentions a problem with the kernel)
ubuntu-bug unity, then paste the link here and i will for one mark it as "Affects me".