Commit Graph

496 Commits

Author SHA1 Message Date
Victor Mataré
2c71decfad yaml: catch all RepresentationExceptions
Turns out that other exceptions than BadConversion can be triggered as
well if users have wrong entry structures. Unfortunately, current
yaml-cpp doesn't provide a Mark for many of these.
2020-04-06 04:21:53 +02:00
Victor Mataré
fec0073def CI: run installation as well 2020-04-06 03:23:30 +02:00
Victor Mataré
0e1e3a32ed README: minor formatting fix 2020-04-06 02:36:27 +02:00
Victor Mataré
cf5f1dd0d6 cmake: convert all indentation to tabs
whitespace change only!
2020-04-06 02:34:56 +02:00
Victor Mataré
67c6a55096 cmake: fix README.md install 2020-04-06 02:26:55 +02:00
Victor Mataré
773cca6cee drivers: fix log nvidia error log output 2020-04-04 18:07:54 +02:00
Victor Mataré
6988f5b87f
fix LGTM badges 2020-04-04 18:04:53 +02:00
Victor Mataré
e1e3d66a60
README: add LGTM badge 2020-04-04 18:01:55 +02:00
Victor Mataré
ab721a44e6 drivers: don't throw in ~NvmlSensorDriver() 2020-04-04 17:58:57 +02:00
Victor Mataré
9795e42057
README: fix markdown formatting 2020-04-04 17:50:36 +02:00
Victor Mataré
09260f4fa2
Convert README into markdown 2020-04-04 17:44:55 +02:00
Victor Mataré
aa6cbcf95c
CI: run apt as root 2020-04-04 17:40:00 +02:00
Victor Mataré
121edb0f04
CI: install deps 2020-04-04 17:35:42 +02:00
Victor Mataré
ba9bc1bea2
deploy CI build action 2020-04-04 17:32:12 +02:00
Victor Mataré
3da7bef88e use correct quotes in thinkfan.conf.5 2020-04-04 15:01:25 +02:00
Victor Mataré
f806447184 only use <execinfo.h> on glibc 2020-04-04 14:41:09 +02:00
Victor Mataré
c1329432c2 yamlconfig: replace NULL -> nullptr 2020-04-04 13:59:53 +02:00
Victor Mataré
2045cf2f53 systemd: thinkfan.service After sysinit.target
to make sure modules etc. are loaded before starting thinkfan
2020-04-04 12:21:18 +02:00
Victor Mataré
363586047a systemd: remove bogus service file 2020-04-04 12:15:40 +02:00
Victor Mataré
e32bfe7f2a systemd: wakeup after hibernate & hybrid-sleep also 2020-04-04 12:12:48 +02:00
Klaus Ethgen
7027a2db7e fix -p option parameter
fixes issue #83
2019-12-30 17:44:26 +01:00
Victor Mataré
5c0e3fd80b
Merge pull request #66 from mariobl/master
fix two more occurences of degrees char formatting in man page
2019-10-07 03:29:39 +02:00
Victor Mataré
0eb8260a55 work around weird libyaml-cpp bug
Somehow at the last element of the main entry sequence, dereferencing an
iterator of a sub-sequence leads to the toplevel node being reset. Don't
have the nerve to track down the real issue right now, but if we just
copy the toplevel node, it doesn't get overwritten. What a mess.
2019-10-05 00:16:51 +02:00
Victor Mataré
832a9c200c fix wrongly backported hwmon search 2019-10-02 23:19:29 +02:00
Victor Mataré
0c753dffe4 fix wrongly ported fan init
It was late. Seems I didn't split the multifan branch cleanly into
bugfixes and new features :-/
2019-10-02 23:18:29 +02:00
Victor Mataré
4223a25f3a minor cleanup 2019-10-02 23:07:48 +02:00
Victor Mataré
f9793cb510 add logger for char *
somehow strerror returns a mutable char *...?
2019-10-02 22:42:48 +02:00
Victor Mataré
7a1499956b fix hwmon index search
Thing broke down if the hwmon subdir was omitted and a file named
"device" was present
2019-10-02 02:43:30 +02:00
Victor Mataré
eb0b008c0f test config only when forking 2019-10-02 02:41:56 +02:00
Victor Mataré
6d1af975c7 fix initial state save/restore
Save in init, not in the constructor, since in that case we'd load the changed state
that has been set by thinkfan when we're reloading the config.
Also save only if it hasn't been save, yet, and restore only if
something has been saved.
2019-10-02 02:41:56 +02:00
Victor Mataré
9ec11a1a11 don't throw in destructors
found by LGTM
2019-10-02 02:41:56 +02:00
Victor Mataré
1e5c0e08cb
Merge pull request #69 from akheron/thermal-zone-name
Add support for searching hwmon sensors by name
2019-09-25 17:27:26 +02:00
Victor Mataré
a4dd08536e fix GCC diagnostic pragma 2019-09-25 17:15:02 +02:00
Victor Mataré
87eddab6a7 cmake: set default build type to RelWithDebInfo 2019-09-25 17:15:02 +02:00
Petri Lehtinen
eaae2dbd5b Add support for searching hwmon sensors by name
Add a new hwmon yaml config property "name", which initiates a
recursive search for a hwmon with that name, starting from the hwmon
path.
2019-09-25 08:52:26 +03:00
Mario Blättermann
91dbbdcb48 fix two more occurences of degrees char formatting in man page 2019-06-09 17:09:34 +02:00
Victor Mataré
7098291a66 fix degrees char formatting in man page
fixes issue #64, thanks to @mariobl for the patch.
2019-02-27 12:07:02 +01:00
Victor Mataré
594db25887 TpSensorDriver: fix read_temps() on linux-4.19
Seems that /proc/acpi/ibm/thermal suddenly has a newline at the end, so
f.eof() isn't true when we stop being able to read numbers from it, so
we ran into an infinite loop there.
2019-02-22 00:33:29 +01:00
Victor Mataré
bf7caf05c6 cmake: remove line breaks
So apparently RHEL/CentOS 7 ships with an ancient cmake that doesn't
support line breaks yet :-/
2019-01-31 21:32:41 +01:00
Victor Mataré
11fe72ca21 silence some warnings 2019-01-27 05:26:08 +01:00
Victor Mataré
f7b7db472b fix minor compiler warnings 2019-01-27 05:05:19 +01:00
Victor Mataré
b0fe8d152d
Merge pull request #61 from Whissi/modernize-openrc-runscript
openrc runscript: modernize
2019-01-27 04:47:02 +01:00
Victor Mataré
85c0faf494
Merge pull request #62 from herrfrei/master
Replaced __pid_t with pid_t
2019-01-27 04:41:30 +01:00
Torsten Pfuetzenreuter
ad2b5a77e3 Replaced __pid_t with pid_t 2019-01-21 15:33:40 +01:00
Thomas Deutschmann
3dd9938929
openrc runscript: modernize
- Use default start/stop method

- Set pidfile variable to make use of built-in status function

- Fix bashism
2019-01-19 05:57:25 +01:00
Victor Mataré
fd94d53263 fix watchdog ping
Commit #d395107 didn't fix the whole issue, we also need to subtract the
sleeptime now instead of adding it. Otherwise we'd always ping the
watchdog sleeptime seconds too late.
Thanks to github user @susanwl for spotting this.
2018-08-24 20:42:52 +02:00
Victor Mataré
5b5a547b6f config: properly disable YAML
yamlconfig.h include was unguarded. Fixes issue #54.
2018-07-16 22:22:33 +02:00
Victor Mataré
0f39158eb4
Merge pull request #53 from susanwl/master
Fix atasmart temperature correction
2018-05-29 11:22:22 +02:00
Susan Wilson
4d6f613e14 Fix atasmart temperature correction
previosly atasmart temp correction was ignored
2018-05-29 03:33:40 -05:00
Victor Mataré
3bb04a7165 cmake: don't overwrite systemd override.conf 2018-05-21 19:30:50 +02:00