sxhkd icon indicating copy to clipboard operation
sxhkd copied to clipboard

Specific key codes not picked up, and it seems to be hardware dependent

Open ke-ss opened this issue 3 years ago • 0 comments

I get two different results on two different laptops using the same keybinding, namely this one, which uses the function key Fn in a key chain with key 1 as follows

XF86WakeUp; 1
    google-chrome-stable https://www.google.com/calendar

On both laptops xev identifies the Fn or function key as XF86WakeUp.

Everything works as it should on the more modern thinkpad T440s, but not as it should on the slightly older thinkpad T430.

On the T430 nothing happens whereas the keychain works as it should on the T440s.

Here is what does and does not work on the laptops:

  • T440s, all the numeric keys can be keychained with the Fn key and all work as expected.
  • T430, all the numeric keys can be keychained with the Fn key and all work as expected, except for keys 1 and 3.

Both laptops have the most upto date firmware available flashed.

Does anyone know what it is about the T430 that causes this issue and can the key table be remapped for keys 1 and 3 to get them working as expected?

The below xev output is for both the T440s and T430 laptops. It is only the top two lines of the KeyPress and KeyRelease sections of the xev output differ as can be seen

xev output for keypress 1 on T440s:

KeyPress event, serial 48, synthetic NO, window 0x3e00001, root 0x136, subw 0x0, time 797677, (400,-66), root:(571,596), state 0x0, keycode 10 (keysym 0x31, 1), same_screen YES, XLookupString gives 1 bytes: (31) "1" XmbLookupString gives 1 bytes: (31) "1" XFilterEvent returns: False

KeyRelease event, serial 48, synthetic NO, window 0x3e00001, root 0x136, subw 0x0, time 797731, (400,-66), root:(571,596), state 0x0, keycode 10 (keysym 0x31, 1), same_screen YES, XLookupString gives 1 bytes: (31) "1" XFilterEvent returns: False

xev output for keypress 1 on T430:

KeyPress event, serial 48, synthetic NO, window 0x4000001, root 0x139, subw 0x0, time 34166789, (593,457), root:(764,483), state 0x0, keycode 10 (keysym 0x31, 1), same_screen YES, XLookupString gives 1 bytes: (31) "1" XmbLookupString gives 1 bytes: (31) "1" XFilterEvent returns: False

KeyRelease event, serial 48, synthetic NO, window 0x4000001, root 0x139, subw 0x0, time 34166836, (593,457), root:(764,483), state 0x0, keycode 10 (keysym 0x31, 1), same_screen YES, XLookupString gives 1 bytes: (31) "1" XFilterEvent returns: False

Can I make the T430 key map more similar to the T440s map, would this work, and how would I do that?

ke-ss avatar Jul 30 '21 11:07 ke-ss