mirror of
https://gitlab.com/asus-linux/asusctl.git
synced 2026-02-06 00:15:04 +01:00
Cleanup after changes from Platform dbus rework
This commit is contained in:
1
Cargo.lock
generated
1
Cargo.lock
generated
@@ -225,6 +225,7 @@ dependencies = [
|
|||||||
"config-traits",
|
"config-traits",
|
||||||
"dmi_id",
|
"dmi_id",
|
||||||
"env_logger",
|
"env_logger",
|
||||||
|
"futures-lite",
|
||||||
"log",
|
"log",
|
||||||
"logind-zbus",
|
"logind-zbus",
|
||||||
"rog_anime",
|
"rog_anime",
|
||||||
|
|||||||
@@ -772,10 +772,10 @@ fn handle_bios_option(
|
|||||||
}
|
}
|
||||||
|
|
||||||
if let Some(opt) = cmd.post_sound_set {
|
if let Some(opt) = cmd.post_sound_set {
|
||||||
dbus.proxies().rog_bios().set_post_boot_sound(opt)?;
|
dbus.proxies().rog_bios().set_post_animation_sound(opt)?;
|
||||||
}
|
}
|
||||||
if cmd.post_sound_get {
|
if cmd.post_sound_get {
|
||||||
let res = dbus.proxies().rog_bios().post_boot_sound()? == 1;
|
let res = dbus.proxies().rog_bios().post_animation_sound()?;
|
||||||
println!("Bios POST sound on: {}", res);
|
println!("Bios POST sound on: {}", res);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -240,7 +240,7 @@ impl CtrlPlatform {
|
|||||||
platform_get_value!(self, egpu_enable, "egpu_enable")
|
platform_get_value!(self, egpu_enable, "egpu_enable")
|
||||||
}
|
}
|
||||||
|
|
||||||
/// ***************************************************************************
|
/// ************************************************************************
|
||||||
#[dbus_interface(property)]
|
#[dbus_interface(property)]
|
||||||
async fn ppt_pl1_spl(&self) -> Result<u8, FdoErr> {
|
async fn ppt_pl1_spl(&self) -> Result<u8, FdoErr> {
|
||||||
platform_get_value_if_some!(self, ppt_pl1_spl, "ppt_pl1_spl", 5)
|
platform_get_value_if_some!(self, ppt_pl1_spl, "ppt_pl1_spl", 5)
|
||||||
|
|||||||
@@ -39,13 +39,13 @@ pub struct BiosState {
|
|||||||
impl BiosState {
|
impl BiosState {
|
||||||
pub fn new(supported: &SupportedFunctions, dbus: &RogDbusClientBlocking<'_>) -> Result<Self> {
|
pub fn new(supported: &SupportedFunctions, dbus: &RogDbusClientBlocking<'_>) -> Result<Self> {
|
||||||
Ok(Self {
|
Ok(Self {
|
||||||
post_sound: if supported.rog_bios_ctrl.post_sound {
|
post_sound: if supported.rog_bios_ctrl.post_animation_sound {
|
||||||
dbus.proxies().rog_bios().post_boot_sound()? != 0
|
dbus.proxies().rog_bios().post_animation_sound()?
|
||||||
} else {
|
} else {
|
||||||
false
|
false
|
||||||
},
|
},
|
||||||
dedicated_gfx: if supported.rog_bios_ctrl.gpu_mux {
|
dedicated_gfx: if supported.rog_bios_ctrl.gpu_mux {
|
||||||
dbus.proxies().rog_bios().gpu_mux_mode()?
|
GpuMode::from(dbus.proxies().rog_bios().gpu_mux_mode()?)
|
||||||
} else {
|
} else {
|
||||||
GpuMode::NotSupported
|
GpuMode::NotSupported
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -325,7 +325,7 @@ impl ROGTray {
|
|||||||
|
|
||||||
let mut reboot_required = false;
|
let mut reboot_required = false;
|
||||||
if let Ok(mode) = gfx_dbus.gpu_mux_mode() {
|
if let Ok(mode) = gfx_dbus.gpu_mux_mode() {
|
||||||
let mode = match mode {
|
let mode = match GpuMode::from(mode) {
|
||||||
GpuMode::Discrete => GfxMode::AsusMuxDgpu,
|
GpuMode::Discrete => GfxMode::AsusMuxDgpu,
|
||||||
_ => GfxMode::Hybrid,
|
_ => GfxMode::Hybrid,
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -37,11 +37,11 @@ static mut POWER_BAT_CMD: Option<Command> = None;
|
|||||||
#[derive(Debug, Clone, Deserialize, Serialize)]
|
#[derive(Debug, Clone, Deserialize, Serialize)]
|
||||||
#[serde(default)]
|
#[serde(default)]
|
||||||
pub struct EnabledNotifications {
|
pub struct EnabledNotifications {
|
||||||
pub receive_notify_post_boot_sound: bool,
|
pub receive_post_animation_sound_changed: bool,
|
||||||
pub receive_notify_panel_od: bool,
|
pub receive_panel_od_changed: bool,
|
||||||
pub receive_notify_mini_led_mode: bool,
|
pub receive_mini_led_mode_changed: bool,
|
||||||
pub receive_notify_dgpu_disable: bool,
|
pub receive_dgpu_disable_changed: bool,
|
||||||
pub receive_notify_egpu_enable: bool,
|
pub receive_egpu_enable_changed: bool,
|
||||||
pub receive_notify_gpu_mux_mode: bool,
|
pub receive_notify_gpu_mux_mode: bool,
|
||||||
pub receive_notify_charge_control_end_threshold: bool,
|
pub receive_notify_charge_control_end_threshold: bool,
|
||||||
pub receive_notify_mains_online: bool,
|
pub receive_notify_mains_online: bool,
|
||||||
@@ -57,11 +57,11 @@ pub struct EnabledNotifications {
|
|||||||
impl Default for EnabledNotifications {
|
impl Default for EnabledNotifications {
|
||||||
fn default() -> Self {
|
fn default() -> Self {
|
||||||
Self {
|
Self {
|
||||||
receive_notify_post_boot_sound: false,
|
receive_post_animation_sound_changed: false,
|
||||||
receive_notify_panel_od: true,
|
receive_panel_od_changed: true,
|
||||||
receive_notify_mini_led_mode: true,
|
receive_mini_led_mode_changed: true,
|
||||||
receive_notify_dgpu_disable: true,
|
receive_dgpu_disable_changed: true,
|
||||||
receive_notify_egpu_enable: true,
|
receive_egpu_enable_changed: true,
|
||||||
receive_notify_gpu_mux_mode: true,
|
receive_notify_gpu_mux_mode: true,
|
||||||
receive_notify_charge_control_end_threshold: true,
|
receive_notify_charge_control_end_threshold: true,
|
||||||
receive_notify_mains_online: false,
|
receive_notify_mains_online: false,
|
||||||
@@ -127,6 +127,49 @@ macro_rules! recv_notif {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
macro_rules! recv_changed {
|
||||||
|
($proxy:ident,
|
||||||
|
$signal:ident,
|
||||||
|
$last_notif:ident,
|
||||||
|
$notif_enabled:ident,
|
||||||
|
$page_states:ident,
|
||||||
|
($($args: tt)*),
|
||||||
|
// ($($out_arg:tt)+),
|
||||||
|
$msg:literal,
|
||||||
|
$notifier:ident) => {
|
||||||
|
|
||||||
|
let notifs_enabled1 = $notif_enabled.clone();
|
||||||
|
let page_states1 = $page_states.clone();
|
||||||
|
|
||||||
|
tokio::spawn(async move {
|
||||||
|
let conn = zbus::Connection::system().await.map_err(|e| {
|
||||||
|
log::error!("zbus signal: {}: {e}", stringify!($signal));
|
||||||
|
e
|
||||||
|
}).unwrap();
|
||||||
|
let proxy = $proxy::new(&conn).await.map_err(|e| {
|
||||||
|
log::error!("zbus signal: {}: {e}", stringify!($signal));
|
||||||
|
e
|
||||||
|
}).unwrap();
|
||||||
|
info!("Started zbus signal thread: {}", stringify!($signal));
|
||||||
|
while let Some(e) = proxy.$signal().await.next().await {
|
||||||
|
if let Ok(out) = e.get().await {
|
||||||
|
if let Ok(config) = notifs_enabled1.lock() {
|
||||||
|
if config.all_enabled && config.$signal {
|
||||||
|
trace!("zbus signal {}", stringify!($signal));
|
||||||
|
$notifier($msg, &out).ok();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if let Ok(mut lock) = page_states1.lock() {
|
||||||
|
lock.$($args)+ = out;
|
||||||
|
lock.set_notified();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
sleep(Duration::from_millis(500)).await;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
pub fn start_notifications(
|
pub fn start_notifications(
|
||||||
config: &Config,
|
config: &Config,
|
||||||
page_states: &Arc<Mutex<SystemState>>,
|
page_states: &Arc<Mutex<SystemState>>,
|
||||||
@@ -157,62 +200,57 @@ pub fn start_notifications(
|
|||||||
}
|
}
|
||||||
|
|
||||||
// BIOS notif
|
// BIOS notif
|
||||||
recv_notif!(
|
recv_changed!(
|
||||||
RogBiosProxy,
|
RogBiosProxy,
|
||||||
receive_notify_post_boot_sound,
|
receive_post_animation_sound_changed,
|
||||||
last_notification,
|
last_notification,
|
||||||
enabled_notifications,
|
enabled_notifications,
|
||||||
page_states,
|
page_states,
|
||||||
(bios.post_sound),
|
(bios.post_sound),
|
||||||
(on),
|
|
||||||
"BIOS Post sound",
|
"BIOS Post sound",
|
||||||
do_notification
|
do_notification
|
||||||
);
|
);
|
||||||
|
|
||||||
recv_notif!(
|
recv_changed!(
|
||||||
RogBiosProxy,
|
RogBiosProxy,
|
||||||
receive_notify_panel_od,
|
receive_panel_od_changed,
|
||||||
last_notification,
|
last_notification,
|
||||||
enabled_notifications,
|
enabled_notifications,
|
||||||
page_states,
|
page_states,
|
||||||
(bios.panel_overdrive),
|
(bios.panel_overdrive),
|
||||||
(overdrive),
|
|
||||||
"Panel Overdrive enabled:",
|
"Panel Overdrive enabled:",
|
||||||
do_notification
|
do_notification
|
||||||
);
|
);
|
||||||
|
|
||||||
recv_notif!(
|
recv_changed!(
|
||||||
RogBiosProxy,
|
RogBiosProxy,
|
||||||
receive_notify_mini_led_mode,
|
receive_mini_led_mode_changed,
|
||||||
last_notification,
|
last_notification,
|
||||||
enabled_notifications,
|
enabled_notifications,
|
||||||
page_states,
|
page_states,
|
||||||
(bios.mini_led_mode),
|
(bios.mini_led_mode),
|
||||||
(on),
|
|
||||||
"MiniLED mode enabled:",
|
"MiniLED mode enabled:",
|
||||||
do_notification
|
do_notification
|
||||||
);
|
);
|
||||||
|
|
||||||
recv_notif!(
|
recv_changed!(
|
||||||
RogBiosProxy,
|
RogBiosProxy,
|
||||||
receive_notify_dgpu_disable,
|
receive_dgpu_disable_changed,
|
||||||
last_notification,
|
last_notification,
|
||||||
enabled_notifications,
|
enabled_notifications,
|
||||||
page_states,
|
page_states,
|
||||||
(bios.dgpu_disable),
|
(bios.dgpu_disable),
|
||||||
(disable),
|
|
||||||
"BIOS dGPU disabled",
|
"BIOS dGPU disabled",
|
||||||
do_notification
|
do_notification
|
||||||
);
|
);
|
||||||
|
|
||||||
recv_notif!(
|
recv_changed!(
|
||||||
RogBiosProxy,
|
RogBiosProxy,
|
||||||
receive_notify_egpu_enable,
|
receive_egpu_enable_changed,
|
||||||
last_notification,
|
last_notification,
|
||||||
enabled_notifications,
|
enabled_notifications,
|
||||||
page_states,
|
page_states,
|
||||||
(bios.egpu_enable),
|
(bios.egpu_enable),
|
||||||
(enable),
|
|
||||||
"BIOS eGPU enabled",
|
"BIOS eGPU enabled",
|
||||||
do_notification
|
do_notification
|
||||||
);
|
);
|
||||||
@@ -314,7 +352,7 @@ pub fn start_notifications(
|
|||||||
e
|
e
|
||||||
})
|
})
|
||||||
.unwrap();
|
.unwrap();
|
||||||
if let Ok(mut p) = proxy.receive_device_state().await {
|
if let Ok(mut p) = proxy.receive_notify_device_state().await {
|
||||||
info!("Started zbus signal thread: receive_device_state");
|
info!("Started zbus signal thread: receive_device_state");
|
||||||
while let Some(e) = p.next().await {
|
while let Some(e) = p.next().await {
|
||||||
if let Ok(out) = e.args() {
|
if let Ok(out) = e.args() {
|
||||||
@@ -345,25 +383,23 @@ pub fn start_notifications(
|
|||||||
|
|
||||||
let mut actual_mux_mode = GpuMode::Error;
|
let mut actual_mux_mode = GpuMode::Error;
|
||||||
if let Ok(mode) = proxy.gpu_mux_mode().await {
|
if let Ok(mode) = proxy.gpu_mux_mode().await {
|
||||||
actual_mux_mode = mode;
|
actual_mux_mode = GpuMode::from(mode);
|
||||||
}
|
}
|
||||||
|
|
||||||
if let Ok(mut p) = proxy.receive_notify_gpu_mux_mode().await {
|
info!("Started zbus signal thread: receive_notify_gpu_mux_mode");
|
||||||
info!("Started zbus signal thread: receive_notify_gpu_mux_mode");
|
while let Some(e) = proxy.receive_gpu_mux_mode_changed().await.next().await {
|
||||||
while let Some(e) = p.next().await {
|
if let Ok(out) = e.get().await {
|
||||||
if let Ok(out) = e.args() {
|
let mode = GpuMode::from(out);
|
||||||
if out.mode == actual_mux_mode {
|
if mode == actual_mux_mode {
|
||||||
continue;
|
continue;
|
||||||
}
|
|
||||||
if let Ok(mut lock) = page_states1.lock() {
|
|
||||||
lock.bios.dedicated_gfx = out.mode;
|
|
||||||
lock.set_notified();
|
|
||||||
}
|
|
||||||
do_mux_notification("Reboot required. BIOS GPU MUX mode set to", &out.mode)
|
|
||||||
.ok();
|
|
||||||
}
|
}
|
||||||
|
if let Ok(mut lock) = page_states1.lock() {
|
||||||
|
lock.bios.dedicated_gfx = mode;
|
||||||
|
lock.set_notified();
|
||||||
|
}
|
||||||
|
do_mux_notification("Reboot required. BIOS GPU MUX mode set to", &mode).ok();
|
||||||
}
|
}
|
||||||
};
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
if let Ok(lock) = page_states.try_lock() {
|
if let Ok(lock) = page_states.try_lock() {
|
||||||
|
|||||||
@@ -51,13 +51,13 @@ pub fn app_settings(config: &mut Config, states: &mut SystemState, ui: &mut Ui)
|
|||||||
.clicked()
|
.clicked()
|
||||||
|| ui
|
|| ui
|
||||||
.checkbox(
|
.checkbox(
|
||||||
&mut enabled_notifications.receive_notify_dgpu_disable,
|
&mut enabled_notifications.receive_dgpu_disable_changed,
|
||||||
"Enable dGPU disablement notification",
|
"Enable dGPU disablement notification",
|
||||||
)
|
)
|
||||||
.clicked()
|
.clicked()
|
||||||
|| ui
|
|| ui
|
||||||
.checkbox(
|
.checkbox(
|
||||||
&mut enabled_notifications.receive_notify_egpu_enable,
|
&mut enabled_notifications.receive_egpu_enable_changed,
|
||||||
"Enable eGPU enablement notification",
|
"Enable eGPU enablement notification",
|
||||||
)
|
)
|
||||||
.clicked()
|
.clicked()
|
||||||
@@ -81,19 +81,19 @@ pub fn app_settings(config: &mut Config, states: &mut SystemState, ui: &mut Ui)
|
|||||||
.clicked()
|
.clicked()
|
||||||
|| ui
|
|| ui
|
||||||
.checkbox(
|
.checkbox(
|
||||||
&mut enabled_notifications.receive_notify_panel_od,
|
&mut enabled_notifications.receive_panel_od_changed,
|
||||||
"Enable panel overdrive notification",
|
"Enable panel overdrive notification",
|
||||||
)
|
)
|
||||||
.clicked()
|
.clicked()
|
||||||
|| ui
|
|| ui
|
||||||
.checkbox(
|
.checkbox(
|
||||||
&mut enabled_notifications.receive_notify_mini_led_mode,
|
&mut enabled_notifications.receive_mini_led_mode_changed,
|
||||||
"Enable MiniLED mode notification",
|
"Enable MiniLED mode notification",
|
||||||
)
|
)
|
||||||
.clicked()
|
.clicked()
|
||||||
|| ui
|
|| ui
|
||||||
.checkbox(
|
.checkbox(
|
||||||
&mut enabled_notifications.receive_notify_post_boot_sound,
|
&mut enabled_notifications.receive_post_animation_sound_changed,
|
||||||
"Enable BIOS post sound notification",
|
"Enable BIOS post sound notification",
|
||||||
)
|
)
|
||||||
.clicked();
|
.clicked();
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ pub fn rog_bios_group(supported: &SupportedFunctions, states: &mut SystemState,
|
|||||||
.ok();
|
.ok();
|
||||||
}
|
}
|
||||||
|
|
||||||
if supported.rog_bios_ctrl.post_sound
|
if supported.rog_bios_ctrl.post_animation_sound
|
||||||
&& ui
|
&& ui
|
||||||
.add(egui::Checkbox::new(
|
.add(egui::Checkbox::new(
|
||||||
&mut states.bios.post_sound,
|
&mut states.bios.post_sound,
|
||||||
@@ -67,7 +67,7 @@ pub fn rog_bios_group(supported: &SupportedFunctions, states: &mut SystemState,
|
|||||||
.asus_dbus
|
.asus_dbus
|
||||||
.proxies()
|
.proxies()
|
||||||
.rog_bios()
|
.rog_bios()
|
||||||
.set_post_boot_sound(states.bios.post_sound)
|
.set_post_animation_sound(states.bios.post_sound)
|
||||||
.map_err(|err| {
|
.map_err(|err| {
|
||||||
states.error = Some(err.to_string());
|
states.error = Some(err.to_string());
|
||||||
})
|
})
|
||||||
@@ -118,7 +118,7 @@ pub fn rog_bios_group(supported: &SupportedFunctions, states: &mut SystemState,
|
|||||||
|
|
||||||
let mut reboot_required = false;
|
let mut reboot_required = false;
|
||||||
if let Ok(mode) = states.asus_dbus.proxies().rog_bios().gpu_mux_mode() {
|
if let Ok(mode) = states.asus_dbus.proxies().rog_bios().gpu_mux_mode() {
|
||||||
reboot_required = mode != states.bios.dedicated_gfx;
|
reboot_required = GpuMode::from(mode) != states.bios.dedicated_gfx;
|
||||||
}
|
}
|
||||||
|
|
||||||
ui.group(|ui| {
|
ui.group(|ui| {
|
||||||
|
|||||||
@@ -28,64 +28,69 @@ use zbus::dbus_proxy;
|
|||||||
default_path = "/org/asuslinux/Platform"
|
default_path = "/org/asuslinux/Platform"
|
||||||
)]
|
)]
|
||||||
trait RogBios {
|
trait RogBios {
|
||||||
/// DgpuDisable method
|
/// SupportedProperties method
|
||||||
|
fn supported_properties(&self) -> zbus::Result<Vec<String>>;
|
||||||
|
|
||||||
|
/// DgpuDisable property
|
||||||
|
#[dbus_proxy(property)]
|
||||||
fn dgpu_disable(&self) -> zbus::Result<bool>;
|
fn dgpu_disable(&self) -> zbus::Result<bool>;
|
||||||
|
|
||||||
/// EgpuEnable method
|
/// EgpuEnable property
|
||||||
|
#[dbus_proxy(property)]
|
||||||
fn egpu_enable(&self) -> zbus::Result<bool>;
|
fn egpu_enable(&self) -> zbus::Result<bool>;
|
||||||
|
|
||||||
/// GpuMuxMode method
|
/// GpuMuxMode property
|
||||||
fn gpu_mux_mode(&self) -> zbus::Result<GpuMode>;
|
#[dbus_proxy(property)]
|
||||||
|
fn gpu_mux_mode(&self) -> zbus::Result<u8>;
|
||||||
|
fn set_gpu_mux_mode(&self, value: GpuMode) -> zbus::Result<()>;
|
||||||
|
|
||||||
/// PanelOd method
|
/// MiniLedMode property
|
||||||
fn panel_od(&self) -> zbus::Result<bool>;
|
#[dbus_proxy(property)]
|
||||||
|
|
||||||
/// MiniLedMode method
|
|
||||||
fn mini_led_mode(&self) -> zbus::Result<bool>;
|
fn mini_led_mode(&self) -> zbus::Result<bool>;
|
||||||
|
fn set_mini_led_mode(&self, value: bool) -> zbus::Result<()>;
|
||||||
|
|
||||||
/// PostBootSound method
|
/// NvDynamicBoost property
|
||||||
fn post_boot_sound(&self) -> zbus::Result<i16>;
|
#[dbus_proxy(property)]
|
||||||
|
fn nv_dynamic_boost(&self) -> zbus::Result<u8>;
|
||||||
|
fn set_nv_dynamic_boost(&self, value: u8) -> zbus::Result<()>;
|
||||||
|
|
||||||
/// SetDgpuDisable method
|
/// NvTempTarget property
|
||||||
fn set_dgpu_disable(&self, disable: bool) -> zbus::Result<()>;
|
#[dbus_proxy(property)]
|
||||||
|
fn nv_temp_target(&self) -> zbus::Result<u8>;
|
||||||
|
fn set_nv_temp_target(&self, value: u8) -> zbus::Result<()>;
|
||||||
|
|
||||||
/// SetEgpuEnable method
|
/// PanelOd property
|
||||||
fn set_egpu_enable(&self, enable: bool) -> zbus::Result<()>;
|
#[dbus_proxy(property)]
|
||||||
|
fn panel_od(&self) -> zbus::Result<bool>;
|
||||||
|
fn set_panel_od(&self, value: bool) -> zbus::Result<()>;
|
||||||
|
|
||||||
/// SetGpuMuxMode method
|
/// PostAnimationSound property
|
||||||
fn set_gpu_mux_mode(&self, mode: GpuMode) -> zbus::Result<()>;
|
#[dbus_proxy(property)]
|
||||||
|
fn post_animation_sound(&self) -> zbus::Result<bool>;
|
||||||
|
fn set_post_animation_sound(&self, value: bool) -> zbus::Result<()>;
|
||||||
|
|
||||||
/// SetPanelOd method
|
/// PptApuSppt property
|
||||||
fn set_panel_od(&self, overdrive: bool) -> zbus::Result<()>;
|
#[dbus_proxy(property)]
|
||||||
|
fn ppt_apu_sppt(&self) -> zbus::Result<u8>;
|
||||||
|
fn set_ppt_apu_sppt(&self, value: u8) -> zbus::Result<()>;
|
||||||
|
|
||||||
/// SetminiLedMode
|
/// PptFppt property
|
||||||
fn set_mini_led_mode(&self, on: bool) -> zbus::Result<()>;
|
#[dbus_proxy(property)]
|
||||||
|
fn ppt_fppt(&self) -> zbus::Result<u8>;
|
||||||
|
fn set_ppt_fppt(&self, value: u8) -> zbus::Result<()>;
|
||||||
|
|
||||||
/// SetPostBootSound method
|
/// PptPl1Spl property
|
||||||
fn set_post_boot_sound(&self, on: bool) -> zbus::Result<()>;
|
#[dbus_proxy(property)]
|
||||||
|
fn ppt_pl1_spl(&self) -> zbus::Result<u8>;
|
||||||
|
fn set_ppt_pl1_spl(&self, value: u8) -> zbus::Result<()>;
|
||||||
|
|
||||||
/// NotifyDgpuDisable signal
|
/// PptPl2Sppt property
|
||||||
#[dbus_proxy(signal)]
|
#[dbus_proxy(property)]
|
||||||
fn notify_dgpu_disable(&self, disable: bool) -> zbus::Result<()>;
|
fn ppt_pl2_sppt(&self) -> zbus::Result<u8>;
|
||||||
|
fn set_ppt_pl2_sppt(&self, value: u8) -> zbus::Result<()>;
|
||||||
|
|
||||||
/// NotifyEgpuEnable signal
|
/// PptPlatformSppt property
|
||||||
#[dbus_proxy(signal)]
|
#[dbus_proxy(property)]
|
||||||
fn notify_egpu_enable(&self, enable: bool) -> zbus::Result<()>;
|
fn ppt_platform_sppt(&self) -> zbus::Result<u8>;
|
||||||
|
fn set_ppt_platform_sppt(&self, value: u8) -> zbus::Result<()>;
|
||||||
/// NotifyGpuMuxMode signal
|
|
||||||
#[dbus_proxy(signal)]
|
|
||||||
fn notify_gpu_mux_mode(&self, mode: GpuMode) -> zbus::Result<()>;
|
|
||||||
|
|
||||||
/// NotifyPanelOd signal
|
|
||||||
#[dbus_proxy(signal)]
|
|
||||||
fn notify_panel_od(&self, overdrive: bool) -> zbus::Result<()>;
|
|
||||||
|
|
||||||
/// NotifyMiniLedMode signal
|
|
||||||
#[dbus_proxy(signal)]
|
|
||||||
fn notify_mini_led_mode(&self, on: bool) -> zbus::Result<()>;
|
|
||||||
|
|
||||||
/// NotifyPostBootSound signal
|
|
||||||
#[inline]
|
|
||||||
#[dbus_proxy(signal)]
|
|
||||||
fn notify_post_boot_sound(&self, on: bool) -> zbus::Result<()>;
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user