mirror of
https://gitlab.com/asus-linux/asusctl.git
synced 2026-02-06 00:15:04 +01:00
Prep new version
This commit is contained in:
@@ -5,12 +5,13 @@ 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]
|
||||||
|
## [0.14.0] - 2020-01-07
|
||||||
### Changed
|
### Changed
|
||||||
- Further refine the way setting LED modes works so it is more universal, this
|
- Further refine the way setting LED modes works so it is more universal, this
|
||||||
also allows for setting the brightness through `SetKeyBacklight`
|
also allows for setting the brightness through `SetKeyBacklight`
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
- README_DBUS.md to document DBUS interface
|
- `README_DBUS.md` to document DBUS interface
|
||||||
- Dbus method `GetKeyBacklight`
|
- Dbus method `GetKeyBacklight`
|
||||||
- Dbus method `GetKeyBacklightModes`
|
- Dbus method `GetKeyBacklightModes`
|
||||||
|
|
||||||
|
|||||||
4
Cargo.lock
generated
4
Cargo.lock
generated
@@ -697,7 +697,7 @@ checksum = "cabe4fa914dec5870285fa7f71f602645da47c486e68486d2b4ceb4a343e90ac"
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "rog-client"
|
name = "rog-client"
|
||||||
version = "0.13.1"
|
version = "0.14.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"dbus",
|
"dbus",
|
||||||
"gumdrop",
|
"gumdrop",
|
||||||
@@ -710,7 +710,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "rog-daemon"
|
name = "rog-daemon"
|
||||||
version = "0.13.1"
|
version = "0.14.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"dbus",
|
"dbus",
|
||||||
"dbus-tokio",
|
"dbus-tokio",
|
||||||
|
|||||||
10
debian/changelog
vendored
10
debian/changelog
vendored
@@ -1,3 +1,13 @@
|
|||||||
|
rog-core (0.14.0) focal; urgency=medium
|
||||||
|
|
||||||
|
- Further refine the way setting LED modes works so it is more universal, this
|
||||||
|
also allows for setting the brightness through `SetKeyBacklight`
|
||||||
|
- `README_DBUS.md` to document DBUS interface
|
||||||
|
- Dbus method `GetKeyBacklight`
|
||||||
|
- Dbus method `GetKeyBacklightModes`
|
||||||
|
|
||||||
|
-- Luke Jones <luke@ljones.dev> Wed, 01 Jul 2020 11:04:34 +1200
|
||||||
|
|
||||||
rog-core (0.13.1) focal; urgency=medium
|
rog-core (0.13.1) focal; urgency=medium
|
||||||
|
|
||||||
* Properly initialise the device
|
* Properly initialise the device
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "rog-client"
|
name = "rog-client"
|
||||||
version = "0.13.1"
|
version = "0.14.0"
|
||||||
license = "MPL-2.0"
|
license = "MPL-2.0"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
authors = ["Luke <luke@ljones.dev>"]
|
authors = ["Luke <luke@ljones.dev>"]
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "rog-daemon"
|
name = "rog-daemon"
|
||||||
version = "0.13.1"
|
version = "0.14.0"
|
||||||
license = "MPL-2.0"
|
license = "MPL-2.0"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
authors = ["Luke <luke@ljones.dev>"]
|
authors = ["Luke <luke@ljones.dev>"]
|
||||||
|
|||||||
@@ -128,7 +128,6 @@ where
|
|||||||
} else {
|
} else {
|
||||||
self.write_effect(v).await?;
|
self.write_effect(v).await?;
|
||||||
}
|
}
|
||||||
return Ok(());
|
|
||||||
}
|
}
|
||||||
AuraModes::LedBrightness(n) => {
|
AuraModes::LedBrightness(n) => {
|
||||||
let bytes: [u8; LED_MSG_LEN] = (&mode).into();
|
let bytes: [u8; LED_MSG_LEN] = (&mode).into();
|
||||||
@@ -136,7 +135,6 @@ where
|
|||||||
config.brightness = n;
|
config.brightness = n;
|
||||||
config.write();
|
config.write();
|
||||||
info!("LED brightness set to {:#?}", n);
|
info!("LED brightness set to {:#?}", n);
|
||||||
return Ok(());
|
|
||||||
}
|
}
|
||||||
_ => {
|
_ => {
|
||||||
let mode_num: u8 = u8::from(&mode);
|
let mode_num: u8 = u8::from(&mode);
|
||||||
@@ -163,9 +161,9 @@ where
|
|||||||
config.set_mode_data(mode);
|
config.set_mode_data(mode);
|
||||||
config.write();
|
config.write();
|
||||||
info!("Switched LED mode to {:#?}", config.current_mode);
|
info!("Switched LED mode to {:#?}", config.current_mode);
|
||||||
return Ok(());
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ use rog_client::{
|
|||||||
};
|
};
|
||||||
use std::io::Write;
|
use std::io::Write;
|
||||||
|
|
||||||
static VERSION: &str = "0.13.1";
|
static VERSION: &str = "0.14.0";
|
||||||
|
|
||||||
#[derive(Options)]
|
#[derive(Options)]
|
||||||
struct CLIStart {
|
struct CLIStart {
|
||||||
|
|||||||
@@ -66,7 +66,7 @@ fn get_keyboard_backlight_modes(config: Arc<Mutex<Config>>) -> Method<MTSync, ()
|
|||||||
if let Ok(lock) = config.try_lock() {
|
if let Ok(lock) = config.try_lock() {
|
||||||
let mode = serde_json::to_string(&lock.builtin_modes).unwrap();
|
let mode = serde_json::to_string(&lock.builtin_modes).unwrap();
|
||||||
let mret = m.msg.method_return().append1(mode);
|
let mret = m.msg.method_return().append1(mode);
|
||||||
return Ok(vec![mret]);
|
Ok(vec![mret])
|
||||||
} else {
|
} else {
|
||||||
Err(MethodErr::failed("Could not lock config for access"))
|
Err(MethodErr::failed("Could not lock config for access"))
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user