Commit Graph
11 Commits
Author SHA1 Message Date
Roman MakarovandIlya Zlobintsev accd313399 fix: amd tolerate emtpy power cap (#1234)
* fix: amd tolerate emtpy power cap

* chore: add rx6800m test data with broken power1_cap

---------

Co-authored-by: Ilya Zlobintsev <ilya.zl@protonmail.com>
2026-10-24 13:15:02 +03:00
Ilya Zlobintsev bd9aa0c1df feat: add UMA carveout option for AMD iGPUs (#1219)
* feat: UMA carveout daemon option

* feat: working UI

* chore: switch to released lib
2026-10-04 13:44:54 +03:00
Roman Makarov 7145befe5e fix: simplify amd apply config (#1175)
* wip

* use pl manual during OD changes

* add snapshot with non-standard p-lvl

* upd dep
2026-09-12 21:56:09 +03:00
Ilya Zlobintsev ac7181e8c9 chore: update 5700xt test data 2026-09-05 11:12:09 +03:00
Ilya Zlobintsev 7180e9e0b1 refactor: abstract and mock AMD DRM, expand mock to cover Vulkan/OpenCL (#1189)
* feat: abstract AMD DRM

* chore: add more test data

* feat: use same mock info for vulkan and opencl

* chore: drop commented code
2026-09-02 18:35:14 +03:00
Ilya Zlobintsev 4d02610d46 refactor: abstract away intel DRM logic, add a mock implementation (#1182)
* refactor: put intel drm logic behind a trait, add mock

* chore: use full device snapshot

* feat: make mock usable not just from tests
2026-08-29 17:48:57 +03:00
Roman Makarov c9fa4879a2 feat: support AMD profile performance-levels (#1170)
* feat: support AMD profile performance-levels

* add snapshot test
2026-08-22 23:34:51 +03:00
Davi Henrique LinharesandIlya Zlobintsev 238e315b81 feat: fan control for Intel Xe (needs patched kernel) (#1108)
* marking Intel with the fan control flag, if available

* static fan RPM control for Intel

* firmware fan control and checking if we can atually control the fans

* improved the messages

* fan curve suport for Intel

* consuming the result

* getting the fan curve from hwmon for Intel, if available

* getting the fan static speed from hwmon for Intel, if available

* getting the fan control mode from hwmon for Intel, if available

* checking if the fan control is enabled for Intel

* checking the curve points amount with the expose controllable points for Intel instead of hardcoding

* applying the fan settings to all exposed fans for Intel

* consuming the result

* applying the Intel fan curve in its own function

* applying the Intel fans static speed in its own function

* properly validating the fan curve for Intel

* getting the max fan speed for Intel, if available

* setting the remaining points based on the last point for Intel

* auto completing the missing curve points on Intel

* omitting points we probably auto completed for Intel

* properly auto completing the fan curve points for Intel

* only omitting the last fan curve points for Intel

* cargo fmt on intel.rs

* cargo clippy --fix --lib -p lact-daemon

* removed the "Option::" prefix

* removed the debug code

* using a result on "apply_fan_curve" and "is_valid_fan_curve"

* improved the Result handling in "apply_fan_curve"

* cargo fmt

* refactor: code cleanup, truncate read curve off configured one

* chore: minor cleanup

* added the get_hwmon_fan_curve and get_hwmon_fan_curve_points and renamed the old get_hwmon_fan_curve to get_truncated_hwmon_fan_curve

The new get_hwmon_fan_curve returns the fan curve from hwmon as is.
The get_hwmon_fan_curve_points returns a Vec with the hwmon fan curve as is, used on both get_hwmon_fan_curve and get_truncated_hwmon_fan_curve.
The get_truncated_hwmon_fan_curve returns the fan curve from hwmon, but some points may be ommited

* chore: update b580 test data with the fan curve

* feat: smarter fan curve truncation

* returning a single points if all points are the same, Intel xe

If all points are the same speed, we display the current FanControlMode as Static, so we can safely display one point in the curve

* safely getting the first point

---------

Co-authored-by: Ilya Zlobintsev <ilya.zl@protonmail.com>
2026-08-22 15:04:36 +03:00
Ilya Zlobintsev 2d8c36eaa8 chore: update a380-xe snapshot data 2026-08-17 13:42:20 +03:00
Roman Makarov 2f6bbfa3bc fix: add workaround for amd broken p-state indexes (#1097)
* fix: add workaround for amd broken p-state indexes

* upd snapshot

* reflect apply behaviour in rx9070 snapshot
2026-07-05 08:28:30 +03:00
Ilya Zlobintsev 8d23a31fff chore: move gpu test data to a shared directory (#1037) 2026-05-24 19:27:26 +03:00