You are not logged in.

#1 2012-08-15 19:49:52

alex404
Member
Registered: 2009-12-03
Posts: 51

Can't switch virtual consoles with Ctrl-Alt-Fn [SOLVED]

Pretty much exactly what is says in the title. I recently reformatted this machine, and everything seems to be working relatively okay, but for some reason Ctr-Alt-Fn simply doesn't do anything. I can't access my other virtual consoles, it's rather frustrating, and I have no idea how to proceed.

Any help would be much appreciated.

Last edited by alex404 (2012-08-17 10:07:40)

Offline

#2 2012-08-15 20:23:50

joseperezc
Member
Registered: 2011-03-02
Posts: 80

Re: Can't switch virtual consoles with Ctrl-Alt-Fn [SOLVED]

it's Ctr-Alt-Fn + F1, or  F2, ... F6 usually


Hope to be helpfull

Offline

#3 2012-08-15 20:25:22

alex404
Member
Registered: 2009-12-03
Posts: 51

Re: Can't switch virtual consoles with Ctrl-Alt-Fn [SOLVED]

Right, I forgot there was an Fn key. I meant F#. So Ctrl + Alt + F1...

Offline

#4 2012-08-16 01:17:58

ConnorBehan
Package Maintainer (PM)
From: Long Island NY
Registered: 2007-07-05
Posts: 1,359
Website

Re: Can't switch virtual consoles with Ctrl-Alt-Fn [SOLVED]

Can you verify that the keys work by themselves? It might be an issue with the keyboard driver. Try switching between "evdev" and "kbd". I have in my xorg.conf:

Option	    "XkbOptions" "terminate:ctrl_alt_bksp"

Maybe there's a similar syntax for forcing X to switch consoles, like getting it to use the "chvt" command.


6EA3 F3F3 B908 2632 A9CB E931 D53A 0445 B47A 0DAB
Great things come in tar.xz packages.

Offline

#5 2012-08-16 07:27:55

alex404
Member
Registered: 2009-12-03
Posts: 51

Re: Can't switch virtual consoles with Ctrl-Alt-Fn [SOLVED]

Okay, I didn't realize that chvt is the program that I want to run, so that's super helpful.

When I first tried to run that I got some error about not being able to read in file, and so I ran it as root and it worked fine.

So I added myself to the tty group, and now I get this error: chvt: VT_ACTIVATE: Operation not permitted

Interestingly, I only get this when I run it from a terminal emulator in X11. When I run it while still in the console just after boot, chvt works fine. Now I'm rather stuck again...

Offline

#6 2012-08-16 18:22:39

ConnorBehan
Package Maintainer (PM)
From: Long Island NY
Registered: 2007-07-05
Posts: 1,359
Website

Re: Can't switch virtual consoles with Ctrl-Alt-Fn [SOLVED]

Hmm you're right. I hadn't actually tried chvt when I wrote that, I just remember it working in the past. Now there is a limitation that prevents it from working unless you are root so I can't run chvt as a normal user either. Switching consoles using Ctrl+Alt+Fn still works for me because X runs as root. Did you somehow get X to run as a normal user? AFAIK X always runs as root even when startx is called by a normal user. See if the VT_ACTIVATE error appears in .xsession-errors (or whatever file you pipe startx output to).


6EA3 F3F3 B908 2632 A9CB E931 D53A 0445 B47A 0DAB
Great things come in tar.xz packages.

Offline

#7 2012-08-17 10:06:31

alex404
Member
Registered: 2009-12-03
Posts: 51

Re: Can't switch virtual consoles with Ctrl-Alt-Fn [SOLVED]

Okay, so it turns out the problem was actually with my keybindings. I had an old xmodmap file which I've used for a while, but I'm assuming that a new version of xmodmap changed things a little bit internally, as the way the function keys are mapped appears different from how it used to be. Thanks for all the help.

Offline

Board footer

Powered by FluxBB