You are not logged in.

#1 2017-01-15 10:44:16

Maeda
Member
Registered: 2015-02-17
Posts: 34

[Solved] [Xorg] Layout switch when bluetooth keyboard unsleeps

Hi all !

For two days now, my bluetooth keyboard is changing its layout from fr to us.
The problem occurs each time the keyboard enters sleep state and then awakes.. It doesn't be caused by the Xscreensaver.

The right settings are :

setxkbmap -query
rules:      evdev
model:      pc105
layout:     fr

Any ideas where this setting changes ?

Edit : see some posts below for the solution smile

Last edited by Maeda (2017-02-18 12:01:33)


--Default Windows Manager
Xmonad <+> Xmobar <+> Trayer

My GitHub

Offline

#2 2017-02-02 12:37:06

Maeda
Member
Registered: 2015-02-17
Posts: 34

Re: [Solved] [Xorg] Layout switch when bluetooth keyboard unsleeps

Well, when killing Xmonad, and switch to console mode, I don't have the bug. Is it caused by Xorg or Xmonad (the DM) ?


--Default Windows Manager
Xmonad <+> Xmobar <+> Trayer

My GitHub

Offline

#3 2017-02-18 11:58:16

Maeda
Member
Registered: 2015-02-17
Posts: 34

Re: [Solved] [Xorg] Layout switch when bluetooth keyboard unsleeps

I find that the problem occurs only with X server started (without any desktop manager). So I looked at a defaut setting for X beyboard, and found the solution here.

The file /etc/X11/xorg.conf.d/00-keyboard.conf doesn't exists (that's why it keeps switching to us layout when my keyboard bluetooth unsleeps, or when reconnecting my keyboard).

Solved with (in my case fr and pc105) :

localectl set-x11-keymap fr pc105

Enter your password (like sudo).
Then check the content of the configuration file :

less /etc/X11/xorg.conf.d/00-keyboard.conf

In my case :

# Read and parsed by systemd-localed. It's probably wise not to edit this file
# manually too freely.
Section "InputClass"
        Identifier "system-keyboard"
        MatchIsKeyboard "on"
        Option "XkbLayout" "fr"
        Option "XkbModel" "pc105"
EndSection

Finally, reboot your system.

All's right smile


--Default Windows Manager
Xmonad <+> Xmobar <+> Trayer

My GitHub

Offline

Board footer

Powered by FluxBB