mirror of
https://gitlab.com/asus-linux/asusctl.git
synced 2026-02-06 00:15:04 +01:00
Update all cargo.toml. Support G713P
This commit is contained in:
@@ -7,6 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
|
### Added
|
||||||
|
|
||||||
|
- Support the G713P keyboard
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
|
||||||
|
- Update all `Cargo.toml`
|
||||||
|
|
||||||
## [v6.0.0]
|
## [v6.0.0]
|
||||||
|
|
||||||
### Important note
|
### Important note
|
||||||
|
|||||||
13
Cargo.toml
13
Cargo.toml
@@ -27,6 +27,13 @@ resolver = "2"
|
|||||||
[workspace.package]
|
[workspace.package]
|
||||||
version = "6.0.0"
|
version = "6.0.0"
|
||||||
rust-version = "1.77"
|
rust-version = "1.77"
|
||||||
|
license = "MPL-2.0"
|
||||||
|
readme = "README.md"
|
||||||
|
authors = ["Luke <luke@ljones.dev>"]
|
||||||
|
repository = "https://gitlab.com/asus-linux/asusctl"
|
||||||
|
homepage = "https://gitlab.com/asus-linux/asusctl"
|
||||||
|
description = "Laptop feature control for ASUS ROG laptops and others"
|
||||||
|
edition = "2021"
|
||||||
|
|
||||||
[workspace.dependencies]
|
[workspace.dependencies]
|
||||||
tokio = { version = "^1.36.0", default-features = false, features = [
|
tokio = { version = "^1.36.0", default-features = false, features = [
|
||||||
@@ -77,11 +84,13 @@ lto = "fat"
|
|||||||
debug = false
|
debug = false
|
||||||
opt-level = 3
|
opt-level = 3
|
||||||
panic = "abort"
|
panic = "abort"
|
||||||
codegen-units = 1
|
#codegen-units = 1
|
||||||
|
|
||||||
[profile.dev]
|
[profile.dev]
|
||||||
opt-level = 1
|
opt-level = 1
|
||||||
codegen-units = 16
|
|
||||||
|
[profile.dev.package."*"]
|
||||||
|
opt-level = 1
|
||||||
|
|
||||||
[profile.bench]
|
[profile.bench]
|
||||||
debug = false
|
debug = false
|
||||||
|
|||||||
@@ -1,9 +1,12 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "asusctl"
|
name = "asusctl"
|
||||||
license = "MPL-2.0"
|
license.workspace = true
|
||||||
authors = ["Luke D Jones <luke@ljones.dev>"]
|
|
||||||
edition = "2021"
|
|
||||||
version.workspace = true
|
version.workspace = true
|
||||||
|
readme.workspace = true
|
||||||
|
authors.workspace = true
|
||||||
|
repository.workspace = true
|
||||||
|
homepage.workspace = true
|
||||||
|
edition.workspace = true
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
rog_anime = { path = "../rog-anime" }
|
rog_anime = { path = "../rog-anime" }
|
||||||
@@ -27,4 +30,4 @@ glam.workspace = true
|
|||||||
rog_dbus = { path = "../rog-dbus" }
|
rog_dbus = { path = "../rog-dbus" }
|
||||||
tokio.workspace = true
|
tokio.workspace = true
|
||||||
|
|
||||||
cargo-husky.workspace = true
|
cargo-husky.workspace = true
|
||||||
|
|||||||
@@ -87,6 +87,7 @@ impl FromStr for LedBrightness {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#[allow(clippy::to_string_trait_impl)]
|
||||||
impl ToString for LedBrightness {
|
impl ToString for LedBrightness {
|
||||||
fn to_string(&self) -> String {
|
fn to_string(&self) -> String {
|
||||||
let s = match self.level {
|
let s = match self.level {
|
||||||
|
|||||||
@@ -1,10 +1,12 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "asusd-user"
|
name = "asusd-user"
|
||||||
license = "MPL-2.0"
|
license.workspace = true
|
||||||
version.workspace = true
|
version.workspace = true
|
||||||
authors = ["Luke D Jones <luke@ljones.dev>"]
|
readme.workspace = true
|
||||||
edition = "2021"
|
authors.workspace = true
|
||||||
description = "Usermode daemon for user settings, anime, per-key lighting"
|
repository.workspace = true
|
||||||
|
homepage.workspace = true
|
||||||
|
edition.workspace = true
|
||||||
|
|
||||||
[[bin]]
|
[[bin]]
|
||||||
name = "asusd-user"
|
name = "asusd-user"
|
||||||
@@ -32,4 +34,4 @@ log.workspace = true
|
|||||||
env_logger.workspace = true
|
env_logger.workspace = true
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
cargo-husky.workspace = true
|
cargo-husky.workspace = true
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "asusd"
|
name = "asusd"
|
||||||
license = "MPL-2.0"
|
license.workspace = true
|
||||||
version.workspace = true
|
version.workspace = true
|
||||||
readme = "README.md"
|
readme.workspace = true
|
||||||
authors = ["Luke <luke@ljones.dev>"]
|
authors.workspace = true
|
||||||
repository = "https://gitlab.com/asus-linux/asus-nb-ctrl"
|
repository.workspace = true
|
||||||
homepage = "https://gitlab.com/asus-linux/asus-nb-ctrl"
|
homepage.workspace = true
|
||||||
description = "A daemon app for ASUS GX502 and similar laptops to control missing features"
|
description.workspace = true
|
||||||
edition = "2021"
|
edition.workspace = true
|
||||||
|
|
||||||
[[bin]]
|
[[bin]]
|
||||||
name = "asusd"
|
name = "asusd"
|
||||||
|
|||||||
@@ -31,18 +31,25 @@ pub struct Config {
|
|||||||
/// The energy_performance_preference for this throttle/platform profile
|
/// The energy_performance_preference for this throttle/platform profile
|
||||||
pub throttle_performance_epp: CPUEPP,
|
pub throttle_performance_epp: CPUEPP,
|
||||||
/// Defaults to `None` if not supported
|
/// Defaults to `None` if not supported
|
||||||
|
#[serde(skip_serializing_if = "Option::is_none", default)]
|
||||||
pub ppt_pl1_spl: Option<u8>,
|
pub ppt_pl1_spl: Option<u8>,
|
||||||
/// Defaults to `None` if not supported
|
/// Defaults to `None` if not supported
|
||||||
|
#[serde(skip_serializing_if = "Option::is_none", default)]
|
||||||
pub ppt_pl2_sppt: Option<u8>,
|
pub ppt_pl2_sppt: Option<u8>,
|
||||||
/// Defaults to `None` if not supported
|
/// Defaults to `None` if not supported
|
||||||
|
#[serde(skip_serializing_if = "Option::is_none", default)]
|
||||||
pub ppt_fppt: Option<u8>,
|
pub ppt_fppt: Option<u8>,
|
||||||
/// Defaults to `None` if not supported
|
/// Defaults to `None` if not supported
|
||||||
|
#[serde(skip_serializing_if = "Option::is_none", default)]
|
||||||
pub ppt_apu_sppt: Option<u8>,
|
pub ppt_apu_sppt: Option<u8>,
|
||||||
/// Defaults to `None` if not supported
|
/// Defaults to `None` if not supported
|
||||||
|
#[serde(skip_serializing_if = "Option::is_none", default)]
|
||||||
pub ppt_platform_sppt: Option<u8>,
|
pub ppt_platform_sppt: Option<u8>,
|
||||||
/// Defaults to `None` if not supported
|
/// Defaults to `None` if not supported
|
||||||
|
#[serde(skip_serializing_if = "Option::is_none", default)]
|
||||||
pub nv_dynamic_boost: Option<u8>,
|
pub nv_dynamic_boost: Option<u8>,
|
||||||
/// Defaults to `None` if not supported
|
/// Defaults to `None` if not supported
|
||||||
|
#[serde(skip_serializing_if = "Option::is_none", default)]
|
||||||
pub nv_temp_target: Option<u8>,
|
pub nv_temp_target: Option<u8>,
|
||||||
/// Temporary state for AC/Batt
|
/// Temporary state for AC/Batt
|
||||||
#[serde(skip)]
|
#[serde(skip)]
|
||||||
|
|||||||
@@ -16,6 +16,7 @@ pub struct AuraConfig {
|
|||||||
pub brightness: LedBrightness,
|
pub brightness: LedBrightness,
|
||||||
pub current_mode: AuraModeNum,
|
pub current_mode: AuraModeNum,
|
||||||
pub builtins: BTreeMap<AuraModeNum, AuraEffect>,
|
pub builtins: BTreeMap<AuraModeNum, AuraEffect>,
|
||||||
|
#[serde(skip_serializing_if = "Option::is_none", default)]
|
||||||
pub multizone: Option<BTreeMap<AuraModeNum, Vec<AuraEffect>>>,
|
pub multizone: Option<BTreeMap<AuraModeNum, Vec<AuraEffect>>>,
|
||||||
pub multizone_on: bool,
|
pub multizone_on: bool,
|
||||||
pub enabled: LaptopAuraPower,
|
pub enabled: LaptopAuraPower,
|
||||||
|
|||||||
@@ -1,9 +1,12 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "config-traits"
|
name = "config-traits"
|
||||||
license = "MPL-2.0"
|
license.workspace = true
|
||||||
authors = ["Luke D Jones <luke@ljones.dev>"]
|
|
||||||
edition = "2021"
|
|
||||||
version.workspace = true
|
version.workspace = true
|
||||||
|
readme.workspace = true
|
||||||
|
authors.workspace = true
|
||||||
|
repository.workspace = true
|
||||||
|
homepage.workspace = true
|
||||||
|
edition.workspace = true
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
serde.workspace = true
|
serde.workspace = true
|
||||||
@@ -15,4 +18,4 @@ ron.workspace = true
|
|||||||
log.workspace = true
|
log.workspace = true
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
cargo-husky.workspace = true
|
cargo-husky.workspace = true
|
||||||
|
|||||||
@@ -1,7 +1,11 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "cpuctl"
|
name = "cpuctl"
|
||||||
license = "MPL-2.0"
|
license.workspace = true
|
||||||
edition = "2021"
|
|
||||||
version.workspace = true
|
version.workspace = true
|
||||||
|
readme.workspace = true
|
||||||
|
authors.workspace = true
|
||||||
|
repository.workspace = true
|
||||||
|
homepage.workspace = true
|
||||||
|
edition.workspace = true
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
|
|||||||
@@ -1,8 +1,13 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "dmi_id"
|
name = "dmi_id"
|
||||||
edition = "2021"
|
license.workspace = true
|
||||||
version.workspace = true
|
version.workspace = true
|
||||||
|
readme.workspace = true
|
||||||
|
authors.workspace = true
|
||||||
|
repository.workspace = true
|
||||||
|
homepage.workspace = true
|
||||||
|
edition.workspace = true
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
log.workspace = true
|
log.workspace = true
|
||||||
udev.workspace = true
|
udev.workspace = true
|
||||||
|
|||||||
@@ -1,15 +1,15 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "rog_anime"
|
name = "rog_anime"
|
||||||
license = "MPL-2.0"
|
license.workspace = true
|
||||||
version.workspace = true
|
version.workspace = true
|
||||||
readme = "README.md"
|
readme.workspace = true
|
||||||
authors = ["Luke <luke@ljones.dev>"]
|
authors.workspace = true
|
||||||
repository = "https://gitlab.com/asus-linux/asus-nb-ctrl"
|
repository.workspace = true
|
||||||
homepage = "https://gitlab.com/asus-linux/asus-nb-ctrl"
|
homepage.workspace = true
|
||||||
|
edition.workspace = true
|
||||||
documentation = "https://docs.rs/rog-anime"
|
documentation = "https://docs.rs/rog-anime"
|
||||||
description = "Types useful for translating images and other data for display on the ASUS AniMe Matrix display"
|
description = "Types useful for translating images and other data for display on the ASUS AniMe Matrix display"
|
||||||
keywords = ["ROG", "ASUS", "AniMe"]
|
keywords = ["ROG", "ASUS", "AniMe"]
|
||||||
edition = "2021"
|
|
||||||
exclude = ["data"]
|
exclude = ["data"]
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
@@ -38,4 +38,4 @@ zbus = { workspace = true, optional = true }
|
|||||||
dmi_id = { path = "../dmi-id", optional = true }
|
dmi_id = { path = "../dmi-id", optional = true }
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
cargo-husky.workspace = true
|
cargo-husky.workspace = true
|
||||||
|
|||||||
@@ -323,6 +323,15 @@
|
|||||||
advanced_type: PerKey,
|
advanced_type: PerKey,
|
||||||
power_zones: [Keyboard],
|
power_zones: [Keyboard],
|
||||||
),
|
),
|
||||||
|
(
|
||||||
|
device_name: "G713P",
|
||||||
|
product_id: "",
|
||||||
|
layout_name: "ga401q",
|
||||||
|
basic_modes: [Static, Breathe, Strobe, Rainbow, Pulse],
|
||||||
|
basic_zones: [Key1, Key2, Key3, Key4],
|
||||||
|
advanced_type: None,
|
||||||
|
power_zones: [Keyboard],
|
||||||
|
),
|
||||||
(
|
(
|
||||||
device_name: "G713QM",
|
device_name: "G713QM",
|
||||||
product_id: "",
|
product_id: "",
|
||||||
|
|||||||
@@ -1,9 +1,12 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "rog-control-center"
|
name = "rog-control-center"
|
||||||
license = "MPL-2.0"
|
license.workspace = true
|
||||||
version.workspace = true
|
version.workspace = true
|
||||||
authors = ["Luke D. Jones <luke@ljones.dev>"]
|
readme.workspace = true
|
||||||
edition = "2021"
|
authors.workspace = true
|
||||||
|
repository.workspace = true
|
||||||
|
homepage.workspace = true
|
||||||
|
edition.workspace = true
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
#default = ["mocking"]
|
#default = ["mocking"]
|
||||||
|
|||||||
@@ -61,8 +61,8 @@ pub fn start_notifications(config: Arc<Mutex<Config>>) -> Result<()> {
|
|||||||
let mut ac = String::new();
|
let mut ac = String::new();
|
||||||
let mut bat = String::new();
|
let mut bat = String::new();
|
||||||
if let Ok(config) = config_copy.lock() {
|
if let Ok(config) = config_copy.lock() {
|
||||||
ac = config.ac_command.clone();
|
ac.clone_from(&config.ac_command);
|
||||||
bat = config.bat_command.clone();
|
bat.clone_from(&config.bat_command);
|
||||||
}
|
}
|
||||||
|
|
||||||
if p == 0 && p != last_state {
|
if p == 0 && p != last_state {
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: PACKAGE VERSION\n"
|
"Project-Id-Version: PACKAGE VERSION\n"
|
||||||
"POT-Creation-Date: 2024-05-05 08:22+0000\n"
|
"POT-Creation-Date: 2024-05-05 21:32+0000\n"
|
||||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "rog_dbus"
|
name = "rog_dbus"
|
||||||
|
license.workspace = true
|
||||||
version.workspace = true
|
version.workspace = true
|
||||||
license = "MPL-2.0"
|
readme.workspace = true
|
||||||
readme = "README.md"
|
authors.workspace = true
|
||||||
authors = ["Luke <luke@ljones.dev>"]
|
repository.workspace = true
|
||||||
repository = "https://gitlab.com/asus-linux/asus-nb-ctrl"
|
homepage.workspace = true
|
||||||
homepage = "https://gitlab.com/asus-linux/asus-nb-ctrl"
|
edition.workspace = true
|
||||||
description = "dbus interface methods for asusctl"
|
description = "dbus interface methods for asusctl"
|
||||||
edition = "2021"
|
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
asusd = { path = "../asusd" }
|
asusd = { path = "../asusd" }
|
||||||
@@ -19,4 +19,4 @@ rog_platform = { path = "../rog-platform" }
|
|||||||
zbus.workspace = true
|
zbus.workspace = true
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
cargo-husky.workspace = true
|
cargo-husky.workspace = true
|
||||||
|
|||||||
@@ -1,8 +1,12 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "rog_platform"
|
name = "rog_platform"
|
||||||
license = "MPL-2.0"
|
license.workspace = true
|
||||||
version.workspace = true
|
version.workspace = true
|
||||||
edition = "2021"
|
readme.workspace = true
|
||||||
|
authors.workspace = true
|
||||||
|
repository.workspace = true
|
||||||
|
homepage.workspace = true
|
||||||
|
edition.workspace = true
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
log.workspace = true
|
log.workspace = true
|
||||||
@@ -18,4 +22,4 @@ rusb.workspace = true
|
|||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
cargo-husky.workspace = true
|
cargo-husky.workspace = true
|
||||||
rog_aura = { path = "../rog-aura" }
|
rog_aura = { path = "../rog-aura" }
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ impl USBRaw {
|
|||||||
device: &Device<rusb::GlobalContext>,
|
device: &Device<rusb::GlobalContext>,
|
||||||
) -> Result<DeviceHandle<rusb::GlobalContext>> {
|
) -> Result<DeviceHandle<rusb::GlobalContext>> {
|
||||||
// We don't expect this ID to ever change
|
// We don't expect this ID to ever change
|
||||||
let mut device = device.open()?;
|
let device = device.open()?;
|
||||||
device.reset()?;
|
device.reset()?;
|
||||||
device.set_auto_detach_kernel_driver(true)?;
|
device.set_auto_detach_kernel_driver(true)?;
|
||||||
device.claim_interface(0)?;
|
device.claim_interface(0)?;
|
||||||
|
|||||||
@@ -1,9 +1,12 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "rog_profiles"
|
name = "rog_profiles"
|
||||||
license = "MPL-2.0"
|
license.workspace = true
|
||||||
version.workspace = true
|
version.workspace = true
|
||||||
authors = ["Luke D. Jones <luke@ljones.dev>"]
|
readme.workspace = true
|
||||||
edition = "2021"
|
authors.workspace = true
|
||||||
|
repository.workspace = true
|
||||||
|
homepage.workspace = true
|
||||||
|
edition.workspace = true
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = ["dbus"]
|
default = ["dbus"]
|
||||||
@@ -20,4 +23,4 @@ rog_platform = { path = "../rog-platform" }
|
|||||||
zbus = { workspace = true, optional = true }
|
zbus = { workspace = true, optional = true }
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
cargo-husky.workspace = true
|
cargo-husky.workspace = true
|
||||||
|
|||||||
@@ -1,14 +1,15 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "rog_slash"
|
name = "rog_slash"
|
||||||
license = "MPL-2.0"
|
license.workspace = true
|
||||||
version.workspace = true
|
version.workspace = true
|
||||||
authors = ["Luke <luke@ljones.dev>"]
|
readme.workspace = true
|
||||||
repository = "https://gitlab.com/asus-linux/asus-nb-ctrl"
|
authors.workspace = true
|
||||||
homepage = "https://gitlab.com/asus-linux/asus-nb-ctrl"
|
repository.workspace = true
|
||||||
|
homepage.workspace = true
|
||||||
|
edition.workspace = true
|
||||||
documentation = "https://docs.rs/rog-slash"
|
documentation = "https://docs.rs/rog-slash"
|
||||||
description = "ASUS Slash display"
|
description = "ASUS Slash display"
|
||||||
keywords = ["ROG", "ASUS", "AniMe", "Slash"]
|
keywords = ["ROG", "ASUS", "AniMe", "Slash"]
|
||||||
edition = "2021"
|
|
||||||
exclude = ["data"]
|
exclude = ["data"]
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
@@ -37,4 +38,4 @@ zbus = { workspace = true, optional = true }
|
|||||||
dmi_id = { path = "../dmi-id", optional = true }
|
dmi_id = { path = "../dmi-id", optional = true }
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
cargo-husky.workspace = true
|
cargo-husky.workspace = true
|
||||||
|
|||||||
@@ -1,14 +1,12 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "rog_simulators"
|
name = "rog_simulators"
|
||||||
license = "MPL-2.0"
|
license.workspace = true
|
||||||
version.workspace = true
|
version.workspace = true
|
||||||
readme = "README.md"
|
readme.workspace = true
|
||||||
authors = ["Luke <luke@ljones.dev>"]
|
authors.workspace = true
|
||||||
repository = "https://gitlab.com/asus-linux/asus-nb-ctrl"
|
repository.workspace = true
|
||||||
homepage = "https://gitlab.com/asus-linux/asus-nb-ctrl"
|
homepage.workspace = true
|
||||||
documentation = "https://docs.rs/rog-anime"
|
edition.workspace = true
|
||||||
edition = "2021"
|
|
||||||
exclude = ["data"]
|
|
||||||
|
|
||||||
[[bin]]
|
[[bin]]
|
||||||
name = "anime_sim"
|
name = "anime_sim"
|
||||||
|
|||||||
Reference in New Issue
Block a user