Saya ingin Ctrl+ Alt+ Bkspuntuk me-restart X, jadi saya membuat xorg.conf
aturan:
/usr/share/X11/xorg.conf.d/53-zap.conf
:
Section "ServerFlags"
Option "DontZap" "false"
EndSection
Section "InputClass"
Identifier "Keyboard Defaults"
MatchIsKeyboard "yes"
Option "XkbOptions" "terminate:ctrl_alt_bksp"
EndSection
Dan memeriksa /var/log/Xorg.0.log
:
[ 1023.598] (II) XINPUT: Adding extended input device "Asus WMI hotkeys" (type: KEYBOARD, id 11)
[ 1023.598] (**) Option "xkb_rules" "evdev"
[ 1023.598] (**) Option "xkb_model" "pc105"
[ 1023.598] (**) Option "xkb_layout" "us"
[ 1023.598] (**) Option "xkb_options" "terminate:ctrl_alt_bksp"
[ 1023.598] (II) config/udev: Adding input device AT Translated Set 2 keyboard (/dev/input/event3)
[ 1023.598] (**) AT Translated Set 2 keyboard: Applying InputClass "evdev keyboard catchall"
[ 1023.598] (**) AT Translated Set 2 keyboard: Applying InputClass "Keyboard Defaults"
[ 1023.598] (II) Using input driver 'evdev' for 'AT Translated Set 2 keyboard'
[ 1023.598] (**) AT Translated Set 2 keyboard: always reports core events
[ 1023.598] (**) evdev: AT Translated Set 2 keyboard: Device: "/dev/input/event3"
[ 1023.598] (--) evdev: AT Translated Set 2 keyboard: Vendor 0x1 Product 0x1
[ 1023.598] (--) evdev: AT Translated Set 2 keyboard: Found keys
[ 1023.598] (II) evdev: AT Translated Set 2 keyboard: Configuring as keyboard
[ 1023.598] (**) Option "config_info" "udev:/sys/devices/platform/i8042/serio0/input/input3/event3"
[ 1023.598] (II) XINPUT: Adding extended input device "AT Translated Set 2 keyboard" (type: KEYBOARD, id
12)
[ 1023.598] (**) Option "xkb_rules" "evdev"
[ 1023.598] (**) Option "xkb_model" "pc105"
[ 1023.598] (**) Option "xkb_layout" "us"
[ 1023.598] (**) Option "xkb_options" "terminate:ctrl_alt_bksp"
Baris terakhir menunjukkan bahwa ia melihat arahan.
Namun, ketika saya membuka terminal dan ketik 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: pc105
layout: us
Trying to build keymap using the following components:
keycodes: evdev+aliases(qwerty)
types: complete
compat: complete
symbols: pc+us+inet(evdev)
geometry: pc(pc105)
xkb_keymap {
xkb_keycodes { include "evdev+aliases(qwerty)" };
xkb_types { include "complete" };
xkb_compat { include "complete" };
xkb_symbols { include "pc+us+inet(evdev)" };
xkb_geometry { include "pc(pc105)" };
};
Saya bisa memaksakan opsi setxkbmap -option terminate:ctrl_alt_bksp
,, memberi saya:
...
model: pc105
layout: us
options: terminate:ctrl_alt_bksp
Trying to build keymap using the following components:
...
Dan saya mengujinya dan restart X
dengan benar.
Saya tidak mengerti. Saya memiliki ini berfungsi minggu lalu, tetapi sekarang tidak memuat XkbOption
dari xorg.conf
file. Apakah ada lapisan lain yang menetapkan XKB
pengaturan yang saya tidak tahu?
Saya menggunakan Ubuntu 13.10, tetapi dengan xmonad
. Saya memuat beberapa utilitas gnome ( gnome-panel
, gnome-screensaver
, gnome-keyring-demon
), tapi tidak gnome-settings-daemon
.
sumber
dconf-editor
, org.gnome.desktop.input-sources.xkb-options?Jawaban:
Luncurkan
dconf-editor
dan bukaorg.gnome.desktop.input-sources.xkb-options
. Seharusnya seperti ini:Jika Anda tidak melihat,
'terminate:ctrl_alt_bksp'
Anda harus menambahkannya di sana.sumber
dconf-editor
,terminate:ctrl_alt_bksp
ada dalam daftar opsi-xkb, tetapi kombinasi tombol tidak berpengaruh dansetxkbmap -print -verbose 10
menunjukkan bahwa itu tidak diaktifkan.