LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Keyboard does not work properly in tty (https://www.linuxquestions.org/questions/linux-newbie-8/keyboard-does-not-work-properly-in-tty-4175690075/)

doom_23 02-07-2021 01:12 PM

Keyboard does not work properly in tty
 
Hello. When I am switching to tty (for example Ctrl+Alt+F1) I need to write my login. But I can't write any letters. All I can write is numbers.
What is the problem? My distro is Debian Sid (bullseye).

mrmazda 02-07-2021 01:36 PM

Is it always this way?
Did you spill something on your keyboard?
Do you have a stuck key?
Do you have access to another keyboard to try?
Does plugging the USB keyboard into a different USB port change anything?
Does a powerdown reboot fix it?
Did you only just finish installing Bullseye?
Did you only just finish upgrading to Bullseye?

teckk 02-07-2021 01:39 PM

Got the correct keymap?

https://wiki.debian.org/Keyboard
https://superuser.com/questions/4695...-change-keymap
https://www.digitalocean.com/communi...ymap-in-debian

doom_23 02-07-2021 03:39 PM

Quote:

Originally Posted by mrmazda (Post 6217490)
Is it always this way?
Did you spill something on your keyboard?
Do you have a stuck key?
Do you have access to another keyboard to try?
Does plugging the USB keyboard into a different USB port change anything?
Does a powerdown reboot fix it?
Did you only just finish installing Bullseye?
Did you only just finish upgrading to Bullseye?

1. Yes
2. No, keyboard is good
3. No
4. No
5. No
6. No
7. Yes
8. No

I am using Linux for 2 years but this happened to me for the first time.
This distribution I installed to laptop Dell Latitude D620 at Feb 1 and I have not been in tty mode until today. Also I installed a patch that fixes xorg 865 bug using the script I have found on github. The script itself:
Code:

#!/bin/bash

rm -rf build
mkdir -p build
cd build

sudo apt install devscripts -y
sudo mk-build-deps -t'apt-get -y' -ir xserver-xorg-core

apt source xserver-xorg-core
SRC_DIR=`ls | cut -f1 | head -n1`

#https://bugs.freedesktop.org/show_bug.cgi?id=865
#wget -O ../xkb_switch_on_release.patch https://bugs.freedesktop.org/attachment.cgi?id=129861
patch ${SRC_DIR}/xkb/xkbActions.c < ../xkb_switch_on_release.patch || exit 1

pushd ${SRC_DIR}
dch -n ''
debuild -us -uc
popd

sudo apt purge xorg-server-build-deps devscripts --auto-remove -y

sudo dpkg -i xserver-common_*.deb
sudo dpkg -i xserver-xorg-core_*.deb
rm -rf ../build


mrmazda 02-07-2021 03:49 PM

Quote:

Originally Posted by doom_23 (Post 6217532)
...
6. Yes
...

Has it stayed fixed since the powerdown reboot?

doom_23 02-08-2021 12:50 PM

Quote:

Originally Posted by mrmazda (Post 6217538)
Has it stayed fixed since the powerdown reboot?

Wait, what? What did I write? Now answers are good.
It's weird, but I have just entered to tty mode and it works, but if I want to return back, I need to press Ctrl+Super+F7 instead of Ctrl+Alt+F7. If I will change a keyboard model in xfce settings, the changes also apply to a tty. For example, the key '/' does not work with "Dell Latitude" model in xfce settings but if I'll set the model to 102 keys keyboard, it works.

doom_23 02-08-2021 01:47 PM

I think that something related to keyboard layout.


All times are GMT -5. The time now is 05:07 PM.