Skip to content

Commit 69d1380

Browse files
committed
nvidia: Add comments
Run with: cargo build && sudo LD_LIBRARY_PATH=/nix/store/rz59zs1282j3c1779v6gfma9fkxa0j2h-nvidia-x11-570.153.02-6.14.8/lib/ ./target/debug/framework_tool --versions Signed-off-by: Daniel Schaefer <[email protected]>
1 parent ef68bbc commit 69d1380

File tree

1 file changed

+5
-1
lines changed
  • framework_lib/src/commandline

1 file changed

+5
-1
lines changed

framework_lib/src/commandline/mod.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -808,6 +808,7 @@ fn print_nvidia_details() {
808808
" Pwr Mgmt Limit Df:{:?}mW",
809809
device.power_management_limit_default()
810810
);
811+
// NotSupported
811812
println!(
812813
" Pwr Mgmt Limit: {:?}mW",
813814
device.power_management_limit()
@@ -821,7 +822,7 @@ fn print_nvidia_details() {
821822
" Total Energy: {:?}mJ",
822823
device.total_energy_consumption()
823824
);
824-
// 0 right now
825+
// 0/NotSupported right now
825826
println!(" Serialnum: {:?}", device.serial());
826827
println!(
827828
" Throttle Reason: {:?}",
@@ -834,9 +835,12 @@ fn print_nvidia_details() {
834835
//println!(" Temperature Thres:{:?}C", device.temperature_threshold());
835836
println!(" Util Rate: {:?}", device.utilization_rates());
836837
println!(" Memory Info: {:?}", device.memory_info());
838+
// Not supported
837839
println!(" Part Number: {:?}", device.board_part_number());
838840
println!(" Board ID: {:?}", device.board_id());
841+
// 0
839842
println!(" Num Fans: {:?}", device.num_fans());
843+
// Works
840844
println!(" Display Active?: {:?}", device.is_display_active());
841845
println!(" Display Conn?: {:?}", device.is_display_connected());
842846
}

0 commit comments

Comments
 (0)