Move anime data. Twiddle supergfxctl

This commit is contained in:
Luke D. Jones
2021-08-26 13:53:54 +12:00
parent 326ca37847
commit cf915b9e00
48 changed files with 30 additions and 87 deletions

View File

@@ -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)]

View File

@@ -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 {