Re: Where is the magic SysReq key?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, 2023-04-02 at 10:14 -0700, stan via users wrote:
> 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.

That also gives me 99 twice (for press/release) when I hit the "camera"
key (plus the strange browser tab of a search for Ksnapshot).

poc
_______________________________________________
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



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux