ACPI+Userspace

Jeremy Moles
2005-06-13T23:37:36Z

Hello all--quick question.

As bad as it may seem, I was wondering if it is possible to generate
ACPI events in userspace? That is: propogate any arbitrary "string" up
through the ACPI subsystem, eventually getting dumped
to /proc/acpi/event which, in our case, is being watched and acted on by
the userspace util ACPID.

The obvious answer is: "Call /etc/acpi/hander with your string!"--which
is always an option--but I'd like to know if it's possible simply to use
for testing/debugging. I could write a driver supporting ioctls to pass
stuff via acpi_bus_generate_event (I think?), but that's wayyy too much
work for what I'm wanting this for. I'm sure there are reasons this
isn't a good idea, and I'd be glad to hear those too (to increase my
understanding of ACPI!).

Anyway--thanks ahead of time. Weee.

-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20