edit /etc/systemd/logind.conf

set
HandleLidSwitch=ignore

via http://revryl.com/2013/05/16/how-to-disable-auto-suspend-when-laptop-lid-is-closed-in-fedora-1817/

By karlo