Debian This forum is for the discussion of Debian Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
09-24-2004, 09:09 AM
|
#1
|
Member
Registered: Apr 2003
Location: Basel, Switzerland
Distribution: Ubuntu, OS X
Posts: 77
Rep:
|
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
|
|
|
09-24-2004, 06:28 PM
|
#2
|
Senior Member
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,994
Rep:
|
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.
|
|
|
09-25-2004, 04:53 AM
|
#3
|
Member
Registered: Apr 2003
Location: Basel, Switzerland
Distribution: Ubuntu, OS X
Posts: 77
Original Poster
Rep:
|
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
|
|
|
09-25-2004, 06:59 PM
|
#4
|
Member
Registered: Nov 2003
Location: austria
Distribution: debian
Posts: 667
Rep:
|
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.
|
|
|
09-26-2004, 09:37 AM
|
#5
|
Member
Registered: Apr 2003
Location: Basel, Switzerland
Distribution: Ubuntu, OS X
Posts: 77
Original Poster
Rep:
|
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
|
|
|
09-26-2004, 01:31 PM
|
#6
|
LQ Newbie
Registered: Sep 2004
Distribution: Mandrakelinux 10.0
Posts: 12
Rep:
|
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?
|
|
|
09-26-2004, 01:40 PM
|
#7
|
Member
Registered: Nov 2003
Location: austria
Distribution: debian
Posts: 667
Rep:
|
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.
|
|
|
09-26-2004, 02:03 PM
|
#8
|
Senior Member
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,994
Rep:
|
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.
|
|
|
09-26-2004, 05:11 PM
|
#9
|
Member
Registered: Apr 2003
Location: Basel, Switzerland
Distribution: Ubuntu, OS X
Posts: 77
Original Poster
Rep:
|
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 11:50 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|