Commit Graph

26 Commits

Author SHA1 Message Date
Vincent Torri c3b0637802 e17: whitespaces--
SVN revision: 72561
2012-06-21 06:19:43 +00:00
Carsten Haitzler 35dda3c894 oops ppurka - %i on wrong part of string. fix. this is what happens
when u cant test :)



SVN revision: 71424
2012-05-25 12:17:16 +00:00
Carsten Haitzler 0ed1c99f2c work around ppurka's demented laptop.
SVN revision: 71414
2012-05-25 00:09:15 +00:00
Carsten Haitzler 496577bbf8 try and handle peoples thinkpads where acpid reports different event
formasts.

e.g.:
    button/lid LID close
  as opposed to
    button/lid LID0 00000080 00000001

i hope normal acpi isn't broken. please test.



SVN revision: 71268
2012-05-21 07:40:04 +00:00
Carsten Haitzler 0add92b38a remove acpi debugging and label lid state properly in the ui!
SVN revision: 68223
2012-02-21 14:35:00 +00:00
Carsten Haitzler 8f465dbb54 debugging stuff in e_acpi for later.
SVN revision: 68189
2012-02-21 03:01:40 +00:00
Carsten Haitzler 16022b1d80 properly get lid status! my god this has been broken for a while!
SVN revision: 67602
2012-01-30 12:58:40 +00:00
Sebastian Dransfeld 67da66aacf Fix raster fix
Use eina_strbuf_append_length, not eina_strbuf_append_n to add a string
with known length.

SVN revision: 57211
2011-02-21 11:02:10 +00:00
Carsten Haitzler 09d6cde244 work around weird eina-ism fo strlening a strign it already knows the
length of.



SVN revision: 57202
2011-02-21 06:20:28 +00:00
Carsten Haitzler 79742c3762 and extend acpi support some more - allow bus matching too. start
listing specific device models tested etc. and their  specific tables



SVN revision: 56829
2011-02-09 01:17:14 +00:00
Carsten Haitzler f8da083328 a bit of a refactor of e_acpi -> can buffer and handle more than 1
acpi message at once (will happen IF e is paused/hung/suspended and
multiple acpi events happen during that time).

also no need for multiple acpi event id's - the type is already in the
struct itself. it's dup;icating the work. simplify.

also... vaio "hotkey" style support. new mapping ethod needed for
that. who knows what other bizarre acpi hardware is out there. may
need more. also make a note that we may want a mapping system some
time that maps acpi event to faking an x key event.

also... allow acpi bindings to bind to anything in gui.



SVN revision: 56790
2011-02-07 22:57:50 +00:00
Gustavo Sverzut Barbieri 6f2213cb25 convert init/shutdown to EINTERN, move some to _update().
Do not abuse the concept of e_*_init(), make them call-once and those
that needed multiple call are renamed to e_*_update(). To make sure
convert them to EINTERN so the symbols are not exported.

Actually I guess too much is exported as EAPI while they should be
EINTERN, but that would require manual investigation, while this patch
was basically created with sed + grep.



SVN revision: 54795
2010-11-22 15:21:32 +00:00
Carsten Haitzler a75fbc97b1 bad horns!
SVN revision: 52682
2010-09-24 13:39:19 +00:00
Christopher Michael 691061d7bf Add UNUSED.
Remove unused variable(s).



SVN revision: 51367
2010-08-18 22:05:27 +00:00
Cedric BAIL c6a118d738 * e: remove warning due to Ecore API change.
SVN revision: 49833
2010-06-24 16:19:12 +00:00
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