Skip to main content

Questions tagged [tty]

A representation of a device that asynchronously transmits and receives serial data.

Filter by
Sorted by
Tagged with
0 votes
0 answers
14 views

macos/bash: read "hangs" when executing script second time as another user with stdout redirected before

Hello! My second file descriptors question. Context: Still new at this, I certainly don't get file descriptors. Magic. Unpredictable magic at that, that sometimes works. (joke, but you probably get my ...
Marcus Widerberg's user avatar
0 votes
0 answers
8 views

Why is the tty2 showing login screen with no response in EndeavourOS KDE Plasma?

I'm on EndeavourOS with KDE plasma (recently installed, left everything default). I opened Virtual Terminal by Ctrl+Alt+F3 and exit by Ctrl+Alt+F2. But, Login screen of plasma has opened which is not ...
Prabash's user avatar
0 votes
1 answer
22 views

How can I have multiple TCP clients connected to server ttyS0?

I'm trying to test following envirorment: One server (it's a router, It has busybox and few other cmd) with a a physical serial port and and open socket #tcpsvd -v 0.0.0.0 -p 999 cat /dev/ttyS0 ...
Carmine Esposito's user avatar
0 votes
0 answers
46 views

Reading the output from arduino slower than it produces the output: what is the buffer size?

I have two different boards with Atmega16U2 (Uno) and ch341 (Nano). They are not genuine actually, but it doesn't matter here I think. I was asked to look at some code which didn't work as expected. ...
LRDPRDX's user avatar
  • 133
2 votes
0 answers
63 views

Why is a udev rule to symlink /dev/ttySPECIAL replacing /dev/tty with a symlink as well

On my target embedded system I have a udev rule that looks like: KERNEL=="ttyACM?", ATTRS{idVendor}=="1234", ATTRS{idProduct}=="5678", SYMLINK+="ttySPECIAL", ...
davolfman's user avatar
  • 672
1 vote
1 answer
48 views

How to add delay to my terminal?

I like the experience that I get from using the terminal on a remote device where there is a visible lag between what I type and what happens on screen, because it forces me to trust the actions I'm ...
user22476690's user avatar
0 votes
0 answers
25 views

Using systemd + docker exec to manage processes within a single container

As of today, I have many systemd services where each of them runs a command using docker run. The same docker is used for all services. I've noticed that each container that runs, takes about 0.7% of ...
Omer's user avatar
  • 101
1 vote
0 answers
47 views

Color range for tty

THIS IS NOT A PROBLEM ABOUT XORG I have a singleboard PC with Intel N100 with 2 HDMI ports. When arch boots, the color range changes to limited after i915 takeing over the display from UEFI ...
CreeperKong's user avatar
1 vote
1 answer
39 views

Serial console changes parameters when SUDOing

I'm working on a project where I need to connect a very old serial terminal to a linux device (a Raspberry). The terminal uses 4800bps, 7 data bits and even parity. I have reconfigured the kernel ...
Gusman's user avatar
  • 111
1 vote
1 answer
631 views

Keylogger protection in TTY3

I noticed that, when I go to TTY3 (by typing CTRL+ALT+3), bucklespring stops working, and when I go out to the GUI it works again. Also, when I run xinput test-xi2 on TTY3, it tells me 'Unable to ...
Lucas Vasco's user avatar
1 vote
1 answer
104 views

How can I get write/wall commands working as intended?

OS: xUbuntu 22.04 I want to use the write / wall commands for sending msgs to other users sharing the same computer. But when I try to use the write command, I get the following error: √ ~ $ who user1 ...
naphelge's user avatar
0 votes
1 answer
44 views

Interactive: systemctl on boot not the same as systemctl via CLI!

I want to execute an interactive session on the console via systemctl on boot up. My .service file looks something like this: [Unit] Description=My service. [email protected] network-online....
ZaPaDoS's user avatar
0 votes
1 answer
25 views

Where does the finger command takes the information about the write permissions of the tty's

I'm trying to create my own finger command in C in Linux Mint. Studying the real finger command I've understood that the asterisk that the commands put when using the short output format left the tty ...
Matteo Sperini's user avatar
0 votes
2 answers
72 views

How can I connect a bash process to a tty _without_ using getty

I would have two serial usb devices connected to each other, /dev/ttyUSB1 and /dev/ttyUSB2. I would like to run /bin/bash connected to one end, so that I can attach to the other end using picocom and ...
Alex028502's user avatar
0 votes
1 answer
40 views

TERM ANSI escape sequences compatibility between xterm and screen although infocmp does not say so

I am making an script in zsh on mac that uses tmux and after the amazing https://unix.stackexchange.com/users/22565/st%c3%a9phane-chazelas answer, I found out that when I use tmux, it uses a different ...
Whimusical's user avatar
0 votes
0 answers
96 views

Ubuntu 22.04 shows systemd-journald error after I wake up from suspend

After I wake up my computer(Mi notebook ultra 2021) from suspend it doesn't let me click the field where the password needs to be entered. I have to restart by pressing ctrl + alt + printscn + REISUB. ...
Yash's user avatar
  • 1
0 votes
0 answers
31 views

pts abbreviation and old Unix words [duplicate]

I remember tty was the abbreviation of TeleTYpe. Now I don't know what pts (/dev/pts) stands for.
PersianGulf's user avatar
4 votes
1 answer
439 views

job control doesn't work when I try to set up getty over serial

I am trying to set up getty to log in over serial (mainly as an experiment). With almost any configuration, the same thing happens. If my default shell is bash, I get this message after I log in: -...
Alex028502's user avatar
0 votes
1 answer
52 views

Script that reads input from terminal. How to tell the script to print to both tty and stdout in case it is called with a stdout redirection?

I have a script which asks users for input in the terminal, therefore in case the script is called with stdout redirected to a file, the user has no context on the prompt. So I would like to duplicate ...
Whimusical's user avatar
0 votes
1 answer
42 views

how to get file descriptors of PTY inside of a child?

https://man7.org/linux/man-pages/man7/pty.7.html in the "UNIX 98 pseudoterminals" it is said that ptsname can be used (and then open), but this function accepts file descriptor. i tried to ...
Michael Quad's user avatar
0 votes
0 answers
70 views

When I press a function key on my laptop (volume, mute) it returns the keycode inside my terminal

Whenever I press a function key on my laptop the key-code gets returned (438u, 440u, 439u) on my tty emulator. I am using Arch Linux with Wayland, and my shell is zsh. Any idea where I can edit this ...
Waz's user avatar
  • 1
0 votes
0 answers
23 views

When setting up login in Linux, do not use console bound terminals?

I encountered a problem where I specified a virtual terminal using console=tty1, but this terminal cannot terminate the ping command using ctrl+c. However, when I switch to another terminal using ctrl+...
Vimer's user avatar
  • 67
1 vote
1 answer
53 views

GNU screen copy paste breaks lines

I'm running a Armbian on a PI and operate it through a Serial USB TTL dongle. I'm running the following command to connect to the PI: screen /dev/tty.usbXXXX 115200 I can successully log in and run ...
IArchi's user avatar
  • 11
0 votes
0 answers
158 views

busybox stty: standard input: cannot perform all requested operations?

When I specified stty isig, the following error occurred. I found a similar problem but did not resolve it. I searched for a lot of information but I'm not sure what's going on. I have no clue, can ...
Vimer's user avatar
  • 67
0 votes
1 answer
96 views

Opening a empty session on other tty

me@pop-os:~$ xinit -- :2 vt3 X.Org X Server 1.21.1.4 X Protocol Version 11, Revision 0 Current Operating System: Linux pop-os 6.6.6-76060606-generic #202312111032~1702306143~22.04~d28ffec SMP ...
Alex's user avatar
  • 101
0 votes
0 answers
55 views

using netcat stty not giving complete tty shell when doing CLTR+Z

I'm using netcat and stty to get terminal (tty) access, but I'm not able to do so as the CLTR+Z action on the netcat session is giving me suspended session instead of stopped and then I'm not able to ...
asadz's user avatar
  • 233
0 votes
1 answer
61 views

GL opens in TTY terminal, but not if X is present

asdfdsgAlthough it may seem incredible, I have the problem that GL does not open if X is open, but if X is not open it does open. And I know this because I tested it with the video game Warzone 2100, ...
ArtEze's user avatar
  • 55
0 votes
1 answer
55 views

X11 "bleeds" the output of programs to the tty

I use bspwm with a simple .xinitrc config file instead of a display manager, and there is only a simple exec dbus-launch bspwm command there. Whenever I start a program via, for example, dmenu_run (...
itslayer's user avatar
  • 103
0 votes
0 answers
67 views

How do I identify the connected USB device?

If I write the rules, for example, in this form: ACTION=="remove", GOTO="serial_end" SUBSYSTEM!="tty", GOTO="serial_end" KERNEL=="ttyUSB[0-9]*", RUN+=...
alexanderzhirov's user avatar
2 votes
0 answers
507 views

How to suppress "Failed to set controlling terminal" warning in GDB when setting program to run on another terminal?

I'm using GDB to debug a program, and I want to direct its output to a different terminal than the one where GDB is running. Here's what I've been doing: Open a second terminal, check its device name ...
Sebastian Carlos's user avatar
2 votes
0 answers
377 views

How to disable tty's?

I want Ctrl+Alt F* to do nothing Currently I go to a tty at F3-F6, the login screen at F1 and the DE at F2. How to remove that ability?
01AutoMonkey's user avatar
0 votes
0 answers
120 views

How to reown a process?

when i run this script with a shortcut(sxhkd): #!/bin/sh MUSIC_DIR="$HOME/music" songs=$(ls "$MUSIC_DIR") filename=$( echo -e "random\n$songs" | dmenu -l 30 -i -p &...
white-hat-er's user avatar
0 votes
1 answer
398 views

How to set console for auto login in inittab of busybox?

I am working on an embedded Linux system (kernel-5.10.24) with busybox as init. The kernel log is disabled in serial console without setting console= in kernel command line. So is the logs from init ...
wangt13's user avatar
  • 443
0 votes
0 answers
195 views

Serial interfaces and sysfs. How to get a unique identifier for each serial port

I want to enumerate the serial ports on a Linux system and get unique and stable (across reboots) identifiers for them. Stable in the sense that when I plug and unplug serial USB devices (same USB ...
Andreas H.'s user avatar
0 votes
0 answers
29 views

Python IDE (Visual Studio Code and PyCharm) Issues with "gi" Library

I'm having a specific problem with two Python IDEs, Visual Studio Code and PyCharm, which I hope to get some guidance on. The problem is related to the "gi" library. I'm running Python on ...
Umikali's user avatar
0 votes
1 answer
175 views

how can I make socat simulate unplugging a serial device

I have this test program import sys for line in sys.stdin: print(line.strip()) print("DONE") if I get it to print out lines from a real device (an FTDI) python3 demo.py < /dev/...
Alex028502's user avatar
1 vote
1 answer
87 views

How to setup "Windows" and "menu" keys in pure Linux terminal

When using pure Linux terminal how can I get the Windows (Super) and menu keys events in Emacs? I have several functions attached to them, they work in GUI mode in Gnome, but in pure terminal I just ...
user4035's user avatar
  • 1,115
0 votes
1 answer
132 views

How to find out which tty a command was run in?

Web search found e.g. https://askubuntu.com/questions/624848/view-history-of-commands-run-in-terminal, from which I understood there is the file ~/.bash_history and the temp history. I have many ...
Alex Martian's user avatar
  • 1,065
0 votes
1 answer
77 views

Map usb devices to static addresses on boot

I have a couple of USB devices connected to my computer: An FT232 based USB-UART converter : Used to send and receive data between a microcontroller and the computer using the Serial protocol. A ...
ssarkar's user avatar
  • 103
0 votes
1 answer
101 views

Can I set up a serial terminal (RS-232) without a pty?

I have two computers that both have a RS-232 port on /dev/ttyS0 connect together with a null modem. I am trying to understand bit by bit how an external terminal worked in the old days, and how that ...
Alex028502's user avatar
1 vote
1 answer
2k views

trying to make my own shell handle ctrl+c properly

I am trying to understand how shells are set up so that the programs they are running receive the SIGINT when you press ctrl C but the shell doesn't, because when you are running bash, and run another ...
Alex028502's user avatar
0 votes
0 answers
193 views

Computer freezes such that ctrl-alt-f3 doesn't work; what are the alternatives for recovery?

It seems most questions I find is about ctrl-alt-f3 not working at all. However, that's not the case for me, it generally works. However, sometimes when playing video games, the view freezes (albeit I ...
Coderino Javarino's user avatar
0 votes
1 answer
71 views

When is useful use "silent" for tty?

If the tty --help command is executed it shows tty --help Usage: tty [OPTION]... Print the file name of the terminal connected to standard input. -s, --silent, --quiet print nothing, only return ...
Manuel Jordan's user avatar
0 votes
2 answers
222 views

How to know what is the current tab - number or position - for any Window Terminal?

For Ubuntu and Fedora if is opened a Window Terminal through ctrl + alt + t then is possible open a new tab through shift + ctrl + t. Suppose exists a Window Terminal with 5 tabs. If possible go to ...
Manuel Jordan's user avatar
1 vote
1 answer
348 views

Assign ttyACM to USB

I have a partially similar question like this one ttyUSB? No, ttyACM. How can I assign the usb-device to ttyACM, not ttyUSB? But mine is a little bit more difficult. I recently bought a Feather RP2040 ...
Tobias Reich's user avatar
0 votes
0 answers
44 views

What is the source of this tty console output?

I'm making a kiosk system using Armbian on an orangepi zero 3. The kiosk is a on a local server that I connect to using chromium browser launched from my ~/.bash_profile. Before chromium-browser ...
soccermom420's user avatar
0 votes
1 answer
280 views

How to determine the graphical tty in loginctl

Loginctl lists a lot of sessions, and I want programmatically to know which one is a graphical session (e.g. GNOME desktop). In the example below, I have a GNome desktop session open, an ssh ...
Eric Stdlib's user avatar
0 votes
0 answers
236 views

Process not stopping even after receiving Ctrl-Z

I was learning about signal handlers. I wrote a simple python script to handle and print all signal it gets. Then I ran that script on a remote machine through ssh. Then when I send Ctrl C signal, the ...
Sourav Kannantha B's user avatar
0 votes
1 answer
234 views

ttyUSB ordering

I am working on a project involving the development of a device that interfaces with multiple ttyUSB ports, specifically 16 of them. It's important to note that Linux handles ttyUSB ports differently ...
Saman.K's user avatar
1 vote
1 answer
389 views

How do I determine the PID of the shell running a given pts/tty?

There are many ways to obtain the PTS associated with a given process - such as using the tty command or resolving /proc/self/fd/0 (assuming it's open and not redirected) - but what about the inverse? ...
Tenders McChiken's user avatar

1
2 3 4 5
20