Questions tagged [tty]
A representation of a device that asynchronously transmits and receives serial data.
265
questions with no upvoted or accepted answers
18
votes
1
answer
3k
views
zsh can't input to terminal when piping stdin and stdout with variable command that has tty output
System info:
macOS Sierra 10.12.6
zsh 5.4.2 (x86_64-apple-darwin16.7.0)
GNU bash, version 4.4.12(1)-release (x86_64-apple-darwin16.3.0)
Scroll to the EXAMPLES at the bottom if you just want to dig ...
7
votes
1
answer
7k
views
cat: /dev/ttyS0: Input/output error
I am unable to write to or read from /dev/ttyS0
# cat /dev/ttyS0
cat: /dev/ttyS0: Input/output error
the device exists, and root has permissions.
# ls -lAhF /dev/ttyS0
crw------- 1 ...
6
votes
1
answer
7k
views
udevadm rule works using "udevadm test" but not with "udevadm trigger"
I have created a simple rule called "99-usb.rules" that simply names a tty port of a specific device
KERNEL=="ttyACM*", ATTRS{idVendor}=="2341", NAME="mydevice"
This rule works fine when I run a ...
6
votes
0
answers
2k
views
How can I start an LXC (linux container) X server on separate TTY?
Apart from my default X server, which I run on tty1, I would like to start another one from within a linux container.
On tty2 (Ctrl+Alt+F2) I log in, then run sudo lxc-start -n c --foreground.
Then, ...
6
votes
0
answers
1k
views
Intermingled input when using local gpg-agent from remote site
I'm starting a local gpg-agent on my Mac, with the extra-socket option. Then I connect to a remote site using SSH, forwarding the remote S.gpg-agent socket to the local S.gpg-agent.extra socket. This ...
5
votes
1
answer
2k
views
Virtualize in multiple TTY (VT*)
I want to get virtual machine in a TTY (VT*) in fullscreen like GDM3 can take a TTY (VT*) for the graphic part of linux
I want DISPLAY (heard as the output of a graphic server, here the VMs) to be ...
5
votes
0
answers
483
views
What does it mean for the X server to live on a particular tty?
On Linux, how does the X server establish a relationship with a particular tty (such as tty7) so that the X server can receive input and draw on the screen only when that tty is in the foreground? How ...
5
votes
0
answers
510
views
What exactly in the sudo behavior is unpredictable?
In the Best practices for writing Dockerfiles guide of the docker documentation, we can read:
Avoid installing or using sudo since it has unpredictable TTY and signal-forwarding behavior that can ...
5
votes
0
answers
1k
views
Pipe audio to another user on the same computer (pulseaudio)
I am running two users at the same time because some games don't like compositing window managers, and you can't turn off compositing in Unity, my favored desktop. I don't want to run two TTYs of the ...
5
votes
0
answers
3k
views
How could a user log in via tty
I rented this cloud server, and it is kind of attacked recently. I can see a suspicious user logged in via tty.
leetom@S152:~$ last -x ayn1
ayn1 tty1 Wed Oct 28 18:59 - 19:...
5
votes
0
answers
2k
views
Start application using xinit on different tty
I'm using Fedora 21, trying the following:
On tty1 is running KDE, just as normal. But to speed up my games/avoid them changing something like gamma, I want to run them on a differnt tty, starting a ...
5
votes
1
answer
3k
views
Scrolling TTY without dedicated PgUp and PgDown
Stop reading if uname -r returns a Linux version greater than 5.9, since scrollback has been simply removed (1, 2).
My keyboard does not have separate PgUp and PgDown keys.
They are in the numpad, ...
4
votes
2
answers
384
views
Lock Virtual Terminals when resuming
Many screen lockers (mine is i3lock) do not block access to other Virtual Terminals. This means that, if I leave a session opened in some VT, then even when the desktop is locked (for example when ...
4
votes
0
answers
1k
views
Why do I not get a console with systemd?
I'm trying to get a login prompt on an embedded system using Debian and systemd. The system is connected via a physical serial console to a host PC. If I start the kernel with the cmdline parameters ...
4
votes
0
answers
2k
views
Single-user mode output to console (tty1) AND serial (ttyS0)
I am using grub2 on CentOS 7. I would like to know if it's possible to display output to both serial (ttyS0) and console (tty1) when I attempt to boot into single user mode. The ultimate goal is to ...
4
votes
0
answers
290
views
Listening on the data between a process and a serial port
I have a process that is using /dev/ttyAMA2 port to communicate with an external device on a PCB.
What options do I have of listening to the communication between a process and a serial port, on an ...
4
votes
0
answers
362
views
Modem's GPS data is piped to wrong device
I have a SIM7100E modem running on 4.8.0-26-generic which specifies the following devices:
/dev/ttyUSB1 : NMEA port for GPS NMEA data output
/dev/ttyUSB2 : AT port for AT commands
Connecting to ...
4
votes
0
answers
1k
views
slow file transfer through serial port with cat
I'm transferring a binary file to an embedded device using a custom AT command set.
I'm running Lubuntu Linux on a virtual machine (Windows 7 host) and the virtual linux guest controls the physical ...
4
votes
0
answers
1k
views
How to send AT commands to serial interface in Yocto Linux?
I have a XBee device attached to the ttyMDF1 interface on an Intel Edison board running Yocto linux. I need to configure the XBee by sending AT commands to it.
I have tried to open a getty /dev/...
4
votes
0
answers
457
views
How to use secondary VGA device for TTYs
I have a machine (a virtual XEN DomU, but I don't think it matters) with two video cards. I would like to display the TTYs on the monitor connected to the secondary video card (i.e., not the display ...
3
votes
0
answers
26
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 ...
3
votes
0
answers
496
views
Controlling terminal of a display server
When I login on a Fedora 31 workstation and run the ps command, I see the below output;
for an X session:
PID TT CMD
...
1 ? /usr/lib/systemd/systemd --switched-root --system --deserialize ...
3
votes
1
answer
904
views
What exactly tty line discipline does with input from pty slave device?
I know that tty line discipline processes special characters (such as ^C, ^? and etc), but it is only about input from pty master device. But what about input from pty slave device? What tty line ...
3
votes
0
answers
3k
views
How to have local echo on with `screen` command?
I tried
screen /dev/ttyUSB1 9600,echo
but I still don't see what I type.
3
votes
0
answers
7k
views
Reading/Writing to TTY using systemd
I have an application that writes and reads to an interactive terminal, and when I run it via the shell, it works as expected. However, when I run it as a systemd service, it seems as though the ...
3
votes
1
answer
664
views
when in X11: how to disable switching tty with Ctrl-Fn and Alt-Fn
It's super annoying that when I'm in X11 session Ctrl-F[1-12] and Alt-F[1-12] switches Linux virtual tty. How to disable it? (Ctrl-Alt-F[1-12] should work).
I'm using startx to start X11 session with ...
3
votes
0
answers
167
views
Detecting intervals of inactivity in the tty? (to simulate setterm --blank in fbterm)
setterm --blank n allows me to configure the virtual terminal to automatically shut the display off after n minutes of inactivity. Unfortunately, I spend all my time in fbterm, where setterm does not ...
3
votes
0
answers
443
views
VConsole Setup fails: Virtual console /dev/tty0 is not in K_XLATE or K_UNICODE
Since a few days journalctl shows the following error while booting:
systemd-vconsole-setup[701]: Virtual console /dev/tty0 is not in K_XLATE or K_UNICODE.
After that systemd-vconsole-setup fails to ...
3
votes
0
answers
685
views
Change TTY resolution on Fedora
I'm using Fedora 25 on ASUS laptop connected to the LG external monitor.
The monitor (unlike the laptop's screen itself) doesn't show TTY full screen, while it's okay with the GUI (that's i3wm or ...
3
votes
0
answers
369
views
Why only 4 chars get sent to serial port via command-line
I'm trying to communicate with NodeMCU (CP210x USB/UART) from command-line. However it does not respond to my commands. I have set the correct baudrate via stty 9600 raw.
echo "gpio.write(0,gpio.LOW)"...
3
votes
0
answers
2k
views
Where EOF character is processed when it sent over telnet connection
Let's suppose I am connecting to telnet server, where bash is running.
I am executing command cat > /tmp/qqq; typing some contents of a file and finally sending 0x0a 0x04 which meant EOF.
The ...
3
votes
0
answers
1k
views
Plymouth splash not working and causing VT problems
Since I tried installing Plymouth (boot splash), I'm facing two problems :
It's not working
My Virtual Terminals (tt1 - 6) aren't working anymore
Here what I did :
Added plymouth hook (after base ...
3
votes
0
answers
179
views
No Login on created on tty2 to 6
On my Debian Linux no Login is possible on terminals 2 to 6. Login on 1 works fine, xorg-session with XDM and awesome wm works, too.
The Error Message shown on these 5 screens is:
systemd-logind[...]...
3
votes
1
answer
1k
views
Can I get an 8-bit clean connection with 'socat'?
This question is mostly about "socat", but here's some background to go with it:
I am trying -- for reasons having mostly to do with nostalgia -- to write a virtual modem driver for use with ...
3
votes
1
answer
5k
views
Ubuntu server 16.04 tty not working
I have upgraded my office server to Ubuntu server 16.04, but I have a problem with virtual terminals: they don't open.
The system boot correctly, also ssh works, but if I want to use the console by ...
2
votes
0
answers
24
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+="/...
2
votes
0
answers
125
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 ...
2
votes
0
answers
174
views
How to get my brightness/volume and other special keys to work in a tty
I am running Debian stretch on a Lenovo laptop with only a window manager (i.e.
no desktop). Out of the box, this configuration of Debian ignores the keys with
special functions, such as volume up, ...
2
votes
0
answers
61
views
When switching tty, who is responsible for synchronizing the state of keyboard NumLock?
My Xorg program uses tty1. Use Ctrl+Alt+F[2~6] to switch between ttY[2~6]. At this time, the NumLock or CapsLock state (including the corresponding LED light on the keyboard) can be synchronized ...
2
votes
1
answer
722
views
What does it mean if the TTY field is a question mark?
What does it mean when ps lists a process's TTY as ? instead of a tty device name/number?
For example:
piotr@thinkpad:~$ ps -A | head -2
PID TTY TIME CMD
1 ? 00:00:04 ...
2
votes
0
answers
216
views
How to get duplicate boot output on tty and serial console with systemd
In el6 with console=tty0 console=ttyS0,115200 in the kernel cmdline I would get sysvinit and kernel printk output in both the AWS system log and the instance screenshot.
Example showing both printk ...
2
votes
0
answers
482
views
How to increase font size in virtual console (tty) in Ubuntu 20.04 on 4k screen? Or how to change the resolution?
I am using a dell XPS 13 laptop with 4k screen and the text on the virtual console is very small. I would like to increase the font size. With the command sudo dpkg-reconfigure console-setup I took:
...
2
votes
0
answers
195
views
What could go wrong with sending input to /dev/tty?
My setup entails sending inputs to another terminal program running Bash in the same machine and same X session. I'm using ttyecho for that which, to put it short, sends input to /dev/tty/[id], ...
2
votes
1
answer
693
views
How do I successfully run a second X session?
I'm trying to run startx -- :1 vt1 on a tty with a standard user (named stduser), which is already natively logged on Debian 10 with XFCE as per this answer: https://unix.stackexchange.com/a/85384
The ...
2
votes
1
answer
381
views
identify process sending a signal to a shell script
I've written a shell script that uses the trap feature to output its progress when it receives a SIGUSR1 signal, but I don't see how to have the script be able to output the progress to the STDOUT of ...
2
votes
0
answers
565
views
How to TTY on Debian into Huawei e5573s
i want to establish serial connection com port to Huawei e5573s connected via USB, so i can send some AT commands at it
as far as i understand, i need to establish a TTY connection to the device on ...
2
votes
0
answers
172
views
Map console key combination to single key press
I want to map (for example) the combinations:
Windows + Left == Home
man setkeycode seems to only talk about single key mappings.
How would I go about doing this in a Linux virtual terminal?
I'm ...
2
votes
0
answers
143
views
Associating pts and tty to a process
I am trying to find out which tty or pts is being run by which process.
My research so far is that:
tty is a kernel or backend terminal to handle lower level stuffs
pts is a pesudo terminal to allow ...
2
votes
0
answers
2k
views
Run GUI Application in a TTY Without Window Manager
What commands and variables need to be set up so I can run a GUI app on one the of the ttys without the Window Manager?
Special Note: This question has been edited due to comments for testing and now ...
2
votes
0
answers
2k
views
Can't access tty using Ctrl+Alt+F1,F2,F3 etc
Here is what I have tried:
$ xev
KeyRelease event, serial 43, synthetic NO, window 0x4a00001,
root 0x1db, subw 0x0, time 23449801, (434,-234), root:(1305,244),
state 0x1c, keycode 67 (keysym ...