[Solved] Issue with italian keyboard and Debian 10

Kernels & Hardware, configuring network, installing services

[Solved] Issue with italian keyboard and Debian 10

Postby coppolino97 » 2019-11-04 21:33

Hi all,
I have an issue with my italian keyboard and Debian 10.
When laptop starts characters do not match with my laptop keyboard.

The file "/etc/default/keyboard" seems correct, in my opinion:
Code: Select all
# KEYBOARD CONFIGURATION FILE
# Consult the keyboard(5) manual page.
XKBMODEL="pc105"
XKBLAYOUT="it"
XKBVARIANT=""
XKBOPTIONS=""
BACKSPACE="guess"

I have found a rapid fix, but it is not final, just typing on terminal, after every logon
Code: Select all
setxkbmap it

but it is a temponary solution. After reboot, the layout keyboard is not correct again.

During OS installation I have choosen italiay keyboard layout and english language. Before today all worked fine! :(

Someone have any ideas to fix this problem?
Thanks in advance :D
Last edited by coppolino97 on 2019-11-11 18:19, edited 1 time in total.
HP Elitebook 840 G3 | 8Gbyte of RAM | Intel core i5 | SSD 250GB | Debian 10
coppolino97
 
Posts: 47
Joined: 2018-06-05 15:23

Re: Issue with italian keyboard and Debian 10

Postby kedaha » 2019-11-04 23:32

Hi,
Have about the Wiki on troubleshooting the keyboard?
Mate DE & OSSv4.
FreedomBox in Debian
ispmail
Debian Stable

Words, as is well known, are the great foes of reality. Joseph Conrad.
Kedaha's Conjecture
User avatar
kedaha
 
Posts: 3017
Joined: 2008-05-24 12:26

Re: Issue with italian keyboard and Debian 10

Postby coppolino97 » 2019-11-05 20:32

Hi,
thanks for your suggestion.
I have seen that I have this problem just when I use some software, as Firefox or Chromnium or CodeBlocks.
Otherwhise if I use the notepad, there is not this issues.

I have tried command of troubleshooting methods but they doesn't work in my case.

Thanks
HP Elitebook 840 G3 | 8Gbyte of RAM | Intel core i5 | SSD 250GB | Debian 10
coppolino97
 
Posts: 47
Joined: 2018-06-05 15:23

Re: Issue with italian keyboard and Debian 10

Postby Head_on_a_Stick » 2019-11-06 18:44

Code: Select all
localectl
Don't break DebianHow to report bugs

SharpBang GNU/Linux — a pre-configured Openbox/Tint2 desktop running on Debian stable
User avatar
Head_on_a_Stick
 
Posts: 10613
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Issue with italian keyboard and Debian 10

Postby coppolino97 » 2019-11-06 19:42

Hi,
this is the output

System Locale: LANG=en_US.UTF-8
LANGUAGE=en_US:en
VC Keymap: n/a
X11 Layout: it
X11 Model: pc105
HP Elitebook 840 G3 | 8Gbyte of RAM | Intel core i5 | SSD 250GB | Debian 10
coppolino97
 
Posts: 47
Joined: 2018-06-05 15:23

Re: Issue with italian keyboard and Debian 10

Postby Hallvor » 2019-11-06 20:50

I would try
Code: Select all
# dpkg-reconfigure locales
Lenovo Thinkpad T440S, Intel Core i7-4600U CPU @ 2.10GHz, 8 GB RAM, 256 GB SSD, Debian Buster (KDE)
User avatar
Hallvor
 
Posts: 947
Joined: 2009-04-16 18:35
Location: Norway

Re: Issue with italian keyboard and Debian 10

Postby coppolino97 » 2019-11-07 18:11

I did not write that on my computer the language system is english but the keyboard layout is italian.

Code: Select all
 # dpkg-reconfigure locales

Sorry but not fixed the issue
HP Elitebook 840 G3 | 8Gbyte of RAM | Intel core i5 | SSD 250GB | Debian 10
coppolino97
 
Posts: 47
Joined: 2018-06-05 15:23

Re: Issue with italian keyboard and Debian 10

Postby Head_on_a_Stick » 2019-11-07 18:17

Code: Select all
# dpkg-reconfigure keyboard-configuration
Don't break DebianHow to report bugs

SharpBang GNU/Linux — a pre-configured Openbox/Tint2 desktop running on Debian stable
User avatar
Head_on_a_Stick
 
Posts: 10613
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Issue with italian keyboard and Debian 10

Postby coppolino97 » 2019-11-07 20:49

Thanks for your help.

# dpkg-reconfigure keyboard-configuration

Any good news.

After this command I have tried to check the keyboard layout using:
Code: Select all
federico@FEDERICO-DEB:~$ setxkbmap -query | grep layout
layout:     us


After reboot also the layout persist to be "us" :shock:
HP Elitebook 840 G3 | 8Gbyte of RAM | Intel core i5 | SSD 250GB | Debian 10
coppolino97
 
Posts: 47
Joined: 2018-06-05 15:23

Re: Issue with italian keyboard and Debian 10

Postby kedaha » 2019-11-08 12:07

Have you looked at using setxkbmap it during booting/login to set the Italian keyboard?
I use a Spanish keyboard in combination with English language and never had such an issue. I looked at the configuration you posted and can see nothing wrong with it so I'm baffled by the persistence of the us keyboard.
Mate DE & OSSv4.
FreedomBox in Debian
ispmail
Debian Stable

Words, as is well known, are the great foes of reality. Joseph Conrad.
Kedaha's Conjecture
User avatar
kedaha
 
Posts: 3017
Joined: 2008-05-24 12:26

Re: Issue with italian keyboard and Debian 10

Postby coppolino97 » 2019-11-09 10:17

Hi @kedaha,
Yes, I am baffled by the persistence of the us keyboard too.
After login using my user, if I type
Code: Select all
setxkbmap it

all applications work fine without problem about keyboard layout.

At the moment I have tried this to solution but not works fine:

Code: Select all
crontab -e
@reboot /usr/bin/setxkbmap it


The second solution that I have just tried:

I have edited $HOME/.profile file and at the end of this hidden file I have added: setxkbmap it

Code: Select all
# ~/.profile: executed by the command interpreter for login shells.
# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
# exists.
# see /usr/share/doc/bash/examples/startup-files for examples.
# the files are located in the bash-doc package.

# the default umask is set in /etc/profile; for setting the umask
# for ssh logins, install and configure the libpam-umask package.
#umask 022

# if running bash
if [ -n "$BASH_VERSION" ]; then
    # include .bashrc if it exists
    if [ -f "$HOME/.bashrc" ]; then
        . "$HOME/.bashrc"
    fi
fi

# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
    PATH="$HOME/bin:$PATH"
fi

# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/.local/bin" ] ; then
    PATH="$HOME/.local/bin:$PATH"
fi

#set laytout keyboard
setxkbmap it


After reboot the issue persist, I have not undestood where is my error yet.

Thanks
HP Elitebook 840 G3 | 8Gbyte of RAM | Intel core i5 | SSD 250GB | Debian 10
coppolino97
 
Posts: 47
Joined: 2018-06-05 15:23

Re: Issue with italian keyboard and Debian 10

Postby anticapitalista » 2019-11-09 13:51

Maybe it is connected with your desktop environment and/or login manager.
antiX "Heather Heyer" - lean and mean.
https://antixlinux.com
anticapitalista
 
Posts: 355
Joined: 2007-12-14 23:16

Re: Issue with italian keyboard and Debian 10

Postby coppolino97 » 2019-11-09 14:04

In my case, my desktop enviorment is Gnome with Debian 10
HP Elitebook 840 G3 | 8Gbyte of RAM | Intel core i5 | SSD 250GB | Debian 10
coppolino97
 
Posts: 47
Joined: 2018-06-05 15:23

Re: Issue with italian keyboard and Debian 10

Postby anticapitalista » 2019-11-09 14:18

Is there a keyboard setting tool for Gnome?
Does the login manager (gdm) have a save session option like lightdm has?
Or somewhere at the login screen to choose language?

Hopefully this is of some use, but I don't know anything about gnome as I have never used it.
antiX "Heather Heyer" - lean and mean.
https://antixlinux.com
anticapitalista
 
Posts: 355
Joined: 2007-12-14 23:16

Re: Issue with italian keyboard and Debian 10

Postby coppolino97 » 2019-11-09 16:02

Hello @anticapitalista,
I have found the solution at my problem at the moment. All seem that work fine!
In my option there is a mistery about the fix of this issue.

At the login page of Debian, after the boot system, near the "Sign in" button there is another small button. It is gearwheel button.
I have selected it and appear a small menu with four options:

- System X11 Default
- GNOME
- GNOME Classic
- GNOME on Xorg

The "GNOME" option was checked. I have just changed from GNOME to System X11 Default and now all works properly.

Someone can explain me why?

Thanks for all support about this issue! :D
HP Elitebook 840 G3 | 8Gbyte of RAM | Intel core i5 | SSD 250GB | Debian 10
coppolino97
 
Posts: 47
Joined: 2018-06-05 15:23


Return to System configuration

Who is online

Users browsing this forum: No registered users and 5 guests

fashionable