LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 09-24-2004, 09:09 AM   #1
mehlkelm
Member
 
Registered: Apr 2003
Location: Basel, Switzerland
Distribution: Ubuntu, OS X
Posts: 77

Rep: Reputation: 15
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
 
Old 09-24-2004, 06:28 PM   #2
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,990

Rep: Reputation: 67
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.
 
Old 09-25-2004, 04:53 AM   #3
mehlkelm
Member
 
Registered: Apr 2003
Location: Basel, Switzerland
Distribution: Ubuntu, OS X
Posts: 77

Original Poster
Rep: Reputation: 15
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
 
Old 09-25-2004, 06:59 PM   #4
mritch
Member
 
Registered: Nov 2003
Location: austria
Distribution: debian
Posts: 667

Rep: Reputation: 30
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.
 
Old 09-26-2004, 09:37 AM   #5
mehlkelm
Member
 
Registered: Apr 2003
Location: Basel, Switzerland
Distribution: Ubuntu, OS X
Posts: 77

Original Poster
Rep: Reputation: 15
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
 
Old 09-26-2004, 01:31 PM   #6
Cezaro
LQ Newbie
 
Registered: Sep 2004
Distribution: Mandrakelinux 10.0
Posts: 12

Rep: Reputation: 0
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?
 
Old 09-26-2004, 01:40 PM   #7
mritch
Member
 
Registered: Nov 2003
Location: austria
Distribution: debian
Posts: 667

Rep: Reputation: 30
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.
 
Old 09-26-2004, 02:03 PM   #8
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,990

Rep: Reputation: 67
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.
 
Old 09-26-2004, 05:11 PM   #9
mehlkelm
Member
 
Registered: Apr 2003
Location: Basel, Switzerland
Distribution: Ubuntu, OS X
Posts: 77

Original Poster
Rep: Reputation: 15
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Gnome crashes to black screen after boot up (though ctrl-alt-F2 gives a terminal) Gossamer Linux - Newbie 0 10-06-2005 01:32 AM
dark screen when pressing Ctrl + Alt + Backspace or Ctrl + Alt F1-F6 in Gnome or KDE trinoo Slackware 5 01-28-2005 08:13 AM
Switching window focus (like alt+tab in windows) and Ctrl+Alt+F1 X windows problem... DiZASTiX Linux - Software 3 01-20-2005 04:56 PM
Lifebook S6210, ctrl+alt+F* problem Karasu Linux - Laptop and Netbook 0 05-24-2004 06:41 AM
ctrl+alt+fn problem petarsabev Slackware 4 09-30-2003 05:02 AM


All times are GMT -5. The time now is 03:30 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration