Andrew Gaul
ca52e9cefd
Call nanosleep instead of sleep in polling loop
...
This avoids unnecessary rt_sigprocmask and rt_sigaction system calls.
2018-08-21 03:39:22 +05:30
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
e8850f682c
Plug little leak from reused variable
2018-08-21 03:36:14 +05:30
Andrew Gaul
ce3218407f
Check root privileges before running tests
...
References #155 .
2018-08-21 03:35:27 +05:30
Peter Evjan
33e936300f
Removed redundant systemd instructions
...
There were 3 sections giving advice on how to set up systemd. Removed
2 of them.
The first one under the Ubuntu header was incomplete, it didn't start
the service immediately. The 3rd one was already mentioned in the 2nd
section.
2018-08-21 02:04:29 +05:30
Daniel Graziotin
237eae73e8
Merge branch 'sasanj-mychanges'
2017-10-04 08:47:50 +00:00
Daniel Graziotin
72e457cd50
Merge branch 'mychanges' of git://github.com/sasanj/mbpfan into sasanj-mychanges
2017-10-04 08:47:16 +00:00
Daniel Graziotin
e0df856784
Merge branch 'gaul-warnings'
2017-10-04 08:41:52 +00:00
Daniel Graziotin
fcff5342d9
Merge branch 'warnings' of git://github.com/gaul/mbpfan into gaul-warnings
2017-10-04 08:38:42 +00:00
Daniel Graziotin
d6e4307919
Merge branch 'gaul-strings'
2017-10-04 08:33:15 +00:00
Daniel Graziotin
8130daa976
Merge branch 'strings' of git://github.com/gaul/mbpfan into gaul-strings
2017-10-04 08:31:12 +00:00
Daniel Graziotin
6486820199
Merge branch 'gaul-sigquit'
2017-10-04 08:28:17 +00:00
Daniel Graziotin
1da1639b3f
Merge branch 'sigquit' of git://github.com/gaul/mbpfan into gaul-sigquit
2017-10-04 08:24:54 +00:00
Daniel Graziotin
a794a53f68
Merge branch 'gaul-double-free'
2017-10-04 08:23:15 +00:00
Daniel Graziotin
a00c5b7507
Merge branch 'double-free' of git://github.com/gaul/mbpfan into gaul-double-free
2017-10-04 08:19:32 +00:00
Andrew Gaul
650471a273
Clean up string creation via smprintf and strdup
...
This fixes some bugs when using the incorrect strlen in strncat.
2017-08-16 18:27:57 -07:00
sasan
e45a1d7bf0
add credits where due.
...
added credit for using Kristensson's settings managment library.
2017-08-14 18:02:12 +04:30
sasan
160d44cd17
remove "-v" flag from systemd service file.
...
It spams the syslog every time the daemon is waked up.
2017-08-14 17:38:29 +04:30
sasan
14ce4b859f
add ".o" to object files
2017-08-14 16:12:47 +04:30
Daniel Graziotin
bd92a25b3d
Merge pull request #134 from DougBeney/patch-1
...
TOC, coretemp/applesmc directions, Macbook support, Solus
2017-08-10 22:49:36 +02:00
Doug Beney
7297a18e1a
TOC, coretemp/applesmc directions, Macbook support, Solus
...
I added a table of contents for easy navigation, added the directions you provided me on figuring out if my system has applesmc/coretemp installed, I added my Macbook to tested devices, and I added Solus to supported operating systems.
2017-08-10 15:46:56 -04:00
Andrew Gaul
8c2e11caae
Enable -Wall and -Wextra
2017-07-21 18:21:15 -07:00
Andrew Gaul
cc970129fa
Catch SIGQUIT
...
This resets automatic fan control.
2017-07-20 03:52:33 -07:00
Andrew Gaul
e95e19a3ea
Avoid freeing static strings
2017-07-20 03:50:53 -07:00
Daniel Graziotin
f1bdb616cd
Merge branch 'andrewgaul-reopen-fan'
2017-07-20 12:16:32 +02: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
Daniel Graziotin
b39ed3a0db
Merge branch 'andrewgaul-sigstop'
2017-07-20 09:36:36 +00:00
Daniel Graziotin
6c8dbec53f
Merge branch 'sigstop' of git://github.com/andrewgaul/mbpfan into andrewgaul-sigstop
2017-07-20 09:34:59 +00:00
Daniel Graziotin
88a9ce1c2c
Merge pull request #123 from andrewgaul/readme
...
Fix README nits
2017-07-20 09:30:14 +00:00
Daniel Graziotin
f3afd55720
Merge pull request #124 from andrewgaul/kernel-version
...
Correct kernel version message to >= 3.15.0
2017-07-20 09:29:33 +00:00
Daniel Graziotin
345b1d2fa1
Merge pull request #127 from andrewgaul/conditional
...
Rewrite confusing conditional
2017-07-20 09:28:33 +00: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
9034e1f843
Rewrite confusing conditional
2017-07-13 17:23:35 -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
Andrew Gaul
12a6bb0daa
Correct kernel version message to >= 3.15.0
...
This agrees with the other message which emits < 3.15.0.
2017-07-12 19:18:13 -07:00
Andrew Gaul
35f85c73c0
Fix README nits
2017-07-12 18:15:38 -07:00
Daniel Graziotin
5f2da79651
[ Fix #117 ] eliminate redundant exec() in check_requirements
2017-06-21 11:39:16 +02:00
Daniel Graziotin
f20a2274e1
[ #117 ] call closedir(dir) when checking requirements
2017-06-21 11:32:55 +02:00
Daniel Graziotin
4730988419
[ fix #118 ] protect macro definitions
2017-06-21 11:26:32 +02:00
Daniel Graziotin
3e88f702b1
[ Fixes #110 ] Merge branch 'gktrk-makefile_install_fix'
2017-06-21 11:23:17 +02:00
Daniel Graziotin
2eea94f885
Merge branch 'makefile_install_fix' of git://github.com/gktrk/mbpfan into gktrk-makefile_install_fix
2017-06-21 09:21:19 +00:00
Daniel Graziotin
ba97ea50b2
Merge pull request #109 from gktrk/readme-fix
...
Update the install instructions for Gentoo Linux
2017-04-03 09:08:49 +02:00
Göktürk Yüksek
d965ec7b1b
Makefile: do not call make recursively inside the install target
...
Instead of calling make inside the install target to make sure that
mbpfan is compiled prior to installing, declare $(BIN) as a
prerequisite for the target. This also enables parallel compilation
from the install target in addition to avoiding unnecessary
re-linking.
2017-04-02 16:43:59 -04:00
Göktürk Yüksek
7384b3ad9f
Update the install instructions for Gentoo Linux
2017-04-02 16:16:32 -04:00
Daniel Graziotin
d282619ea8
Merge pull request #108 from osleg/patch-1
...
Update README.md
2017-04-02 22:05:26 +02:00
Alex Kir
7590a5ae3f
Update README.md
2017-04-03 03:45:36 +08:00
Daniel Graziotin
1ee0e1f1fa
[ fix #92 ] support for CentOS w/ Linux 3.10.0 but new sensors path
2017-04-02 16:59:50 +00:00
Daniel Graziotin
592895dc61
[ Fix #105 ] fixed memory leak in retrieve_sensors()
2017-04-02 16:50:20 +00:00
Daniel Graziotin
565c5454c3
[ Fix #104 ] support for clang, makefile cleaned from 'rmusial-master'
2017-04-02 16:32:09 +00:00
Daniel Graziotin
c3e1c9c2b7
Reverted to old legacy kernel detection [ #92 needs investigation]
2017-04-02 16:31:39 +00:00