You are not logged in.

#1 2013-12-02 12:56:37

Greed1sGood
Member
Registered: 2012-02-11
Posts: 44

Wrong key mapping

My problem is that when I press the q letter on the keyboard nothing happens (also the @ and the " switched places)
* xev does not report any keypress
* scancode is 0xe0 0x25
* key code 205
* mapping the scancode to keycode fails
* when trying to assign the q key to some action in gnome keyboard settings the word "suspend pops up"

I'll be very grateful for any guidence or even a small hint. I already spent a couple of days trying to solve this issue.

Offline

#2 2013-12-02 15:44:36

drcouzelis
Member
From: Connecticut, USA
Registered: 2009-11-09
Posts: 4,092
Website

Re: Wrong key mapping

What keyboard do you have?

Whet is the physical layout on the keyboard?

What keyboard layout do you want to use? (Probably the same answer as the last question)

Offline

#3 2013-12-02 23:05:34

Greed1sGood
Member
Registered: 2012-02-11
Posts: 44

Re: Wrong key mapping

rules:      evdev
model:      pc104
layout:     gb,us
variant:    ,
options:    terminate:ctrl_alt_bksp,grp:alt_shift_toggle
Trying to build keymap using the following components:
keycodes:   evdev+aliases(qwerty)
types:      complete
compat:     complete
symbols:    pc+gb+us:2+inet(evdev)+group(alt_shift_toggle)+terminate(ctrl_alt_bksp)
geometry:   pc(pc104)
xkb_keymap {
	xkb_keycodes  { include "evdev+aliases(qwerty)"	};
	xkb_types     { include "complete"	};
	xkb_compat    { include "complete"	};
	xkb_symbols   { include "pc+gb+us:2+inet(evdev)+group(alt_shift_toggle)+terminate(ctrl_alt_bksp)"	};
	xkb_geometry  { include "pc(pc104)"	};

I want to use a reular US qwerty keyboard (I'm using thinkpad t420s)

Offline

#4 2013-12-03 20:14:29

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: Wrong key mapping

Does

setxkbmap us

fix it to your liking?

If so, you might just be able to set the locale and layout during startup. Seems like its set to Great Britain now (gb)


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#5 2013-12-04 16:39:54

Greed1sGood
Member
Registered: 2012-02-11
Posts: 44

Re: Wrong key mapping

Thanks, the problem with the @ and the  " is solved now, but pressing the q key still has no effect. It seem slike the key is assigned to some other function.

Offline

#6 2013-12-04 20:50:57

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: Wrong key mapping

q should be q in both great britain and us layout IMHO. Are you sure you didn't play around and set it to dvorak or colemak layout (on secord thought I think q is still q in colemak too- but I could be wrong)

what does it display when you hit q ?

Also it might be a hardware failure. See if there is anything under the Q key or if its broken. Better yet use another keyboard if you can get hands on one.


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#7 2013-12-05 11:19:03

Greed1sGood
Member
Registered: 2012-02-11
Posts: 44

Re: Wrong key mapping

Nothing is displayed when I hit q, but I'm quite sure that it's not a hardware proplem because pressing q does produce output when you enter

showkey --scancode

or

showkey --keycode

from tty. I'll try to get an external keyboard, but till then I thought about trying to hit q from arch linux live cd.

Offline

#8 2013-12-05 11:24:18

Kartious
Member
From: UK
Registered: 2013-03-23
Posts: 311

Re: Wrong key mapping

Have you tried using Xmodmap ?

Offline

#9 2013-12-05 11:27:51

Greed1sGood
Member
Registered: 2012-02-11
Posts: 44

Re: Wrong key mapping

Kartious wrote:

Have you tried using Xmodmap ?

Yes I've tried that idea (sorry I didn't mention it in my original post), but unfortunately it didn't work.

Anyway I've just tried to hit q from arch linux live cd and it worked so it's definitely not a hardware problem. I think it somehow got mapped to a different function.

Offline

#10 2013-12-30 02:20:30

nihonsuki
Member
Registered: 2013-12-30
Posts: 3

Re: Wrong key mapping

Inxsible wrote:

Does

setxkbmap us

fix it to your liking?

If so, you might just be able to set the locale and layout during startup. Seems like its set to Great Britain now (gb)

I have the opposite problem.  During installation I set up my locale as en:gb as per the manual and used

loadkeys uk

to crack along.  Now I have gnome and xmonad (preferred) installed and at the macroscopic level everything's pretty much as I had it under ubuntu only quicker.  However, I seem to be working with a us keyboard layout.  When I try 

sudo setxkbmap gb

  the keyboard works fine.  I would now like my xsessions to use this keymap automatically.  I've followed the wiki and tried both

localectl set-x11-keymap gb

  to generate /etc/X11/xorg.conf.d/00-keyboard.conf and have created /etc/X11/xorg.conf.d/10-keyboard.conf to echo it, but still on reboot and login, I have a us keyboard.  X seems to be disregarding the .conf files.

p.s.  I really am a newbie at these more arcane aspects of linux.  TIA

Last edited by nihonsuki (2013-12-30 11:52:15)

Offline

#11 2013-12-30 18:51:16

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: Wrong key mapping

nihonsuki wrote:

I have the opposite problem.

A good reason to not hijack somebody else's thread then. Start your own.


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

Board footer

Powered by FluxBB