Commit Graph

496 Commits

Author SHA1 Message Date
Victor Mataré
b1ad819e4e yamlconfig: clarify error message 2023-07-12 18:09:11 +02:00
Victor Mataré
1c20fda050 update man page
describe fan-specific levels: section
2023-07-12 17:53:09 +02:00
Victor Mataré
f375e6e64b unify initialization order 2023-07-12 17:53:09 +02:00
Victor Mataré
eae7624e3d make num_temps_ an optional field 2023-07-12 17:53:09 +02:00
Victor Mataré
35c1781c5d
Merge pull request #220 from leegarrett/patch-2
Fix build on RISC-V
2023-04-13 01:42:44 +02:00
Victor Mataré
926d5410c2
workflow: remove ubuntu-18.04 runner 2023-04-11 19:20:41 +02:00
Victor Mataré
6049d394eb
Merge pull request #202 from benyaminl/fedora-readme
Update README.md : Simple Fedora/EL based package
2023-04-07 16:02:29 +02:00
Victor Mataré
04500b3f02
Merge pull request #219 from leegarrett/patch-1
Fix man page section
2023-04-07 16:00:59 +02:00
Victor Mataré
5f03b5c7c2
Merge pull request #221 from leegarrett/patch-3
Add Documentation field to systemd unit
2023-04-07 16:00:17 +02:00
Victor Mataré
1412ed4006
Merge pull request #211 from bhundven/add_hwmon_model
Add hwmon model option
2023-04-07 15:55:17 +02:00
Victor Mataré
4566521577 main: re-init temp-state on conf reload 2023-02-24 17:38:52 +01:00
Lee Garrett
cc239129d0
Add Documentation field to systemd unit 2023-01-14 23:38:51 +01:00
Lee Garrett
a1e829c9e3
Fix build on RISC-V 2023-01-14 21:36:04 +01:00
Lee Garrett
49472634fc
Fix man page section 2023-01-14 20:33:49 +01:00
Victor Mataré
ebb11146ab
README: remove dead lgtm badges 2022-12-16 23:40:43 +01:00
Bryan Hundven
b90cd6e18c Add hwmon model option
On NVME devices a file is available to differentiate them by model.

My thinkpad has one internal NVME slot, but I also use external USB-C
and Thunderbolt NVME enclosures.

The internal slot shows up as hwmon3:
`/sys/class/hwmon/hwmon3/device/model`

Which contains:
`WD_BLACK SN770 1TB`
and some trailing white-space characters.

This change adds an option to allow you to specify the model with or
without the hwmon-name.

I have tested both configurations successfully:

```
  - hwmon: /sys/class/hwmon
    name: nvme
    model: WD_BLACK SN770 1TB
    indices: [1]
```
and
```
  - hwmon: /sys/class/hwmon
    model: WD_BLACK SN770 1TB
    indices: [1]
```

Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
2022-12-06 12:46:19 -08:00
Victor Mataré
c6e48a95b3 cmake: Add debian help to yaml-cpp error 2022-12-02 01:11:14 +01:00
Victor Mataré
4931599669
README: update debian deps list 2022-12-02 01:05:10 +01:00
Victor Mataré
981f9db97e yamlconfig: fix allowed_keywords check
should address #214.
2022-12-02 00:49:34 +01:00
Victor Mataré
88e240b573 yamlconfig: give proper error message on invalid keywords 2022-11-23 15:41:31 +01:00
Victor Mataré
ba61853510 always init temp_state after sensors init 2022-11-20 21:21:06 +01:00
Victor Mataré
951d7d2f84 thinkfan.conf.5: document optional devices 2022-11-20 03:49:58 +01:00
Victor Mataré
b50b0a0fff thinkfan.conf.5: improve layout
Should look better now, especially on HTML and PDF media.
2022-11-20 03:09:57 +01:00
Victor Mataré
8436612395 improve init error messages 2022-11-19 21:29:24 +01:00
Victor Mataré
92e65dd145 cleanup headers 2022-11-19 20:36:59 +01:00
Victor Mataré
3811265786 Log YAML syntax error on .conf files 2022-11-19 18:02:46 +01:00
Victor Mataré
9267a7e60d Provide assistance on disabled thinkpad_acpi fan control 2022-11-19 18:02:46 +01:00
Victor Mataré
7cf3831103
Merge pull request #205 from jorgectf/jorgectf/add-codeql-workflow
Add CodeQL workflow
2022-11-19 16:33:11 +01:00
Victor Mataré
77ac38ba37 yamlconfig: fix hwmon sensor with indices & correction
An actual bug found by the new CodeQL linter: When corrections were
specified on a hwmon sensor with indices, not all indices would be
initialized.
2022-11-19 16:28:01 +01:00
Victor Mataré
9b17d4440d fix minor CodeQL warnings 2022-11-19 14:00:16 +01:00
Victor Mataré
10df32f67b driver: tighten robust-IO higher-order FN sigs 2022-11-19 13:59:27 +01:00
Jorge
18e18103b3 Add CodeQL workflow 2022-11-10 20:40:07 +01:00
Benyamin Limanto
b49fd16ffa
Update README.md
adding EL/fedora readme
2022-10-27 20:16:06 +07:00
Victor Mataré
ba96af6fe4 fix help info on -b option 2022-09-21 20:53:53 +02:00
Victor Mataré
b5bf2e679c cmake: set project language to CXX 2022-08-25 17:08:38 +02:00
Victor Mataré
11ce000653
README: Add debian-specific setup instruction 2022-08-24 20:47:32 +02:00
Victor Mataré
0df1e9fa11
workflows: add ubuntu 22.04 build 2022-08-24 00:08:50 +02:00
Victor Mataré
61c1805432 factor out libsensors interface
We need to have a singleton libsensors interface because libsensors
imposes a shared state that is coupled to the the sensors available at
initialization. So to be able to detect newly appearing sensors, we need
to shutdown the entire libsensors interface and re-initialize it, in the
process destroying the state of all previously initialized sensors,
including those that may have already been in use.
2022-07-28 00:06:44 +02:00
Victor Mataré
6526bda41d
Merge pull request #188 from leegarrett/master
Remove path on sleep command
2022-07-23 17:41:07 +02:00
Lee Garrett
49724a9e6b Remove path on sleep command
sleep is traditionally installed to /bin/. Only systems with merged
/usr/{bin,lib,sbin}/ directories have it in /usr/bin/.
2022-06-14 00:45:22 +02:00
Victor Mataré
82ecd393c8 Revert "cmake: use yaml-cpp imported target"
This reverts commit 5da6a9f44a.

It's Ubuntu shipping an ancient libyaml-cpp. Who would have thought.
2022-05-24 00:40:53 +02:00
Victor Mataré
aa6f400b22 update config manpage for multi-fan support 2022-05-22 01:39:58 +02:00
Victor Mataré
5cfe3801d4 thinkfan.1: move warning to the beginning 2022-05-21 20:29:50 +02:00
Victor Mataré
5da6a9f44a cmake: use yaml-cpp imported target 2022-05-21 19:45:02 +02:00
Victor Mataré
f35abea0e8 fix TpFanDriver::lookup() 2022-05-07 14:29:57 +02:00
Victor Mataré
9405c08b80 cleanup & simplify hwmon config design & search logic 2022-05-04 20:41:49 +02:00
Victor Mataré
f683381532 TemperatureState: remove unused function decls 2022-05-01 16:18:56 +02:00
Victor Mataré
7ba83b93c4 move libsensors feature lookup into lookup() func 2022-04-15 15:19:01 +02:00
Victor Mataré
a7ab38f760 don't re-initialize sensors on wakeup
Sensors aren't designed to be regularly re-initialized and shouldn't
require it. In this case, we broke lm-sensors, causing a read out of
bounds and outrageous bias calculations.
2022-04-15 14:21:47 +02:00
Victor Mataré
93f865eb4d hwmon: improve error message on failed search 2022-04-13 20:12:15 +02:00