Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
X keyboard layout switched to english, cant change it back
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
doalwa
Tux's lil' helper
Tux's lil' helper


Joined: 03 Mar 2003
Posts: 142
Location: Old Europe

PostPosted: Fri Jul 02, 2021 7:32 pm    Post subject: X keyboard layout switched to english, cant change it back Reply with quote

Hey everybody,

I left my trusty old Thinkpad X200 unattended for a couple of months and finally decided it was due for another world update.

Everthing went fine, except for the fact that my keyboard layout under X switched from german to english.

As far as I see, all corresponding config files are untouched.

This is my /etc/X11/xorg.conf.d/30-keyboard.conf:
Code:

Section "InputClass"
  Identifier "keyboard-all"
  Driver "evdev"
  Option "XkbLayout" "de"
  Option "XkbModel" "pc105"
  Option "XkbRules" "xorg"
  Option "XkbOptions" "terminate:ctrl_alt_bksp"
  Option "XkbVariant" ",qwerty"
  MatchIsKeyboard "on"
EndSection


This is in my /usr/share/sddm/scripts/Xsetup
Code:

#!/bin/sh
# Xsetup - run as root before the login dialog appears
setxkbdmap de


Trying to run setxkdbmap manually under KDE simply results in
Code:

thinkpadx200 /home/dominik # setxkbmap -query
Couldn't find rules file (xorg)


Seems like there is something wrong with setxkdbmap then?

Any ideas, anyone?
_________________
Keepin' the Funk alive since 1983!
Back to top
View user's profile Send private message
mike155
Advocate
Advocate


Joined: 17 Sep 2010
Posts: 4438
Location: Frankfurt, Germany

PostPosted: Fri Jul 02, 2021 7:46 pm    Post subject: Reply with quote

A wild guess:
Code:
  Driver "evdev"

Is your machine still configured for "evdev". Or are parts of your your machine now configured für libinput?
Quote:
libinput is an input device driver for Wayland compositors and X.org window system. It is Gentoo Linux's default input device driver.
Back to top
View user's profile Send private message
doalwa
Tux's lil' helper
Tux's lil' helper


Joined: 03 Mar 2003
Posts: 142
Location: Old Europe

PostPosted: Fri Jul 02, 2021 8:08 pm    Post subject: Reply with quote

mike155 wrote:
A wild guess:
Code:
  Driver "evdev"

Is your machine still configured for "evdev". Or are parts of your your machine now configured für libinput?
Quote:
libinput is an input device driver for Wayland compositors and X.org window system. It is Gentoo Linux's default input device driver.


It could have something to do with that.

I changed
Code:

Driver "evdev"


to
Code:

 Driver "libinput"


alas, it didnt change anthing.

x11-drivers/xf86-input-evdev also isnt installed anymore, so I am not sure how the driver even still got loaded in the first place.
_________________
Keepin' the Funk alive since 1983!
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 5911
Location: Bavaria

PostPosted: Fri Jul 02, 2021 9:07 pm    Post subject: Reply with quote

I am using a german keyboard also and when we had the change from evdev to libinput I did:

1. Copying 40-libinput.conf into /etc/X11/xorg.conf.d

2. and adding: " Option "xkb_layout" "de"


Here is my complete 40-libinput.conf:
Code:
# Match on all types of devices but joysticks
#
# If you want to configure your devices, do not copy this file.
# Instead, use a config snippet that contains something like this:
#
# Section "InputClass"
#   Identifier "something or other"
#   MatchDriver "libinput"
#
#   MatchIsTouchpad "on"
#   ... other Match directives ...
#   Option "someoption" "value"
# EndSection
#
# This applies the option any libinput device also matched by the other
# directives. See the xorg.conf(5) man page for more info on
# matching devices.

Section "InputClass"
        Identifier "libinput pointer catchall"
        MatchIsPointer "on"
        MatchDevicePath "/dev/input/event*"
        Driver "libinput"
EndSection

Section "InputClass"
        Identifier "libinput keyboard catchall"
        MatchIsKeyboard "on"
        MatchDevicePath "/dev/input/event*"
        Driver "libinput"
        Option "xkb_layout" "de"
EndSection

Section "InputClass"
        Identifier "libinput touchpad catchall"
        MatchIsTouchpad "on"
        MatchDevicePath "/dev/input/event*"
        Driver "libinput"
EndSection

Section "InputClass"
        Identifier "libinput touchscreen catchall"
        MatchIsTouchscreen "on"
        MatchDevicePath "/dev/input/event*"
        Driver "libinput"
EndSection

Section "InputClass"
        Identifier "libinput tablet catchall"
        MatchIsTablet "on"
        MatchDevicePath "/dev/input/event*"
        Driver "libinput"
EndSection
Back to top
View user's profile Send private message
moniaqua
n00b
n00b


Joined: 19 Dec 2021
Posts: 21
Location: Bavaria

PostPosted: Sat Jun 07, 2025 10:45 am    Post subject: Reply with quote

Danke, das war es auch bei mir. Dass von evdev auf libinput gewechselt wurde, scheint auf https://wiki.gentoo.org/wiki/Xorg/Guide#Configuring_the_keyboard noch nicht angekommen zu sein.
_________________
cu
Monika
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 5911
Location: Bavaria

PostPosted: Sat Jun 07, 2025 11:26 am    Post subject: Reply with quote

moniaqua wrote:
Danke, das war es auch bei mir. Dass von evdev auf libinput gewechselt wurde, scheint auf https://wiki.gentoo.org/wiki/Xorg/Guide#Configuring_the_keyboard noch nicht angekommen zu sein.

Yes, indeed. :( Maybe look also into https://wiki.gentoo.org/wiki/User:Pietinger/Draft/Quick_Installation_OpenRC_for_an_UEFI_System#Quick_Installation_KDE.2FPlasma_for_an_OpenRC_System

(Please note that you are in international forums where only english language is allowed ;-)
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
moniaqua
n00b
n00b


Joined: 19 Dec 2021
Posts: 21
Location: Bavaria

PostPosted: Sat Jun 07, 2025 7:11 pm    Post subject: Reply with quote

Quote:
(Please note that you are in international forums where only english language is allowed 


Oh, sorry, I somehow lost overview :oops:
_________________
cu
Monika
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 5911
Location: Bavaria

PostPosted: Sat Jun 07, 2025 9:06 pm    Post subject: Reply with quote

moniaqua wrote:
Oh, sorry, I somehow lost overview :oops:

Really not a problem - I also accidentally made it. :lol:
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments 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