3

I am encountering a very weird error recently, that I cannot figure out to solve.

I have an Asus S301L with Ubuntu 12.04 and an Italian keyboard; every time I log in, some key on my keyboard does not work properly:

  1. p produces *
  2. 0 produces /
  3. - produces +

But also others, for example, it took quite some time for me to just write this message.

The only way to have things again to work properly is to type from a terminal:

setxkbmap it

That command takes a keyboard layout configuration from the folder

/usr/share/X11/xkb/symbols/

And it starts again to work, just for a (indefinite) duration of time , then, things, again, are wrong.

The output of the locale command is:

LANG=en_US.UTF-8
LANGUAGE=en_US:en
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC=it_IT.UTF-8
LC_TIME=it_IT.UTF-8
LC_COLLATE="en_US.UTF-8"
LC_MONETARY=it_IT.UTF-8
LC_MESSAGES="en_US.UTF-8"
LC_PAPER=it_IT.UTF-8
LC_NAME=it_IT.UTF-8
LC_ADDRESS=it_IT.UTF-8
LC_TELEPHONE=it_IT.UTF-8
LC_MEASUREMENT=it_IT.UTF-8
LC_IDENTIFICATION=it_IT.UTF-8
LC_ALL=
Jens Erat
  • 5,131
  • 7
  • 33
  • 37
burnOut
  • 31

1 Answers1

2

What you describe sounds like the desktop environment (DE), Gnome in your case, is switching back to the default settings every now and then and that's what is screwing with your keyboard layout. The simplest solution would be to set the correct settings from the Gnome settings menu.

Open the System Settings, click on Keyboard, then on "Layout Settings":

enter image description here On the next screen, remove any keyboard layouts that you don't want:

enter image description here


If you still have this problem, you might want to also set the Regional Settings (System Settings => Language and Region) to whatever you prefer as well. However, I have always mixed US English layouts with European style number and regional settings so I doubt this is the issue.

terdon
  • 104,119