LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Terminal change (Ctrl+Alt+F1 to F7) problem (https://www.linuxquestions.org/questions/debian-26/terminal-change-ctrl-alt-f1-to-f7-problem-234721/)

mehlkelm 09-24-2004 09:09 AM

Terminal change (Ctrl+Alt+F1 to F7) problem
 
hi

on my debian sarge install i did a while ago (and still have installed) i cannot switch the Terminals with Ctrl+Alt+F* like normal. When I am in grafic environment i can do Ctrl+Alt+F1 to go to a text based terminal, but from there i cannot get back (ctrl+alt+f7) nor to another text-based terminal (i.e. ctrl+alt+f2).
on an other pc where i installed sarge with the newer beta installer this works fine. but i dont really know if its got something to do with the installer. it cannot be the pc, because the one with this problem didnt have it under red hat.

is this some sort of setting i can change in a config file to get my full terminal functionality?

thanks

stefan

rjlee 09-24-2004 06:28 PM

From the text console, you can press Alt+Function-key to switch between terminals. I understand that Ctrl+Alt+… doesn't always work on some configurations.

Note that you do need Ctrl+Alt to switch from an X server to another VT (X steals and remaps the raw keyboard events).

You can also use the chvt command to switch terminals, as well as openvt to start a process on a different terminal (provided it doesn't have a login; generally this means 8 or above). You can also switch to terminals 13 and above using Shift+Alt+Function-key.

mehlkelm 09-25-2004 04:53 AM

Quote:

You can also use the chvt command to switch terminals
cool, that works great.
but what do you mean with Alt + function-key to switch between terminal? would this mean Alt+F2 to go from VT1 to VT2? that doesnt work here..
ah.. yes i have seen in the man page of chvt that it could be alt+F*.
still, this doesnt work.

since now i know chvt this isnt a big problem, but anyway, can i change this somewhere? so that the system catches "ctrl-alt-f7" as "chvt 7"?

thank you
stefan

mritch 09-25-2004 06:59 PM

the xserver will bind to the first free vt as default. since 1 till 6 are mostly configured as terminal logins it's vt7. they are configured in /etc/inittab.

sl mritch.

mehlkelm 09-26-2004 09:37 AM

looking at /etc/inittab it seems to me that I can only configure the text-based VT's but not the key combination that activates them. Am I right?

stefan

Cezaro 09-26-2004 01:31 PM

Hi.

I can switch betwen my text-based VT with Ctrl+Alt+F1-6, but only the first X VT actually works. When I try to switch to another X terminal (with Ctrl+Alt or chvt, e.g. Ctrl+Alt+F8), it just shows me a blank screen. Then, I can only go back to the default X terminal with Ctrl-Alt-F7.

I have the NVidia driver installed in my system. Could it be that the problem?

How can I get that to work?

mritch 09-26-2004 01:40 PM

yep, you are. switching should work with alt+funktion in terminal mode and srtg+alt+funktion between terminal and x mode. afaik you can bind the xserver to a specific vt with an statoption - look at the various manpages 'bout the x system for that.
i didn't came across a similar prob with these keys so i don't know whats wrong here. also i've no idea where these things are configured...have a look into inittab's and keyboard/keymap related manpages.

sl mritch.

rjlee 09-26-2004 02:03 PM

I don't know how you change the key-bindings that switch between VTs; I suspect that they are hard-coded as Alt+F1 etc. In which case, you probably have the wrong keyboard type selected; I don't know how you change this.

However, if pressing Alt+F2 through Alt+F6 gives you a blank screen, then this is a different problem entirely. The virtual terminals exist but there's no login program (getty program) running on these terminals.

This is controlled by the /etc/inittab file, usually with lines like this:
Code:

# getty-programs for the normal runlevels
# <id>:<runlevels>:<action>:<process>
# The "id" field  MUST be the same as the last
# characters of the device (after "tty").
1:2345:respawn:/sbin/mingetty --noclear tty1
2:2345:respawn:/sbin/mingetty tty2
3:2345:respawn:/sbin/mingetty tty3
4:2345:respawn:/sbin/mingetty tty4
5:2345:respawn:/sbin/mingetty tty5
6:2345:respawn:/sbin/mingetty tty6

See the inittab and getty, agetty and mingetty manpages for more.

mehlkelm 09-26-2004 05:11 PM

i dont have blank screens. the key combinations just dont work except for the first VT. it doesnt even work for the seventh terminal where x runs..
I think i just have to use the chvt command for now.

thanks for the help

stefan


All times are GMT -5. The time now is 05:36 AM.