Keyboard layout in X is different from console (tty)

New to Debian (Or Linux in general)? Ask your questions here!

Keyboard layout in X is different from console (tty)

Postby melost » 2017-11-19 15:15

The keyboard layout from X environment is not the same as the console (tty) and I've tried many things to try to resolve this without any success. I've tried to use the instructions at https://wiki.debian.org/Keyboard but, sadly, I couldn't manage to solve the problem.

Keyboard's real layout:
https://ibb.co/iviM3R

/etc/default/keyboard
Code: Select all
                                                 
# KEYBOARD CONFIGURATION FILE

# Consult the keyboard(5) manual page.

XKBMODEL="samsung4500"
XKBLAYOUT="en"
XKBVARIANT="alt-intl"
XKBOPTIONS="terminate:ctrl_alt_bksp"

BACKSPACE="guess"

uname -a
Code: Select all
Linux melost-pc 3.16.0-4-amd64 #1 SMP Debian 3.16.43-2+deb8u5 (2017-09-19) x86_64 GNU/Linux

/usr/share/gnome/gnome-version.xml
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<gnome-version>
 <platform>3</platform>
 <minor>22</minor>
 <micro>2</micro>
 <distributor>Debian</distributor>
 
</gnome-version>% 


What am I missing? :cry:
melost
 
Posts: 3
Joined: 2017-11-19 14:56

Re: Keyboard layout in X is different from console (tty)

Postby arochester » 2017-11-19 15:42

The layout you have posted is Portuguese (Brazil) but your XKBLAYOUT="en"?
"Something to be aware of: Debian is a core or source distribution. This means there are many Debian-based distributions. THEY ARE NOT DEBIAN."
arochester
 
Posts: 1112
Joined: 2010-12-07 19:55

Re: Keyboard layout in X is different from console (tty)

Postby debiman » 2017-11-19 18:51

man keyboard wrote:The keyboard file describes the properties of the keyboard. It is read by setupcon(1) in
order to configure the keyboard on the console. In Debian systems the default keyboard lay‐
out is described in /etc/default/keyboard and it is shared between X and the console.
strange, it should be working the same for both X and the console.
and it should be english for both, which is wrong.
maybe gnome is doing its own things and overriding the setting?
what is the actual (not physical) keyboard layout for X and console, currently?
User avatar
debiman
 
Posts: 1619
Joined: 2013-03-12 07:18

Re: Keyboard layout in X is different from console (tty)

Postby Head_on_a_Stick » 2017-11-19 20:02

Please post the output of
Code: Select all
localectl
"Only the mediocre are always at their best." — Jean Giraudoux
User avatar
Head_on_a_Stick
 
Posts: 6787
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Keyboard layout in X is different from console (tty)

Postby melost » 2017-11-20 14:40

Head_on_a_Stick wrote:Please post the output of
Code: Select all
localectl


The output for both X and tty is
Code: Select all
   System Locale: LANG=en_US.UTF-8
                  LANGUAGE=en_US:en
       VC Keymap: br-abnt2
      X11 Layout: br
melost
 
Posts: 3
Joined: 2017-11-19 14:56

Re: Keyboard layout in X is different from console (tty)

Postby melost » 2017-11-20 14:52

debiman wrote:
man keyboard wrote:The keyboard file describes the properties of the keyboard. It is read by setupcon(1) in
order to configure the keyboard on the console. In Debian systems the default keyboard lay‐
out is described in /etc/default/keyboard and it is shared between X and the console.
strange, it should be working the same for both X and the console.
and it should be english for both, which is wrong.
maybe gnome is doing its own things and overriding the setting?
what is the actual (not physical) keyboard layout for X and console, currently?


I must say that I'm a real noob because probably I've messed up something when I was installing Linux. As I like to use english as OS's main language, maybe (probably) I've selected english on Linux keyboard setup. I've tried to change it manually following the Debian tutorial and now I could manage to use the correct layout from X but not on tty. I'm saying all of this because actually I don't know how to determine which layout they have (or command I could use to retrieve this information).

To use the tty, I had to manually map the letters that are different from the layout :cry:
melost
 
Posts: 3
Joined: 2017-11-19 14:56

Re: Keyboard layout in X is different from console (tty)

Postby debiman » 2017-11-21 16:45

melost wrote:The output for both X and tty is
Code: Select all
   System Locale: LANG=en_US.UTF-8
                  LANGUAGE=en_US:en
       VC Keymap: br-abnt2
      X11 Layout: br

br = brasilian? is that the keyboard layout?
and you want the UI to be in english?
sorry, but it looks like everything is ok.

what exactly is not working as you desire?
User avatar
debiman
 
Posts: 1619
Joined: 2013-03-12 07:18


Return to Beginners Questions

Who is online

Users browsing this forum: No registered users and 6 guests

fashionable