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

 

 

 

[Solved] Issue with italian keyboard and Debian 10

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
coppolino97
Posts: 115
Joined: 2018-06-05 15:23
Location: Italy
Has thanked: 2 times

[Solved] Issue with italian keyboard and Debian 10

#1 Post by coppolino97 »

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.
Lenovo T460 | 8Gbyte of RAM | Intel core i5 | SSD 250GB | Debian 12

kedaha
Posts: 3521
Joined: 2008-05-24 12:26
Has thanked: 33 times
Been thanked: 77 times

Re: Issue with italian keyboard and Debian 10

#2 Post by kedaha »

Hi,
Have about the Wiki on troubleshooting the keyboard?
DebianStable

Code: Select all

$ vrms

No non-free or contrib packages installed on debian!  rms would be proud.

coppolino97
Posts: 115
Joined: 2018-06-05 15:23
Location: Italy
Has thanked: 2 times

Re: Issue with italian keyboard and Debian 10

#3 Post by coppolino97 »

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
Lenovo T460 | 8Gbyte of RAM | Intel core i5 | SSD 250GB | Debian 12

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: Issue with italian keyboard and Debian 10

#4 Post by Head_on_a_Stick »

Code: Select all

localectl
deadbang

coppolino97
Posts: 115
Joined: 2018-06-05 15:23
Location: Italy
Has thanked: 2 times

Re: Issue with italian keyboard and Debian 10

#5 Post by coppolino97 »

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
Lenovo T460 | 8Gbyte of RAM | Intel core i5 | SSD 250GB | Debian 12

User avatar
Hallvor
Global Moderator
Global Moderator
Posts: 2029
Joined: 2009-04-16 18:35
Location: Kristiansand, Norway
Has thanked: 139 times
Been thanked: 206 times

Re: Issue with italian keyboard and Debian 10

#6 Post by Hallvor »

I would try

Code: Select all

# dpkg-reconfigure locales
[HowTo] Install and configure Debian bookworm
Debian 12 | KDE Plasma | ThinkPad T440s | 4 × Intel® Core™ i7-4600U CPU @ 2.10GHz | 12 GiB RAM | Mesa Intel® HD Graphics 4400 | 1 TB SSD

coppolino97
Posts: 115
Joined: 2018-06-05 15:23
Location: Italy
Has thanked: 2 times

Re: Issue with italian keyboard and Debian 10

#7 Post by coppolino97 »

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
Lenovo T460 | 8Gbyte of RAM | Intel core i5 | SSD 250GB | Debian 12

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: Issue with italian keyboard and Debian 10

#8 Post by Head_on_a_Stick »

Code: Select all

# dpkg-reconfigure keyboard-configuration 
deadbang

coppolino97
Posts: 115
Joined: 2018-06-05 15:23
Location: Italy
Has thanked: 2 times

Re: Issue with italian keyboard and Debian 10

#9 Post by coppolino97 »

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:
Lenovo T460 | 8Gbyte of RAM | Intel core i5 | SSD 250GB | Debian 12

kedaha
Posts: 3521
Joined: 2008-05-24 12:26
Has thanked: 33 times
Been thanked: 77 times

Re: Issue with italian keyboard and Debian 10

#10 Post by kedaha »

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.
DebianStable

Code: Select all

$ vrms

No non-free or contrib packages installed on debian!  rms would be proud.

coppolino97
Posts: 115
Joined: 2018-06-05 15:23
Location: Italy
Has thanked: 2 times

Re: Issue with italian keyboard and Debian 10

#11 Post by coppolino97 »

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
Lenovo T460 | 8Gbyte of RAM | Intel core i5 | SSD 250GB | Debian 12

anticapitalista
Posts: 428
Joined: 2007-12-14 23:16
Has thanked: 12 times
Been thanked: 13 times

Re: Issue with italian keyboard and Debian 10

#12 Post by anticapitalista »

Maybe it is connected with your desktop environment and/or login manager.
antiX with runit - lean and mean.
https://antixlinux.com

coppolino97
Posts: 115
Joined: 2018-06-05 15:23
Location: Italy
Has thanked: 2 times

Re: Issue with italian keyboard and Debian 10

#13 Post by coppolino97 »

In my case, my desktop enviorment is Gnome with Debian 10
Lenovo T460 | 8Gbyte of RAM | Intel core i5 | SSD 250GB | Debian 12

anticapitalista
Posts: 428
Joined: 2007-12-14 23:16
Has thanked: 12 times
Been thanked: 13 times

Re: Issue with italian keyboard and Debian 10

#14 Post by anticapitalista »

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 with runit - lean and mean.
https://antixlinux.com

coppolino97
Posts: 115
Joined: 2018-06-05 15:23
Location: Italy
Has thanked: 2 times

Re: Issue with italian keyboard and Debian 10

#15 Post by coppolino97 »

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
Lenovo T460 | 8Gbyte of RAM | Intel core i5 | SSD 250GB | Debian 12

Post Reply