6

After moving on to Ubuntu 22.04, I can't use the Ctrl-Alt-Fn set of keys anymore.

Maybe the reason is the input language switch, which works with both

  • Ctrl + Alt on both sides
  • and superkey + space

However, I see only the second variant in the settings.

How to switch to console only mode?

What happens:

  • press Ctrl-Alt-Fn (like F3, or F1, there is no Fn key as such, N is an integer here)
  • only language input is changed

pastebin

Consequences:

  • Can't change to console
  • Can't upgrade NVidia driver
  • Can't do data science
Dan
  • 14,180
Tavi
  • 61

2 Answers2

2

I'm running Ubuntu Desktop 22.04.1 LTS with Xorg (x11).

The hotkey combinations ctrl + alt + F3 ... ctrl + alt + F6 work for me to get virtual consoles.

ctrl + alt + F1 brings me to the log in screen.

ctrl + alt + F2 brings me to the graphics desktop.


Check if you run Xorg or Wayland with

echo "$XDG_SESSION_TYPE"

If you run Wayland and want to run Xorg instead, see this link.


In some [laptop] computers you may need to use ctrl + alt +Fn + F3 (in other words the function key together with F3 ...) to get the desired action.


Edit 1: I have a somewhat similar system in my Dell Precision laptop with nvidia, but I am not affected by this problem. Differences:

  • yours is dist-upgraded from 20.04, mine is installed as 22.04
  • yours is newer hardware (and more advanced) than mine
  • yours uses an nvidia driver, mine uses nouveau

We also have different sets of installed software (program packages), but I would think one of the listed three differences above might be 'guilty'.

sudodus
  • 47,684
1

You keep saying that your language setting is what may be causing a problem, so I have questions that should show those settings. Please show the following output to new pastebin. Please keep the other pastebin with the 'system-info' report up for me to refer back to):

Code:

setxkbmap -query 
xset -q
gsettings get org.gnome.desktop.input-sources sources 
locale
localectl status

Since you are using Xorg x11, there is an X input diagnostics tool: In a terminal, enter:

Code:

xev

That will start a small window on your desktop with a blank box in it. Any Xinput event, such as a keystroke, will dump "what happened" to the terminal session. Separately press the keys [Cntrl], [Alt], and [F3]. Then close the window and copy / paste that output to your pastebin...

I have some other commands that will show/display the current kepmapping of keys and key combinations, once you post the output to those questions...

No response so an explanation of possible causes that sometimes happens and some work-arounds. One cause could be a touchcy video driver. Sometimes this happens to me with some NVidia drivers. Another is some off-brand keyboards.

Two work-arounds for this is on boot, at the Grub2 boot menu, to go to the end of the Linux Boot line that starts with the word 'linux', deleting $vt_handoff (if present) and adding "3" at the end of the line. Then press to boot into runlevel 3, with will be text / console only (with networking).

Second work around is to change the vtty by commandline via

Code:

## -> sudo chvt #
sudo chvt 4 # Will change the vtty session to vtty4
## using 'sudo chvt 7' or [Cntrl][Alt][F7] will return you back to vtty7

If fact once you get into a vtty session <F#> will work again, so it is a graphics conflict where it is capturing or remapping keys, kind of thing in the graphics layer...