mirror of
https://gitlab.com/asus-linux/asusctl.git
synced 2026-02-06 00:15:04 +01:00
Move anime data. Twiddle supergfxctl
This commit is contained in:
@@ -1,10 +1,8 @@
|
||||
use log::{error, info, warn};
|
||||
use log::{error, warn};
|
||||
use serde_derive::{Deserialize, Serialize};
|
||||
use std::fs::{File, OpenOptions};
|
||||
use std::io::{Read, Write};
|
||||
|
||||
use crate::VERSION;
|
||||
|
||||
pub static CONFIG_PATH: &str = "/etc/asusd/asusd.conf";
|
||||
|
||||
#[derive(Deserialize, Serialize)]
|
||||
|
||||
@@ -28,7 +28,6 @@ use std::sync::Arc;
|
||||
use std::sync::Mutex;
|
||||
|
||||
use daemon::ctrl_rog_bios::CtrlRogBios;
|
||||
use zvariant::ObjectPath;
|
||||
|
||||
static PROFILE_CONFIG_PATH: &str = "/etc/asusd/profile.conf";
|
||||
|
||||
@@ -183,18 +182,18 @@ fn start_daemon() -> Result<(), Box<dyn Error>> {
|
||||
});
|
||||
|
||||
// Run zbus server
|
||||
object_server
|
||||
.with(
|
||||
&ObjectPath::from_str_unchecked("/org/asuslinux/Charge"),
|
||||
|obj: &CtrlCharge| {
|
||||
let x = obj.limit();
|
||||
obj.notify_charge(x as u8)
|
||||
},
|
||||
)
|
||||
.map_err(|err| {
|
||||
warn!("object_server notify_charge error: {}", err);
|
||||
})
|
||||
.ok();
|
||||
// object_server
|
||||
// .with(
|
||||
// &ObjectPath::from_str_unchecked("/org/asuslinux/Charge"),
|
||||
// |obj: &CtrlCharge| {
|
||||
// let x = obj.limit();
|
||||
// obj.notify_charge(x as u8)
|
||||
// },
|
||||
// )
|
||||
// .map_err(|err| {
|
||||
// warn!("object_server notify_charge error: {}", err);
|
||||
// })
|
||||
// .ok();
|
||||
|
||||
// Loop to check errors and iterate zbus server
|
||||
loop {
|
||||
|
||||
Reference in New Issue
Block a user