Commit Graph

298 Commits

Author SHA1 Message Date
Alastair Poole 37a3dd3dfc temp: OpenBSD support all temperatures reported by driver. 2021-05-25 12:05:19 +01:00
Carsten Haitzler 8421011f78 temp - split bsd and linux code to make it easier to read 2021-05-20 14:50:47 +01:00
Carsten Haitzler 484c9f5818 e - module icons ... the great flattening begins... (partly done)
did a chunk of the module icons, but not all. it now matches flat.
2021-04-05 23:45:47 +01:00
Alastair Poole 02713d9bc6 temperature: Remove dead struct. 2021-03-11 19:09:30 +00:00
Alastair Poole e4d187602b temperature: FreeBSD.
As per Linux and OpenBSD.
2021-03-09 14:08:42 +00:00
Alastair Poole d8f4051d40 temperature: OpenBSD sensors.
As per-linux.
2021-03-09 12:36:42 +00:00
Carsten Haitzler e5bf0d66eb powersave - document som things and add screen blank override for pwrsv
add a screen power save mode than overrides regular powersave (bug is
subordinat to forced power save).
2020-11-12 15:28:54 +00:00
Christopher Michael ec1c6b42b4 temperature: Mark hdata paramater as unused
Compiler warns 'hdata' is unused, so mark it with EINA_UNUSED
2020-09-17 11:23:47 -04:00
Carsten Haitzler 695ea554f2 temp - remove unused local var 2020-09-17 10:21:12 +01:00
Carsten Haitzler 1d87379d47 temp - move entirely to hwmon based temp sensors on linux 2020-09-11 00:00:38 +01:00
Carsten Haitzler beb6041646 temp - bring back temp sesor select and nuke leaks on init 2020-08-20 15:20:46 +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
Elyes HAOUAS 4d51984286 tree-wide: get rid of trailing whitespace (part 11)
Remove trailing whitespaces

Reviewed-by: Stefan Schmidt <stefan@datenfreihafen.org>
Differential Revision: https://phab.enlightenment.org/D11831
2020-05-14 14:17:17 +02:00
Simon Tischer 136b30d354 temperature module settings - sizing/align optimizations
Reviewed-by: Christopher Michael <devilhorns@comcast.net>
Differential Revision: https://phab.enlightenment.org/D11685
2020-04-11 15:23:27 -04:00
Carsten Haitzler 135c5679fb warn - make buffer bigger to avoid trunc warn 2019-01-12 01:51:43 +00:00
Carsten Haitzler fdca24a82b warn - make buffer bigger to avoid trunc warn 2019-01-12 01:51:43 +00:00
Ross Vandegrift 629f7d41c8 clean up .desktop files and misc typos
Summary:
Drop deprecated Encoding key from desktop files

The Encoding key is no longer required, all desktop files are assumed to
be UTF-8 encoded.  See details at:
https://standards.freedesktop.org/desktop-entry-spec/1.1/apc.html

Fix various typos and misspellings

lintian, Debian's package checker, uses strings to check for common typos
in compiled binaries.  This change fixes the ones it identified in 0.22.1.

Reviewers: zmike!

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D5585
2018-01-04 09:57:52 -05:00
Al Poole 481a4d6611 build: fix meson build on FreeBSD.
Summary: -Dsystemd=false and -Ddevice-udev=false with this.

Reviewers: raster, zmike!

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D5648

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2017-12-15 11:32:20 -08:00
Mike Blumenkrantz bd88282047 remove autotools 2017-11-20 07:05:36 -05: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 4bc8df4cbb Fix bad formatting. 2017-09-11 13:37:14 -05: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
Marcel Hollerbach 29901d67b2 meson: use file instead of doing the relative path by hand
a reason for doing that is that you can just pack together targets into
a array and pass them to our helper, and the helper will just handle
them, so even module with eldbus codegen etc is now supported.

This also means that we are just passing the src object directly into
the shared_module call, which means the user of our helper can just pack
everything he needs into the src var and the helper does not need to
know about it.
2017-08-08 18:38:37 +02:00
Carsten Haitzler 6ab9c576df meosn build modules - more modules build with the generic builder harness
module build files are so much simpler now...
2017-07-30 17:07:57 +09:00
Carsten Haitzler 84bf48b3ed module build - clean up and fix meson install of pretty much all modules
so we';re missing installing desktop files. edj icon files, wizard
data files in the wrong place, and much more. this also cleans up the
module meson build of pretty much all modules and make their build
files cimple and consistent so it's far easier to re-use things from
one module to the next. we should aim for simplicity, consistency
between as much as possible so we can refactor and turn into maybe
functions later. imho that starts with consistency though. until i can
see all the common patterns clearly, i don't want to write functions
yet. it's easier to see if all the files are consistently using the
same vars and formatting etc. etc. etc.

but either way the installation needs fixing so it installs all files
in the right places with the right permissions etc. etc. etc.

this doesn't fix all module build files bt all the ones i found that
were broken installs and they use what i think is a cleaner/simpler
template, BUT there is far too much copy & pastage here... far too
much.i need to find a cleaner way to automate this.
2017-07-27 14:29:30 +09:00
Mike Blumenkrantz e8dc71cd48 meson. 2017-07-20 17:18:33 -04:00
Carsten Haitzler e7eaef62f3 powersave usage - dont use usleep at all. pwoersave sleep replaces it
also... there isn't realy a need to track the screensaver state...
powersave sleep will drop back to an hour between sleeps if we're in
freeze mode (it could be longer or even be indefinite). it will be
woken up if powersave state changes...
2017-07-19 10:31:20 +09:00
Al 'netstar' Poole d7538011ec Modules: Fix compilation and remove warnings for BSD 2017-07-15 21:32:11 -05:00
Mike Blumenkrantz b7e8e886e9 do not generate module.desktop files
the purpose of this is to allow variable substitutions, but no desktop
files do this so it's a waste of build time for no reason
2017-07-14 18:40:50 -04: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
Mike Blumenkrantz 1fe4555d7b remove eeze init/shutdown calls from modules
this is unnecessary and was done with mismatched init/shutdowns in some cases
2017-06-30 10:25:17 -04:00
Al Poole 5388ea5f42 modules: temperature: Fix spelling for temperature module.
Reviewers: zmike!

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D4500
2017-02-13 11:24:42 +01:00
Carsten Haitzler 482f338775 temp module - fix #if to be #if defined as it should be
fixes warning (valid warning)
2016-12-28 19:55:24 +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
Chris Michael ba035ff807 mark Ecore_Thread parameter as EINA_UNUSED
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2016-12-02 09:34:24 -05:00
Carsten Haitzler c5a293919b temperature module - more non-eeze system fixes
i have eeze so i didnt notice. thanks @netstar

fixes D4446
2016-12-02 11:53:54 +09:00
Al Poole f740616961 bsd patch from netstar fixing threaded tempget
this fixes T4945 .
2016-12-02 11:52:12 +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
Al Poole cf088eb989 Add temperature support for DragonFly BSD.
Reviewers: zmike!

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D4432
2016-11-28 10:43:28 -05:00
Carsten Haitzler bd43f07046 e temp module - kill tempget process not terminate to ensure death
it seems on openbsd sigterm doesnt kill things... sigkill does so move
to that. fixes T4121

@fix
2016-07-20 18:12:04 +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
Derek Foreman 68587276cf Clean up some header inclusion
Including certain headers in the wrong order can cause problems if
we're configured to use beta api (right now wayland forces this).

In most cases we should just be including e.h and not the individual
EFL headers anyway.  This fixes some of that.

fix T3426, T3428
2016-04-07 13:14:43 -04:00
Cedric BAIL 74dd6e8eee temperature: let's finally allow the temp process to rest also when enlightenment die. 2015-08-17 22:30:26 +02: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
Conrad Meyer b3a0b9be44 tempget: Add lm75(4) temperature source for non-x86 FreeBSD
Summary:
Another suggestion from Dmitry Luhtionov. I am told this sensor (on the
i2c bus) is more likely to be present on non-x86 systems (ARM, etc).

Reviewers: zmike, q66

Reviewed By: q66

Subscribers: cedric, seoz

Differential Revision: https://phab.enlightenment.org/D2345
2015-04-14 14:56:46 +01:00
Daniel Kolesa 4389030678 tempget: Add more temperature sources for FreeBSD
Summary:
Not all motherboards have 'hw.acpi.thermal.tz0.temperature' sensor.
Fallback to 'dev.cpu.0.temperature' (provided by coretemp(4) or
amdtemp(4)), or 'dev.aibs.0.temp.0' (aibs(4)) (per suggestion of Dmitry
Luhtionov).

Test Plan: Ran `src/modules/temperature/tempget` manually with some debugging printfs and various sensors commented out. I can only test tz0 and dev.cpu (coretemp(4)) on my system.

Reviewers: zmike, q66

Reviewed By: q66

Subscribers: seoz

Projects: #enlightenment-git

Differential Revision: https://phab.enlightenment.org/D2335
2015-04-13 11:02:33 +01:00
Mike Blumenkrantz 471dcb24cb __UNUSED__ -> EINA_UNUSED
this has been bugging me forever. __UNUSED__ is no longer a valid macro here.
2015-03-18 18:09:09 -04:00
Mike Blumenkrantz 09ec213a31 remove e_util_zone_current_get() usage 2015-03-13 17:58:45 -04:00