I can confirm same results:
HP G240 Xubuntu 16.04 64bit
Uncommented and changed HandleLidSwitchDocked=ignore to HandleLidSwitchDocked=suspend in /etc/systemd/logind.conf worked
I can confirm same results:
HP G240
Xubuntu 16.04 64bit
Uncommented and changed HandleLidSwitch Docked= ignore to HandleLidSwitch Docked= suspend in /etc/systemd/ logind. conf worked