You are not logged in.

#1 2020-10-18 18:36:59

Sallbatori
Member
Registered: 2020-10-18
Posts: 4

keyboard layout does not change Deepin Desktop

Hello

My file xorg.conf shows

Section "InputClass"
        Identifier "system-keyboard"
        MatchIsKeyboard "on"
        Driver "evdev"
        Option "XkbLayout" "br"
        Option "XkbModel" "abnt2"
        Option "XkbVariant" "abnt2"
EndSection

but the keyboard remains in English, as the verbose output shows

setxkbmap -print -verbose 10
Setting verbose level to 10
locale is C
Trying to load rules file ./rules/evdev...
Trying to load rules file /usr/share/X11/xkb/rules/evdev...Success.
Applied rules from evdev:
rules:      evdev
model:      abnt2
layout:     us
Trying to build keymap using the following components:
keycodes:   evdev+aliases(qwerty)
types:      complete
compat:     complete
symbols:    pc+us+inet(evdev)
geometry:   pc(pc104)
xkb_keymap {
        xkb_keycodes  { include "evdev+aliases(qwerty)" };
        xkb_types     { include "complete"      };
        xkb_compat    { include "complete"      };
        xkb_symbols   { include "pc+us+inet(evdev)"     };
        xkb_geometry  { include "pc(pc104)"     };
};

to change the layout, I need to do this every time I start with setxkbmap -model abnt2 -layout br -variant abnt2. I don't know if it's a deepin, lightdm or arch problem.
Output after setxkbmap -model abnt2 -layout br -variant abnt2. See which layout changes to br.

Setting verbose level to 10
locale is C
Trying to load rules file ./rules/evdev...
Trying to load rules file /usr/share/X11/xkb/rules/evdev...
Success.
Applied rules from evdev:
rules:      evdev
model:      abnt2
layout:     br
variant:    abnt2
Trying to build keymap using the following components:
keycodes:   evdev+aliases(qwerty)
types:      complete
compat:     complete
symbols:    pc+br(abnt2)+inet(evdev)
geometry:   pc(pc104)
xkb_keymap {
        xkb_keycodes  { include "evdev+aliases(qwerty)" };
        xkb_types     { include "complete"      };
        xkb_compat    { include "complete"      };
        xkb_symbols   { include "pc+br(abnt2)+inet(evdev)"      };        xkb_geometry  { include "pc(pc104)"     };
};

Offline

#2 2020-10-18 20:53:06

koffeinfriedhof
Member
Registered: 2017-11-30
Posts: 91

Re: keyboard layout does not change Deepin Desktop

Hello!

There is no keyboard model named abnt2. Depending on your keyboard it is probably a pc104 or pc105-Layout. see

localectl list-x11-keymap-models

for supported models.

You then can set the keyboard-layout like this

localectl set-x11-keymap br pc104 abnt2

for the current user. The same command as root makes it systemwide but does not affect your current user (as it is already set up and won't be overwritten). To get it systemwide and for the user, excute this line once for root and user.

Due to systemd you must logout and login, restart the daemon or setup the keyboard via `setxkbmap br abnt2 pc104`. Then you can remove the xorg.conf if you do not use it anyway.

Offline

#3 2020-10-19 00:27:36

Sallbatori
Member
Registered: 2020-10-18
Posts: 4

Re: keyboard layout does not change Deepin Desktop

koffeinfriedhof wrote:

Hello!

There is no keyboard model named abnt2. Depending on your keyboard it is probably a pc104 or pc105-Layout. see

localectl list-x11-keymap-models

for supported models.

You then can set the keyboard-layout like this

localectl set-x11-keymap br pc104 abnt2

for the current user. The same command as root makes it systemwide but does not affect your current user (as it is already set up and won't be overwritten). To get it systemwide and for the user, excute this line once for root and user.

Due to systemd you must logout and login, restart the daemon or setup the keyboard via `setxkbmap br abnt2 pc104`. Then you can remove the xorg.conf if you do not use it anyway.


Did not work. deleted xorg.conf and restarted. With the root user executed

localectl set-x11-keymap br pc104 abnt2

and the layout continues in English

Offline

#4 2020-10-19 08:07:23

koffeinfriedhof
Member
Registered: 2017-11-30
Posts: 91

Re: keyboard layout does not change Deepin Desktop

Sallbatori wrote:

With the root user executed

localectl set-x11-keymap br pc104 abnt2

and the layout continues in English

As explained, you have to execute this line as user too. What about your keyboard model? Does it match the default 104 keys model? If not get your model first.

Then try it again as $USER:

localectl set-x11-keymap br pc104 abnt2

#check with
localectl status

Logout and login. Then check the status output again.

Offline

#5 2020-10-19 23:50:12

Sallbatori
Member
Registered: 2020-10-18
Posts: 4

Re: keyboard layout does not change Deepin Desktop

koffeinfriedhof wrote:
Sallbatori wrote:

With the root user executed

localectl set-x11-keymap br pc104 abnt2

and the layout continues in English

As explained, you have to execute this line as user too. What about your keyboard model? Does it match the default 104 keys model? If not get your model first.

Then try it again as $USER:

localectl set-x11-keymap br pc104 abnt2

#check with
localectl status

Logout and login. Then check the status output again.


Did not work. The strange thing is that with

setxkbmap -model abnt2 -layout br -variant abnt2

works perfectly, but only for session.
Is it that deepin destktop is doing something behind

Offline

#6 2020-10-20 10:45:33

koffeinfriedhof
Member
Registered: 2017-11-30
Posts: 91

Re: keyboard layout does not change Deepin Desktop

Did you remove your xorg.conf-entry? You are using xf86-input-evdev there instead of ArchWiki:libinput

And again: check your model.

Offline

#7 2020-10-20 14:04:21

Sallbatori
Member
Registered: 2020-10-18
Posts: 4

Re: keyboard layout does not change Deepin Desktop

I was just setting up on the deepin desktop

Offline

Board footer

Powered by FluxBB