-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

On 04/24/2016 04:15 AM, Martin Pitt wrote:
> My understanding is that this unit isn't meant to configure baud
> rates but merely start getty on the requested one. In a world
> before systemd there was nothing that changed them by default
> either. Normally you set the baud rate on the kernel command line 
> (https://www.kernel.org/doc/Documentation/kernel-parameters.txt)
> or just rely on the kernel driver's default.

I'd say that at least a comment in that script is in order to let
people reading it know that this setting has no effect unless they
change the switch, or that they should use another, preferred
mechanism for setting the baud rate instead.


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCgAGBQJXHX22AAoJEBB5UWFcu6UWAdoH/Rrkwu1P+tQknxpSBUlEZaQR
2iuo9nmKANbVYZXVwSFq1UEb9aUWZ9GPoNQsh2eoBN9zOLojCM1c45e2wmKuOy7o
ecKjwXvNZwILUbpgyS+qKdddWK3dPhY518B0DEdUXOkvlvmRUd+GbAibHQc8FJdu
XJX3STOAa78wfPM7b4tqGr+ljnqeezPDdm0A5QXDCSc9SxGX5LOHE0JssHF8VDy3
sfKVbSFxeijDKVqA2vl7jG1YcTtv+A6YVpskWDE6vU0i1KatKyIy0K3M76C1uhub
IdAlWYE4/QuadJqBbu7bnRMHFrkU2GNbmZSODK9fyHjBukT81PvARUNUBW/ioSY=
=ZBAJ
-----END PGP SIGNATURE-----

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

Title:
  [email protected] does not configure baud rate

Status in systemd package in Ubuntu:
  Invalid

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/[email protected] to
  /lib/systemd/system/[email protected] 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 [email protected][email protected] - Serial Getty on ttyUSB0
     Loaded: loaded (/lib/systemd/system/[email protected]; 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/[email protected]
             └─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/systemd/+bug/1571500/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to