Chinese Keyboard retornou código diferente ao pressionar F1

1

Como não tenho muitos dados, vou resumir isso.

Então eu comprei um teclado mecânico. Toda vez que eu pressiono F1, a janela é desfocada. F2 funciona.

Pressionando F1 em xev :

FocusOut event, serial 48, synthetic NO, window 0x5400001,
    mode NotifyGrab, detail NotifyAncestor

FocusOut event, serial 48, synthetic NO, window 0x5400001,
    mode NotifyWhileGrabbed, detail NotifyNonlinear

FocusIn event, serial 48, synthetic NO, window 0x5400001,
    mode NotifyWhileGrabbed, detail NotifyNonlinear

KeymapNotify event, serial 48, synthetic NO, window 0x0,
    keys:  0   0   0   0   0   0   0   0   8   0   0   0   0   0   0   0   
           0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   

FocusIn event, serial 48, synthetic NO, window 0x5400001,
    mode NotifyUngrab, detail NotifyAncestor

KeymapNotify event, serial 48, synthetic NO, window 0x0,
    keys:  3   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   
           0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0  

Pressionando F2 em xev :

KeyPress event, serial 48, synthetic NO, window 0x5400001,
    root 0x290, subw 0x0, time 45947409, (234,268), root:(235,302),
    state 0x0, keycode 68 (keysym 0xffbf, F2), same_screen YES,
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
   XFilterEvent returns: False

KeyRelease event, serial 48, synthetic NO, window 0x5400001,
    root 0x290, subw 0x0, time 45947546, (234,268), root:(235,302),
    state 0x0, keycode 68 (keysym 0xffbf, F2), same_screen YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False

Portanto, praticamente xev não reconhece a tecla F1, mas a F2 pode. Observe que, se eu pressionar +, ele reconhecerá isso como keycode 179 (keysym 0x1008ff81, XF86Tools) . Então, talvez haja uma maneira de vincular XF86Tools a F1 ? Estou executando o Openbox. Verificado dconf-editor para keybindings mas nada lá. Obrigado.

Edit1 : Então eu tentei vincular F1 a algo no Openbox. Só a F1 não funciona, a W-F1 funciona. Se eu abrir as configurações do teclado no XFCE, a F1 registra, mas não funciona.

    
por dat tutbrus 30.04.2017 / 18:26

1 resposta

0

PROBLEMA RESOLVIDO!

Ok, então depois de um tempo mexendo em xkeycaps , decidi experimentar diferentes layouts de teclado, as 104 teclas e as 105 teclas. Olhando para o layout, descobri que no layout de 104 teclas, a tecla F1 estava ligada a 43. As 105 teclas, por outro lado, ligavam a tecla F1 a "Ajuda". Isso significa que, alterando o layout do teclado de 105 teclas para 104, eu poderia resolver esse problema.

  1. Edite o /etc/default/keyboard . Dentro você encontrará a linha
% bl0ck_qu0te%

Alterar pc105 para pc104

  1. Executar sudo dpkg-reconfigure console-setup

E a tecla F1 agora pode ser detectada usando xev

    
por dat tutbrus 01.05.2017 / 04:45