You are not logged in.

#1 2016-10-31 17:48:56

Gauss
Member
Registered: 2016-10-31
Posts: 23

[SOLVED]Change keyboard layout

Hello,

I've trying to change my current keyboard layout to br-abnt2. After reading several topics about this subject and the arch wiki, I still can not succeed.
Any insights?

Thank you

Last edited by Gauss (2017-10-08 15:34:42)

Offline

#2 2016-10-31 18:11:10

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [SOLVED]Change keyboard layout

Gauss wrote:

I still can not succeed.

What exactly did you try? Please see: How To Ask Questions The Smart Way and provide information that will allow the community to assist you.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2016-10-31 18:43:12

Gauss
Member
Registered: 2016-10-31
Posts: 23

Re: [SOLVED]Change keyboard layout

Ok, I opened /etc/vconsole.conf with nano (it was empty) and added KEYMAP="br-abnt2". After rebooting, nothing happened.

I have also changed some configurations with localectl. Now if I enter "localectl" on the terminal, it displays:
"System Locale: LANG=C
VC Keymap: br-abnt2.map.gz
X11 Layout: br-abnt2"
It made no difference.

Last edited by Gauss (2016-10-31 18:43:36)

Offline

#4 2016-10-31 18:55:19

karlospv94
Member
Registered: 2016-10-12
Posts: 100

Re: [SOLVED]Change keyboard layout

Try with this:

localectl set-x11-keymap br-abnt2

It will save it as persistent mode

Offline

#5 2016-10-31 19:02:45

Gauss
Member
Registered: 2016-10-31
Posts: 23

Re: [SOLVED]Change keyboard layout

karlospv94 wrote:

Try with this:

localectl set-x11-keymap br-abnt2

It will save it as persistent mode

Hello, it did not work.
Thank you anyway.

Offline

#6 2016-10-31 19:15:19

drcouzelis
Member
From: Connecticut, USA
Registered: 2009-11-09
Posts: 4,092
Website

Re: [SOLVED]Change keyboard layout

Hi, Gauss.

Are you trying to set the keyboard for TTY ("terminal") or for X (GUI)?

What is the output of "uname -a"?

Offline

#7 2016-10-31 19:41:04

Gauss
Member
Registered: 2016-10-31
Posts: 23

Re: [SOLVED]Change keyboard layout

drcouzelis wrote:

Hi, Gauss.

Are you trying to set the keyboard for TTY ("terminal") or for X (GUI)?

What is the output of "uname -a"?

Hello, I'm trying to set the keyboard to the whole system (terminal and applications).

output of "uname -a":
"Linux 150client83.wireless.ufsc.br 4.8.4-1-ARCH #1 SMP PREEMPT Sat Oct 22 18:26:57 CEST 2016 x86_64 GNU/Linux"

Offline

#8 2016-11-01 11:46:29

drcouzelis
Member
From: Connecticut, USA
Registered: 2009-11-09
Posts: 4,092
Website

Re: [SOLVED]Change keyboard layout

First, clear any changes you made. Please delete these configuration files (if they exist):

rm /etc/vconsole.conf
rm /etc/X11/xorg.conf.d/00-keyboard.conf

Please reboot.

Now, try this command to set the keyboard layout:

setxkbmap -model abnt2 -layout br -variant abnt2

Is the keyboard good?

Offline

#9 2016-11-01 15:53:07

Gauss
Member
Registered: 2016-10-31
Posts: 23

Re: [SOLVED]Change keyboard layout

drcouzelis wrote:

First, clear any changes you made. Please delete these configuration files (if they exist):

rm /etc/vconsole.conf
rm /etc/X11/xorg.conf.d/00-keyboard.conf

Please reboot.

Now, try this command to set the keyboard layout:

setxkbmap -model abnt2 -layout br -variant abnt2

Is the keyboard good?

The keyboard is now good on my programs, but not on the terminal. How can I change it on terminal?

Thank you for your help.

Offline

#10 2016-11-01 16:31:31

drcouzelis
Member
From: Connecticut, USA
Registered: 2009-11-09
Posts: 4,092
Website

Re: [SOLVED]Change keyboard layout

I'm sorry, I don't know.

Please try using Google to search "br-abnt2 vconsole.conf". Most of the answers are in Portuguese.

Offline

#11 2016-11-01 20:23:47

onslow77
Member
Registered: 2014-09-21
Posts: 279

Re: [SOLVED]Change keyboard layout


It is advised to follow the How to post guide when posting on the Arch forum. If one consciously jumps over these elementary steps like reading the wiki and providing necessary information about the problem, one can be regarded as a Help Vampire.

Offline

#12 2016-11-02 18:19:34

Gauss
Member
Registered: 2016-10-31
Posts: 23

Re: [SOLVED]Change keyboard layout

Hello, I have added a line on vconsole.conf that says:
"KEYMAP= br-abnt2"

However, the keyboard layout did not change.

If I type "setxkbmap -model abnt2 -layout br -variant abnt2" as suggested by drcouzelis, the keyboard becomes br-abnt2 until I reboot the system,

Offline

#13 2016-11-02 18:34:34

onslow77
Member
Registered: 2014-09-21
Posts: 279

Re: [SOLVED]Change keyboard layout

Gauss wrote:

Hello, I have added a line on vconsole.conf that says:
"KEYMAP= br-abnt2"

However, the keyboard layout did not change.

Remove the " " and then reboot. The wiki I linked to write the follwing under the persistent configuration section:

"A persistent keymap can be set in /etc/vconsole.conf, which is read by systemd on start-up. The KEYMAP variable is used for specifying the keymap. If the variable is empty or not set, the us keymap is used as default value. See man 5 vconsole.conf for all options. For example:"

/etc/vconsole.conf
KEYMAP=uk
...

Regards
Martin

Last edited by onslow77 (2016-11-02 18:37:33)


It is advised to follow the How to post guide when posting on the Arch forum. If one consciously jumps over these elementary steps like reading the wiki and providing necessary information about the problem, one can be regarded as a Help Vampire.

Offline

#14 2016-11-02 19:18:03

Gauss
Member
Registered: 2016-10-31
Posts: 23

Re: [SOLVED]Change keyboard layout

onslow77 wrote:
Gauss wrote:

Hello, I have added a line on vconsole.conf that says:
"KEYMAP= br-abnt2"

However, the keyboard layout did not change.

Remove the " " and then reboot. The wiki I linked to write the follwing under the persistent configuration section:

"A persistent keymap can be set in /etc/vconsole.conf, which is read by systemd on start-up. The KEYMAP variable is used for specifying the keymap. If the variable is empty or not set, the us keymap is used as default value. See man 5 vconsole.conf for all options. For example:"

/etc/vconsole.conf
KEYMAP=uk
...

Regards
Martin

There was no "", only:
KEYMAP= br-abnt2

After rebooting, nothing changed.

Offline

#15 2016-11-02 20:21:55

drcouzelis
Member
From: Connecticut, USA
Registered: 2009-11-09
Posts: 4,092
Website

Re: [SOLVED]Change keyboard layout

Gauss wrote:

There was no ""

The space. The suggestion was to remove the space from "/etc/vconsole.conf".

What is the output of this command?

ls -l /usr/share/kbd/keymaps/i386/qwerty/br-abnt2.map.gz

Also, does this command change the keyboard layout?

loadkeys br-abnt2

EDIT:
WAIT. Wait, wait, wait, wait, wait...

Gauss, delete "/etc/vconsole.conf". You don't need it.

Just copy and paste the command "setxkbmap -model abnt2 -layout br -variant abnt2" into the file "~/.xinitrc". Done! smile

What window manager or desktop environment are you using? Openbox? KDE?

Last edited by drcouzelis (2016-11-02 20:27:36)

Offline

#16 2016-11-02 20:47:04

Gauss
Member
Registered: 2016-10-31
Posts: 23

Re: [SOLVED]Change keyboard layout

drcouzelis wrote:
Gauss wrote:

There was no ""

The space. The suggestion was to remove the space from "/etc/vconsole.conf".

What is the output of this command?

ls -l /usr/share/kbd/keymaps/i386/qwerty/br-abnt2.map.gz

Also, does this command change the keyboard layout?

loadkeys br-abnt2

EDIT:
WAIT. Wait, wait, wait, wait, wait...

Gauss, delete "/etc/vconsole.conf". You don't need it.

Just copy and paste the command "setxkbmap -model abnt2 -layout br -variant abnt2" into the file "~/.xinitrc". Done! smile

What window manager or desktop environment are you using? Openbox? KDE?

Hello again, Im currently using GNOME 3.

I dont have a xinitrc file, where should I create one?

Offline

#17 2016-11-02 21:26:05

onslow77
Member
Registered: 2014-09-21
Posts: 279

Re: [SOLVED]Change keyboard layout

Gauss wrote:

I dont have a xinitrc file, where should I create one?

Stop for a moment and think, because now you are being a Help Vampire!

@Gauss It is expected of you to put some effort into doing your own research. The above question can easily be answered by a search on DuckDuckGo/Google with: "arch linux xinitrc".

Gauss wrote:

There was no "", only:
KEYMAP= br-abnt2

After rebooting, nothing changed.

Then you did not folllow the keyboard configuration wiki or you have messed up other configurations that prevent systemd from reading and implement the contens of "/etc/vconsole.conf"

I suggest you backtrack your steps and start over again, either with the setxkbmap or vconsole.conf solution that has been suggested in this thread.

Regards
Martin

Last edited by onslow77 (2016-11-02 21:43:01)


It is advised to follow the How to post guide when posting on the Arch forum. If one consciously jumps over these elementary steps like reading the wiki and providing necessary information about the problem, one can be regarded as a Help Vampire.

Offline

#18 2016-11-02 21:27:12

damjan
Member
Registered: 2006-05-30
Posts: 451

Re: [SOLVED]Change keyboard layout

Gnome3 has a really nice GUI to setup the keyboard layout, why not use that???


http://mixeduperic.com/linux/how-to-ena … nome3.html

Offline

#19 2016-11-02 21:59:56

Gauss
Member
Registered: 2016-10-31
Posts: 23

Re: [SOLVED]Change keyboard layout

onslow77 wrote:
Gauss wrote:

I dont have a xinitrc file, where should I create one?

Stop for a moment and think, because now you are being a Help Vampire!

@Gauss It is expected of you to put some effort into doing your own research. The above question can easily be answered by a search on DuckDuckGo/Google with: "arch linux xinitrc".

Gauss wrote:

There was no "", only:
KEYMAP= br-abnt2

After rebooting, nothing changed.

Then you did not folllow the keyboard configuration wiki or you have messed up other configurations that prevent systemd from reading and implement the contens of "/etc/vconsole.conf"

I suggest you backtrack your steps and start over again, either with the setxkbmap or vconsole.conf solution that has been suggested in this thread.

Regards
Martin

I did my own research before posting on the forum, I came here as last resort. If I am annoying you, please forgive me and dont bother looking back on this topic.

Offline

#20 2016-11-02 22:04:23

Gauss
Member
Registered: 2016-10-31
Posts: 23

Re: [SOLVED]Change keyboard layout

damjan wrote:

Gnome3 has a really nice GUI to setup the keyboard layout, why not use that???


http://mixeduperic.com/linux/how-to-ena … nome3.html

Hello, I have not downloaded all the GNOME applications. I currently have GNOME Commander, Display and Control Center.
I'll look into more applications.

Thank you.

Offline

#21 2016-11-02 22:49:13

Gauss
Member
Registered: 2016-10-31
Posts: 23

Re: [SOLVED]Change keyboard layout

damjan wrote:

Gnome3 has a really nice GUI to setup the keyboard layout, why not use that???


http://mixeduperic.com/linux/how-to-ena … nome3.html

Solved the problem with your advice, thank you again.

Offline

Board footer

Powered by FluxBB