Andrew Gaul
abda2b8901
Add logging/printing helper
...
This eliminates duplicate code, fixes some log levels, and removes
unnecessary trailing newlines. Fixes #202 .
2019-10-30 15:45:59 -07:00
Andrew Gaul
d818571a78
Fix clang-tidy issues
2019-10-28 23:35:58 -07:00
Andrew Gaul
4f3cdfca3b
Label fans during logging
...
This is more useful on desktops than laptops.
2019-10-07 20:02:43 -07:00
mikaelbjoern
50f3a67ab4
Add support for many processors (not just cores)
...
Add an outer loop in mbpfan.c:retrieve_sensors to loop over all coretemp
directories. Also increase hard-coded limits from 10 to 12 or 16 since
the temp endpoints are sometimes indexed that high.
For example, this is required for supporting a Mac Pro with two processors
of 16 cores, requiring
/sys/devices/platform/coretemp.0/hwmon/hwmon0/temp{1..12}
/sys/devices/platform/coretemp.1/hwmon/hwmon1/temp{1..12}
Fixes #152 .
2019-01-18 11:26:11 -08:00
Andrew Gaul
8c89a671e8
Address GCC 7 warnings
2018-08-20 15:19:26 -07:00
Andrew Gaul
6aba92d649
Configure timer slack for 1 second
...
This allows the kernel scheduler to coalesce wakeups, improving
battery life. Linux defaults to 50 ms slack. Reference:
http://lwn.net/Articles/369549/
2018-08-21 03:37:52 +05:30
Andrew Gaul
cc970129fa
Catch SIGQUIT
...
This resets automatic fan control.
2017-07-20 03:52:33 -07:00
Daniel Graziotin
b2cd98448f
Merge branch 'reopen-fan' of git://github.com/andrewgaul/mbpfan into andrewgaul-reopen-fan
2017-07-20 12:06:28 +02:00
Andrew Gaul
399aad782a
Do not repeatedly reopen fan and sensor devices
...
This avoids unnecessary system calls and saves battery.
2017-07-14 21:56:05 -07:00
Andrew Gaul
230f0be087
Do not attempt to catch uncatchable SIGSTOP
...
Eliminates a Valgrind warning:
==19239== Warning: ignored attempt to set SIGSTOP handler in sigaction();
==19239== the SIGSTOP signal is uncatchable
2017-07-12 20:04:38 -07:00
Robert Musial
e7dd42e125
changes to legacy kernel detection
2017-03-27 11:44:34 -04:00
Robert Musial
591b37a0e3
Update daemon.c
2017-03-26 01:53:12 -04:00
Robert Musial
e2a62a9d21
Update daemon.c
2017-03-24 18:01:41 -04:00
Robert Musial
8ed45aa5c2
Update daemon.c
2017-03-22 00:31:11 -04:00
Robert Musial
c52a624bac
Update daemon.c
2017-03-20 14:15:58 -04:00
Robert Musial
a99aaad680
Changes to be committed:
...
modified: AUTHORS
Updated personal info.
modified: Makefile
Beginning work to clean up Makefile. The original makefile appeared
to be checking if the system was Windows NT. Since this is for GNU/
Linux, that was removed. Also all of the code is C, but the
Makefile was calling the C++ compiler to hide bool issues and
missing typedefs (which C++ is ok with but C is not).
modified: src/daemon.c
Added structs, added stdbool.h
modified: src/main.c
Added stdbool.h
modified: src/mbpfan.c
Added stdbool.h
modified: src/minunit.c
Added stdbool.h
2017-03-19 13:43:55 -04:00
Daniel Graziotin
adccefb1f7
polished authorship status at beginning of files
2016-08-29 10:29:11 +02:00
Thomas Burette
976aa809ab
Fix execution right mistakenly set on source file
2015-06-18 17:06:32 +02:00
Daniel Graziotin
81347162d6
Merge pull request #50 from oliviertilmans/cleanup_resources
...
Cleanup resources on exit
2015-01-29 11:33:15 +01:00
Marji Cermak
63c95fd17d
refs #52 : try to remove stale pid file instead of aborting.
2015-01-14 16:38:30 +11:00
Olivier Tilmans
93f2fd4410
cleaning up resources on exit
2014-07-27 20:02:39 +02:00
otilmans@gmail.com
511d348adb
Handle back control to applesmc on exit
2014-07-21 23:45:08 +02:00
Daniel Graziotin
473a12fd29
correct use of EXIT_SUCCESS and EXIT_FAILURE, fixes #43
2014-06-29 12:42:52 +02:00
Daniel Graziotin
2b1606025e
Fixed conflict
2014-06-22 17:13:10 +02:00
Daniel Graziotin
d14c7107e8
Almost done with #38 .
2014-06-22 16:48:44 +02:00
Daniel Graziotin
6bfe9325c3
Support for kernel >= 3.15
2014-06-21 19:35:56 +02:00
Daniel Graziotin
a2dacfde05
Fixes #4 . Adds some tests for #28
2012-11-18 22:16:49 +01:00
Daniel Graziotin
33a3710995
Fixes #27
2012-11-12 11:48:05 +01:00
Daniel Graziotin
eda8443906
Fixes #26
2012-10-20 17:18:30 +02:00
Daniel Graziotin
1f8131bd9d
Fixes #18 . Seems ready for v1.4.0
2012-08-23 22:32:49 +02:00
Daniel Graziotin
fcf18f52cf
Cleanup, reformatting, better Makefile and better README
2012-08-22 15:05:52 +02:00
CeRiAl
6ea021ad78
Added support for configfile /etc/mbpfan.conf
2012-07-05 01:22:48 +02:00
Daniel Graziotin
1078814133
Fixes #10
2012-06-16 11:02:48 +02:00
Daniel Graziotin
a6cc7a45b6
(sort of) fixes #8
2012-06-15 21:47:23 +02:00
Daniel Graziotin
7e65d1e658
Fixes #9
2012-06-15 21:07:11 +02:00
Daniel Graziotin
cd3c15ba9d
Fixes #1 and #2
2012-06-11 21:43:53 +02:00