Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Keyboard layout in X is different from console (tty)

New to Debian (Or Linux in general)? Ask your questions here!
Post Reply
Message
Author
melost
Posts: 3
Joined: 2017-11-19 14:56

Keyboard layout in X is different from console (tty)

#1 Post by melost »

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:

arochester
Emeritus
Emeritus
Posts: 2435
Joined: 2010-12-07 19:55
Has thanked: 14 times
Been thanked: 54 times

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

#2 Post by arochester »

The layout you have posted is Portuguese (Brazil) but your XKBLAYOUT="en"?

User avatar
debiman
Posts: 3063
Joined: 2013-03-12 07:18

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

#3 Post by debiman »

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
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

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

#4 Post by Head_on_a_Stick »

Please post the output of

Code: Select all

localectl
deadbang

melost
Posts: 3
Joined: 2017-11-19 14:56

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

#5 Post by melost »

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)

#6 Post by melost »

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:

User avatar
debiman
Posts: 3063
Joined: 2013-03-12 07:18

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

#7 Post by debiman »

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?

Post Reply