So I have gotten a Jelly Comb keyboard as a gift for christmas. But the problem is, that according to the manufacturer, the keyboard is intended to be used on Windows. So now I have the following problems:
If I press the Num Lock, the keyboard starts acting weird; most of the keys stop working, except for some numbers and some letters that act as numbers, while the Num Lock can't be turned off anymore. I tried using
numlockx off, so that prevents Num Lock from turning on when i connect the keyboard to the computer, but I sometimes like to use numpad, which I cannot do atm.F1-F12 don't work. The F keys act also as multimedia keys by pressing the Fn, or at least that is how it should be. But in my case, pressing any of the F keys results in some random multimedia action (random as different from the one printed on the key), but when I press it using the Fn key, its effect just changes to some other multimedia action, again to something else than printed on the key.
When I checked the output from
xev, I saw that some of the keys have the same key code. For example F11 prints the same output as Fn+F4. Here is the example output:
KeyRelease event, serial 28, synthetic NO, window 0x3e00001, root 0x5c4, subw 0x0, time 2572602, (456,941), root:(521,1045), state 0x0, keycode 33 (keysym 0x70, p), same_screen YES, XLookupString gives 1 bytes: (70) "p" XFilterEvent returns: False KeymapNotify event, serial 28, synthetic NO, window 0x0, keys: 4294967236 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 KeymapNotify event, serial 28, synthetic NO, window 0x0, keys: 4294967236 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 The first one is for some random letter, while the last two are from F11 and Fn+F4.
For additional info, I am running Ubuntu 20.04 with Gnome.
So my question is, if there is any way to use this keyboard normally on linux. I would imagine, that there is some way to 'tell' the OS to interpret the keyboard as Windows does, but I was unsuccessful in finding anything like that.
EDIT:
So as @dirkt recommended, I checked the output of evtest, and I get the following lines for Fn+F11 and F4 respectively:
Event: time 1609244073.713496, type 1 (EV_KEY), code 113 (KEY_MUTE), value 1 Event: time 1609244073.713496, -------------- SYN_REPORT ------------ Event: time 1609244073.738779, type 1 (EV_KEY), code 113 (KEY_MUTE), value 0 Event: time 1609244073.738779, -------------- SYN_REPORT ------------ Event: time 1609244076.661538, type 4 (EV_MSC), code 4 (MSC_SCAN), value c00e2 Event: time 1609244076.661538, type 1 (EV_KEY), code 113 (KEY_MUTE), value 1 Event: time 1609244076.661538, -------------- SYN_REPORT ------------ Event: time 1609244076.687504, type 4 (EV_MSC), code 4 (MSC_SCAN), value c00e2 Event: time 1609244076.687504, type 1 (EV_KEY), code 113 (KEY_MUTE), value 0 Event: time 1609244076.687504, -------------- SYN_REPORT ------------ Both have the same code (113 KEY_MUTE), but I get an extra line Event: time 1609244076.687504, type 4 (EV_MSC), code 4 (MSC_SCAN), value c00e2, when I do not press Fn. The same goes for all the regular keys like letters and numbers. But when I use the F1-F12 in the combination with the Fn key, the line disappears. So my follow up question is, can I make use of that extra line, so that linux distinguishes between keys with the same keycode, and if so, how?