diff --git a/Cargo.lock b/Cargo.lock index f597dae..5c45b26 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -53,9 +53,9 @@ checksum = "5c6cb57a04249c6480766f7f7cef5467412af1490f8d1e243141daddada3264f" [[package]] name = "amdgpu-sysfs" -version = "0.16.1" +version = "0.17.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "13879cbb65d9f6ebfb4e15a4096fefe442c45b4b93f7b273673d56e50aec3c5a" +checksum = "2175fc4ea95f486dfe93f657b3447cb58caed82d7d5fd3bcfdffdf6888ffce15" dependencies = [ "enum_dispatch", "serde", diff --git a/Cargo.toml b/Cargo.toml index d3a6aaf..060c930 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,7 +10,7 @@ members = [ ] [workspace.dependencies] -amdgpu-sysfs = { version = "0.16.1", features = ["serde"] } +amdgpu-sysfs = { version = "0.17.0", features = ["serde"] } serde = { version = "1.0", features = ["derive"] } serde_with = { version = "3.5.0", default-features = false, features = [ "macros", diff --git a/lact-daemon/src/server/gpu_controller/mod.rs b/lact-daemon/src/server/gpu_controller/mod.rs index 6f52a7f..fa2b3e3 100644 --- a/lact-daemon/src/server/gpu_controller/mod.rs +++ b/lact-daemon/src/server/gpu_controller/mod.rs @@ -745,10 +745,11 @@ impl GpuController { .ok(); if config.is_core_clocks_used() { - let mut table = self + let original_table = self .handle .get_clocks_table() .context("Failed to get clocks table")?; + let mut table = original_table.clone(); config .clocks_configuration .apply_to_table(&mut table) @@ -757,7 +758,7 @@ impl GpuController { debug!( "writing clocks commands: {:#?}", table - .get_commands() + .get_commands(&original_table) .context("Failed to get table commands")? ); @@ -765,7 +766,12 @@ impl GpuController { .handle .set_clocks_table(&table) .context("Could not write clocks table") - .with_context(|| format!("Clocks table commands: {:?}", table.get_commands()))?; + .with_context(|| { + format!( + "Clocks table commands: {:?}", + table.get_commands(&original_table) + ) + })?; commit_handles.push(handle); } diff --git a/lact-gui/src/app/root_stack/oc_page/power_profile/power_profile_heuristics_grid.rs b/lact-gui/src/app/root_stack/oc_page/power_profile/power_profile_heuristics_grid.rs index 0eb0011..0b12669 100644 --- a/lact-gui/src/app/root_stack/oc_page/power_profile/power_profile_heuristics_grid.rs +++ b/lact-gui/src/app/root_stack/oc_page/power_profile/power_profile_heuristics_grid.rs @@ -50,7 +50,7 @@ impl PowerProfileHeuristicsGrid { let name = &table.value_names[i]; let name_label = Label::builder() - .label(&format!("{name}:")) + .label(format!("{name}:")) .hexpand(true) .halign(gtk::Align::Start) .build();