Skip to content

Commit 7adba91

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 <dhs@frame.work>
1 parent d9b1afb commit 7adba91

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
@@ -774,6 +774,7 @@ fn print_nvidia_details() {
774774
" Pwr Mgmt Limit Df:{:?}mW",
775775
device.power_management_limit_default()
776776
);
777+
// NotSupported
777778
println!(
778779
" Pwr Mgmt Limit: {:?}mW",
779780
device.power_management_limit()
@@ -787,7 +788,7 @@ fn print_nvidia_details() {
787788
" Total Energy: {:?}mJ",
788789
device.total_energy_consumption()
789790
);
790-
// 0 right now
791+
// 0/NotSupported right now
791792
println!(" Serialnum: {:?}", device.serial());
792793
println!(
793794
" Throttle Reason: {:?}",
@@ -800,9 +801,12 @@ fn print_nvidia_details() {
800801
//println!(" Temperature Thres:{:?}C", device.temperature_threshold());
801802
println!(" Util Rate: {:?}", device.utilization_rates());
802803
println!(" Memory Info: {:?}", device.memory_info());
804+
// Not supported
803805
println!(" Part Number: {:?}", device.board_part_number());
804806
println!(" Board ID: {:?}", device.board_id());
807+
// 0
805808
println!(" Num Fans: {:?}", device.num_fans());
809+
// Works
806810
println!(" Display Active?: {:?}", device.is_display_active());
807811
println!(" Display Conn?: {:?}", device.is_display_connected());
808812
}

0 commit comments

Comments
 (0)