-
-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Only setting one of index
or rpmChannel
is not enough
#230
Comments
The reason you are seeing both Can you try running the |
No errors when doing |
Hmm that's odd. The init command should raise the same error as the curve command if the configuration is invalid. Do you still get the error even after fixing the permissions? Do you get an error when running |
I haven't actually fixed the permission error. I think the permission issue (#229) is something beyond my current Linux knowledge. Like, I don't know why Once I figure the permission issue out, I'll update here if this issue is also gone or not.
Nope. No error from |
This comment was marked as off-topic.
This comment was marked as off-topic.
I also face similar issue when running Log
My config
And I also don't have any issues (and any curves) when running the
P.S. Config validates alright |
@mks-h There is a typo in your config: pwnChannel Although I am not sure if thats the actual issue 🤔 |
I guess this deserves another issue that config validation doesn't really validate :) Fixed the typo, but the problem stays. |
Well, the config is still valid even with this typo, since |
The issue is that the I'm not sure how to solve the issue, though — so I'm leaving it up to you. |
Thx for investigating, however, I am not sure I can follow your logic 🤔 See: Line 36 in 04ce45b
Line 41 in 04ce45b
|
Yes. And then https://github.com/markusressel/fan2go/blob/master/internal/hwmon/hwmon.go#L201 |
…figuration-twice-breaks-validation reset Configuration data before unmarshalling the config
Describe the bug
Only setting either one of
index
orrpmChannel
gives this error:must have one of index or rpmChannel, must be >= 1
.To Reproduce
$ fan2go detect
(I'm only posting relevant sections here):Click me to expand
Case 1: setting only
rpmChannel
(and alsopwmChannel
)a.
$ cat /etc/fan2go/fan2go.yaml
:Click me to expand
b.
# fan2go fan init -i fan-1
, I gotClick me to expand
Case 2: setting only
index
a.
$ cat /etc/fan2go/fan2go.yaml
:Click me to expand
b.
# fan2go fan init -i fan-1
, I gotClick me to expand
Expected behavior
No error messages.
Desktop (please complete the following information):
uname -a
: 6.3.2-arch1-1sensors -v
: sensors version 3.6.0+git with libsensors version 3.6.0+gitfan2go version
: commit c20619eThe text was updated successfully, but these errors were encountered: