Re: 2.6: drivers/input/power.c is never built

From: Pavel Machek
Date: Fri Feb 18 2005 - 08:34:41 EST


Hi!


> >> > CONFIG_INPUT_POWER was enabled - but it is nowhere possible to enable
> >> > this option.
> >>
> >> That was written a long time ago before the new power management went
> >> in.
> >> On PDA's there is a power button and suspend button. So this was a hook
> >> so that the input layer could detect the power/suspend button being
> >> presses and then power down or turn off the device. Now that the new
> >> power
> >> management is in what should we do?
> >
> >Change power.c to generate power events like ACPI does, most likely.
>
>
> There was some recent discussion of this on linux-input. It was basically
> agreed that the input system should pass the request on to ACPI and/or apm
> and Dmitry Torokhov (cc'd) proposed a patch that did this. His patch needed
> to be slightly modified to work with arm apm, the final result being:
>
> http://www.rpsys.net/openzaurus/2.6.11-rc4/input_power-r1.patch
>
> I can confirm this works well on arm with apm enabled.

It has quite a lot of #ifdefs for CONFIG_APM/CONFIG_ARM/CONFIG_ACPI,
and it will not work on i386/APM, anyway. I still believe right
solution is to add input interface to ACPI. /proc/acpi/events needs to
die, being replaced by input subsystem.
Pavel
--
People were complaining that M$ turns users into beta-testers...
...jr ghea gurz vagb qrirybcref, naq gurl frrz gb yvxr vg gung jnl!
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/