[Bug 1571500] Re: console port speed impossible to set on ttyUSB0

Martin Pitt martin.pitt at ubuntu.com
Mon Apr 18 12:57:33 UTC 2016


agetty is running and it got the "57600" option. systemd is only
involved in starting that job, it does not actually set up ttys by
itself. So removing the systemd task.

Can you try to stop that job and call agetty manually with the same
parameters? Does that work? If so, then apparently something else is
interfering with the serial parameters at boot/when the device appears.
If it also does not work, this sounds like a bug in agetty.

Reassigning to util-linux as you are using agetty, not mgetty.

** No longer affects: systemd (Ubuntu)

** Package changed: mgetty (Ubuntu) => util-linux (Ubuntu)

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to systemd in Ubuntu.
https://bugs.launchpad.net/bugs/1571500

Title:
  console port speed impossible to set on ttyUSB0

Status in util-linux package in Ubuntu:
  New

Bug description:
  I want to add a console port on a Ubuntu machine to be able to access
  it from a terminal server.

  This machine has no serial port but lots of USB ports (like most nowadays).
  I use a USB-to-serial adapter to have the ttyUSB0 up and listening.

  I copied /lib/systemd/system/serial-getty at .service to
  /lib/systemd/system/serial-getty at ttyUSB0.service and set the speed to
  57600

  +++++++++++
  [Service]
  ExecStart=-/sbin/agetty --keep-baud 57600 %I $TERM
  +++++++++++

  the service status shows the right speed

  +++++++++++
  $ sudo systemctl status serial-getty at ttyUSB0.serviceserial-getty at ttyUSB0.service - Serial Getty on ttyUSB0
     Loaded: loaded (/lib/systemd/system/serial-getty at ttyUSB0.service; enabled; vendor preset: enabled)
     Active: active (running) since 月 2016-04-18 14:07:30 JST; 58min ago
       Docs: man:agetty(8)
             man:systemd-getty-generator(8)
             http://0pointer.de/blog/projects/serial-console.html
   Main PID: 3017 (agetty)
     CGroup: /system.slice/system-serial\x2dgetty.slice/serial-getty at ttyUSB0.service
             └─3017 /sbin/agetty --keep-baud 57600 ttyUSB0 vt220
  +++++++++++

  Even so, I can't log in from the serial port at a speed other than
  9600...

  With such settings I shouldn't even be able to get a right answer at
  9600bps, only garbage.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/util-linux/+bug/1571500/+subscriptions



More information about the foundations-bugs mailing list