Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Keyboard change - but i dont want it
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
michi-monster
Apprentice
Apprentice


Joined: 16 Aug 2016
Posts: 175
Location: Germany

PostPosted: Sun Mar 26, 2017 12:55 pm    Post subject: Keyboard change - but i dont want it Reply with quote

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
View user's profile Send private message
DawgG
l33t
l33t


Joined: 17 Sep 2003
Posts: 866

PostPosted: Tue Mar 28, 2017 8:54 am    Post subject: Reply with quote

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
View user's profile Send private message
fcl
Tux's lil' helper
Tux's lil' helper


Joined: 31 Dec 2016
Posts: 77

PostPosted: Tue Mar 28, 2017 3:53 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum