Re: [RFC] tty/sysrq: Add alternative SysRq key

From: Andrzej Pietrasiewicz
Date: Thu Nov 04 2021 - 08:21:51 EST


Hi Pavel,

W dniu 04.11.2021 o 13:01, Pavel Machek pisze:
Hi!

There exist machines which don't have SysRq key at all, e.g. chromebooks.

This patch allows configuring an alternative key to act as SysRq. Devices
which declare KEY_SYSRQ in their 'keybit' bitmap continue using KEY_SYSRQ,
but other devices use the alternative SysRq key instead, by default F10.
Which key is actually used can be modified with sysrq's module
parameter.

Is F10 sensible default? Would it make sense to use something like
alt-shift-esc so that this can be enabled by default?

Why "alt-shift-esc" could be enabled by default? Do you mean to enable it for
all systems regardless of whether they declare or don't declare KEY_SYSRQ
in their 'keybit' bitmap?

Andrzej