You are not logged in.

#1 2013-11-07 06:49:47

wych
Member
Registered: 2012-02-18
Posts: 11

[Solved] arrow key problem,solved but don't know why

I just update kde today,after a reboot,my arrow does't work in the right way:down arrow key  is mapped to enter,and the others doesn't work at all.

Here is what I got from xev:

# enter
KeyRelease event, serial 40, synthetic NO, window 0x4a00001,
    root 0xa8, subw 0x4a00002, time 493294, (54,50), root:(917,218),
    state 0x0, keycode 36 (keysym 0xff0d, Return), same_screen YES,
"   XLookupString gives 1 bytes: (0d) "
    XFilterEvent returns: False
# down arrow
KeyPress event, serial 40, synthetic NO, window 0x4a00001,
    root 0xa8, subw 0x0, time 583123, (53,-17), root:(947,163),
    state 0x0, keycode 104 (keysym 0xff8d, KP_Enter), same_screen YES,
"   XLookupString gives 1 bytes: (0d) "
"   XmbLookupString gives 1 bytes: (0d) "
    XFilterEvent returns: False
# others looks like this:
KeyPress event, serial 40, synthetic NO, window 0x4a00001,
    root 0xa8, subw 0x0, time 653733, (-334,-178), root:(560,2),
    state 0x0, keycode 98 (keysym 0xff26, Katakana), same_screen YES,
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False

Here is result of

 setxkbmap -print -verbose 10 
Setting verbose level to 10
locale is C
Trying to load rules file ./rules/evdev...
Trying to load rules file /usr/share/X11/xkb/rules/evdev...
Success.
Applied rules from evdev:
rules:      evdev
model:      pc101
layout:     us
options:    terminate:ctrl_alt_bksp
Trying to build keymap using the following components:
keycodes:   evdev+aliases(qwerty)
types:      complete
compat:     complete
symbols:    pc+us+inet(evdev)+terminate(ctrl_alt_bksp)
geometry:   pc(pc101)
xkb_keymap {
        xkb_keycodes  { include "evdev+aliases(qwerty)" };
        xkb_types     { include "complete"      };
        xkb_compat    { include "complete"      };
        xkb_symbols   { include "pc+us+inet(evdev)+terminate(ctrl_alt_bksp)"    };
        xkb_geometry  { include "pc(pc101)"     };
};

I am using laptop ASUS A42.


update: when I switch to gnome3,arrow keys will work in most apps,like termainal,but they still do not work in apps like firefox or pidgin
update2: I create a new account and things get back to normal,so I mv ~/.* to somewhere else,and the problem dispeared.and I tried to move things back little by little,and problem occured when I mv gtk-kde4 files back,I can't figured out why.

Last edited by wych (2013-11-11 03:03:39)


tonight is the night.

Offline

#2 2013-11-09 04:29:22

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,140

Re: [Solved] arrow key problem,solved but don't know why

What do

localectl
locale -a

give?
What's in /etc/vconsole.conf?


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#3 2013-11-09 05:25:30

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [Solved] arrow key problem,solved but don't know why

I think that most laptops have a 104 key keyboard.  Your seems to indicate that it thinks there are 101.

Offline

#4 2013-11-10 04:08:36

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,140

Re: [Solved] arrow key problem,solved but don't know why

I don't think that's the problem as KDE has always thought my keyboard has 101 keys. I'm not sure that's right but I suspect it is some sort of allegedly safe default.


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#5 2013-11-11 03:00:25

wych
Member
Registered: 2012-02-18
Posts: 11

Re: [Solved] arrow key problem,solved but don't know why

cfr wrote:

What do

localectl
locale -a

give?
What's in /etc/vconsole.conf?

#localectl
   System Locale: LANG=zh_CN.UTF-8
       VC Keymap: n/a
      X11 Layout: n/a
#locale -a
C
en_US.utf8
POSIX
zh_CN
zh_CN.gb18030
zh_CN.gb2312
zh_CN.gbk
zh_CN.utf8

There's no such file.

And I solved the problem by remove ~/.* files.


tonight is the night.

Offline

#6 2013-11-11 04:13:17

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,140

Re: [Solved] arrow key problem,solved but don't know why

https://wiki.archlinux.org/index.php/Be … and_keymap

You removed ALL of your dot files? Why? I guess if you haven't used the system very long or configured much, it might not do much harm but otherwise you're essentially throwing away all the work you put into customising your account and a bunch of other data besides.


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#7 2013-11-11 04:21:32

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [Solved] arrow key problem,solved but don't know why

Yeah, I think you should have at least backed them up so you would reimplement them one at a time until something breaks.  That is, unless cfr is right and you had not configured very much yet.

Offline

#8 2013-11-12 03:54:46

wych
Member
Registered: 2012-02-18
Posts: 11

Re: [Solved] arrow key problem,solved but don't know why

cfr wrote:

https://wiki.archlinux.org/index.php/Be … and_keymap

You removed ALL of your dot files? Why? I guess if you haven't used the system very long or configured much, it might not do much harm but otherwise you're essentially throwing away all the work you put into customising your account and a bunch of other data besides.

Oh,thanks for this,I said that in a wrong way.But I keep important dot files in ~/dotfiles and link them to ~/.somefile,so I can remove ~/.* anytime without worry.


tonight is the night.

Offline

Board footer

Powered by FluxBB