Bump version

This commit is contained in:
Luke
2020-05-23 14:40:42 +12:00
parent a25e7ddb27
commit 88d5343db8
6 changed files with 30 additions and 10 deletions

View File

@@ -5,10 +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.9.7] - 2020-23-05
### Changed ### Changed
- Start differentiating between models using the 0x1866 USB device - Start differentiating between models using the 0x1866 USB device
- Refactor how to send multizone over dbus, and how to write it (write 4 packets before writing SET/APPLY) - Refactor how to send multizone over dbus, and how to write it (write 4 packets before writing SET/APPLY)
- Begin implementing profiles per board_name - Begin implementing profiles per board_name
- Boost toggle for AMD (not freq adjustment yet)
## [0.9.6] - 2020-22-05 ## [0.9.6] - 2020-22-05
### Changed ### Changed

View File

@@ -17,7 +17,7 @@ I'm now looking at the kernel source to see if I can add the inputs correctly so
- [X] Setting/modifying built-in LED modes - [X] Setting/modifying built-in LED modes
- [X] Per-key LED setting (PARTIALLY COMPLETE) - [X] Per-key LED setting (PARTIALLY COMPLETE)
- [ ] Fancy LED modes (custom programs) - [X] Fancy LED modes (See examples)
- [X] Daemon mode - [X] Daemon mode
- [X] Saving settings for reload - [X] Saving settings for reload
- [ ] System control - [ ] System control
@@ -149,6 +149,14 @@ with the Aura keys will use the settings that were used via CLI.
### DBUS Input ### DBUS Input
Paths:
```rust
pub static DBUS_NAME: &str = "org.rogcore.Daemon";
pub static DBUS_PATH: &str = "/org/rogcore/Daemon";
pub static DBUS_IFACE: &str = "org.rogcore.Daemon";
```
Commands: `FanMode`, `LedWriteBytes`, `LedWriteMultizone`, `LedWriteEffect` Commands: `FanMode`, `LedWriteBytes`, `LedWriteMultizone`, `LedWriteEffect`
TODO: fill in this info TODO: fill in this info

9
debian/changelog vendored
View File

@@ -1,3 +1,12 @@
rog-core (0.9.7) focal; urgency=medium
* Start differentiating between models using the 0x1866 USB device
* Refactor how to send multizone over dbus, and how to write it (write 4 packets before writing SET/APPLY)
* Begin implementing profiles per board_name
* Boost toggle for AMD (not freq adjustment yet)
-- Luke Jones <luke@ljones.dev> Sat, 23 May 2020 14:38:57 +1200
rog-core (0.9.6) focal; urgency=medium rog-core (0.9.6) focal; urgency=medium
* Fix needing to double-tap fan-mode to change mode * Fix needing to double-tap fan-mode to change mode

View File

@@ -9,7 +9,7 @@ pub(crate) fn match_laptop() -> LaptopBase {
let device_desc = device.device_descriptor().unwrap(); let device_desc = device.device_descriptor().unwrap();
if device_desc.vendor_id() == 0x0b05 { if device_desc.vendor_id() == 0x0b05 {
match device_desc.product_id() { match device_desc.product_id() {
0x1869 | 0x1866 => return choose_1866_device(), 0x1869 | 0x1866 => return choose_1866_device(device_desc.product_id()),
0x1854 => { 0x1854 => {
info!("Found GL753 or similar"); info!("Found GL753 or similar");
return LaptopBase { return LaptopBase {
@@ -37,12 +37,12 @@ pub(crate) fn match_laptop() -> LaptopBase {
panic!("could not match laptop"); panic!("could not match laptop");
} }
fn choose_1866_device() -> LaptopBase { fn choose_1866_device(prod: u16) -> LaptopBase {
let dmi = sysfs_class::DmiId::default(); let dmi = sysfs_class::DmiId::default();
let board_name = dmi.board_name().expect("Could not get board_name"); let board_name = dmi.board_name().expect("Could not get board_name");
let mut laptop = LaptopBase { let mut laptop = LaptopBase {
usb_vendor: 0x0B05, usb_vendor: 0x0B05,
usb_product: 0x1866, usb_product: prod,
report_filter_bytes: vec![0x5a, 0x02], report_filter_bytes: vec![0x5a, 0x02],
min_led_bright: 0x00, min_led_bright: 0x00,
max_led_bright: 0x03, max_led_bright: 0x03,

View File

@@ -8,7 +8,7 @@ use rog_aura::{
AuraDbusWriter, LED_MSG_LEN, AuraDbusWriter, LED_MSG_LEN,
}; };
static VERSION: &'static str = "0.9.6"; static VERSION: &'static str = "0.9.7";
#[derive(Debug, Options)] #[derive(Debug, Options)]
struct CLIStart { struct CLIStart {

View File

@@ -124,13 +124,13 @@ impl RogCore {
let path = RogCore::get_fan_path()?; let path = RogCore::get_fan_path()?;
let mut fan_ctrl = OpenOptions::new().read(true).write(true).open(path)?; let mut fan_ctrl = OpenOptions::new().read(true).write(true).open(path)?;
info!("Fan mode set to: {:?}", FanLevel::from(n));
config.fan_mode = n; config.fan_mode = n;
fan_ctrl
.write_all(format!("{:?}", config.fan_mode).as_bytes())
.unwrap_or_else(|err| error!("Could not write to {}, {:?}", path, err));
self.set_pstate_for_fan_mode(FanLevel::from(n), config)?;
config.write(); config.write();
fan_ctrl
.write_all(format!("{:?}\n", config.fan_mode).as_bytes())
.unwrap_or_else(|err| error!("Could not write to {}, {:?}", path, err));
info!("Fan mode set to: {:?}", FanLevel::from(config.fan_mode));
self.set_pstate_for_fan_mode(FanLevel::from(n), config)?;
Ok(()) Ok(())
} }