Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Title says it all really.

But every night, unless I'm actively using it, my computer restarts, and every time, at midnight. I was wondering if their is anything I can do to stop it, or to find out what's actually causing it, or any help in general.

I'm using 12.04 LTS.

share|improve this question
    
you can check dmesg command, /var/log/message file and if crontab has anything fishy. –  Karthik T Dec 4 '12 at 5:19
    
What would I look for with dmesg? No /var/log/message file. And what would I look for in crontab? Their are a couple things in the files. –  Justin Warner Dec 4 '12 at 5:33
    
As to the crontab you can check if any of the rules are firing off at the time in question. As to dmesg, you could run watch 'sudo dmesg -c >> /tmp/dmesg.log' just before it is supposed to restart and check what are the last few messages after it does. and is it /var/log/messages –  Karthik T Dec 4 '12 at 5:41
    
What do you mean by "restarts?" Is the machine powered off, and then boots on it's own accord at midnight? If it is doing that then perhaps the RTC is generating a wakealarm event and this triggers the machine to wakeup. –  Colin Ian King Dec 4 '12 at 11:11
    
What is the output of: sudo crontab -l and crontab -l? This will help to know if any cron jobs have been scheduled. –  saji89 Dec 4 '12 at 11:42
show 3 more comments

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.