Questions tagged [chvt]

8 questions
6
votes
3 answers

How to manually run/init/start a Xorg server on a different VT/TTY?

I want to start an Xorg server (which should only feature a minimal xterm terminal emulator from a newly created "pristine" tty). I have thought this to be as simple as issuing a xinit or maybe a startx however both have failed me. Therefore the…
fraleone
  • 737
  • 2
  • 9
  • 21
2
votes
1 answer

What is this openvt command doing?

What is this command really doing (step by step)? openvt -c 40 /bin/agetty tty40 linux I tried this command instead : openvt -c 41 /bin/agetty tty40 linux and agetty was started on tty40 (not tty41). Why is that? It seems the -c 41 option is not…
Gradient
  • 3,579
  • 10
  • 31
  • 37
1
vote
1 answer

Prevent Xorg from suspending when changing tty

I'm running two applications on two different ttys. Say application A runs on ttyA and application B runs on ttyB. If I switch from ttyA to ttyB I get the following message x-daemon[544]: (II) AIGLX: Suspending AIGLX clients for VT switch. So…
plazmakeks
  • 171
  • 7
1
vote
1 answer

invoking password-less sudo via xbindkeys

I tried to set up key bindings for changing the virtual terminal (VT) in X, as described in this post. Typing sudo chvt $(($XDG_VTNR-1)) into a terminal emulator appropriately changes the VT. However, I find that running chvt with elevated…
user001
  • 3,598
  • 5
  • 39
  • 54
1
vote
1 answer

How to copy text of virtual terminal from graphics mode?

Linux have virtual terminals, one can switch between them with chvt 1, chvt 7 commands. Former is in the text mode, later is in the graphics mode. I want to copy all the text from first terminal, with some utility from graphics mode. fbgrab -c 1…
1
vote
0 answers

Why can't I switch virtual terminal now?

I have noticed I can't lock the screen because of vlock hangs. chvt also hangs on VT_WAITACTIVE and only attempts to switch the terminal (I see the image blinking). Pressing keys that in usually switches VT in text mode (Alt+arrows, Alt+Fx) also…
Vi.
  • 5,528
  • 7
  • 34
  • 68
0
votes
0 answers

How to tell if I am on active virtual console?

This is probably linux-specific question... I am running multiple virtual sessions and switching between them using "Ctrl+Alt+Fn". I am trying to write a script which would trigger some actions after I switch in/out of consoles. I understand that I…
galets
  • 1,045
  • 1
  • 9
  • 17
0
votes
1 answer

How to reset VT 1 (or avoid getting into a bad state)?

This is a cross-post from RPi. I wrote a series of bash functions to allow me to switch between Raspbian, kodi, and emulationstation so that I could use Siri/homebridge to initiate the switch. Switching works all pretty well. The only problem is…
hepcat72
  • 195
  • 7