Linux Input/HID development
 help / color / mirror / Atom feed
From: Maxim Levitsky <maximlevitsky@gmail.com>
To: Jason Wessel <jason.wessel@windriver.com>
Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>,
	Chris Ball <cjb@laptop.org>,
	kgdb-bugreport@lists.sourceforge.net,
	linux-input <linux-input@vger.kernel.org>
Subject: Re: sysrq filter and stuck keys [ was Re: [Nouveau] [PATCH] drm/nouveau/kms: Implement KDB debug hooks for nouveau KMS.]
Date: Sat, 23 Oct 2010 04:29:21 +0200	[thread overview]
Message-ID: <1287800961.21313.4.camel@maxim-laptop> (raw)
In-Reply-To: <4CBF123E.6020804@windriver.com>

On Wed, 2010-10-20 at 11:01 -0500, Jason Wessel wrote:
> On 10/13/2010 09:34 PM, Maxim Levitsky wrote:
> >
> > Nope, still same problem.
> > Maybe more keys were released, but still
> > pressing Alt+SysRQ+g second time doesn't break to the debugger.
> >
> >   
> 
> Thanks for trying this out Maxim.
> 
> I have to wonder if part of the problem is the way that raw events can
> propagate directly via the old keyboard interface vs the input layer.  
> I had noticed something somewhat similar with an xorg.conf which
> appeared to be using both the raw keyboard and the input layer for
> input.  I was having all sorts of problems until I changed the xorg.conf
> settings to use the input layer.  I noticed that even pressing the up
> arrow in an xterm was invoking the screen shot mechanism for example.
> 
> Perhaps you can provide some more data to see if this is a similar
> problem or not.

Jardon, I already found the root cause of the problem.
First of all, note that I use xorg's evdev driver.
The in-kernel tty kbd driver is only used for virtual consoles.

The root cause is that in-kernel kbd driver beeing a client of the input
subsystem just doesn't see the sysrq keys because they are filtered,
therefore it can't release them.

The right solution is to somehow hook at the atkbd driver , tell it that
kbd tampered with its hardware, and make it release the keys.

But that is easy to say, not that easy to do...

the in-kernel kbd driver just isn't the right place for the job.

Best regards,
	Maxim Levitsky


  reply	other threads:[~2010-10-23  2:29 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <m3iq9yqd7w.fsf@pullcord.laptop.org>
     [not found] ` <4C5ACF3F.8050409@windriver.com>
     [not found]   ` <m3hbj0fju3.fsf_-_@pullcord.laptop.org>
     [not found]     ` <m3aaoimqrp.fsf_-_@pullcord.laptop.org>
     [not found]       ` <1283335002.2741.5.camel@maxim-laptop>
     [not found]         ` <4C7E3A73.5070503@windriver.com>
     [not found]           ` <1283424363.2736.1.camel@maxim-laptop>
     [not found]             ` <1285119735.5949.5.camel@maxim-laptop>
     [not found]               ` <1285164198.3159.8.camel@maxim-laptop>
     [not found]                 ` <1285164387.3159.10.camel@maxim-laptop>
2010-09-22 17:07                   ` [Nouveau] [PATCH] drm/nouveau/kms: Implement KDB debug hooks for nouveau KMS Maxim Levitsky
2010-09-24 20:50                     ` Maxim Levitsky
2010-09-24 20:58                       ` Jason Wessel
2010-09-25  0:14                         ` Maxim Levitsky
2010-09-25  4:08                           ` Dmitry Torokhov
2010-10-05 20:56                             ` Jason Wessel
2010-10-14  2:34                               ` Maxim Levitsky
2010-10-20 16:01                                 ` sysrq filter and stuck keys [ was Re: [Nouveau] [PATCH] drm/nouveau/kms: Implement KDB debug hooks for nouveau KMS.] Jason Wessel
2010-10-23  2:29                                   ` Maxim Levitsky [this message]
2010-10-27 12:51                                     ` Jason Wessel

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=1287800961.21313.4.camel@maxim-laptop \
    --to=maximlevitsky@gmail.com \
    --cc=cjb@laptop.org \
    --cc=dmitry.torokhov@gmail.com \
    --cc=jason.wessel@windriver.com \
    --cc=kgdb-bugreport@lists.sourceforge.net \
    --cc=linux-input@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