On Sun, 2 Apr 2023 17:03:33 +0200 Wolfgang Pfeiffer <roto@xxxxxxx> wrote: > On Sat, Apr 01, 2023 at 06:10:50PM +0100, Patrick O'Callaghan wrote: > >I have a Logitech MX series wireless keyboard, and no keys are > >labelled as SysRq or PrtScr. Is there a way to configure a different > >sequence for the magic SysRq function? The man pages are not > >helpful. > > Here's a very old kernel sources page that explains the sysrq routine, > and I think it was one of the pages version that helped me a lot: > > https://mirrors.edge.kernel.org/pub/linux/kernel/people/marcelo/linux-2.4/Documentation/sysrq.txt > > Here, it seems, is the latest one: > https://www.kernel.org/doc/html/latest/admin-guide/sysrq.html Thanks for posting these. I used a mnemonic to remember what to press, 'busier' in reverse, 'reisub'. But, after reading the documentation, I think I only need to press 'sub'. Unless there is a runaway process. > Looks like you first need to identify your print/sysrq key - it might > be a combo of (on my keyboard) <Fn>-<Print> or <Alt>-<Print>. I use > xev for finding it. When I use xev, and press Print Screen, I get the following output, FocusOut event, serial 48, synthetic NO, window 0x7200001, mode NotifyGrab, detail NotifyAncestor FocusIn event, serial 48, synthetic NO, window 0x7200001, mode NotifyUngrab, detail NotifyAncestor KeymapNotify event, serial 48, synthetic NO, window 0x0, keys: 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 0 which doesn't seem to provide the keycode. When I press the Print Screen key in showkey -s, I get the following output. 0xe0 0x2a 0xe0 0x37 0xe0 0xaa 0xe0 0xb7 None of those resolves to 99, hex 0x63. When I run without the -s, using the default. I then get 99 as the output. Option -k is the default, keycodes. So, I think using showkey without an option in a console is the correct method. _______________________________________________ users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue