mirror of
https://gitlab.com/asus-linux/asusctl.git
synced 2026-02-06 00:15:04 +01:00
Use systemctl to suspend
This commit is contained in:
@@ -114,6 +114,12 @@ impl Laptop for LaptopGX502GW {
|
||||
GX502GWKeys::ScreenBrightDown => {
|
||||
self.backlight.step_down();
|
||||
}
|
||||
GX502GWKeys::Sleep => {
|
||||
std::process::Command::new("systemctl")
|
||||
.arg("suspend")
|
||||
.spawn()
|
||||
.expect("failed to suspend");
|
||||
}
|
||||
_ => {
|
||||
if key_byte != 0 {
|
||||
dbg!(&key_byte);
|
||||
|
||||
Reference in New Issue
Block a user