Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a VGA to S-Video converter which I use to watch movies on the TV from my laptop, but after I've plugged it the laptop starts freezing whenever I try to suspend it or hibernate it. Can I read some log files to see what is causing this problem?

share|improve this question
up vote 2 down vote accepted

Logfiles are located in /var/log.

  • Log files related to suspend:

    • Older entries (# is a number):


      The latter one with the .gz prefix is a compressed file and must be uncompressed before reading.

  • Related to the X server (0 is the display number, it's usually 0 unless you switch users):

    • Older entries:


Useful commands for the terminal:

  • Reads the log file and present it in a pager. You can use arrow keys, Page up/Down and Home/End to navigate. Compressed files are recognized too, there is no need to uncompress them before use:

    less /var/log/pm-suspend.log
  • Uncompressed a file and saves it to file. The latter program (gunzip) removes the original file.gz file

    zcat file.gz > file
    gunzip file.gz
  • Monitor logs (add new lines as they are added):

    tail -f /var/log/kern.log
  • List log files, sorted by last modification date:

    ls -lAtr /var/log
share|improve this answer

Your Answer


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

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