You are not logged in.

#1 2023-06-01 09:38:23

justaguy31
Member
Registered: 2023-06-01
Posts: 16

[SOLVED] F1-F5 buttons produce ABCDE in the output, other produce "~"

Arch Linux 6.3.5-arch1-1 in VirtualBox.
This is my first topic.
So basically my F1-F12 buttons stopped working properly in virtual terminal after some reboot and produce this when I press them all:

ABCDE~~~~~~~

I needed to switch to tty2 when I found this problem. Obviously Alt+F* hotkeys do not work.
Couldn't come up with what to enter exactly in my search engine so I had to ask here.

Last edited by justaguy31 (2023-06-07 06:34:21)

Offline

#2 2023-06-01 10:35:59

justaguy31
Member
Registered: 2023-06-01
Posts: 16

Re: [SOLVED] F1-F5 buttons produce ABCDE in the output, other produce "~"

forgot to mention,

Alt+Left

and

Alt+Right

stopped working too.

Offline

#3 2023-06-01 11:57:41

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 14,951

Re: [SOLVED] F1-F5 buttons produce ABCDE in the output, other produce "~"

I have similar issues in Konsole , only F11 (fullscreen) works there.

Krusader and firefox don't have the issue. xterm, uxterm and qterminal do show ~ for many function keys but no letters for anything.
TTY appears to function normally .

Konsole keyboard is set to 'linux console' in its profile.

Note : I rarely use Function keys in konsole or the other terminals so can't determine when this started.

Welcome to archlinux forums

Last edited by Lone_Wolf (2023-06-01 11:58:09)


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#4 2023-06-01 12:10:00

justaguy31
Member
Registered: 2023-06-01
Posts: 16

Re: [SOLVED] F1-F5 buttons produce ABCDE in the output, other produce "~"

Lone_Wolf wrote:

I have similar issues in Konsole , only F11 (fullscreen) works there.

Krusader and firefox don't have the issue. xterm, uxterm and qterminal do show ~ for many function keys but no letters for anything.
TTY appears to function normally .

Konsole keyboard is set to 'linux console' in its profile.

Note : I rarely use Function keys in konsole or the other terminals so can't determine when this started.

Welcome to archlinux forums

Hm, so perhaps that's because i previously tried to install Konsole, but failed because qt "could not connect to display".
Strangely, this had no effect a while ago though i still have qt and xterm dependencies (i also tried to install xterm console instead).
I failed to uninstall those dependencies because I didn't find a full list on the Internet, and pacman has done nothing to them aswell (freed space upon uninstallation was too small).

Offline

#5 2023-06-01 16:29:12

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,092

Re: [SOLVED] F1-F5 buttons produce ABCDE in the output, other produce "~"

That's perfectly normal (the key actually produces an escape sequence, run "cat" and press it and NOT the cause for a disfunctional Alt+Fx to switch the VT.
Can you still "chvt 1"?

Online

#6 2023-06-03 06:53:53

justaguy31
Member
Registered: 2023-06-01
Posts: 16

Re: [SOLVED] F1-F5 buttons produce ABCDE in the output, other produce "~"

seth wrote:

Can you still "chvt 1"?

well yes, but i want to fix my Alt+F* hotkeys.

Offline

#7 2023-06-03 07:16:46

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,092

Re: [SOLVED] F1-F5 buttons produce ABCDE in the output, other produce "~"

The purpose was to figure whether it's the shortcuts or there's a pricipal problem with switching the TTY, because the output you posted doesn't indicate any problem.

Run "cat", type the shortcuts, post the output.
Also try  whether ctrl+alt+Fx still work.
Do you use the standard console or something like https://wiki.archlinux.org/title/KMSCON
Also post your /etc/vconsole.conf and report if you tried to add a custom keymap or stuff like that.

Online

#8 2023-06-03 11:35:53

justaguy31
Member
Registered: 2023-06-01
Posts: 16

Re: [SOLVED] F1-F5 buttons produce ABCDE in the output, other produce "~"

^[[[A^[[[B^[[[C^[[[D^[[[E[[17~^[[18~^[[19~^[[20~^[[21~^[[23~^[[24~

All 12 keys.
Also no, Ctrl+Alt+F* doesn't work.
I'm using a default Virtual Terminal.

Offline

#9 2023-06-03 14:10:36

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,092

Re: [SOLVED] F1-F5 buttons produce ABCDE in the output, other produce "~"

Is this the output for F1… or Alt+F1… ?
Run "showkey" and see what keycode especially the alt key produces.
If it doesn't, try evtest…

Online

#10 2023-06-04 16:09:01

justaguy31
Member
Registered: 2023-06-01
Posts: 16

Re: [SOLVED] F1-F5 buttons produce ABCDE in the output, other produce "~"

seth wrote:

Is this the output for F1… or Alt+F1… ?

No, these are all F* keys: from F1 to F12.
Something tells me Alt key works properly, but I'm still gonna test it when I will be able to.

Last edited by justaguy31 (2023-06-04 16:10:04)

Offline

#11 2023-06-04 16:24:19

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,092

Re: [SOLVED] F1-F5 buttons produce ABCDE in the output, other produce "~"

For plain F1-F12 the output is "correct" (expectable), the Alt+F1 ouput (next to showkeys and evtest) might be interesting.

Online

#12 2023-06-05 10:18:27

justaguy31
Member
Registered: 2023-06-01
Posts: 16

Re: [SOLVED] F1-F5 buttons produce ABCDE in the output, other produce "~"

seth wrote:

For plain F1-F12 the output is "correct" (expectable), the Alt+F1 ouput (next to showkeys and evtest) might be interesting.

Alt key has keycode 56, F1 has 59.
Those get readed as expected:

keycode 56 press
keycode 59 press
keycode 59 release
keycode 56 release

evtest also reads them as KEY_LEFTALT and KEY_F1.

Last edited by justaguy31 (2023-06-05 10:20:27)

Offline

#13 2023-06-05 14:06:02

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,092

Re: [SOLVED] F1-F5 buttons produce ABCDE in the output, other produce "~"

Are you using tmux or gnu screen?
Do the Alt+left / Alt+right shortcuts still work?

Online

#14 2023-06-05 14:17:01

justaguy31
Member
Registered: 2023-06-01
Posts: 16

Re: [SOLVED] F1-F5 buttons produce ABCDE in the output, other produce "~"

seth wrote:

Do the Alt+left / Alt+right shortcuts still work?

No, like i said,

justaguy31 wrote:

Alt+Left and Alt+Right stopped working too.

Offline

#15 2023-06-05 14:17:41

justaguy31
Member
Registered: 2023-06-01
Posts: 16

Re: [SOLVED] F1-F5 buttons produce ABCDE in the output, other produce "~"

How do i test the tmux and gnu screen thing though?

Offline

#16 2023-06-05 14:23:15

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,092

Re: [SOLVED] F1-F5 buttons produce ABCDE in the output, other produce "~"

https://wiki.archlinux.org/title/Tmux
https://wiki.archlinux.org/title/GNU_Screen

You'd be kinda aware if you use them… so that's probably a "no" as well?

Paying a bit more attention to the OP:

Arch Linux 6.3.5-arch1-1 in VirtualBox.

What's the host, are the guest utils up-to-date and which version do you use (nox?) and are the modules loaded?
If you run some live system in virtualbox (install iso, grml,…) do the shortcuts work there?

Online

#17 2023-06-05 14:40:38

justaguy31
Member
Registered: 2023-06-01
Posts: 16

Re: [SOLVED] F1-F5 buttons produce ABCDE in the output, other produce "~"

Found the pacman -Qs of screen (GNU)
Nothing for pacman -Qs tmux.

seth wrote:

Paying a bit more attention to the OP:

Arch Linux 6.3.5-arch1-1 in VirtualBox.

seth wrote:

What's the host?

Windows 10. I'm trying to build Linux From Scratch on a USB with some additions such as pacman, pacstrap and makepkg for personal uses, using Arch because i find it to be the best tool for this job.

seth wrote:

Are the guest utils up-to-date?

Guest utilities? I don't think this is needed for Windows 10. So far the only thing i get in search engine for it is Guest Additions which i think is not the case despite the fact i have it installed.

seth wrote:

which version do you use (nox?)

7.0.8 r156879 (Qt5.15.2)

seth wrote:

Are the modules loaded?

I think so.

seth wrote:

If you run some live system in virtualbox (install iso, grml,…) do the shortcuts work there?

Nope, i have a complete Arch, and the hotkeys worked before in my guest system, so i don't think ISO image is the reason.

Offline

#18 2023-06-05 14:53:08

justaguy31
Member
Registered: 2023-06-01
Posts: 16

Re: [SOLVED] F1-F5 buttons produce ABCDE in the output, other produce "~"

Decided to show the output of pacman -Qs screen just in case:

local/libutempter 1.2.1-3
Interface for terminal emulators such as screen and xterm to record user sessions to utmp and wtmp files
local/plymouth 22.02.122-7
Graphical boot splash screen
local/tslib 1.22-1
Touchscreen Access Library
local/xorg-xrefresh 1.0.7-1 (xorg-apps xorg)
Refresh all or part of an X screen

Offline

#19 2023-06-05 15:27:47

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,092

Re: [SOLVED] F1-F5 buttons produce ABCDE in the output, other produce "~"

pacman -Qs virtualbox

Nope, i have a complete Arch, and the hotkeys worked before in my guest system, so i don't think ISO image is the reason.

Does that mean that the shortcuts fail in other systems (eg. grml or the install iso) as well?
Because then I'd look at the virtualbox (host) configuration.

Online

#20 2023-06-07 05:47:38

justaguy31
Member
Registered: 2023-06-01
Posts: 16

Re: [SOLVED] F1-F5 buttons produce ABCDE in the output, other produce "~"

seth wrote:

Does that mean that the shortcuts fail in other systems (eg. grml or the install iso) as well?
Because then I'd look at the virtualbox (host) configuration.

The Ctrl+Alt+F* works perfectly in Debian sid (KDE Plasma).
That's the only VM i have installed right now besides Arch.

Last edited by justaguy31 (2023-06-07 05:51:08)

Offline

#21 2023-06-07 05:52:50

justaguy31
Member
Registered: 2023-06-01
Posts: 16

Re: [SOLVED] F1-F5 buttons produce ABCDE in the output, other produce "~"

Perhaps the hotkeys for tty switch were changed?

Offline

#22 2023-06-07 05:58:29

justaguy31
Member
Registered: 2023-06-01
Posts: 16

Re: [SOLVED] F1-F5 buttons produce ABCDE in the output, other produce "~"

Ok, this stopped making any sense to me. The "-" button stopped outputting anything in Arch aswell despite the fact showkey records its presses and releases.

Offline

#23 2023-06-07 06:04:34

justaguy31
Member
Registered: 2023-06-01
Posts: 16

Re: [SOLVED] F1-F5 buttons produce ABCDE in the output, other produce "~"

All this made me boot into Arch install ISO image. Hotkeys for switching tty work, "-" key works aswell.

Offline

#24 2023-06-07 06:29:46

justaguy31
Member
Registered: 2023-06-01
Posts: 16

Re: [SOLVED] F1-F5 buttons produce ABCDE in the output, other produce "~"

Turns out this happened by my ridiculous mistake. I've set "en" keymap instead of "us" when i was reverting it back from russian keymap.

Offline

#25 2023-06-07 11:57:37

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,092

Re: [SOLVED] F1-F5 buttons produce ABCDE in the output, other produce "~"

seth wrote:

Also post your /etc/vconsole.conf and report if you tried to add a custom keymap or stuff like that.

tongue

Online

Board footer

Powered by FluxBB