내가 시도한 것은 다음과 같습니다.
$ xev
KeyRelease event, serial 43, synthetic NO, window 0x4a00001,
root 0x1db, subw 0x0, time 23449801, (434,-234), root:(1305,244),
state 0x1c, keycode 67 (keysym 0x1008fe01, XF86Switch_VT_1), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
$ systemctl list-units|grep getty
[email protected] loaded active running Getty on tty1
[email protected] loaded active running Getty on tty2
[email protected] loaded active running Getty on tty3
[email protected] loaded active running Getty on tty4
[email protected] loaded active running Getty on tty5
[email protected] loaded active running Getty on tty6
[email protected] loaded active running Getty on tty7
system-getty.slice loaded active active system-getty.slice
getty.target loaded active active Login Prompts
$ xmodmap -pke
keycode 67 = F1 F1 F1 F1 F1 F1 XF86Switch_VT_1
keycode 68 = F2 F2 F2 F2 F2 F2 XF86Switch_VT_2
keycode 69 = F3 F3 F3 F3 F3 F3 XF86Switch_VT_3
keycode 70 = F4 F4 F4 F4 F4 F4 XF86Switch_VT_4
keycode 71 = F5 F5 F5 F5 F5 F5 XF86Switch_VT_5
keycode 72 = F6 F6 F6 F6 F6 F6 XF86Switch_VT_6
keycode 73 = F7 F7 F7 F7 F7 F7 XF86Switch_VT_7
keycode 74 = F8 F8 F8 F8 F8 F8 XF86Switch_VT_8
keycode 75 = F9 F9 F9 F9 F9 F9 XF86Switch_VT_9
$ setxkbmap -print -verbose 10
Setting verbose level to 10
locale is C
Trying to load rules file ./rules/evdev...
Trying to load rules file /usr/share/X11/xkb/rules/evdev...
Success.
Applied rules from evdev:
rules: evdev
model: pc104
layout: us
variant: intl-unicode
options: terminate:ctrl_alt_bksp
Trying to build keymap using the following components:
keycodes: evdev+aliases(qwerty)
types: complete
compat: complete
symbols: pc+us(intl-unicode)+inet(evdev)+terminate(ctrl_alt_bksp)
geometry: pc(pc104)
xkb_keymap {
xkb_keycodes { include "evdev+aliases(qwerty)" };
xkb_types { include "complete" };
xkb_compat { include "complete" };
xkb_symbols { include "pc+us(intl-unicode)+inet(evdev)+terminate(ctrl_alt_bksp)" };
xkb_geometry { include "pc(pc104)" };
};
cat /etc/X11/xorg.conf.d/00-keyboard.conf
# Written by systemd-localed(8), read by systemd-localed and Xorg. It's
# probably wise not to edit this file manually. Use localectl(1) to
# instruct systemd-localed to update it.
Section "InputClass"
Identifier "system-keyboard"
MatchIsKeyboard "on"
Option "XkbLayout" "us"
Option "XkbModel" "pc104"
Option "XkbVariant" "alt-intl-unicode"
EndSection
Xorg는 시작 시 로그를 남깁니다.
Information [ 6.294] (**) Eee PC WMI hotkeys: Applying InputClass "evdev keyboard catchall"
Information [ 6.294] (**) Eee PC WMI hotkeys: Applying InputClass "libinput keyboard catchall"
Information [ 6.294] (**) Eee PC WMI hotkeys: Applying InputClass "system-keyboard"
Information [ 6.294] (**) Eee PC WMI hotkeys: Applying InputClass "Keyboard Defaults"
Information [ 6.294] (II) Using input driver 'libinput' for 'Eee PC WMI hotkeys'
Information [ 6.294] (**) Eee PC WMI hotkeys: always reports core events
Information [ 6.294] (**) Option "Device" "/dev/input/event16"
Information [ 6.294] (**) Option "_source" "server/udev"
Information [ 6.295] (II) event16 - Eee PC WMI hotkeys: is tagged by udev as: Keyboard
Information [ 6.295] (II) event16 - Eee PC WMI hotkeys: device is a keyboard
Information [ 6.296] (II) event16 - Eee PC WMI hotkeys: device removed
Information [ 6.347] (**) Option "config_info" "udev:/sys/devices/platform/eeepc-wmi/input/input16/event16"
Information [ 6.347] (II) XINPUT: Adding extended input device "Eee PC WMI hotkeys" (type: KEYBOARD, id 14)
Information [ 6.347] (**) Option "xkb_model" "pc104"
Information [ 6.347] (**) Option "xkb_layout" "us"
Information [ 6.347] (**) Option "xkb_options" "terminate:ctrl_alt_bksp"
Information [ 6.349] (II) event16 - Eee PC WMI hotkeys: is tagged by udev as: Keyboard
Information [ 6.349] (II) event16 - Eee PC WMI hotkeys: device is a keyboard
Information [ 6.350] (II) config/udev: Adding input device PC Speaker (/dev/input/event8)
Information [ 6.350] (II) No input driver specified, ignoring this device.
Information [ 6.350] (II) This device may have been added with another device file.
Information [ 6.359] (**) USB Keyboard Consumer Control: Applying InputClass "evdev keyboard catchall"
Information [ 6.359] (**) USB Keyboard Consumer Control: Applying InputClass "libinput keyboard catchall"
Information [ 6.359] (**) USB Keyboard Consumer Control: Applying InputClass "system-keyboard"
Information [ 6.359] (**) USB Keyboard Consumer Control: Applying InputClass "Keyboard Defaults"
Information [ 6.359] (II) Using input driver 'libinput' for 'USB Keyboard Consumer Control'
Information [ 6.359] (**) USB Keyboard Consumer Control: always reports core events
Information [ 6.359] (**) Option "Device" "/dev/input/event4"
Information [ 6.359] (**) Option "_source" "_driver/libinput"
Information [ 6.359] (II) libinput: USB Keyboard Consumer Control: is a virtual subdevice
Information [ 6.359] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:14.0/usb1/1-5/1-5:1.1/0003:0566:3067.0002/input/input4/event4"
Information [ 6.359] (II) XINPUT: Adding extended input device "USB Keyboard Consumer Control" (type: KEYBOARD, id 15)
Information [ 6.359] (**) Option "xkb_model" "pc104"
Information [ 6.359] (**) Option "xkb_layout" "us"
Information [ 6.359] (**) Option "xkb_options" "terminate:ctrl_alt_bksp"
"키보드 설정>고급>추가 호환성 옵션>서버에서 처리되는 특수키"도 체크하지 않았습니다.
이 기사도 읽어보세요[https://forum.manjaro.org/t/virtual-consoles-not-working-ctrl-alt-f1-6/3902]그러나 그것은 도움이 되지 않았습니다.
또한 Ctrl+Alt+Fn+[F1-F2-etc]를 시도했지만 성공하지 못했습니다.
또한 /etc/X11/xorg.conf.d/00-keyboard.conf 파일에서 "옵션 "XkbVariant" "alt-intl-unicode""를 주석 처리해 보았습니다.
$chvt[1-2-3] 작동하고 프롬프트가 표시됩니다.
또한 chvt를 통해 tty에 도달하면 그래픽 세션에 로그인하지 않는 한 Ctrl+Alt+F1,2 등을 사용하여 tty 사이를 우아하게 전환할 수 있습니다. 키보드에는 다른 문제가 없으며 기능 키와 미디어 키도 예상대로 작동합니다.
PS: 내 시스템
$ neofetch
██████████████████ ████████ gaston@linux-desktop
██████████████████ ████████ --------------------
██████████████████ ████████ OS: Manjaro Linux x86_64
██████████████████ ████████ Kernel: 4.19.13-1-MANJARO
████████ ████████ Uptime: 1 hour, 2 mins
████████ ████████ ████████ Packages: 1539 (pacman)
████████ ████████ ████████ Shell: bash 4.4.23
████████ ████████ ████████ Resolution: 1920x1080
████████ ████████ ████████ DE: KDE
████████ ████████ ████████ WM: KWin
████████ ████████ ████████ WM Theme: breeze
████████ ████████ ████████ Theme: Breath [KDE], Breeze [GTK2/3]
████████ ████████ ████████ Icons: la-capitaine-icon-theme [KDE], Dex_KDE [GTK2/3]
████████ ████████ ████████ Terminal: konsole
Terminal Font: Noto Mono 10
CPU: Intel i5-6600K (4) @ 3.900GHz
GPU: NVIDIA GeForce GTX 1050 Ti
Memory: 2420MiB / 24043MiB