mirror of
https://gitlab.steamos.cloud/holo/steamos-manager.git
synced 2025-07-16 03:06:47 -04:00
wifi: Add method for generating and capturing an ath11k dump
This commit is contained in:
parent
7b7afffc46
commit
54351414fa
8 changed files with 210 additions and 5 deletions
|
@ -16,7 +16,8 @@ use steamos_manager::power::{CPUScalingGovernor, GPUPerformanceLevel, GPUPowerPr
|
|||
use steamos_manager::proxy::{
|
||||
AmbientLightSensor1Proxy, CpuScaling1Proxy, FactoryReset1Proxy, FanControl1Proxy,
|
||||
GpuPerformanceLevel1Proxy, GpuPowerProfile1Proxy, HdmiCec1Proxy, Manager2Proxy, Storage1Proxy,
|
||||
TdpLimit1Proxy, UpdateBios1Proxy, UpdateDock1Proxy, WifiDebug1Proxy, WifiPowerManagement1Proxy,
|
||||
TdpLimit1Proxy, UpdateBios1Proxy, UpdateDock1Proxy, WifiDebug1Proxy, WifiDebugDump1Proxy,
|
||||
WifiPowerManagement1Proxy,
|
||||
};
|
||||
use steamos_manager::wifi::{WifiBackend, WifiDebugMode, WifiPowerManagement};
|
||||
use zbus::fdo::{IntrospectableProxy, PropertiesProxy};
|
||||
|
@ -145,6 +146,9 @@ enum Commands {
|
|||
/// Get the Wi-Fi power management state
|
||||
GetWifiPowerManagementState,
|
||||
|
||||
/// Generate a Wi-Fi debug dump
|
||||
GenerateWifiDebugDump,
|
||||
|
||||
/// Get the state of HDMI-CEC support
|
||||
GetHdmiCecState,
|
||||
|
||||
|
@ -400,6 +404,11 @@ async fn main() -> Result<()> {
|
|||
Err(_) => println!("Got unknown value {state} from backend"),
|
||||
}
|
||||
}
|
||||
Commands::GenerateWifiDebugDump => {
|
||||
let proxy = WifiDebugDump1Proxy::new(&conn).await?;
|
||||
let path = proxy.generate_debug_dump().await?;
|
||||
println!("{path}");
|
||||
}
|
||||
Commands::SetHdmiCecState { state } => {
|
||||
let proxy = HdmiCec1Proxy::new(&conn).await?;
|
||||
proxy.set_hdmi_cec_state(*state as u32).await?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue