Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] xorg keyboard setting not used in i3
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Banana
l33t
l33t


Joined: 21 May 2004
Posts: 652
Location: Germany

PostPosted: Mon Aug 10, 2020 6:52 am    Post subject: [solved] xorg keyboard setting not used in i3 Reply with quote

As far as I can tell the following should tell i3 to use the german keyboard layout:
Code:
Section "InputClass"
    Identifier "keyboard"
    Option "XkbLayout" "de"
    Option "XkbVariant" "de_nodeadkeys"
    MatchIsKeyboard "on"
EndSection


But I could it only get to work with placing the following in the i3 config:
Code:
exec --no-startup-id setxkbmap de


What am I doing wrong?
_________________
My personal space


Last edited by Banana on Fri Aug 14, 2020 4:36 pm; edited 2 times in total
Back to top
View user's profile Send private message
halcon
Apprentice
Apprentice


Joined: 15 Dec 2019
Posts: 279

PostPosted: Mon Aug 10, 2020 11:47 am    Post subject: Re: xorg keyboard setting not used in i3 Reply with quote

Hi Banana,

My keyboard configuration section includes also the lines with Driver and MatchDevicePath. Did you try to add them?
Back to top
View user's profile Send private message
fturco
Veteran
Veteran


Joined: 08 Dec 2010
Posts: 1184
Location: Italy

PostPosted: Mon Aug 10, 2020 1:04 pm    Post subject: Reply with quote

@Banana: did you check xorg logs?
Back to top
View user's profile Send private message
Banana
l33t
l33t


Joined: 21 May 2004
Posts: 652
Location: Germany

PostPosted: Mon Aug 10, 2020 5:24 pm    Post subject: Reply with quote

@halcon
which values do I need or where do I find them?

@fturco
current: https://delta-labs.org/sp/DDg
old: https://delta-labs.org/sp/EbE
_________________
My personal space
Back to top
View user's profile Send private message
halcon
Apprentice
Apprentice


Joined: 15 Dec 2019
Posts: 279

PostPosted: Mon Aug 10, 2020 5:39 pm    Post subject: Reply with quote

Banana wrote:
which values do I need or where do I find them?

For example,
Code:
MatchDevicePath      "/dev/input/event*"


Code:
Driver         "libinput"
or
Code:
Driver         "evdev"
(depending on your configuration)
Back to top
View user's profile Send private message
Banana
l33t
l33t


Joined: 21 May 2004
Posts: 652
Location: Germany

PostPosted: Tue Aug 11, 2020 10:05 am    Post subject: Reply with quote

Does not work:
/etc/X11/xorg.conf.d/10keyboard.conf
Code:
Section "InputClass"
        Identifier "keyboard"
        Option "XkbLayout" "de"
        Option "XkbVariant" "de_nodeadkeys"
        MatchIsKeyboard "on"
        Driver "libinput"
        MatchDevicePath "/dev/input/event*"
EndSection


thx for the suggestions so far.
_________________
My personal space
Back to top
View user's profile Send private message
halcon
Apprentice
Apprentice


Joined: 15 Dec 2019
Posts: 279

PostPosted: Tue Aug 11, 2020 3:30 pm    Post subject: Reply with quote

Banana wrote:
@fturco
current: https://delta-labs.org/sp/DDg
old: https://delta-labs.org/sp/EbE

Until fturco came:

Strange but I don't see no one line with
Code:
(**) Option "xkb_layout" bla-bla
in both your logs.

I may miss something... but please check whether your keyboard configuration section is being used by xorg.

EDIT:
I have also
Code:
Option   "XkbModel"   "pc105"
in my keyboard section.

And there are multiple lines with
Code:
(**) Option "xkb_model"
(**) Option "xkb_layout"
in my xorg log.
Back to top
View user's profile Send private message
halcon
Apprentice
Apprentice


Joined: 15 Dec 2019
Posts: 279

PostPosted: Tue Aug 11, 2020 3:56 pm    Post subject: Reply with quote

halcon wrote:
I may miss something... but please check whether your keyboard configuration section is being used by xorg.

I see this:
Code:
Applying InputClass "libinput keyboard catchall"

Maybe you have another keyboard section configured in another file? ^^ With "catchall"?
Back to top
View user's profile Send private message
Banana
l33t
l33t


Joined: 21 May 2004
Posts: 652
Location: Germany

PostPosted: Fri Aug 14, 2020 4:24 pm    Post subject: Reply with quote

Nothing else in /etc/X11
Code:
mirage /etc/X11 # grep -rl InputClass
xorg.conf.d/10keyboard.conf


also nothing in /etc/udev/rules.d

I've added another xorg.log which I found while grepping fpr InputClass in ~/.local/share/xorg/Xorg.0.log
https://delta-labs.org/sp/ISc

There is this
Code:
[    14.157] (II) Using input driver 'libinput' for 'Power Button'
[    14.157] (II) systemd-logind: got fd for /dev/input/event1 13:65 fd 23 paused 0
[    14.157] (**) Power Button: always reports core events
[    14.157] (**) Option "Device" "/dev/input/event1"
[    14.157] (**) Option "_source" "server/udev"
[    14.161] (II) event1  - Power Button: is tagged by udev as: Keyboard
[    14.161] (II) event1  - Power Button: device is a keyboard
[    14.161] (II) event1  - Power Button: device removed
[    14.161] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXPWRBN:00/input/input1/event1"
[    14.161] (II) XINPUT: Adding extended input device "Power Button" (type: KEYBOARD, id 6)
[    14.161] (**) Option "xkb_layout" "de"
[    14.161] (**) Option "xkb_variant" "de_nodeadkeys"
[    14.168] (EE) Error loading keymap /tmp/server-0.xkm
[    14.168] (EE) XKB: Failed to load keymap. Loading default keymap instead.
[    14.177] (II) event1  - Power Button: is tagged by udev as: Keyboard


Also, why are there so many events? I have only a keyboard and a mouse attached.

EDIT:
After some google foo I've found the error. In /usr/share/X11/xkb/symbols/de there is no variant "de_nodeadkeys" only "nodeadkeys"
so this is the correct config (for me at least)
Code:
Section "InputClass"
        Identifier "keyboard"
        Option "XkbLayout" "de"
        Option "XkbVariant" "nodeadkeys"
        MatchIsKeyboard "on"
        Driver "libinput"
        MatchDevicePath "/dev/input/event*"
EndSection

_________________
My personal space
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