From: Aivils Stoss <aivils@unibanka.lv>
To: vojtech@suse.cz
Cc: Hugo Vanwoerkom <hvw59601@yahoo.com>,
linux-kernel@vger.kernel.org,
bruby <linuxconsole-dev@lists.sourceforge.net>
Subject: Re: INPUT: keyboard_tasklet - don't touch LED's of already grabed device
Date: Tue, 6 Sep 2005 15:55:25 +0300 [thread overview]
Message-ID: <200509061555.26753.aivils@unibanka.lv> (raw)
In-Reply-To: <20050906115750.GA10001@ucw.cz>
On Otrdiena, 6. Septembris 2005 14:57, Vojtech Pavlik wrote:
> On Tue, Sep 06, 2005 at 04:52:28AM -0700, Hugo Vanwoerkom wrote:
> > --- Aivils Stoss <aivils@unibanka.lv> wrote:
> > > Hi, Vojtech!
> > >
> > > Recent kernels allow exclusive usage of input device
> > > when
> > > input device is grabed. keyboard_tasklet does not
> > > check
> > > device state and switch LED's of all keyboards.
> > > However
> > > grabed device may be use another LED steering code.
> > >
> > > This patch forbid keyboard_tasklet switch LED's of
> > > grabed devices.
> > >
> > > Aivils Stoss
> >
> > While trying this with 2.6.12 it gets a compilation
> > error. Not when you move the added statements after
> > the structure declaration.
> >
> > Is that me heading for them thar hills?
>
> The patch probably wasn't tested. ;)
How a soul who hates kernel compilation can test a patch?
Runtime modifcation:
http://www.ltn.lv/~aivils/files/hijackled-2.6.11-12mdk.tar.bz2
Aivils
--- linux-2.6.13/drivers/char/keyboard.c 2005-08-29 02:41:01.000000000 +0300
+++ linux-2.6.13/drivers/char/keyboard.c~ 2005-09-06 15:32:28.000000000 +0300
@@ -896,16 +896,18 @@ static inline unsigned char getleds(void
static void kbd_bh(unsigned long dummy)
{
struct list_head * node;
unsigned char leds = getleds();
if (leds != ledstate) {
list_for_each(node,&kbd_handler.h_list) {
struct input_handle * handle = to_handle_h(node);
+ if (handle->dev->grab)
+ continue;
input_event(handle->dev, EV_LED, LED_SCROLLL, !!(leds & 0x01));
input_event(handle->dev, EV_LED, LED_NUML, !!(leds & 0x02));
input_event(handle->dev, EV_LED, LED_CAPSL, !!(leds & 0x04));
input_sync(handle->dev);
}
}
ledstate = leds;
prev parent reply other threads:[~2005-09-06 12:53 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-06 7:34 Aivils Stoss
2005-09-06 11:52 ` Hugo Vanwoerkom
2005-09-06 11:57 ` Vojtech Pavlik
2005-09-06 12:55 ` Aivils Stoss [this message]
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=200509061555.26753.aivils@unibanka.lv \
--to=aivils@unibanka.lv \
--cc=hvw59601@yahoo.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linuxconsole-dev@lists.sourceforge.net \
--cc=vojtech@suse.cz \
/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
all inboxes | Powered by JetHome®