LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 06-15-2018, 08:35 PM   #1
whereswaldon
LQ Newbie
 
Registered: Apr 2018
Posts: 4

Rep: Reputation: Disabled
Debugging hibernation on laptop without a serial port


I'm not sure that I'm posting in the correct topic. I chose hardware because my question currently revolves around USB/Serial devices. Please let me know if I should post this somewhere else.

I have a System76 Galago Pro laptop that I bought last summer. I have recently completed a Linux From Scratch build on it and have been playing around with various kernel features trying to learn how to use them. I briefly had hibernation working properly on the laptop, but it has now stopped functioning entirely. When I run
echo disk | sudo tee /sys/power/state
(which once worked as the command to initiate hibernation) the system pauses userspace programs, then the screen corrupts (graphics driver's fault?) and the system hangs. I can hold the power button to turn it off and restart, but the hibernation failed.

I'd like to diagnose the problem. I sometimes see flashes of kernel errors and warnings on the system console during this process, but I can't read anything before they disappear. Because userspace is not running when the system is creating a hibernation image, the logging daemon is not writing the kernel log to disk. I have no record of the error messages at all when I reboot.

I think this is the kind of problem that would be debugged by hooking up a serial terminal and setting the kernel to use that serial TTY as the system console. I do not have a hardware serial terminal or really any serial devices at all, just USB. I do, however, have multiple laptops at my disposal. So I guess I have several questions:
  • Does anyone know of a non-serial way that I can persist a copy of the logs while userspace is suspended?
  • Is there a way to connect two laptops (usb or ethernet cables?) and use one as a serial terminal for the other?
  • Do I need to buy two usb-to-serial converters and connect my two laptops so that they both just see a serial connection?

Thanks!
 
Old 06-15-2018, 10:17 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,119

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Quick search found this. Seems to cover things pretty well.
 
Old 06-16-2018, 09:37 AM   #3
whereswaldon
LQ Newbie
 
Registered: Apr 2018
Posts: 4

Original Poster
Rep: Reputation: Disabled
Thanks for the link! It does have a couple tricks that I haven't tried yet. The serial debugging section presumes that you have a USB-to-serial hardware device and a device that can read serial. I don't have that, so I guess serial debugging is out. However, the NetConsole may work? Depends on a lot of things, but I'll give it a go.

https://wiki.ubuntu.com/Kernel/Netconsole -- route the console messages over UDP

I don't know whether the netconsole will suspend before the problems start, but there's only one way to find out!
 
  


Reply

Tags
debugging, hibernation, kernel, serial console


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Sun keyboard on hp laptop via targus serial port replicator skinney Linux - Hardware 2 04-29-2013 08:16 AM
serial port on laptop abd_bela Programming 9 07-07-2010 05:45 AM
Laptop doesn't have serial port for external modem allelopath Linux - Hardware 3 05-18-2006 04:51 PM
Serial to USB Port Converter for Laptop and CDMA Phone useth Linux - Hardware 2 08-30-2004 08:18 AM
questions on use of serial port when debugging kernel by vmware+kgdb sunzen.w Linux - Software 0 08-05-2004 01:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 08:38 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration