Commit Graph

78 Commits

Author SHA1 Message Date
Richard Kuhnt
cbe1203fb0 Use .unwrap_or_default() in pwm_min/fan_min 2021-07-28 21:07:00 +02:00
Stefan Gehr
6b17d3815f Use pwm_min, pwm_max for converting speed to pwm
Don't hardcode 0 and 255 anymore. Instead use pwm_min and pwm_max as
boundaries when converting from a speed (0 to 100) to a pwm value.
0 gets mapped to pwm_min, 100 gets mapped to pwm_max everything inbetween
gets linearly interpoltated.
2021-07-20 09:53:22 +02:00
Stefan Gehr
90e212a158 Fanspeeds as floats, 0 is lowest speed, bugfixes
1. The fanspeeds can now be specified as floats for better granularity
2. Removed 4 as the lowest possible speed. Lowest possible value is now 0.0
3. min and max values are now correctly read for pwm1 and not the rpm
   values of fan1 anymore
4. Percentage speed now gets correctly converted to the pwm values
   (usually between 0 and 255)
5. Before the update of the pwm-value was skipped when the current speed
   was below minimum or above maximum. This got removed. Why was that
   there in the first place?
6. Simpler algorithm for speed_for_temp
7. in monitor the min value is now actually below MIN and the max value
   below MAX. Before it was swapped
8. Fixed grammar error "can's" instead of "can't"
2021-07-19 22:25:34 +02:00
Richard Kuhnt
56b5ff2f89 Convert speed value from config to PWM 2021-07-19 19:20:47 +02:00
Richard Kuhnt
73a0a4d7fc Compare target pwm value to pwm1_min and pwm1_max instead of fan rpm
- Add PWM values to monitor
2021-07-19 17:12:55 +02:00
Adrian Woźniak
0794605006
Primary license 2021-07-05 08:08:55 +02:00
Adrian Woźniak
6996d67ee5
Primary license 2021-07-05 08:07:06 +02:00
f121e165a5 Fix apache2 license file 2021-07-04 08:42:45 +02:00
8737403888
Merge pull request #5 from AuroransSolis/main
Add OpenRC service file
2021-07-04 08:06:00 +02:00
Aurorans Solis
ddf02e3b9c OpenRC service file. 2021-07-03 15:49:35 -07:00
Adrian Woźniak
408b5864cd
Test parse card0, move checking vendor 2021-07-04 00:09:20 +02:00
2b3a41cb9b
Update rust.yml 2021-07-04 00:09:20 +02:00
Adrian Woźniak
b39057c243
Add print version 2021-07-03 23:34:22 +02:00
Adrian Woźniak
be1cf97349
Merge branch 'main' of github.com:Eraden/amdgpud 2021-07-03 23:12:15 +02:00
Adrian Woźniak
f4b9723055
Switch to musl 2021-07-03 23:12:08 +02:00
bf4aa33b94
Update rust.yml 2021-07-03 16:05:42 +02:00
3b314e705f
Create rust.yml 2021-07-03 16:02:08 +02:00
Adrian Woźniak
43360a2037
Release filter by vendor fix 2021-07-03 15:39:52 +02:00
2bfad54d50 Add License 2021-07-03 09:16:33 +02:00
b458d1c0e7
Merge pull request #1 from AuroransSolis/main
Filter out non-AMD cards.
2021-07-03 09:09:22 +02:00
Aurorans Solis
6ba79825c9 Made suggested edits. 2021-07-02 15:37:05 -07:00
Aurorans Solis
04b828ab6c Filter out non-AMD cards. 2021-07-02 10:26:32 -07:00
Adrian Woźniak
b6a4c2e627
Add repository 2021-07-02 13:46:07 +02:00
Adrian Woźniak
e6ea159709
Initial 2021-07-02 13:42:39 +02:00
Adrian Woźniak
64881f6252
Initial 2021-07-02 13:42:05 +02:00
Adrian Woźniak
8f5d4f4098
Initial 2021-07-02 13:40:04 +02:00
Adrian Woźniak
779b4c08d9
Initial 2021-07-02 13:37:21 +02:00
Adrian Woźniak
8ce6bf86a1
Initial 2021-07-02 13:36:36 +02:00