You are not logged in.

#1 2014-07-21 20:23:05

eNauz
Member
Registered: 2014-07-21
Posts: 11

Issues with keybindings Shift+Function Keys

Hi everyone!

After using Ubuntu for over 5 years I switched to Arch several months ago. And I really love it, even though it was hard to get it working on my Lenovo W530 because of well known Nvidia related problems https://devtalk.nvidia.com/default/topi … -crash/10/. However I switched to nouveau driver and I'm satisfied with it.

There is only one problem that limits my working efficiency:

I used byobu with tmux as backend since a while. It always worked flawlessly on Ubuntu and on my Arch VM. However, on my laptop installation I'm experiencing really weird problems when using Shift+Function key combinations, but only for Shift+F1, Shift+F2, Shift+F3 and Shift+F4. They are not recognized as the correct sequence, neither in xterm, gnome-terminal, urxv. I searched the forums and the internet for hours and tried several advises for related problems but none of them worked. It seems that this problem is not byobu or tmux related and has other reasons, I just noticed it when I tried to use byobu.

cat output shows me on my VM (I guess that is how it should be):

Shift+F1    Shift+F2    Shift+F3    Shift+F4    Shift+F5    ...
^[O1;2P     ^[O1;2Q     ^[O1;2R     ^[O1;2S     ^[[15;2~    ...

But on my laptop installation I'm getting weird results for Shift+(F1-F4). It seems like the O is substituted by [.

Shift+F1    Shift+F2    Shift+F3    Shift+F4    Shift+F5    ...
^[[1;2P     ^[[1;2Q     ^[[1;2R     ^[[1;2S     ^[[15;2~    ...

xbindkeys -mk also recognizes the sequences correctly. I really don't know what to do. sad

I would really appreciate any help.

Thank you and best regards,

eNauz smile

Last edited by eNauz (2014-07-21 20:24:10)

Offline

#2 2014-07-21 21:09:32

oktorok
Member
From: San Francisco, Ca
Registered: 2014-06-18
Posts: 70

Re: Issues with keybindings Shift+Function Keys

Hello eNauz,

Have you tested the key combinations in xev? Do those match up with your expectations? Is your Fn key configured appropriately?

Offline

#3 2014-07-22 10:03:06

eNauz
Member
Registered: 2014-07-21
Posts: 11

Re: Issues with keybindings Shift+Function Keys

Hey oktorok,

thank you for your reply.

oktorok wrote:

Have you tested the key combinations in xev? Do those match up with your expectations? Is your Fn key configured appropriately?

Yes, I also tested the keys with xev, and all seems to be fine. For example with Shift and F2 I get:

KeyRelease event, serial 37, synthetic NO, window 0x4600001,
    root 0x271, subw 0x0, time 602849, (137,109), root:(778,167),
    state 0x0, keycode 68 (keysym 0xffbf, F2), same_screen YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyPress event, serial 37, synthetic NO, window 0x4600001,
    root 0x271, subw 0x0, time 605194, (137,109), root:(778,167),
    state 0x0, keycode 50 (keysym 0xffe1, Shift_L), same_screen YES,
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False

I found no option to log key combinations with xev. Previously I did this using xbinkeys -mk:

"(Scheme function)"
    m:0x1 + c:68
    Shift + F2

Same here, no suspicious behavior.

Regarding to the Fn key (brightness control, etc.): everything works here.

Best regards,

eNauz

Offline

#4 2014-07-22 20:35:28

oktorok
Member
From: San Francisco, Ca
Registered: 2014-06-18
Posts: 70

Re: Issues with keybindings Shift+Function Keys

Sorry if this is redundant, but have you tried manually changing the keybindings in your .byobu folder as described here? It looks like you can modify them to match your output.

Last edited by oktorok (2014-07-22 20:35:54)

Offline

#5 2014-07-24 09:09:46

eNauz
Member
Registered: 2014-07-21
Posts: 11

Re: Issues with keybindings Shift+Function Keys

Thanks oktorok for your advice, I digged a bit into it.

But unfortunately it seems to get really complicated when trying to change keybindings at low level for tmux. At least for me it was not possible to get it working (maybe I should try it again with screen backend). But this wouldn't solve the real reason of the problem or am I wrong?

Offline

#6 2014-10-06 06:51:29

eNauz
Member
Registered: 2014-07-21
Posts: 11

Re: Issues with keybindings Shift+Function Keys

Can be marked as solved (at least for me), a workaround was reported here: https://bbs.archlinux.org/viewtopic.php … 5#p1456235

Thanks,

eNauz

Offline

Board footer

Powered by FluxBB