Questions tagged [tty]
A representation of a device that asynchronously transmits and receives serial data.
922
questions
2
votes
0
answers
14
views
How do I RUN systemctl with udev rules?
I am attempting to start a service with systemctl using a udev rule.
SUBSYSTEM=="tty", ATTRS{manufacturer}=="Belkin USB PDA Adapter", ATTRS{serial}=="778452", RUN+="/...
0
votes
0
answers
13
views
How do I read the cli output from a serial connection to a flipper zero without being connected to it?
I've got a flipper zero that I can connect with using screen tty.DEVICE. It gives me access to the flipper's very limited CLI OS. I would like to write a script to do X when Y nfc card is detected. ...
1
vote
2
answers
60
views
Linux: Is it possible to have TTY messsages in terminal emulator?
I use LinuxMint21, and I go in TTY only when I have an issue with my X session.
Today, I went to a TTY, and I saw messages about sysrqd, partially disabled (was not expected), and I have some upgrade ...
1
vote
0
answers
12
views
Configured Pymodbus baudrate different from /dev/ttySX
I am programming a modbus client to read a sensor. I have a code that works correctly on Windows (with multiple baudrates). However, when running it on Linux the baudrate is incorrect. I am using the ...
0
votes
0
answers
59
views
Blinking Cursor on Black Screen with No TTY Access after Pacman Update
I'm currently using a dual-boot of Windows and Archcraft, and even after what happened to Linux, Windows works fine.
After a little bit more than 6 months of great use of Archcraft, I decided to make ...
0
votes
1
answer
38
views
Display emoji in tty or fbterm?
I am working with an old Raspberry Pi that only has text mode. Distro is Raspberry Pi OS based on Debian 11. By default the emoji characters only print as white diamond shapes in tty; in fbterm they ...
1
vote
1
answer
78
views
TTY disabled when using nvidia gpu (Arch)
I'm trying to figure out how to fix one of the last remaining problems with my linux installation. Everytime I install my nvidia drivers (nvidia-dkms or nvidia-open or xf86-video-nouveau) my tty are ...
0
votes
0
answers
20
views
Function like latency timer for cdc_acm
I have an application where a /dev/ttyACMx needs to report to the computer consistently and often (10 bytes at 200 Hz). For my application it is very important that this is delayed minimally (ideally &...
1
vote
1
answer
82
views
how to remove the buffer when simulating a serial device with socat
I am creating a fake serial device like this:
socat -d -d pty,raw,echo=0 pty,raw,echo=0
This creates devices with new numbers each time. Let's call them /dev/pty/6 and /dev/pty/7
To simulate a ...
1
vote
0
answers
52
views
Trying to make a fake GPS device with socat
Background:
I am trying to make a fake GPS device so that I can put the wrong time in the output, and then make sure that when I set up chrony and gpsd, I am getting the time from serial feed that I ...
1
vote
1
answer
50
views
Send and trap SIGTTIN SIGTTOU in foreground process?
From the description of signals (reference), it seems like SIGTTIN and SIGTTOU are sent to a process only if it is in background. Pressing Ctrl-s does stop printing in terminal, if such flow control ...
0
votes
1
answer
54
views
Why can bash not to follow stty settings?
From an answer to one my previous question I learned that shells (such as bash) have an ability not to follow the rules of terminal input processing set by stty(1). In particular, they can operate in ...
0
votes
1
answer
30
views
Search processes by executable name, excluding those without a TTY?
I'm trying to search for processes that have a given executable name and have an associated TTY.
My use-case is an attempt to identify running abduco client processes. Since abduco runs client ...
0
votes
0
answers
25
views
Fedora mate top bar disappeared, mouse right click does not respond
There is no top bar, i can not open terminal. Right clicking to desktop does not do anything. I can just write commands on tty. Suddenly happened. How can bring back the top/menu/task bar?
0
votes
0
answers
44
views
can't log in via both GNOME Display Manager and tty
I reinstalled (Fedora 37) system and restored some vital files to my home directory by using rsync's --archive flag. Potentially after replacing some .bash* files new terminal sessions were closed ...
1
vote
1
answer
70
views
Interact with Linux service via SSH
I've rented a server which I access using the Terminus SSH terminal. I've created a program that has prompts and takes input and works as intended when started normally. But I've created a service to ...
1
vote
0
answers
44
views
Firefox, electron video streaming runs out of buffer when working on a different TTY
I have a dual-user setup having previously split work and personal users on the same computer.
I've already set up sound in a way that both users can play audio via the personal user's wireplumber ...
0
votes
0
answers
18
views
How to use Fixed family bitmap fonts in fbterm
I work in a text terminal a lot on my Debian 12 box, and I like the bitmap font family it uses, which IIRC is called Fixed. I use vim for pretty much everything, and it works well in this environment.
...
3
votes
0
answers
25
views
How to force screen to be white, irrespective of tty, DE, etc
I'm trying to create a completely flickerless boot and login with Xorg, and I'm particularly interested in the time between the bootsplash (I use Plymouth) and Xorg being fully loaded (i.e. after the ...
0
votes
0
answers
123
views
How to redirect console to ttyprintk
all.
I am trying to implement the phrase written in the ttyprintk description:
The feature is useful to inline user messages with kernel messages. In order to use this feature, you should output user ...
0
votes
0
answers
886
views
Cannot access '/dev/ttyACM0': No such file or directory
So i need to use '/dev/ttyACM0'. I try to show all USB option available with:
~$ sudo dmesg | grep tty, and i get
[ 0.098062] printk: console [tty0] enabled
[ 291.890275] cdc_acm 2-1.3:1.0: ...
0
votes
1
answer
141
views
Change colors of the linux console (not the emulator) [duplicate]
I would like to change the default colors used by the terminal (in particular the blue that is difficult to read with black background).
How can I achieve that result? I know this has been asked a lot,...
1
vote
1
answer
47
views
Why does the UID of /dev/tty1, tty2 change preiodically on Ubuntu 22.04
I am on Ubuntu 22.04.
I noticed that the tty which runs the Ubuntu GUI periodically changes from tty2, to tty3, what is the reason for this?
I also noticed other UID changes, for instance tty1 has ...
16
votes
2
answers
3k
views
How do interactive CLIs work?
How do command-line applications like Vim work? Specifically, how do they take control of the terminal in the manner they do? Also, for future reference, is there a specific term for applications that ...
0
votes
1
answer
30
views
Why do some applications started using bash "bind -x" hang the terminal?
I have these bindings in .bashrc:
bind -x '"\C-f":"vim -c MRU"'
bind -x '"\C-g":"lazygit"'
and after starting vim using Ctrl-F and exiting it, it leaves the ...
0
votes
1
answer
93
views
Is a wine TTY instance possible?
I would like to know if I could connect to a wine desktop interface, like I do for Cinnamon, KDE or else. I've noticed that wine doesn't use the x-server, but the wine application to load window ...
0
votes
1
answer
196
views
Can't switch tty from tty2 to tty6 in Arch Linux
I can't switch tty from tty2 to tty6 in Arch Linux. When I switch outside the GUI, the screen doesn't change (the text from tty1 remains, only the cursor disappears completely). And in the GUI (sddm, ...
0
votes
0
answers
58
views
Can't `beep` without an active tty
I am having this issue, I can't beep the Debian10 headless box without a local user logging on a real TTY (ok, meat to be a headless box, though needs a monitor for mentioned test). By beep, I mean ...
0
votes
1
answer
241
views
Open an additional X session for a new DISPLAY
I am writing and debugging a Window Manager for X.
I would like to be able to run gdb on my application. The application requires an X display. I want two sessions in parallel: one where I develop, ...
0
votes
1
answer
33
views
Questions about tty
Why are there so many ttys? Are multiple tty necessary?
Why are multiple things spread in different ttys? For eg i have the runit logs on tty1, wm on tty7, and a blinking white cursor on the corner of ...
2
votes
2
answers
171
views
Does the tty line discipline echo vertical arrow keys?
When my program is reading user input, the vertical arrow keys do nothing. If the line discipline was echoing everything to the master side, wouldn't the cursor move up to the previous line of the ...
1
vote
1
answer
42
views
How to detect if I'm connected on the console
I would like to find a reliable way to detect if I'm connected on the console before doing network maintenance.
So far I found this :
$ tty | grep /dev/tty
/dev/tty2 # Connected on the console
$ ssh ...
1
vote
2
answers
122
views
grep the console (terminal) content, after it has been displayed. (not the same as greping stdout)
I've run plenty of commands on my terminal, their results are displayed on it.
It's time I'm willing to search among what is written, without re-running the commands that produced these results.
Only ...
1
vote
1
answer
536
views
Qemu - Pass tty device from host to guest machine
My goal is to pass a tty device from the host to guest in Qemu.
I'm trying to emulate a ARM64 linux device using Qemu that has a USB-CDC device plugged into it. So far, I have emulated said USB-CDC ...
2
votes
0
answers
124
views
How can I save the scrollback history of every window/pane in a tmux session?
I'd like to save the complete scrollback history of every window/pane in a tmux session into one file per pane.
I know how to do it in the active pane:
tmux capture-pane -pJ -S - > log.txt
But, I ...
1
vote
1
answer
80
views
Unable to get terminal prompt when executing script via ssh
I have the below script that works fine when run locally
cat /tmp/input.sh
echo -n ">> "
read env
exit;
I get the command prompt when i ...
0
votes
1
answer
45
views
why password is not asked when output is shown in another terminal
When i use:
date > /dev/tty3
the output is delivered to first cli terminal.
But my question is why does the terminal not ask for password.
We are using terminal for output, the command is ...
-1
votes
3
answers
149
views
Running process in background ruins terminal
I have this makefile:
all:
sudo watch "ls -l" > /dev/null &
@echo line 1
@echo line 2
@echo line 3
@echo line 4
Running watch (or any other ...
0
votes
0
answers
72
views
Can I open a tty program while inside another tty? Child vty process?
I'm busy creating an interactive 'tty' TUI program, and I'd now like to open another 'tty' program like less with it's interactive screen. If I try this normally, when starting a process a bunch of ...
0
votes
0
answers
74
views
Where is the default VESA blanking mode in a Linux console tty set?
The Linux console tty implementation supports a "VESA blanking mode" option. This appears to define whether "console blanking" will actually standby/poweroff the monitor (...
3
votes
2
answers
658
views
How to scroll back in Linux virtual consoles (2022)? [duplicate]
I'm only talking about the generic Linux virtual console, not terminal emulators such as GNOME Terminal or remote login interfaces like PuTTY.
It seems that some methods have been deprecated in newer ...
0
votes
0
answers
340
views
I can't seem to get my serial ports working -- I get an input/output error. How do I fix this?
I'm working on a BeagleBone Black running 3.8.13-bone80. I'm trying to get UART2 working, but I can't seem to get it and I don't know the root of the problem.
I'd like to configure ttyS2 as such: stty ...
0
votes
0
answers
93
views
BLFS - Black Screen after modprobe AMDGPU, but startx gives display
I have compiled Linux From Scratch, and enabled the amdgpu driver as a module from the linux kernel config. However, after the module is loaded, the graphics card initiates, then shows a black screen....
0
votes
1
answer
415
views
How can I poll a serial for input?
So I have a device than transmits integers at a set frame-rate (10 fps or something). It connects via a usb cable to my linux machine (ubuntu 20.04) where it is recognized as ttyACM0. I can cat this ...
1
vote
1
answer
197
views
Can you run a program before the TTY login shows up?
I want to execute cmatrix in my TTY for when I connect my Raspberry Pi to a monitor by default. I found a .service file here, and I'm wondering if it could work in my case.
Again, I just want cmatrix ...
0
votes
0
answers
351
views
UDP to virtual serial port bi-directional bridge
I need to create a bi-directional UDP to virtual serial port bridge,
the serial port will be used in a C program trough an API that can only accept serial ports as its I/O stream.
I tought to use ...
0
votes
0
answers
287
views
How to open a TTY session during startup and begin logging
Struggling to write a script that will open a TTY session during startup or shortly and continuously log.
Context:
I have an on small PC that is being deployed as an on prem syslog server running ...
0
votes
0
answers
76
views
How to pass standard streams through a pseudo-terminal (in C)
Here is my contrived use case: write a C program that hooks into stdout and stderr in order to passively examine those text streams before sending them along to the console as usual. Each time the ...
0
votes
1
answer
808
views
getty@tty1.service FAILED - Autologin only shows on TTY1 a flashing _
I'm working on a minecraft server with OS Ubuntu server 20.04
So far they haven't given me any problems (it's fantastic!), I know some things about linux (some don't exaggerate)
Until something came ...
1
vote
2
answers
507
views
How to remap Ctrl to Caps Lock in a TTY?
I already understand how to remap keys in an X graphical server. However, I sometimes like to do work from a TTY and cannot seem to figure out a way to functionally remap Ctrl to Caps Lock.
I have ...