[lkml]   [2001]   [May]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRE: simple userspace pm interface
[trimming CC's. Recommend for followups]

As you mentioned, the ACPI driver does something similar, and I think the
approach is generally sound (or at least we haven't been able to come up
with anything better ;-) I do have the following comments:

- It's probably easier to put the "event" file in proc, instead of dev. This
is what the acpi interface does, and eliminates the mknod step.
- perhaps rename boxevent() to event() or sys_event()?
- Consider putting the subsystem/class identifier first
- Consider hiding the source of the event. For example, we shouldn't care
that the power button press was generated by APM or MIPS64, because we're
going to take the same action, regardless.

I'd encourage you to take a look at the ACPI code that does something
similar (in 2.4.4ac4 or greater, or grab the code from the website at .)
Specifically, grep -r for bm_osl_generate_event(). Modifying that code to be
more general-purpose could possibly meet ACPI's needs as well as everyone

Regards -- Andy
ACPI maintainer

> From: John Fremlin []
> Here is a patch to deal with PM events (e.g. button presses) in a
> system independent way. Could people with the applicable hardware test
> out or comment on the changes?
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 12:52    [W:0.062 / U:1.956 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site