You are not logged in.

#1 2016-10-25 02:43:59

dhalgren
Member
Registered: 2015-10-01
Posts: 152

Keyboard problems

I did an upgrade yesterday, and when I logged on today, my keyboard was completely disfunctional.

I am unaware of changing anything, because I didn't. (Not over the past few days, anyway.)

My keyboard now produces, e.g., a/61 when I press a, and qc. when I press c

Does anyone have any clues? Apart from re-installing, is there anything I can do, bearing in mind that I cannot sudo as my password uses keys that now produce something other than what I am attempting to input.

EDIT: using an older kernel makes no difference, nor does starting in recovery mode. The kernel is 4.7.0.0

tia, and with fingers crossed.

(And apologies if this is in the wrong part of the forum.)

Last edited by dhalgren (2016-10-25 02:48:50)

Offline

#2 2016-10-25 02:51:06

Horizon_Brave
Operating System: Linux-Nettrix
Registered: 2015-10-18
Posts: 1,473

Re: Keyboard problems

Hmm two things,

can you enter into a terminal

stty sane

If that doesn't work, try running as sudo:

dpkg-reconfigure console-data

If you don't have the console-data package you may have to install with:

apt-get install console-data console-tools

"I have not failed, I have found 10,000 ways that will not work" -Edison

Offline

#3 2016-10-25 03:05:14

Horizon_Brave
Operating System: Linux-Nettrix
Registered: 2015-10-18
Posts: 1,473

Re: Keyboard problems

Actually you can also just run the command:

sudo  dpkg-reconfigure keyboard-configuration 

then...

service keyboard-setup restart

That does the trick for me.  Let me know if that helps! smile

Last edited by Horizon_Brave (2016-10-25 03:10:24)


"I have not failed, I have found 10,000 ways that will not work" -Edison

Offline

#4 2016-10-25 03:19:06

dhalgren
Member
Registered: 2015-10-01
Posts: 152

Re: Keyboard problems

Horizon_Brave wrote:

Actually you can also just run the command:

sudo  dpkg-reconfigure keyboard-configuration 

That does the trick for me.  Let me know if that helps! smile

Unfortunately it did not help, though it clearly should have, so I booted with a live environment, and discovered that it is the keyboard itself.

This is really annoying, but it is still under warranty, so the problem will be easy to get fixed, or so I hope.


Lucky I have a backup computer, just have to pur bunsen on instead of manjaro, which I have been playing with.

Thanks H-B

Last edited by dhalgren (2016-10-25 03:22:25)

Offline

#5 2016-10-25 03:31:49

Horizon_Brave
Operating System: Linux-Nettrix
Registered: 2015-10-18
Posts: 1,473

Re: Keyboard problems

dhalgren wrote:
Horizon_Brave wrote:

Actually you can also just run the command:

sudo  dpkg-reconfigure keyboard-configuration 

That does the trick for me.  Let me know if that helps! smile

Unfortunately it did not help, though it clearly should have, so I booted with a live environment, and discovered that it is the keyboard itself.

This is really annoying, but it is still under warranty, so the problem will be easy to get fixed, or so I hope.


Lucky I have a backup computer, just have to pur bunsen on instead of manjaro, which I have been playing with.

Thanks H-B

Did you make sure to do the last step of rebooting the keyboard setup service? I added it late to the post.


"I have not failed, I have found 10,000 ways that will not work" -Edison

Offline

#6 2016-10-25 04:30:03

dhalgren
Member
Registered: 2015-10-01
Posts: 152

Re: Keyboard problems

Horizon_Brave wrote:

Did you make sure to do the last step of rebooting the keyboard setup service? I added it late to the post.

Yes, I did, but I am afraid it did not help.

I talked about it with my local techie, and he thinks it is the keyboard also, having just replaced a couple on other laptops, which were producing the same type of output.

'Tis very annoying, but a new keyboard will not go astray, and they are cheap.

Thanks again.

Offline

#7 2017-03-09 14:09:01

marky
Member
Registered: 2017-02-20
Posts: 19

Re: Keyboard problems

Actually you can also just run the command:

sudo  dpkg-reconfigure keyboard-configuration 

then...

service keyboard-setup restart

That does the trick for me.  Let me know if that helps! smile

Tried that, still not able to set my local keyboard, despite that 'Input Resources' and 'Right Alt for Alternative Character Key' in Settings are properly set already.

Any other ideas, please?

Offline

#8 2017-03-09 19:08:57

marky
Member
Registered: 2017-02-20
Posts: 19

Re: Keyboard problems

I don't get it.
I've got bl installed also on laptop and everything there is fine - entire system is in my language.
On desktop pc, however it is not. Some UI elements are still in English, despite the fact that I have exact sources on both systems.

What should be checked, please?

Last edited by marky (2017-03-09 19:32:23)

Offline

#9 2017-03-09 21:44:54

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,084
Website

Re: Keyboard problems

Please post the output of:

cat /etc/default/keyboard
localectl

A comparison between the working and non-working machines would probably be useful.

Offline

#10 2017-03-10 07:00:39

marky
Member
Registered: 2017-02-20
Posts: 19

Re: Keyboard problems

Working:

m@m:~$ cat /etc/default/keyboard
# KEYBOARD CONFIGURATION FILE

# Consult the keyboard(5) manual page.

XKBMODEL="pc105"
XKBLAYOUT="pl"
XKBVARIANT=""
XKBOPTIONS=""

BACKSPACE="guess"
m@m:~$ localectl
   System Locale: LANG=pl_PL.UTF-8
       VC Keymap: n/a
      X11 Layout: pl
       X11 Model: pc105

Not working:

m@m:~$ cat /etc/default/keyboard
# KEYBOARD CONFIGURATION FILE

# Consult the keyboard(5) manual page.

XKBMODEL=""
XKBLAYOUT="pl"
XKBVARIANT=""
XKBOPTIONS="lv3:ralt_switch"
#XKBOPTIONS=grp:ralt"
#grp:alt

BACKSPACE="guess"
m@m:~$ localectl
   System Locale: LANG=pl_PL
                  LC_NUMERIC=pl_PL.utf8
                  LC_TIME=pl_PL.utf8
                  LC_MONETARY=pl_PL.utf8
                  LC_PAPER=pl_PL.utf8
                  LC_MEASUREMENT=pl_PL.utf8
       VC Keymap: n/a
      X11 Layout: pl
     X11 Options: lv3:ralt_switch

And what I get trying to set the keyboard:

m@m:~$ sudo  dpkg-reconfigure keyboard-configuration 
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = (unset),
	LC_ALL = (unset),
	LC_MEASUREMENT = "pl_PL.utf8",
	LC_PAPER = "pl_PL.utf8",
	LC_MONETARY = "pl_PL.utf8",
	LC_NUMERIC = "pl_PL.utf8",
	LC_TIME = "pl_PL.utf8",
	LANG = "pl_PL.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
/usr/bin/locale: Cannot set LC_CTYPE to default locale: No such file or directory
/usr/bin/locale: Cannot set LC_MESSAGES to default locale: No such file or directory
/usr/bin/locale: Cannot set LC_ALL to default locale: No such file or directory

So, it looks like that local settings are messed up but I don't know how to fix that.

Thanks,
m

Offline

#11 2017-03-10 08:00:45

marky
Member
Registered: 2017-02-20
Posts: 19

Re: Keyboard problems

I've got already entire UI in Polish but still no local keys on keyboard:

m@m:~$ cat /etc/default/keyboard
# KEYBOARD CONFIGURATION FILE

# Consult the keyboard(5) manual page.

XKBMODEL="pc105"
XKBLAYOUT="pl"
XKBVARIANT=""
XKBOPTIONS=""

BACKSPACE="guess"
m@m:~$ localectl
   System Locale: LANG=pl_PL.UTF-8
                  LC_NUMERIC=pl_PL.utf8
                  LC_TIME=pl_PL.utf8
                  LC_MONETARY=pl_PL.utf8
                  LC_PAPER=pl_PL.utf8
                  LC_MEASUREMENT=pl_PL.utf8
       VC Keymap: n/a
      X11 Layout: pl
       X11 Model: pc105

Offline

#12 2017-03-10 08:10:06

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,084
Website

Re: Keyboard problems

marky wrote:

So, it looks like that local settings are messed up but I don't know how to fix that.

Try:

sudo dpkg-reconfigure locales

Offline

#13 2017-03-10 09:07:50

marky
Member
Registered: 2017-02-20
Posts: 19

Re: Keyboard problems

I've tried that already with no changes afterwards.

Offline

#14 2017-03-10 11:46:12

marky
Member
Registered: 2017-02-20
Posts: 19

Re: Keyboard problems

So, I have a situation here:

Working machine:

m@m:~$ cat /etc/default/keyboard
# KEYBOARD CONFIGURATION FILE

# Consult the keyboard(5) manual page.

XKBMODEL="pc105"
XKBLAYOUT="pl"
XKBVARIANT=""
XKBOPTIONS=""

BACKSPACE="guess"
m@m:~$ localectl
   System Locale: LANG=pl_PL.UTF-8
       VC Keymap: n/a
      X11 Layout: pl
       X11 Model: pc105

Not working:

m@m:~$ cat /etc/default/keyboard
# KEYBOARD CONFIGURATION FILE

# Consult the keyboard(5) manual page.

XKBMODEL="pc105"
XKBLAYOUT="pl"
XKBVARIANT=""
XKBOPTIONS=""

BACKSPACE="guess"
m@m:~$ 
m@m:~$ localectl
   System Locale: LANG=pl_PL.UTF-8
                  LC_NUMERIC=pl_PL.utf8
                  LC_TIME=pl_PL.utf8
                  LC_MONETARY=pl_PL.utf8
                  LC_PAPER=pl_PL.utf8
                  LC_MEASUREMENT=pl_PL.utf8
       VC Keymap: n/a
      X11 Layout: pl
       X11 Model: pc105

Is it possible that too many local parameters make a difference towards not having a local keyboard?

Offline

#15 2017-03-10 20:51:41

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,084
Website

Re: Keyboard problems

marky wrote:

I've tried that already with no changes afterwards.

When the `dpkg-reconfigure locales` command is run, the user is presented with a list of options — exactly which options did you select?

2017_03_10_204921_814x572_scrot.png

Any terminal output produced by the command would also be useful.

Did you check which options were selected if the `dpkg-reconfigure locales` command was run from the working machine and attempt to duplicate these in the non-working machine?

Offline

#16 2017-03-10 22:20:04

marky
Member
Registered: 2017-02-20
Posts: 19

Re: Keyboard problems

https://scrot.moe/image/1wfbY https://scrot.moe/image/1wfbY

m@m:~$ sudo dpkg-reconfigure locales
[sudo] hasło użytkownika m: 
Generating locales (this might take a while)...
  pl_PL.UTF-8... done
Generation complete.

Exactly the same commands and options were chosen on both machines with the same output.
I've installed bl just for kicks at another partition on the same machine, updated, upgraded. Same thing.
Looks like this problem might be somehow related to my hardware with several disks:

m@m:~$ lsblk
NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda      8:0    0 238,5G  0 disk 
├─sda1   8:1    0   100M  0 part 
└─sda2   8:2    0 238,4G  0 part 
sdb      8:16   0 931,5G  0 disk 
├─sdb1   8:17   0 707,9G  0 part 
├─sdb2   8:18   0   120G  0 part /
├─sdb3   8:19   0   3,5G  0 part [SWAP]
└─sdb4   8:20   0 100,1G  0 part 
sdc      8:32   0  74,5G  0 disk 
└─sdc1   8:33   0  39,1G  0 part 
sdd      8:48   0 698,7G  0 disk 
├─sdd1   8:49   0 603,9G  0 part 
└─sdd2   8:50   0  94,7G  0 part 
sde      8:64   0  39,3M  0 disk 
└─sde1   8:65   0  39,2M  0 part 
sdf      8:80   1  14,9G  0 disk 
├─sdf1   8:81   1   1,4G  0 part 
└─sdf2   8:82   1    31M  0 part 
sr0     11:0    1  1024M  0 rom  

Or rather wireless keyboard...

Last edited by marky (2017-03-11 06:36:03)

Offline

#17 2017-03-11 06:38:47

marky
Member
Registered: 2017-02-20
Posts: 19

Re: Keyboard problems

The local font is in the system already, apparently right Alt is not working as it supposed to.

Offline

#18 2017-03-11 08:29:45

marky
Member
Registered: 2017-02-20
Posts: 19

Re: Keyboard problems

Tried that too:

https://benohead.com/debian-change-the- … e-console/

but #setupcon doesn't work for me, neither this:

m@m:~$ sudo dpkg-reconfigure console-data
Looking for keymap to install:
pl1

Offline

#19 2017-03-11 10:47:41

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,084
Website

Re: Keyboard problems

What does this say:

LC_ALL=C validlocale pl_PL.UTF-8

Maybe try re-installing the locales package:

sudo su -c 'aptitude clean && aptitude reinstall locales'

Offline

#20 2017-03-11 14:00:06

marky
Member
Registered: 2017-02-20
Posts: 19

Re: Keyboard problems

What does this say:

LC_ALL=C validlocale pl_PL.UTF-8

m@m:~$ LC_ALL=C validlocale pl_PL.UTF-8
locale 'pl_PL.UTF-8' valid and available

Maybe try re-installing the locales package:

sudo su -c 'aptitude clean && aptitude reinstall locales'

m@m:~$ sudo su -c 'aptitude clean && aptitude reinstall locales'
[sudo] hasło użytkownika m: 
Następujące pakiety zostaną PONOWNIE zainstalowane:
  locales 
0 pakietów aktualizowanych, 0 instalowanych, 1 ponownie instalowanych, 0 do usunięcia i 6 nieaktualizowanych.
Do pobrania 3946 kB archiwów. Zajęte po rozpakowaniu: 0 B.
Pobieranie: 1 http://ftp.agh.edu.pl/debian/ jessie/main locales all 2.19-18+deb8u7 [3946 kB]
Pobrano 3946 kB w 3s (1021 kB/s)   
dpkg-preconfigure: nie udało się ponownie otworzyć stdin: Nie ma takiego pliku ani katalogu
(Odczytywanie bazy danych ... 299145 plików i katalogów obecnie zainstalowanych.)
Przygotowywanie do rozpakowania pakietu .../locales_2.19-18+deb8u7_all.deb ...
Rozpakowywanie pakietu locales (2.19-18+deb8u7) nad (2.19-18+deb8u7) ...
Przetwarzanie wyzwalaczy pakietu man-db (2.7.6.1-2)...
Konfigurowanie pakietu locales (2.19-18+deb8u7) ...
Generating locales (this might take a while)...
  pl_PL.UTF-8... done
Generation complete.

dpkg-preconfigure: nie udało się ponownie otworzyć stdin: Nie ma takiego pliku ani katalogu

- It says: dpkg-preconfigure: couldn't open stdin again: There is nor such a file neither a folder

Still no changes, looks like a hard case here.

Last edited by marky (2017-03-11 14:10:31)

Offline

Board footer

Powered by FluxBB