Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
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.
I have the following problem: I can't switch to a virtual console when loged into gnome (actually, i havn't tried from KDE). Ctrl-Alt-F1, etc simply does nothing.
Is it possible this is turned off somewhere? Or is something seriously b0rken? How can I find out? Is there an alternative way to switch?
please help
Oh, i nearly forgot:
I'm running Gnome 2.2.0 on a RedHat 9 System. The WM is metacity (gnome default). Keyboard-Layout is German-NoDeadKeys.
yes i did try all keys (CTRL-ALT-F1 through F6), and yes i held down the keys FIRMLY and long. I even tried the other ctrl/alt keys (right side). Nothing.
Also, i have the same problem on my laptop (same distro). But there it worked once or twice... The thing is i usually only try that only when X or Gnome has barfed -- so maybe it worked sometimes because whatever causes it not to work had just crashed ?...
My suspicion is that something captures those key-events and does not forward them correctly (or not at all). What would be the possibilities here?
Oh, BTW: Ctrl- and Alt-Keys seem to work as expected for other programs, so a messed-up keyboard-layout should not be the cause, i think.
do you have any suggestion where i could start to look?
i tried pressing NUMLOCK, then CTRL-ALT-F4, then NUMLOCK again, the CTRL-ALT-F4 again... nothin. It even seems that NUMLOCK is disabled completele: The LED stays off an when i type, i allways get numbers. That's a little strage, but fine with me... who needs the Naviagion-Function of the numpad anyway?
(actually, i've long been searching for a Keyboard without a numpad, but with the Kursor-Keys etc in the right place. WOuld give me more root for the mouse...)
thanks anyway...
hmmm... this seems thougher than i thought. Where else could i ask my question? oh, and btw: i heard rumores about the virtual-console-switching being turned off in some distros becausee "it confuses the user". I wasn't able to confirm that, though... any idea about redhat?
Another possibility is of course that the runlevel you are in does not have tty1 etc. consoles. If this is possibility could look in ?inittab - the basic init file - to find a suitable run-level to switch to. If none exists then edit inittab.
If numlock not working could that mean the keyboard is incorrectly set up - so when press 'ctrl-alt-Fn' the computer gets 'not all swans are white'?
My Repost of this just got Closed by a mod for being just that -- a repost. Sorry, i didn't mean to spam you, i just thought the topic meight be RedHat-specific so i posted in the RedHat forum. Next time i'll just rephrase and not back-link
Thanks for another place to look... but /etc/inittab does not seem to be the problem either. Here is an excerpt:
Quote:
# Run gettys in standard runlevels
1:2345:respawn:/sbin/mingetty 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
Looks fine, no? Also, calling "/sbin/mingetty tty2" manually has no effect.
I just noticed: hitting CTRL-ALT-F1 (F2, etc) in a gnome-terminal results in the character-sequence ";7~"... that should not happen, right? That keystroke should never reach the console? Oh, when i try this in Konsole, I get [23~ for CTRL-ALT-F1 and [24~ for C-A-F2, but nothing for the other Fs. strange....
thanks again for the starting point, i'll now google for "inittab"...
Open an xterm, Konsole or whatever it's called and execute "xev|grep x0.*key". Press these keys after the other: CTRL, ALT, F1, then close the white Xev screen. Now run "xmodmap -pke|egrep -ie "alt|contr"". Please post output from both commands, they should show your keytable mapping for these particular keys.
BTW: Ctrl-Alt-Backspace does not work either, Ctrl-Alt-Del however does work as specified in inittab (shows a gui-dialog prompting for logout/shoutdown).
Oh, and yes: mingetty is running on tty1-tty6 and "cat /dev/vcs1" etc works fine.
My only idea is that X does not handle Ctrl-Alt-F? as expected. Where would i configure X to handle those keys?
Ok, i had to install the "open" package first, but "switchto 1" works as expected. Going back to X with ALT-F7 also works.
The bad thing is that in case i really need the VC (that is, X has barfed), i won't be able to type that command... considering that CTRL-ALT-BACKSPACE is also broken, i'll be rebooting just to get rid of a broken X
thanks anyway, i always wondered how to switch to a VC from a script (in case i would ever need that... never mind).
All the hassle was caused by the KGB: This #!&* piece of crap of an applet monitors the keyboard to change the layout on special keystrokes. An this somehow breaks the CTRL-ALT-F? thingy.
Wow. Would have thought someone had noticed by now... I'm going to file a bugreport with the KGB folx.
OK, i can relax now... thank you all for your time....
i just found the problem with the Gnome KeyBoard-Applet. Thanks to Shooby (author of the Applet) for a quick response (although it did not lead me to the solution). I was a little unfriendly about his Applet, as i though it was stealing the keystrokes itself. In fact it seems that the applet just cause a faulty layout to be loaded -- not the fault of the applet (or its author). I still don't understand the details, but here is what i found out:
The problem does not occur if i use setxkbmap for switching kb-layouts -- that is, the problem is somehow related to gkb_xmmap. I probably have a hose layout-file somewhere...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.