Commit Graph

59 Commits

Author SHA1 Message Date
Alastair Poole e4d187602b temperature: FreeBSD.
As per Linux and OpenBSD.
2021-03-09 14:08:42 +00:00
Carsten Haitzler 1d87379d47 temp - move entirely to hwmon based temp sensors on linux 2020-09-11 00:00:38 +01:00
Carsten Haitzler f6ab93b7b0 temperature - remvoe udev support as it causes mainloop stalls
so this was the hiccups have been seeing... it was temperature +eeze+
udev stalling out. tempget backend works without stalls so that is now
the only one.
2020-08-17 18:22:12 +01:00
Mike Blumenkrantz 59fa0e418d use E_BITFIELD define for bitfield struct members
on release builds this will be a bitfield, on devel builds it will make
bools a normal unsigned char for easier debugging
2017-11-07 10:39:56 -05:00
Carsten Haitzler 73855900ed Revert "Temperature module: Don't use e_powersave_sleep. It doesn't work for ticks faster than a second."
This reverts commit 4a92502f81.
2017-09-12 11:03:46 +09:00
Stephen 'Okra' Houston 4a92502f81 Temperature module: Don't use e_powersave_sleep. It doesn't work for ticks faster than a second. 2017-09-11 13:35:43 -05:00
Carsten Haitzler 7caf5c8ff4 add new powersave features for supporting a live sleep mode
so new laptops now seem to no longer support S3 sleep. sleeping is
done basically by going as idle as possible. you can ask the kernel to
freeze execution BUT this seems to use about the same power as staying
alive in my tests. to support this add 2 things:

1. a FREEZE powersave mode which implies we're alive but want to
really stay as idle as absolutely possible.
2. powersave aware sleep functions that replace the usleeps in threads
so they can switch from being super sleepy when in freeze mode to
normal.
2017-07-10 10:18:50 +09:00
Carsten Haitzler a15ac5f039 temp module - avoid a bit of cpu sendingh edje message if temp same
each poll - check if temp actually changed and only send edje message
if tempt actually did change. saves some cpu while polling in the bg
for these things.

@optimize
2016-12-04 22:46:02 +09:00
Carsten Haitzler 1c8c57b702 temp - udev pol - do in mainloop and suffer as appropriate
if a poll takes a few hundred ms ... the so be it. udev is for
mainloop only. don't use it - that's my advice (for temp module).

:)
2016-12-03 11:30:01 +09:00
Carsten Haitzler a94ba7cbfd e tempget module - mode to using threads instead of tempget binary
this should reduce mem usage by a sub binary and aso solve the sub
shell kill issue too nd still keep the polling of system status out of
the mainloop and keep it unblocked.
2016-12-01 08:49:33 +09:00
Mariusz Bialonczyk 5dd4a7eddf modules/temperature: cosmetics: typo fix (celcius -> celsius)
Reviewers: zmike!

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D4129
2016-07-05 11:45:00 -04:00
Chris Michael 0a94e8ba71 enlightenment: Make E build again with EFL from git
sed -i 's/EAPI/E_API/g'

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-05-07 15:13:10 -04:00
q66 d12ef91687 rename WEIGHT/ALIGN/EXPAND/FILL to E_WEIGHT/E_ALIGN/E_EXPAND/E_FILL
Otherwise there were macro clashes with a systemwide include.
Also remove a leftover E_Hal.h include.
2014-11-21 20:10:46 +00:00
Mike Blumenkrantz c6a9c34e7f giant header overhaul which removes all the stupid one line function prototype headers and e_mod_main.h headers that contain nothing but unnecessary module api prototypes
SVN revision: 79908
2012-11-30 14:38:34 +00:00
Gustavo Sverzut Barbieri 4305b8e7fe e/docs: do bare documentation for e.
Just some groups and basic description for modules. I'm NOT going back
to this anytime soon, but would be VERY happy if people could do some
screenshots and put the images for each module in docs/img/ folder,
linking to them from each e_mod_main.h



SVN revision: 67362
2012-01-19 23:25:32 +00:00
Vincent Torri 7fd3d55bf2 E17: add temperature module for OpenBSD
Patch by Laurent Fanis <laurent@openbsd.org>


SVN revision: 64574
2011-10-31 15:52:42 +00:00
Mike Blumenkrantz 67b1000afa fix compile when ehal is not present
note that illume1 still requires ehal and I have no plans to write an eeze backend for it


SVN revision: 55944
2011-01-06 18:41:58 +00:00
Lucas De Marchi 6638a10e20 FORMATTING
* Remove vim modelines:
 find . -name '*.[chx]' -exec sed -i '/\/\*$/ {N;N;/ \* vim:ts/d}' \{\} \;
 find . -name '*.[chx]' -exec sed -i '/\/[\*\/] *vim:/d' \{\} \;

* Remove leading blank lines:
 find . -name '*.[cxh]' -exec sed -i '/./,$!d'

If you use vim, use this in your .vimrc:
set ts=8 sw=3 sts=8 expandtab cino=>5n-3f0^-2{2(0W1st0



SVN revision: 50816
2010-08-04 16:57:32 +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 8b97b2ee11 Don't need tempget for udev processing.
Don't need exe data handlers for udev processing.
Cut down on the number of rogue tempget processes (if using Internal
method).
Fix some formatting.
Use PATH_MAX and E_FREE.



SVN revision: 49167
2010-05-23 22:23:14 +00:00
Mike Blumenkrantz 97529addef match eeze changes, add init/shutdown calls to illume2 keyboard
SVN revision: 49130
2010-05-22 07:04:26 +00:00
Mike Blumenkrantz 95c4186748 add full udev support for temp module:
if e is compiled with eeze as the preferred backend, a new config page will appear in the settings for the temperature module where internal and udev are selectable options.
udev mode should support ALL possible hardware, so if you've been having issues with the current temp module, try udev mode!
also note that udev mode provides an extra amount of precision for hahas; it also still obeys the configurable polling intervals.
please test and report all bugs!


SVN revision: 49062
2010-05-20 10:12:41 +00:00
Vincent Torri 85b159255d tempget:
* small cleanup
 * allow compilation on opensolaris

This modules does not work on opensolaris. I don't know that stuff,
so I have no idea of what to do to fix that


SVN revision: 44522
2009-12-17 08:22:39 +00:00
Cedric BAIL db419867dd * estickies,
* etk,
	* PROTO/exalt,
	* E-MODULES-EXTRA/diskio,
	* E-MODULES-EXTRA/drawer,
	* E-MODULES-EXTRA/penguins,
	* E-MODULES-EXTRA/slideshow,
	* E-MODULES-EXTRA/mail,
	* E-MODULES-EXTRA/forecasts,
	* E-MODULES-EXTRA/iiirk,
	* E-MODULES-EXTRA/places,
	* e,
	* ewl,
	* ecore,
	* elitaire,
	* entrance,
	* e_dbus,
	* efreet: Here we go, move from Ecore_List to Eina_List.

	NOTE: This patch is huge, I did test it a lot, and I hope nothing is
	broken. But if you think something change after this commit, please
	contact me ASAP.


SVN revision: 39200
2009-02-25 11:03:47 +00:00
Cedric BAIL 773d102291 This commit is huge. I did test it a lot on my computer, and it run fine here.
But is so big i fear i could have broken some piece of code. So report any wrong
behaviour to me (cedric on #edevelop).

So moving e17 and efreet to eina_hash. With a little efreet API break so they
must come together.


SVN revision: 38185
2008-12-17 15:33:43 +00:00
Christopher Michael 022a2caf44 Fix nasty formatting & remove extra whitespace.
SVN revision: 37593
2008-11-12 00:53:56 +00:00
Carsten Haitzler 44191ab9cf temp module patches to make it work again.
SVN revision: 33685
2008-02-06 00:13:25 +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
Carsten Haitzler 2405363f94 errrr. commit? did the last one work?
SVN revision: 32232
2007-10-31 12:23: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
Christopher Michael d58b93c45c Path from Kent (der_Metzger) <kent@thor.arrrr.com> to add Intel Core2
temperature sensor support to the temperature module.


SVN revision: 30863
2007-07-16 21:27:22 +00:00
David Walter Seikel 9cb750dfe0 Patch to add PowerBook temperature reading from Paul T. Threshold.
SVN revision: 30770
2007-07-11 23:17:13 +00:00
David Walter Seikel c604c7368d No more limits to the number of I2C temperatures allowed.
SVN revision: 28147
2007-01-28 16:08:12 +00:00
Sebastian Dransfeld 41e9901010 Temperature config per face. Seems to work, if not complain to me.
SVN revision: 27503
2006-12-17 22:01:45 +00:00
Sebastian Dransfeld 2a1358264a Only check the type of sensor on init and when changing config.
SVN revision: 27464
2006-12-15 08:32:31 +00:00
Carsten Haitzler 621a58de48 patches (see devel list) :)
SVN revision: 26725
2006-10-21 02:32:14 +00:00
Christopher Michael 0b853ce1dc Revert back to void for e_modapi_init.
SVN revision: 23222
2006-06-06 15:33:44 +00:00
Christopher Michael 73c623e0e8 e_modapi_init should return int, not void.
SVN revision: 23209
2006-06-06 10:00:21 +00:00
Carsten Haitzler 3a2144cad0 nice little overhaul of module related stuff. moduels now finally RELY on
module.eap files being installed - and using the e_apps api to load them and
ask for a name. Also icon is expected to be in this file too and i have
removed the info func call from modules as well as config_menu, module menus,
and other cruft in moduel structs. this also means revving the module api
version and saving users from a "if i recompile it will work" thing. :)
moduels need serious updates, not just a recompile for this. your modules
WILL break.


SVN revision: 23045
2006-06-01 06:44:37 +00:00
sebastid 9cb379777f Add const
SVN revision: 23024
2006-05-31 16:31:51 +00:00
Carsten Haitzler 7dc5dc0753 add icon provision for gadcon classes and label provider functions. also add
all the data, update and add new icons etc. etc.


SVN revision: 22495
2006-05-09 13:02:48 +00:00
Carsten Haitzler fbd972cdb9 e packages build again - also not much point having an enlightenment-data as
it's built as an arch specific package and it is intrinsically required by e
and cannot work without it nor is the data shared betwene e and other apps
unless e itself is installed too


SVN revision: 22260
2006-04-20 11:30:25 +00:00
handyande 00330faaf9 Move the manipulation of user specified policy flags (ALLOW_OVERLAP and ALWAYS_ON_TOP (not used yet)) to the gadman edit menu, saves a LOT of code inside modules
SVN revision: 21226
2006-03-12 16:12:59 +00:00
rephorm 99921a4b8a move the temperature module over to E_Gadget
i haven't been able to test that this fully works, since i don't have ACPI temperature sensors on here. but, it works to the extent that the old one did here, so it SHOULD be fine.


SVN revision: 20037
2006-01-26 05:40:17 +00:00
Carsten Haitzler 5f71f7acf5 2 pending patches in my inbox.
1. "allow overlap" patch for modules - needs better names in the gui (Allow
windows to overlap maybe - as allow overlap is very vague)
2. itray module (buggy - buggy - beware. i know why. beware i said!)
3. TODO items


SVN revision: 19911
2006-01-20 04:04:14 +00:00
Christopher Michael 6bf7badbe5 If a module has a config dialogue, destroy it on module shutdown
SVN revision: 19576
2006-01-06 21:45:57 +00:00
Carsten Haitzler 78d729a57b make symbol hiding actually work - fix some bugs, fixme's adjust bugs and
TODO, add exe history and actually use it etc.


SVN revision: 19313
2005-12-27 17:16:58 +00:00
Christopher Michael dcd8ed84ae Add clock config dialogue :)
SVN revision: 19050
2005-12-15 22:37:14 +00:00
sebastid f4498d11a3 New modapi!
If a module fails to load, don't unload it. Mark it with an error flag,
and ask the user if he wants to unload it.


SVN revision: 16918
2005-09-24 13:42:05 +00:00
sebastid 74f0aa00c7 Move module api check to module loader.
SVN revision: 16873
2005-09-23 17:13:47 +00:00