[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <200707050138.49789.dtor@insightbb.com>
Date: Thu, 5 Jul 2007 01:38:48 -0400
From: Dmitry Torokhov <dtor@...ightbb.com>
To: Pavel Machek <pavel@....cz>
Cc: Andi Kleen <ak@...e.de>, Indan Zupancic <indan@....nu>,
Linus Torvalds <torvalds@...ux-foundation.org>,
Stephen Hemminger <shemminger@...ux-foundation.org>,
Andrew Morton <akpm@...ux-foundation.org>,
linux-kernel@...r.kernel.org, bwalle@...e.de
Subject: Re: blink driver power saving
On Wednesday 04 July 2007 18:11, Pavel Machek wrote:
> Hi!
>
> > > > > > Perhaps one of you geniuses who all hate it can find a better way to
> > > > > > solve the "video output dead after kexec; but need visual feedback to the user
> > > > > > while crash dumping" problem. I'm waiting for your patches.
> > > > > >
> > > > >
> > > > > I don't don't like it ;) Unfortunately too many people end up enabling
> > > >
> > > > Yes that's pretty weird. I admit I hadn't expected
> > > > that problem. blink is equivalent to "annoy me" and it
> > > > is a mystery why so many people should willingly ask their computer to
> > > > annoy them.
> > >
> > > tristate "Keyboard blink driver"
> > >
> > > ...drivers are not expected to act on their own. I was expecting to
> > > get nice /sys/class/led* interface to my keyboard leds.
> > >
> > > BTW ... I still believe we should have /sys/class/led* interface to
> > > those leds. I'd like to make them blink with hdd activity on some
> > > machines... of course, that needs non-buggy KBC.
> >
> > I'll take patches. Ofcourse we'll have to keep the current EV_LED interface
> > for compatibility.
>
> Here's a working version. For some reason, it only works with capslock
> led. (But so does your code, is that thinkpad problem?)
>
My code does blink NumLock on my box (Dell) so I wonder why it does not
on your box...
Anyway, as far as the patch goes - I don't think we want to do it this
way for a couple of reasons:
1. It does not reflect the true device hierarchy - LEDs are not children
of input devices, they are children of whatever device that owns input
device. So in case of AT keyboard LEDs should grow from corresponding
serio port, not input device and so atkbd should register all of its leds.
2. LEDs will stop working if input device is grabbed via EVIOCSGRAB.
I think that grab should not cross subsystem boundaries.
--
Dmitry
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists