public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: federico <xaero@inwind.it>
To: linux-kernel@vger.kernel.org
Subject: [PATCH] ability to change SysRq scancode
Date: Sat, 09 Jul 2005 22:44:33 +0200	[thread overview]
Message-ID: <42D03731.9060809@inwind.it> (raw)

[-- Attachment #1: Type: text/plain, Size: 356 bytes --]

i release this patch because my keyboard ("Mitsumi Electric Apple
Extended USB Keyboard" Bus=0003 Vendor=05ac Product=0205 Version=0122)
doesn't have a PrintScr key, so cannot send the right scancode, and
KEY_SYSRQ needs to be modified.

i hope that i've done in the right way ;)
it's tested by me, and it's working, yeah i'm pressing the SAK with F13 :P


[-- Attachment #2: sysrq_scancode.patch --]
[-- Type: text/x-patch, Size: 646 bytes --]

diff linux.orig/lib/Kconfig.debug linux/lib/Kconfig.debug
30a31,40
> 	  
> config MAGIC_SYSRQ_SCANCODE
> 	int
> 	prompt "Change default scancode of SysRq key" if MAGIC_SYSRQ
> 	default 99
> 	depends on MAGIC_SYSRQ
> 	help
> 	  If your keyboard hasn't a SysRq key, you can specify another key
> 	  which should act as SysRq. You can find the scancode on your
> 	  keyboard with programs like showkey or evtest.

diff linux.orig/include/linux/input.h linux/include/linux/input.h
206a207,210
> 
> #if defined(CONFIG_MAGIC_SYSRQ) && defined(CONFIG_MAGIC_SYSRQ_SCANCODE)
> #define KEY_SYSRQ		CONFIG_MAGIC_SYSRQ_SCANCODE
> #else
207a212,213
> #endif
>

             reply	other threads:[~2005-07-09 20:47 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-09 20:44 federico [this message]
2005-07-09 21:28 ` [PATCH] ability to change SysRq scancode Alexey Dobriyan
2005-07-09 21:39   ` federico
2005-07-12 17:25 ` [update] " federico

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=42D03731.9060809@inwind.it \
    --to=xaero@inwind.it \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox