mirror of
https://gitlab.com/asus-linux/asusctl.git
synced 2026-02-06 00:15:04 +01:00
ROGCC: Don't notify user if changing to same mux mode
This commit is contained in:
@@ -5,6 +5,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|||||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
### Changed
|
||||||
|
- ROGCC: Don't notify user if changing to same mux mode
|
||||||
|
|
||||||
## [v4.5.6]
|
## [v4.5.6]
|
||||||
### Changed
|
### Changed
|
||||||
- Fix tasks not always running correctly on boot/sleep/wake/shutdown by finishing the move to async
|
- Fix tasks not always running correctly on boot/sleep/wake/shutdown by finishing the move to async
|
||||||
|
|||||||
@@ -310,10 +310,19 @@ pub fn start_notifications(
|
|||||||
e
|
e
|
||||||
})
|
})
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
|
||||||
|
let mut actual_mux_mode = GpuMode::Error;
|
||||||
|
if let Ok(mode) = proxy.gpu_mux_mode().await {
|
||||||
|
actual_mux_mode = mode;
|
||||||
|
}
|
||||||
|
|
||||||
if let Ok(mut p) = proxy.receive_notify_gpu_mux_mode().await {
|
if let Ok(mut p) = proxy.receive_notify_gpu_mux_mode().await {
|
||||||
info!("Started zbus signal thread: receive_power_states");
|
info!("Started zbus signal thread: receive_power_states");
|
||||||
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() {
|
||||||
|
if out.mode == actual_mux_mode {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
if let Ok(mut lock) = page_states1.lock() {
|
if let Ok(mut lock) = page_states1.lock() {
|
||||||
lock.bios.dedicated_gfx = out.mode;
|
lock.bios.dedicated_gfx = out.mode;
|
||||||
lock.set_notified();
|
lock.set_notified();
|
||||||
|
|||||||
Reference in New Issue
Block a user