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.

This question already has an answer here:

Recently, my laptop has started turning off for no apparent reason; it's an old laptop and the problem is likely to be a hardware issue, but I was wondering if there were any Ubuntu logs that might shed some light on the issue?

share|improve this question

marked as duplicate by Jorge Castro, Eric Carvalho, Danatela, waltinator, Richard Apr 22 at 4:47

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

add comment

2 Answers 2

One cause of a machine turning off is that the CPU is too hot and has reached a critical trip point and the machine is powered off, so it could be that.

With this kind of power-off situation you may not get any logs to look at because the machine is powered off before the log messages are flushed to disk.

share|improve this answer
    
Yes, that's a possibility; do you know what I can check to see if something was logged before the shutdown? –  Ewan Heming Sep 2 '12 at 20:24
add comment

As there is a brief delay before the logs are written to disk, nothing may have been recorded, however something of general interest concerning the power management of your laptop may be found by using dmesg:

dmesg | grep -i acpi

To go back further in time and to show dates alongside the results, you could grep all the kernel logs for acpi messages:

grep -i acpi /var/log/kern*

which will give a lot of messages, but may perhaps show any issues to do with power management.

share|improve this answer
add comment

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