Commit Graph

100 Commits

Author SHA1 Message Date
Stefan Gehr
0539f0b515 Workaround for service starting before hwmon paths
Let the service fail when there are no hwmon paths yet.
2021-08-02 00:08:04 +02:00
Stefan Gehr
e5cac912c1 Correct ExecStart-Path for systemd-service
Also added correct dependency local-fs.target
But often the hwmon paths are still not resolved when the service starts ¯\_(ツ)_/¯
2021-08-02 00:05:21 +02:00
Stefan Gehr
35532b1eb7 Simplifications and fixes for edge cases
monitor.rs: Removed hardcoded pwm-range of 0 to 255 and instead
correctly interpolate between pwm_min() and pwm_max()
main.rs: Simpler comparison to check whether temperature changed since
last time
hw_mon.rs: Removed unnecessary conversions between u32 and u64
2021-08-02 00:02:03 +02:00
Adrian Woźniak
c5f968fcf9
Move hw_mod to own file. 2021-07-31 22:42:58 +02:00
Adrian Woźniak
365c58ff37
Move errors to own file. Move monitor to own file. 2021-07-31 22:40:57 +02:00
Adrian Woźniak
8c5fa618c3
Refactor after review 2021-07-31 22:33:32 +02:00
6eeeb3a487
Update src/main.rs
Co-authored-by: Richard Kuhnt <r15ch13+git@gmail.com>
2021-07-31 20:34:41 +02:00
73369978ca
Update src/main.rs
Co-authored-by: Richard Kuhnt <r15ch13+git@gmail.com>
2021-07-31 20:33:45 +02:00
Adrian Woźniak
cfa9867e3d
Refactor, fix broken resolve conflicts, add verbose monitor, skip update speed if temp didn't changed. 2021-07-30 21:34:31 +02:00
1484daee9a
Merge pull request #13 from Eraden/compress-binary
Compress binary
2021-07-30 13:02:32 +02:00
Adrian Woźniak
768c0e6dce
Add sudo 2021-07-30 12:50:59 +02:00
Adrian Woźniak
01aa49f761
Compress binary 2021-07-30 12:50:59 +02:00
Adrian Woźniak
41571459d6
Move start service to graphical 2021-07-30 12:48:22 +02:00
Adrian Woźniak
f69465843f
Move start service to graphical 2021-07-30 10:22:38 +02:00
2c7dd81a30
Merge pull request #12 from Eraden/service-fix
Move start service after graphics
2021-07-29 10:45:45 +02:00
ac1daf69ea
Merge pull request #9 from BoostCookie/main
Fanspeeds as floats, 0 is lowest speed, bugfixes
2021-07-29 10:40:00 +02:00
20214db390
Update main.rs 2021-07-29 10:32:21 +02:00
e9985d50b5
Update main.rs 2021-07-29 10:28:13 +02:00
c54bdc0af0
Update main.rs 2021-07-29 10:21:26 +02:00
fe2ed25ff7
Merge branch 'main' into main 2021-07-29 10:10:19 +02:00
21300d4d48 Move start service after graphics. NOTE: graphic is always after multi-user 2021-07-28 22:49:06 +02:00
136a61f65a
Merge pull request #7 from r15ch13/vega-fix
Compare target pwm value to pwm1_min and pwm1_max instead of fan rpm
2021-07-28 21:22:38 +02:00
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