Commit Graph

16 Commits

Author SHA1 Message Date
Nicholas Hughart c414d49e48 That's what I get for applying patches without looking at them well enough. Fix up a few bugs in the patch received, let me know if there are issues with it.
SVN revision: 36169
2008-09-22 14:23:15 +00:00
Nicholas Hughart 5450d03a0b Fix a couple typos and detection of sysfs acpi battery info.
SVN revision: 35971
2008-09-12 21:31:46 +00:00
Carsten Haitzler 1b3694eb00 handle other states for "state" - not charging is an... interesting one...
(as a replacement for discharging)


SVN revision: 35401
2008-08-07 23:37:14 +00:00
Sebastian Dransfeld 72dcd1c169 Remove unused variables.
SVN revision: 34862
2008-06-19 12:18:59 +00:00
Carsten Haitzler 09453fe184 remove ! apm exists check.
SVN revision: 34538
2008-05-11 16:21:21 +00:00
Carsten Haitzler 5645ce0449 suspend/resume brokeon power class - lost event file node and never got it
back. now try get them all back if they get lost.


SVN revision: 34461
2008-05-04 06:13:26 +00:00
Carsten Haitzler 9aaf72f72a better detection of apm vs powerclass... as i have no seen a system with BOTH
of them active! argh!


SVN revision: 34406
2008-04-30 05:33:44 +00:00
Carsten Haitzler c71bc63e7e if we have apm as well on a new kernel - use that as it will probably take
preference to power_supply class stuff


SVN revision: 34390
2008-04-28 11:12:25 +00:00
Carsten Haitzler 088fceedde fix batget infinie spin
SVN revision: 34273
2008-04-15 15:20:59 +00:00
Sebastian Dransfeld fe68d438c6 Fix compiler warnings.
SVN revision: 34019
2008-03-13 19:13:36 +00:00
Carsten Haitzler 6c8d35abf0 let's just put all things that multiply that could possibly be big numbers be
long long to avoid overflows. :)


SVN revision: 33911
2008-03-04 03:35:03 +00:00
Gustavo Sverzut Barbieri 617ab30c56 Integer overflow.
This fixes my battery showing 18% for on power, fully charged battery,
but possible there are many more of those.


SVN revision: 33910
2008-03-04 01:06:58 +00:00
Carsten Haitzler 55b40f3d3b seems to be behaving now.
SVN revision: 33906
2008-03-03 14:35:26 +00:00
Carsten Haitzler 29ccce4f86 dont loop forever on read from event fd
SVN revision: 33905
2008-03-03 11:36:59 +00:00
Carsten Haitzler fe6f5aa3d1 oops - pass sysev
SVN revision: 33904
2008-03-03 10:30:31 +00:00
Carsten Haitzler 16b851a43c move battery fetching/polling of info to its own sub process, pipe of stdout
to read like tempget. this means e cant hang hen polling - much better for
the mainloop. also clean up the code a lot. all battery specific "driver"
code is now in batget - this means it much nicer to later add hal battery
info fetching as that is also a remote service (and just not execute batget).
i also fixed up (in theory) the new 2.6.24+ /sys/class/power_supply parsing
to i think work better in more situations. i'm testing on a device i have
that does it - let me know if its wrong...


SVN revision: 33903
2008-03-03 09:48:37 +00:00