I am trying, and failing miserably, to connect to the serial console on a laptop running Tumbleweed, from another laptop running Leap.
The first laptop does not suspend properly (cannot resume from suspend) and I would like to capture the serial console output in order to help debug. Since neither laptop has a serial port I’m connecting them with a usb-serial adapter on each end and a null modem serial cable between.
I’ve tried following this https://wiki.archlinux.org/index.php/Working_with_the_serial_console since, as far as I can tell, it is the most up to date guide. (Most other guides seem rather out of date, e.g. instructing to edit the /etc/inittab file, which does not exist).
Here are the kernel options I have set on the machine I’m trying to connect to:
quiet splash=silent resume=/dev/sda7 showopts no_console_suspend initcall_debug ignore_loglevel dyndbg="file suspend.c +p" console=ttyUSB0,115200n8 console=ttyS0,115200n8
and the serial console arguments from /etc/default/grub:
GRUB_TERMINAL="serial"
GRUB_SERIAL_COMMAND="serial --unit=0 --speed=115200 --parity=no --word=8"
and the output of `dmesg | grep tty’
0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-4.7.0-1.g24f30d5-default root=UUID=5329142e-1bb9-4dba-a67f-286177464189 quiet splash=silent resume=/dev/sda7 showopts no_console_suspend initcall_debug ignore_loglevel "dyndbg=file suspend.c +p" console=ttyUSB0,115200n8
0.000000] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-4.7.0-1.g24f30d5-default root=UUID=5329142e-1bb9-4dba-a67f-286177464189 quiet splash=silent resume=/dev/sda7 showopts no_console_suspend initcall_debug ignore_loglevel "dyndbg=file suspend.c +p" console=ttyUSB0,115200n8
0.743575] calling tty_class_init+0x0/0x2f @ 1
0.743585] initcall tty_class_init+0x0/0x2f returned 0 after 0 usecs
4.791121] tty tty38: hash matches
10.587660] usb 1-2: pl2303 converter now attached to ttyUSB0
11.066179] calling pkttype_mt_init+0x0/0x1000 [xt_pkttype] @ 1175
11.066183] initcall pkttype_mt_init+0x0/0x1000 [xt_pkttype] returned 0 after 0 usecs
574.249722] pl2303 ttyUSB0: pl2303 converter now disconnected from ttyUSB0
2112.975179] usb 1-2: pl2303 converter now attached to ttyUSB0
2338.882992] pl2303 ttyUSB0: pl2303 converter now disconnected from ttyUSB0
2488.153215] usb 1-3.1: pl2303 converter now attached to ttyUSB0
[43271.763213] pl2303 ttyUSB0: pl2303 converter now disconnected from ttyUSB0
I’ve tried using minicom and gtkterm on the laptop I want to connect from; with port ttyUSB0 speed 115200. From what I understand when I reboot the laptop I want to connect to the output should come up on the other laptop, but nothing happens.
I’m kind of out of my depth here, so obviously I’m doing something wrong. Any help would be greatly appreciated.