linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Dmitry Torokhov" <dmitry.torokhov@gmail.com>
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: federico ferri <xaero@inwind.it>,
	linux-input@atrey.karlin.mff.cuni.cz, trivial@kernel.org
Subject: Re: [PATCH] input: change SysRq keycode for systems without SysRq key
Date: Mon, 16 Jul 2007 08:41:31 -0400	[thread overview]
Message-ID: <d120d5000707160541k64c40d0dgf661226806fd98c8@mail.gmail.com> (raw)
In-Reply-To: <alpine.LFD.0.999.0707151513550.20061@woody.linux-foundation.org>

Hi Linus,

On 7/15/07, Linus Torvalds <torvalds@linux-foundation.org> wrote:
>
>
> On Mon, 16 Jul 2007, federico ferri wrote:
>
> > Linus Torvalds ha scritto:
> > > Well, this is totally untested, and I won't guarantee that this works
> > > at all, but this is how to generally do these kinds of things..
> >
> > YAY! it works great.
> > tried with:
> > # echo 183 > /sys/module/keyboard/parameters/sysrq_key
> > but also keyboard.sys_rq=183 on the command line should work; I'll
> > discover that on next reboot.
>
> Yes, please do verify.
>
> > thank you, Linus!
>
> You're welcome.
>
> > (now that this has done in the proper way, is this patch going to be
> > merged in the tree?)
>
> I'm certainly ok with it, but I guess it's more up to Dmitry. If he ack's
> it, I can just commit it.
>
> Dmitry? Any reason not to do this?
>

Recent kernels have the ability to remap keymap for USB keyboards via
EVIOCSKEYCODE ioctl (we allowed 0adjusting keymaps on PS/2 keyboards
for a long time). So instead of having the new parameter redefining
SysRq keycode Frederico can remap one of the keys on his keyboard to
generate KEY_SYSRQ. This way SysRq should still work if he plugs in
another USB keyboard that has SysRq key or a PS/2 keyboard.

-- 
Dmitry

  reply	other threads:[~2007-07-16 12:41 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-15 17:04 [PATCH] input: change SysRq keycode for systems without SysRq key federico ferri
2007-07-15 18:03 ` Linus Torvalds
2007-07-15 18:34   ` federico ferri
2007-07-15 18:57     ` Linus Torvalds
2007-07-15 22:04       ` federico ferri
2007-07-15 22:15         ` Linus Torvalds
2007-07-16 12:41           ` Dmitry Torokhov [this message]
2007-07-17  6:40             ` federico ferri
2007-07-17 15:11               ` Dmitry Torokhov
2007-07-18 20:55                 ` federico ferri
2007-07-19 21:00                   ` Dmitry Torokhov
2007-07-19 21:00                     ` Dmitry Torokhov
2007-07-19 21:39                     ` federico ferri
2007-07-19 22:32                       ` Dmitry Torokhov
2007-07-19 23:29                         ` federico ferri
2007-07-30 14:09                           ` Jiri Kosina
2007-08-02 21:27                             ` Vojtech Pavlik
2007-08-17  8:25                               ` Marvin Raaijmakers
2007-08-17 10:22                                 ` Jiri Kosina
2007-08-17 14:35                                   ` Marvin Raaijmakers
2007-08-17 14:42                                     ` Jiri Kosina
2007-08-17 15:01                                       ` Marvin Raaijmakers

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=d120d5000707160541k64c40d0dgf661226806fd98c8@mail.gmail.com \
    --to=dmitry.torokhov@gmail.com \
    --cc=linux-input@atrey.karlin.mff.cuni.cz \
    --cc=torvalds@linux-foundation.org \
    --cc=trivial@kernel.org \
    --cc=xaero@inwind.it \
    /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;
as well as URLs for NNTP newsgroup(s).