Skip to content

Commit

Permalink
daemon: Always enable GPU power
Browse files Browse the repository at this point in the history
Always enable GPU power and rely on RTD3 to put the device into D3.
Prevents the device from being removed from the bus on boot.

Signed-off-by: Tim Crawford <tcrawford@system76.com>
  • Loading branch information
crawfxrd authored and jackpot51 committed Mar 25, 2022
1 parent 533f7f0 commit 1e1599a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/daemon.rs
Original file line number Diff line number Diff line change
Expand Up @@ -234,11 +234,11 @@ pub async fn daemon() -> Result<(), String> {
None
};

log::info!("Setting automatic graphics power");
match daemon.auto_graphics_power() {
log::info!("Setting graphics power");
match daemon.set_graphics_power(true) {
Ok(()) => (),
Err(err) => {
log::warn!("Failed to set automatic graphics power: {}", err);
log::warn!("Failed to set graphics power: {}", err);
}
}

Expand Down

0 comments on commit 1e1599a

Please sign in to comment.