Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
I have a laptop running Ubuntu. I have made it so it reboots at 12 every day, but when it reboots it goes to hibernate.
Open the Dash and type Energy. Select the Energy icon. There's an option on that window to configure what happens when the lid is closed.