On Fri, 11 Oct 2024 19:07:03 +0200, Pascal Stumpf <pas...@stumpf.co> wrote: > > On Tue, 08 Oct 2024 16:59:26 +0200, Kirill A. Korinsky wrote: > > misc@ > > > > I made an assumption that I'm not the only one using Tex Shinobi's keyboard, > > and just discovered that the Prtsc button doesn't work. > > > > Not working means that xev doesn't register an event. When I press it, it > > looks like I'm not pressing it. > > > > I was almost sure it was working a while ago, like this spring. > > > > Does this ring a bell for anyone? > > Yes, I can confirm this behaviour on a Keychron Q6. >
Here a diff which fixed Prtsc button on my keyboad. Index: driver/xf86-input-keyboard/src/at_scancode.c =================================================================== RCS file: /cvs/xenocara/driver/xf86-input-keyboard/src/at_scancode.c,v retrieving revision 1.5 diff -u -p -r1.5 at_scancode.c --- driver/xf86-input-keyboard/src/at_scancode.c 17 Dec 2015 06:03:10 -0000 1.5 +++ driver/xf86-input-keyboard/src/at_scancode.c 12 Oct 2024 00:25:40 -0000 @@ -95,6 +95,7 @@ ATScancode(InputInfoPtr pInfo, int *scan case KEY_KP_Decimal: *scanCode = KEY_Delete; break; /* curs delete */ case KEY_Enter: *scanCode = KEY_KP_Enter; break; /* keypad enter */ case KEY_LCtrl: *scanCode = KEY_RCtrl; break; /* right ctrl */ + case KEY_ShiftL: case KEY_KP_Multiply: *scanCode = KEY_Print; break; /* print */ case KEY_Slash: *scanCode = KEY_KP_Divide; break; /* keyp divide */ case KEY_Alt: *scanCode = KEY_AltLang; break; /* right alt */ @@ -113,7 +114,6 @@ ATScancode(InputInfoPtr pInfo, int *scan keyboards */ case 0x01: *scanCode = KEY_R_0xF4; break; case 0x03: *scanCode = KEY_R_0xF5; break; - case 0x2A: case 0x36: return TRUE; default: -- wbr, Kirill