Commit Graph

167 Commits

Author SHA1 Message Date
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
Carsten Haitzler aa87227505 fix battery module sizing and handle netwm activate messages.
SVN revision: 34950
2008-06-30 08:48:29 +00:00
Sebastian Dransfeld 72dcd1c169 Remove unused variables.
SVN revision: 34862
2008-06-19 12:18:59 +00:00
Christopher Michael 3b07a36398 little formatting fix.
SVN revision: 34821
2008-06-14 06:18:30 +00:00
Carsten Haitzler 4e866a3531 1. updated battery module .edj - we need to update a lot of .edj's due to eet
upgrades
2. dont need resize callback. pan handles it :) causes valgrind bitches if
left too.


SVN revision: 34640
2008-05-22 08:23:57 +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
Christopher Michael fd52c28a4d Fix formatting.
SVN revision: 34457
2008-05-03 22:18:35 +00:00
Nicholas Hughart a90333bbf4 Fix an issue with the auto popup hiding.
Reenable popup after reconfiguring the battery module.


SVN revision: 34456
2008-05-03 21:49:37 +00:00
Christopher Michael 5e4b4b1d3c Fix formatting issues.
Remove Whitespace.
Use E_FREE to free the inst struct (Ensures to null the pointer).


SVN revision: 34455
2008-05-03 20:12:57 +00:00
Nicholas Hughart 6d14620446 Add alert popup to battery module. Was broken after batget changes. Popup is now themeable and also a bit less intrusive.
SVN revision: 34454
2008-05-03 19:51:49 +00:00
Massimo Maiurana ee431269a7 hu translations for desktop files
SVN revision: 34408
2008-04-30 10:28:40 +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 6f4d707dd3 fix install of slave tools.
SVN revision: 34351
2008-04-23 03:50:21 +00:00
Carsten Haitzler 088fceedde fix batget infinie spin
SVN revision: 34273
2008-04-15 15:20:59 +00:00
doursse 1dfffe770b returning 0 stops the delete event to be called in the screenlock module.
So we return 1.

Patch from sECuRE_


SVN revision: 34077
2008-03-22 08:04:12 +00:00
Sebastian Dransfeld fe68d438c6 Fix compiler warnings.
SVN revision: 34019
2008-03-13 19:13:36 +00:00
Carsten Haitzler 167bc53a57 batery module now playes with e's powersave api :)
SVN revision: 33989
2008-03-12 05:43:36 +00:00
Carsten Haitzler 17d1bbe1a8 use new exe flag to make children die! die! die! kill the children... KILL!
...

child processes that is.
:)


SVN revision: 33975
2008-03-10 06:45:05 +00:00
Carsten Haitzler 930f53e765 fix batget restart on shelf re-config so it displays right
SVN revision: 33972
2008-03-09 17:31:12 +00:00
Carsten Haitzler 3d34b587af use either the min size set or calculate - as needed.
SVN revision: 33932
2008-03-05 06:00:25 +00:00
Carsten Haitzler 2fb5738a7a add ignores.
SVN revision: 33928
2008-03-05 04:04:54 +00:00
Carsten Haitzler be433bba00 and dont del exe if its not there
SVN revision: 33916
2008-03-04 11:35:00 +00:00
Carsten Haitzler 40a179e870 start batget only if there is a battery gadget and restart per gadget (likely
only 1) so that they get updated on shelf change.


SVN revision: 33913
2008-03-04 10:35:30 +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
Massimo Maiurana b5260fd925 updated module.desktop.in files with eo localization.
SVN revision: 33868
2008-02-29 18:31:50 +00:00
Carsten Haitzler 497281afaa fix sys battery reader to support lowercase bats too...
some other bugs and fixes


SVN revision: 33849
2008-02-26 09:47:51 +00:00
Nicholas Hughart e6acbda91b Add support for the new sysfs acpi power interface. With 2.6.24 kernels, the procfs inteface has been marked deprecated. Few people have tested without issues.
SVN revision: 33644
2008-01-28 20:37:00 +00:00
Carsten Haitzler b92a1a6e24 thumbscroll. the ability to scroll any widget (anything scrolled by the
scrollfram smart/widget) using your "finger" anywhere in the view. not useful
for desktops. useful for small screen devices - openmoko/n800 etc. are
perfect targets. just click and drag with your finger, release. drag fast and
releas and you get momentum and it continues for a bit while it slows down.
configurable via a new config module.


SVN revision: 33564
2008-01-23 09:04:56 +00:00
Carsten Haitzler b70f5a0ecc e:
1. configure/build changes to allow cross-compiling painlessly
2. pager module namespace changes - this was still dirty afdter the namespace
cleanup, so clean it up
3. add a powersave subsystem - doesnt have an "automatic" way to turn on and
off right now, this i think is best provided by modules (that do things like
monitor acpi status's (eg close lid of laptop), AC power status etc. etc.
this allows e to nicely defer "power" expensive actions to avoid disk
spinups etc.
4. move to use the new ecore poller system  - discussed long ago as part of
power management/saving issues. now it exists
5. add a canvas idle flush call that helsp cope with the new shm greedy
software x11 engine stuff
6. use the new powersave subsystem where appropriate
7. fix non-zeroed/initted memory access in e_fm_main
8. fix mem leak for e menus
9. remove ipc handlers for changed/removed config values
10. use animaotr not timer for menu scrolls - then menu scrolls obey the fps
config
11. fix up timer/poll happienss of cursor idle stuff
12. remove avoid damage from popups for now - causing problems
13. change battery and temp readouts to b e shorter so they fit
14. pager can emit signals on focus change for mini-windows now
15. temperature module now uses a slave process and uses stdin/out to talk to
it and get output - this makes e smoother as in my expereicne i found getting
the temp on my laptop actually took like 200ms so e "hang" for 200ms while
reading the acpi files - so now the subprocess does it and just writesa back
to e when it gets it.

ecore:
1. add ecore_pollers. see the documentation on them in doxygen comments :)
2. fix timers to only go off when they have to - bug there that made e's
select time out a LOT more than it needed to. defensive coding hid the
problem. now fixed. e should be much more power friendly now.
3. formatting/niceness in ecore_exe stuff
4. some comments on comments with SIGIO ideas vs. select
5. add call to be able to add an idle enterer at the start of the list of
them, not just the end (as has been the default)
6. fix ecore_evas to support auto evas idler calls after 0.5 secs of idle in
all canvases - and to do it right
7. if argb destination - set the shape EVENT shape (to mask out events in
transparent regions much like shape does withotu translucency)
8. in ecore_x add support for the event shape

evas:
1. fix cache to work properly and not just always fill up (as it seemed to
like to think cahce useage dropped below 0 when it didnt and thus just
over-fill)
2. software x11 engine now ONLY uses shm segments - no ximages over the
socket. this ximage hack was there to avoid the 2 round trips involved in
setting up an shm image - now i mitigated that wih an shm image cache pool.
it keeps shm images around and repurposes them for new update regions if
appropriate. this means many fewer shm creates (about 1/100th the number) and
since we recycle the memory less 0 memory page filling by the kernel - in the
end, i recorded about a 10-20% speedup over the old software x11 engine.
simple tests i have seen up to 120% speedups. idle flush now does something -
it frees all the cached shm segments. it has a hard-coded limit of 4mb worth
of shm segments (or 32 segments - whichever comes first) to keep around. once
can never complain much about speedups methinks :). also evas will defer sync
until the NEXT frame is written - this means evas can calculate the next
frame of data while x dma's/copies the images to the screen at the same time
(if you hve a dual core or multi-cpu machnike or your xserver is able to use
DMA to copy image data to the screen/video ram then this should see a decent
speedup).


SVN revision: 33448
2008-01-11 07:33:57 +00:00
Christopher Michael fa753e1ee2 Fix battery module description to fit width of new description box.
There will be a bunch more of these commits coming.


SVN revision: 33303
2007-12-30 19:04:58 +00:00
Eric Schuele 552cd506a5 Update many desktop files with some translations. Courtesy of tokyo.
SVN revision: 33009
2007-12-06 05:07:33 +00:00
Christopher Michael 488bbfab1d Change module type of .desktop
SVN revision: 32284
2007-11-02 06:15:24 +00:00
Christopher Michael e78c5f25b5 Add module type to .desktop.
SVN revision: 32282
2007-11-02 06:10:09 +00:00
Sebastian Dransfeld b8cd2447aa Fix warnings.
SVN revision: 32266
2007-10-31 19:56:59 +00:00
Christopher Michael 43cdb962de Allow battery to use it's own icon in Config Panel.
SVN revision: 32254
2007-10-31 15:15:33 +00:00
Carsten Haitzler 44fc6bc933 missed extra config calls
SVN revision: 32234
2007-10-31 12:44:40 +00:00
Carsten Haitzler 6840a4f977 boys and girls... animals and vegetables... pokemon and spatial anomolies
lend me your ears, for i come to break code, not to praise it!

module api getting kicked about. 1. modapi calls for config and about are gone
core module api call for about dialog gone (not needed anymore). use module
.desktops for about info in description. config should go via the config
panel calls to register stuff.... wherd... to... ma homieoes!


SVN revision: 32231
2007-10-31 12:21:02 +00:00
Massimo Maiurana 81440c9066 translated strings in italian for modules' .desktop files.
SVN revision: 31794
2007-09-23 20:53:15 +00:00
Sebastian Dransfeld ac35054634 We need id's for gadgets which are independent of shelves, so if we move
a gadget from one shelf to another it will keep the same config. Since the
id is mainly for the module to find the appropriate config for a gadget,
the module is now responsible for creating id's for gadgets config. One
problem is that we no longer can trust the id of a gadget, so we need to
store a reference between a gadget and its config after startup. No big
deal.


SVN revision: 31727
2007-09-16 00:02:53 +00:00
Eric Schuele bd949fa4f9 Add comments to various E modules for display in the modules config dialog.
SVN revision: 31502
2007-08-25 21:48:02 +00:00
Eric Schuele 323620e492 Allow module to fire its alarm given a percentage remaining threshold.
SVN revision: 30039
2007-05-20 05:20:04 +00:00
Sebastian Dransfeld 5c9c68298a Remove stale code.
SVN revision: 29160
2007-03-25 22:46:21 +00:00
Sebastian Dransfeld c129c20ab6 Update icon name.
SVN revision: 29059
2007-03-24 23:12:23 +00:00