How to deactivate kernel output on ttyS2?
#2
Use systemctl [stop|start|enable|disable]

1. Check for getty
$ ps aux | grep getty
root       829  0.0  0.0   3980  1992 ttyS2    Ss+  02:21   0:00 /sbin/agetty -o -p -- \u --keep-baud 115200,38400,9600 ttyS2 vt220

2. Stop getty on ttyS2.
$ sudo systemctl stop serial-getty@ttyS2.service

Repeating the ps command will show that getty is gone, but it will return after reboot.  To persist you can:

3. Disable getty on ttyS2:
$ sudo systemctl disable serial-getty@ttyS2.service


Messages In This Thread
RE: How to deactivate kernel output on ttyS2? - by rhex - 04-09-2019, 08:37 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
Exclamation Ethernet regression on Linux Kernel 6.5.4? Deathcrow 3 847 09-22-2023, 04:27 AM
Last Post: diederik
Question How do I compile an arbitrary kernel for U-Boot? Valenoern 3 1,136 06-16-2023, 10:54 AM
Last Post: CounterPillow
  rk3399 and Visual Output Processor 2 (VOP2) swan 3 1,401 05-13-2023, 12:01 AM
Last Post: swan
  SPDIF output audio gaps jssfr 2 1,741 07-24-2022, 06:26 AM
Last Post: jssfr
  [OS] SkiffOS and Buildroot for Rockpro64 w/ 5.17 kernel paralin1 1 1,846 05-08-2022, 03:26 PM
Last Post: paralin1
  Kernel OOPs triggered by big writes to ext4 FS ajtravis 1 1,458 04-04-2022, 05:29 PM
Last Post: ajtravis
  Manjaro ARM - Built-in ethernet was broken with kernel 5.14.1-1 (over now) Dendrocalamus64 2 2,303 09-11-2021, 08:58 PM
Last Post: t4_4t
  compiling a new kernel for overclocking on arch Mentaluproar 2 2,788 07-15-2021, 10:16 AM
Last Post: Mentaluproar
  Other boot options than Sdcard for linux 5.x kernel? MisterA 2 3,025 07-14-2021, 02:37 PM
Last Post: TRS-80
  ayufan kernel update unbootable TheHunter 2 3,182 03-12-2021, 05:17 PM
Last Post: LMM

Forum Jump:


Users browsing this thread: 1 Guest(s)