View previous topic :: View next topic |
Author |
Message |
michi-monster Apprentice
Joined: 16 Aug 2016 Posts: 175 Location: Germany
|
Posted: Sun Mar 26, 2017 12:55 pm Post subject: Keyboard change - but i dont want it |
|
|
I have the problem for 2 days that the keyboard changes in the X, without which I have initiated actions. It is not a simple change between German and English. I could not figure out which keyboard type that is.
It is in Fluxbox an Gnome-
Where is the mistake?
What can I do?
Code: | sys-vor-Ort monster # setxkbmap de
sys-vor-Ort monster # loadkeys de
# nano -w /etc/conf.d/keymaps
# Use keymap to specify the default console keymap. There is a complete tree
# of keymaps in /usr/share/keymaps to choose from.
keymap="de"
# Should we first load the 'windowkeys' console keymap? Most x86 users will
# say "yes" here. Note that non-x86 users should leave it as "no".
# Loading this keymap will enable VT switching (like ALT+Left/Right)
# using the special windows keys on the linux console.
windowkeys="YES"
# The maps to load for extended keyboards. Most users will leave this as is.
extended_keymaps=""
#extended_keymaps="backspace keypad euro2"
# Tell dumpkeys(1) to interpret character action codes to be
# from the specified character set.
# This only matters if you set unicode="yes" in /etc/rc.conf.
# For a list of valid sets, run `dumpkeys --help`
dumpkeys_charset=""
# Some fonts map AltGr-E to the currency symbol instead of the Euro.
# To fix this, set to "yes"
fix_euro="NO"
sys-vor-Ort monster # dmesg | grep keyboard
[ 3.064206] usb 6-4: Product: USB keyboard
[ 3.072456] input: Cherry USB keyboard as /devices/pci0000:00/0000:00:12.0/usb6/6-4/6-4:1.0/0003:046A:B090.0003/input/input5
[ 3.140329] hid-generic 0003:046A:B090.0003: input,hidraw2: USB HID v1.11 Keyboard [Cherry USB keyboard] on usb-0000:00:12.0-4/input0
[ 3.152236] input: Cherry USB keyboard as /devices/pci0000:00/0000:00:12.0/usb6/6-4/6-4:1.1/0003:046A:B090.0004/input/input6
[ 3.220209] hid-generic 0003:046A:B090.0004: input,hiddev0,hidraw3: USB HID v1.11 Device [Cherry USB keyboard] on usb-0000:00:12.0-4/input1 |
_________________ www.edv-bildung.de |
|
Back to top |
|
|
DawgG l33t
Joined: 17 Sep 2003 Posts: 866
|
Posted: Tue Mar 28, 2017 8:54 am Post subject: |
|
|
you can define your keyboard-layout for X in general: create a file in /etc/X11/xorg.conf.d/ that ends in .conf and containbs your keyboard-settings; eg /etc/X11/xorg.conf.d/10-tastatur.conf (this one is mine with German layout, old but it works):
Code: | Section "InputDevice"
Identifier "Keyboard1"
Driver "kbd" # i know it's outdated
#Driver "evdev"
# Option "LeftAlt" "Meta"
# Option "RightAlt" "ModeShift"
Option "XkbRules" "xorg"
Option "XkbModel" "pc105"
Option "XkbLayout" "de"
#Option "XkbVariant" "nodeadkeys"
EndSection |
some DEs/WMs (eg xfce) allow to define their own layout without changing the settings for X.
GOOD LUCK! _________________ DUMM KLICKT GUT. |
|
Back to top |
|
|
fcl Tux's lil' helper
Joined: 31 Dec 2016 Posts: 77
|
Posted: Tue Mar 28, 2017 3:53 pm Post subject: |
|
|
For reference, here's a conf that has both DE and US layouts that toggle if both shifts are pressed.
Code: | Section "InputClass"
Identifier "system-keyboard"
# Option "XkbModel" "pc104"
Option "XkbVariant" "nodeadkeys,euro"
Option "XkbLayout" "de,us"
Option "XkbOptions" "grp:shifts_toggle"
MatchIsKeyboard "on"
EndSection |
|
|
Back to top |
|
|
|