Commit Graph

11 Commits

Author SHA1 Message Date
Christopher Michael 6f33f9d823 Cleanup todo.
SVN revision: 49419
2010-06-03 19:27:44 +00:00
Christopher Michael 7ef8b28341 Make sure we don't go below zero (for the case where _thaw gets called
an odd number of times).



SVN revision: 49418
2010-06-03 17:35:41 +00:00
Christopher Michael 97d4239b35 Add a way to freeze incoming acpi events.
NB: To be used in the acpi bindings config dialog. This allows us to freeze 
all existing events so that if the user presses the power button 
(or something else) when adding a new binding, their machine does not
power off.



SVN revision: 49416
2010-06-03 16:57:09 +00:00
Christopher Michael d2d1e49bf5 Add bindings for ACPI.
Add acpi bindings to config.
Add handlers in e_acpi for common/default acpi events.
Add actions for some missing ACPI events.
 - NB: Dim/Undim screen do nothing currently except a printf.



SVN revision: 49309
2010-05-29 19:57:13 +00:00
Christopher Michael a9f6e4186e Bus id can be longer than 4 chars, so fix scanf.
SVN revision: 49201
2010-05-26 02:29:48 +00:00
Christopher Michael 24188afa26 Add enums for acpi signals, and enums for lid status.
Add function to return current lid status.



SVN revision: 48948
2010-05-17 22:46:28 +00:00
Christopher Michael 078fe68f2d Make sscanf a bit more sane wrt the if statement.
SVN revision: 48931
2010-05-17 00:18:21 +00:00
Christopher Michael 08fde98a06 For unknown devices, set the event's device name to the name of the
device returned in the ACPI message rather than a hard-coded 'unknown'.



SVN revision: 48930
2010-05-17 00:11:55 +00:00
Christopher Michael d823aba015 Add a TODO list.
Create a device hash to match standard device names to types.
Cleanup E_EVENT_ACPI (add missing ones, remove not needed ones).
Actually parse out the ACPI data which we receive.

You can now actually use this ACPI code for event listening, but the
Status field of the event structure needs sanatizing yet (turn into
something meaningful).



SVN revision: 48928
2010-05-17 00:03:55 +00:00
Christopher Michael e828519e97 Change acpi event structure to be able to pass more info.
SVN revision: 48912
2010-05-16 06:21:48 +00:00
Christopher Michael 903caca63b Add start of ACPI code. Does not actually parse yet tho.
Add e_acpi_init to startup (it safely returns if acpid is not running).
Fix some formatting in e_main.



SVN revision: 48910
2010-05-16 05:26:29 +00:00