Re: blink driver power saving

2007-07-12 Thread Jiri Kosina
On Thu, 12 Jul 2007, Pavel Machek wrote: > I'm not sure what you mean here. Should the code be moved to atkbd.c? > ...and then duplicated to usbkbd.c? Hi Pavel, just a sidenote - usbkbd.c is probably a confusing misnomer, renaming it to something more appropriate is on my todo for one day. It

Re: blink driver power saving

2007-07-12 Thread Pavel Machek
Hi! > > > 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 bo

Re: blink driver power saving

2007-07-05 Thread Bill Davidsen
Pavel Machek wrote: ...drivers are not expected to act on their own. I was expecting to get nice /sys/class/led* interface to my keyboard leds. What's the benefit of such an interface? If you're able to trigger keyboard LEDs via that interface, you're also able to use the ioctl() on /dev/consol

Re: blink driver power saving

2007-07-04 Thread Dmitry Torokhov
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 waitin

Re: blink driver power saving

2007-07-04 Thread Dmitry Torokhov
On Wednesday 04 July 2007 17:47, Pavel Machek wrote: > Hi! > > > >I was thinking about something like the atached (untested and sorry > > >for using attachment). It shoudl blink just one led (numLock) on any > > >keyboard that has such LED (and allows to control it). > > > > > > > Argh, bad one.

Re: blink driver power saving

2007-07-04 Thread Pavel Machek
Hi! > > I copied code from Dmitry :-); guess I copied too much. Here's updated > > version: > > Umm, it's updated exactly how? Sorry. I updated it in my tree but produced wrong patch. Here's updated updated version: (trimmed cc list). > > +struct blinker { > > + struct delayed_work work; > ..

Re: blink driver power saving

2007-07-04 Thread Pavel Machek
Hi! > > Actually here's one that does not immediately oops when I plug USB > > keyboard in. > > Why do you use a delayed workqueue and then always use it without a delay? > That seems silly. I copied code from Dmitry :-); guess I copied too much. Here's updated version: Signed-off-by: Pavel Ma

Re: blink driver power saving

2007-07-04 Thread Linus Torvalds
On Thu, 5 Jul 2007, Pavel Machek wrote: > > Actually here's one that does not immediately oops when I plug USB > keyboard in. Why do you use a delayed workqueue and then always use it without a delay? That seems silly. Linus - To unsubscribe from this list: send the line "unsub

Re: blink driver power saving

2007-07-04 Thread Pavel Machek
Hi! > > 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

Re: blink driver power saving

2007-07-04 Thread Pavel Machek
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

Re: blink driver power saving

2007-07-04 Thread Pavel Machek
On Tue 2007-07-03 01:42:35, Dmitry Torokhov wrote: > On Monday 02 July 2007 19:08, Pavel Machek wrote: > > On Mon 2007-07-02 14:39:27, Andi Kleen wrote: > > > > > > > > Perhaps one of you geniuses who all hate it can find a better way to > > > > > solve the "video output dead after kexec; but need

Re: blink driver power saving

2007-07-04 Thread Pavel Machek
Hi! > >I was thinking about something like the atached (untested and sorry > >for using attachment). It shoudl blink just one led (numLock) on any > >keyboard that has such LED (and allows to control it). > > > > Argh, bad one. This one shoudl be better. Does it blink for you? It does not seem t

Re: blink driver power saving

2007-07-04 Thread Pavel Machek
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

Re: blink driver power saving

2007-07-04 Thread Pavel Machek
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

Re: blink driver power saving

2007-07-03 Thread Bernhard Walle
* Pavel Machek <[EMAIL PROTECTED]> [2007-07-03 01:08]: > On Mon 2007-07-02 14:39:27, Andi Kleen wrote: > > > > > > 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 cras

Re: blink driver power saving

2007-07-02 Thread Dmitry Torokhov
On Monday 02 July 2007 19:08, Pavel Machek wrote: > On Mon 2007-07-02 14:39:27, Andi Kleen wrote: > > > > > > 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 dum

Re: blink driver power saving

2007-07-02 Thread Pavel Machek
Hi! > > The patch makes sense. You don't need to poll every jiffie to find > > out if system has panic. > > The blink driver doesn't run on panic (or at least not on panic on > the same kernel). It runs always. It was designed to do the blinking > while the kdump kernel runs and writes the dump.

Re: blink driver power saving

2007-07-02 Thread Pavel Machek
On Mon 2007-07-02 14:39:27, Andi Kleen wrote: > > > > 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

Re: blink driver power saving

2007-07-02 Thread Bernhard Walle
* Dmitry Torokhov <[EMAIL PROTECTED]> [2007-07-02 15:43]: > On 7/2/07, Dmitry Torokhov <[EMAIL PROTECTED]> wrote: >> >> I was thinking about something like the atached (untested and sorry >> for using attachment). It shoudl blink just one led (numLock) on any >> keyboard that has such LED (and allo

Re: blink driver power saving

2007-07-02 Thread Andi Kleen
On Monday 02 July 2007 19:50:00 Stephen Hemminger wrote: > The patch makes sense. You don't need to poll every jiffie to find > out if system has panic. The blink driver doesn't run on panic (or at least not on panic on the same kernel). It runs always. It was designed to do the blinking while th

Re: blink driver power saving

2007-07-02 Thread Dmitry Torokhov
On 7/2/07, Stephen Hemminger <[EMAIL PROTECTED]> wrote: The patch makes sense. You don't need to poll every jiffie to find out if system has panic. But I agree with Linus, it is the kind of patch that doesn't belong in the mainline kernel. Every developer seems to have built up a set of crappy

Re: blink driver power saving

2007-07-02 Thread Stephen Hemminger
On Mon, 2 Jul 2007 01:59:50 +0200 Andi Kleen <[EMAIL PROTECTED]> wrote: > On Monday 02 July 2007 00:14, Linus Torvalds wrote: > > On Sun, 1 Jul 2007, Andi Kleen wrote: > > > What is so bad with it? Note it's a debugging facility and used > > > for kcrash kernels where the video output doesn't work

Re: blink driver power saving

2007-07-02 Thread Alan Cox
> > Anyways, Stephen's patch just doesn't make sense: > > he clearly didn't understand the code at all. Before you > > apply it and cripple it better drop the driver completely. > > I think I will have to. Make it depend on the kernel debug options and if you are really paranoid also add a modul

Re: blink driver power saving

2007-07-02 Thread Linus Torvalds
On Mon, 2 Jul 2007, Andi Kleen wrote: > > It's not intended for normal kernels. It's a debugging feature. > It's not intended for normal kernels. It's a debugging feature. > It's not intended for normal kernels. It's a debugging feature. > > Got it now? You seem to have some reading comprehensi

Re: blink driver power saving

2007-07-02 Thread Dmitry Torokhov
On 7/2/07, Dmitry Torokhov <[EMAIL PROTECTED]> wrote: I was thinking about something like the atached (untested and sorry for using attachment). It shoudl blink just one led (numLock) on any keyboard that has such LED (and allows to control it). Argh, bad one. This one shoudl be better. -- D

Re: blink driver power saving

2007-07-02 Thread Dmitry Torokhov
On 7/2/07, Andi Kleen <[EMAIL PROTECTED]> wrote: > > 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

Re: blink driver power saving

2007-07-02 Thread Bodo Eggert
Andi Kleen <[EMAIL PROTECTED]> wrote: > On Monday 02 July 2007 00:14, Linus Torvalds wrote: >> On Sun, 1 Jul 2007, Andi Kleen wrote: >> > What is so bad with it? Note it's a debugging facility and used >> > for kcrash kernels where the video output doesn't work. But they >> > normally only run a f

Re: blink driver power saving

2007-07-02 Thread Bernhard Walle
* Andi Kleen <[EMAIL PROTECTED]> [2007-07-02 14:39]: > > > Another option would be for it not use panic_blink. Do your kexec > > kernels have atkbd support enabled? You could write an new "blink" > > input handler that would latch to keyboards supporting leds and blink > > by sending EV_LED events

Re: blink driver power saving

2007-07-02 Thread Andi Kleen
> > 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 en

Re: blink driver power saving

2007-07-02 Thread Dmitry Torokhov
On 7/2/07, Andi Kleen <[EMAIL PROTECTED]> wrote: On Monday 02 July 2007 13:43:23 Indan Zupancic wrote: > On Mon, July 2, 2007 01:59, Andi Kleen wrote: > > Well only those that could be already hung from user space > > with setleds (that was also confirmed). Actually I thought > > they didn't han

Re: blink driver power saving

2007-07-02 Thread Indan Zupancic
On Mon, July 2, 2007 13:51, Andi Kleen wrote: > On Monday 02 July 2007 13:43:23 Indan Zupancic wrote: >> On Mon, July 2, 2007 01:59, Andi Kleen wrote: >> > Well only those that could be already hung from user space >> > with setleds (that was also confirmed). Actually I thought >> > they didn't ha

Re: blink driver power saving

2007-07-02 Thread Andi Kleen
On Monday 02 July 2007 13:43:23 Indan Zupancic wrote: > On Mon, July 2, 2007 01:59, Andi Kleen wrote: > > Well only those that could be already hung from user space > > with setleds (that was also confirmed). Actually I thought > > they didn't hang completely, but just stopped reacting to > > the

Re: blink driver power saving

2007-07-02 Thread Indan Zupancic
On Mon, July 2, 2007 01:59, Andi Kleen wrote: > Well only those that could be already hung from user space > with setleds (that was also confirmed). Actually I thought > they didn't hang completely, but just stopped reacting to > the keyboard (which is actually pretty bad for every user > to be ab

Re: blink driver power saving

2007-07-01 Thread Andi Kleen
On Monday 02 July 2007 00:14, Linus Torvalds wrote: > On Sun, 1 Jul 2007, Andi Kleen wrote: > > What is so bad with it? Note it's a debugging facility and used > > for kcrash kernels where the video output doesn't work. But they > > normally only run a few minutes to dump the previous state to disk

Re: blink driver power saving

2007-07-01 Thread Linus Torvalds
On Sun, 1 Jul 2007, Andi Kleen wrote: > > What is so bad with it? Note it's a debugging facility and used > for kcrash kernels where the video output doesn't work. But they > normally only run a few minutes to dump the previous state to disk > and then reboot. It has been a total disaster fro

Re: blink driver power saving

2007-07-01 Thread Andi Kleen
On Sunday 01 July 2007 20:07:21 Linus Torvalds wrote: > > On Sun, 1 Jul 2007, Stephen Hemminger wrote: > > > > The blink driver wakes up every jiffies which wastes power unnecessarily. > > Using a notifier gives same effect. Also add ability to unload module. > > I really get the feeling this thi

Re: blink driver power saving

2007-07-01 Thread Andi Kleen
On Sunday 01 July 2007 18:50:35 Stephen Hemminger wrote: > The blink driver wakes up every jiffies which wastes power unnecessarily. > Using a notifier gives same effect. Also add ability to unload module. It's really a debugging tool where you normally don't care about details like this. I wrote

Re: blink driver power saving

2007-07-01 Thread Linus Torvalds
On Sun, 1 Jul 2007, Stephen Hemminger wrote: > > The blink driver wakes up every jiffies which wastes power unnecessarily. > Using a notifier gives same effect. Also add ability to unload module. I really get the feeling this thing should be removed entirely. Wasting power is the _least_ of its