Ubuntu – Ubuntu 17.10 laptop doesn’t suspend on lid close

laptoppower-managementsuspend

Thinkpad T450 running Ubuntu 17.10 which was clean-installed (not upgraded) some weeks back. I frequently moved from room to room and like the laptop to go to sleep when I close the lid. It seems to never do this, staying awake all the time. I have to hold down the power button in the indicator and choose the pause icon to suspend it. Previous releases of Ubuntu used to "Just Work".

I have tried toggling the option in Tweaks to ensure it is set to suspend on lid close, but this makes no difference. Is this a bug or expected behaviour?

Best Answer

Turns out we were all wrong. The magnet which triggers the lid sensor had come away inside the laptop. I confirmed this by holding a fridge magnet up to the camera. As soon as I did that, the laptop suspended fine. So I figured there's a magnet in the base. There was, but it was floating around (clinging to the battery) inside the machine. I put it back in place and it's now working.

enter image description here

Related Question