You are not logged in.

#1 2016-06-16 17:21:13

alalexan
Member
Registered: 2016-06-16
Posts: 3

Keyboard has randomly remapped a single key

Currently running a Toshiba Sat.

my shift key has been remapped to a '~'
running 'localectl status' gives me
System Locale: LANG=en_US.UTF-8
       VC Keymap: us
      X11 Layout: n/a

i just manually set the virtual console which didnt work as ....
The problem is also in the login shell as well.

Could this be a problem with the actual hardware or possible just a problem with a buggy keymap?
Also if i could be pointed in the right direction or any possible things to read that would be helpfull

Offline

#2 2016-06-16 18:18:01

olive
Member
From: Belgium
Registered: 2008-06-22
Posts: 1,490

Re: Keyboard has randomly remapped a single key

What's the content of /etc/vconsole.conf and  /etc/locale.conf ? You can set the keymap with "loadkeys" (localectl is ultimately a wrapper around it). The command "dumpkeys" show you what the kernel see as its lowest level.

All of this is for the console not X (nor a terminal under X).

Last edited by olive (2016-06-16 18:23:37)

Offline

#3 2016-06-16 21:33:28

alalexan
Member
Registered: 2016-06-16
Posts: 3

Re: Keyboard has randomly remapped a single key

cat /etc/vconsole.conf
KEYMAP=us

Is the content.

I looked further into this to find out that the scancode that my shift key is giving is wrong
I tested this with a usb keyboard which works:
USB Keyboard :       Lshift "2a aa" Rshift: "36 b6"
Laptop keyboard:    Lshift "2a aa" Rshift: "3d bd"

My keycodes are
USB Keyboard :       Lshift "42" Rshift: "54"
Laptop keyboard:    Lshift "42" Rshift: "61"


Dump keys gives me that 42 and 54 both map to Shift correctly,
but 61 maps to
keycode  61 = F3               F15              Console_15     
    control    keycode  61 = F27             
    alt    keycode  61 = Console_3       
    control    alt    keycode  61 = Console_3

Checked on my usb keyboard F3 does in fact give the same scancode as the broken shift on the laptop keyboard.

Anythoughts?
im going to try and reload the keyboard driver maybe. I hope this isnt a problem with my hardware sad

Offline

#4 2016-06-16 21:44:10

olive
Member
From: Belgium
Registered: 2008-06-22
Posts: 1,490

Re: Keyboard has randomly remapped a single key

I would doubt it is a hardware problem. Probably a bug in the driver of the keyboard. Is the key working normally at the boot manager prompt  (which uses theBIOS/UEFI). Is there a module responsible for it? Can you pass it options? I have had many problems with Linux in general but basic keyboard functions worked just out of the box for me all the time so I am a little clueless. You can try to remap the keyboard. (under X it is easy with xmodmap), I don't know much for the console.

Offline

#5 2016-06-16 21:46:56

alalexan
Member
Registered: 2016-06-16
Posts: 3

Re: Keyboard has randomly remapped a single key

Nope, the key doesnt work a login prompt sad
also as another note the keyboard is also in a weird layout even though the virtual console should be in us mode?

Id prefer not to remap the keys just in X as it is also the virtual console.

So you know how to see the keyboard driver that is loaded a boot by any chance? been googling for about 20 minutes but got nothing.

EDIT:

Didn't realize you said boot/bios ill give it a try.

Last edited by alalexan (2016-06-16 21:48:01)

Offline

Board footer

Powered by FluxBB