I use shutdown -h time command to shutdown my laptop after a particular time. I observed that the laptop doesnt come to a halt after the set time if the lid of my laptop is closed. When i open the lid the next morning it tells " goint to halt". So how do i make ubuntu shotdown at a pre-set time even if the lid is closed.?

  • Umm, just a hunch, did you try changing the power options? – Raphael Oct 11 '15 at 16:45
  • yea, but it didnt work – kernel_panic Oct 12 '15 at 1:43

Go to power management settings and modified as settings as "Do Nothing" when laptop lid closed.

Then it will works

enter image description here

| improve this answer | |
  • i had tried it before, it doesnt work – kernel_panic Oct 12 '15 at 1:42
  • No bro , I am very sure. It will work If you set it Do Nothing on both cases like Battery and AC Plugged in – rɑːdʒɑ Oct 12 '15 at 1:43
  • i have done it. really – kernel_panic Oct 12 '15 at 2:20

To make Ubuntu do nothing when sytem is closed

1.Open the /etc/systemd/logind.conf file in a text editor as root, for example,

 sudo -H gedit /etc/systemd/logind.conf

3.Add a line HandleLidSwitch=ignore (make sure it's not commented out!),

Restart the systemd daemon with this command:

sudo restart systemd-logind
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.