feat(src/commands): add power profile status output
The `status` command now displays the current power profile by reading `/sys/firmware/acpi/platform_profile`, giving users insight into power usage. New Features - Output power profile status to the console. Enhancements - Enriches status command with additional hardware information.
This commit is contained in:
1 file changed
+7
@@ -33,4 +33,11 @@ pub fn execute() {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Power Profile Status
|
||||
if let Ok(profile) = fs::read_to_string("/sys/firmware/acpi/platform_profile") {
|
||||
println!("Power Profile: {}", profile.trim());
|
||||
} else {
|
||||
println!("Power Profile: Unknown");
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user