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.

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
add comment

1 Answer

up vote 2 down vote accepted

Logfiles are located in /var/log.

  • Log files related to suspend:

    /var/log/pm-suspend.log
    
    • Older entries (# is a number):

      /var/log/pm-suspend.log.#
      /var/log/pm-suspend.log.#.gz
      

      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):

    /var/log/Xorg.0.log
    /var/log/Xorg.failsafe.log
    
    • Older entries:

      /var/log/Xorg.0.log.old
      /var/log/Xorg.failsafe.log.old
      

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
add comment

Your Answer

 
discard

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.