You are not logged in.
I'm not sure when it started to happen, but after some upgrade I started noticing that gnome no longer disables Alt+Fn combination as console switcher. It still uses it for its own purposes, but it also switches into a corresponding console
For example:
~~~~~~~~~~
- I press Alt+F2 in order to get an "Enter a command" dialog.
- It switches me from gnome session into console at terminal 2
- I press Alt+F1 to switch back
- I see gnome with "Enter a command" dialog open. Basically, gnome handles Alt+F2, but OS also handles it
How do I go about disabling Alt+Fn switch and only allow switching using Ctrl+Alt+Fn?
Offline
Key presses first pass through the server and then into the wm (Gnome Metacity).
You could place a file in /etc/X11/xorg.conf.d/ with the following:
Section "ServerFlags"
Option "DontVTSwitch" "true"
EndSection
However, you should also check for the Xorg zap keycombo (CTRL+ALT+BACKSPACE).
fs/super.c : "Self-destruct in 5 seconds. Have a nice day...\n",
Offline
Thanks for suggestion, however it doesn't seem to have worked. I added a file, then restarted gdm (`systemctl restart gdm`), and same issue keeps happening
Offline
I'm not sure if GDM restarts Xorg. I suggest a reboot.
fs/super.c : "Self-destruct in 5 seconds. Have a nice day...\n",
Offline
nope... reboot did not help.
Offline
Here's another what I noticed: when I am in gdm logon screen, Alt+Fn switch does not work, and neither does Alt+Ctrl+Fn. Also, if I start a new session on a new display, switch again does not work. The moment I login into gnome of xfce4, both Alt+Fn and Ctrl+Alt+Fn will switch windows
Offline
OMFG!!! i know partially wth is happening. Apparently what was screwing up the keyboard in gnome was the 'kbd_mode -u' command I added to startup so that caps lock LED reacts to the caps lock state...
Offline
I'm still stuck here......
When I initially load gdm, and if I go to xterm, I get following:
#kbd_mode
The keyboard is in some unknown mode
Caps lock LED doesn't work. Alt+Fn doesn't switch consoles, but neither does Ctrl+Alt+Fn
when I run:
kbd_mode -u
I get BOTH Alt+Fn and Ctrl+Alt+Fn to switch sessions. All other switches with kbd_mode produce either one or another... I can never get to the point where Caps Lock led works normally, Alt_Fn does not switch sessions, and Ctrl+Alt+Fn does.
Offline
kbd_mode is a tty utility. The Xorg server grabs the tty and hopefully nothing 'falls through'. Apparently, using kbd_mode (as root right?) messes this up.
Maybe try a Xorg utility? https://wiki.archlinux.org/index.php/Ke … ard_layout
fs/super.c : "Self-destruct in 5 seconds. Have a nice day...\n",
Offline