Re: [gpm] Untangling the sleep hotkey mess
- From: Matthias Grimm <matthiasgrimm users sourceforge net>
- To: gnome-power-manager-list gnome org
- Subject: Re: [gpm] Untangling the sleep hotkey mess
- Date: Wed, 11 Jan 2006 11:47:20 +0100
On Mon, 09 Jan 2006 21:23:08 +0000
Richard Hughes <hughsient gmail com> wrote:
> > And what do you do if:
> >
> > 1. You don't have ACPI available (other platforms)
>
> Maybe use sysfs then, and make a (simple) generic file interface. Other
> platforms like pmu use a radically different interface (ioctls
> on /dev/pmu, or reading /dev/apm) and this is already abstracted away
> using HAL.
Nope. On mac powerpc machines using a PMU most keys emit a keycode
though the kernel input layer. I know only two case where it is not so:
1. Power Key of recent PowerBooks emit only a PMU interrupt
2. Volume keys on OHARE based Powerbooks are completely PMU controlled
and deliver a percentage value.
Therefore I'm strictly against every ACPI based sollution for user space
keyboard drivers. If someone need a compatibility handler to keep APCI
compatible with the uinput approach, do it in acpid.
Best Regards
Matthias
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]