[CentOS] Preventing laptop from sleeping when lid closed?

Tue Oct 13 16:12:38 UTC 2015
Dave Johansen <davejohansen at gmail.com>

How can I prevent the laptop from sleeping when the lid is closed. I tried
messing with the settings in gnome-power-preferences but that doesn't seem
to prevent it when no one is logged in. Any suggestions?
Thanks,
Dave