mirror of
https://gitlab.com/asus-linux/asusctl.git
synced 2026-02-06 00:15:04 +01:00
Fluke/dbus refactor
This commit is contained in:
@@ -45,6 +45,7 @@ export interface DeviceState {
|
||||
off_when_unplugged: boolean;
|
||||
off_when_suspended: boolean;
|
||||
off_when_lid_closed: boolean;
|
||||
brightness_on_battery: Brightness;
|
||||
}
|
||||
|
||||
export enum AnimeType {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
Generated by typeshare 1.6.0
|
||||
Generated by typeshare 1.7.0
|
||||
*/
|
||||
|
||||
/** Represents the per-key raw USB packets */
|
||||
@@ -227,6 +227,7 @@ export enum AuraDevice {
|
||||
X18c6 = "X18c6",
|
||||
X19b6 = "X19b6",
|
||||
X1a30 = "X1a30",
|
||||
X1abe = "X1abe",
|
||||
Unknown = "Unknown",
|
||||
}
|
||||
|
||||
|
||||
@@ -1,50 +1,7 @@
|
||||
/*
|
||||
Generated by typeshare 1.6.0
|
||||
Generated by typeshare 1.7.0
|
||||
*/
|
||||
|
||||
export type AnimeSupportedFunctions = boolean;
|
||||
|
||||
export interface ChargeSupportedFunctions {
|
||||
charge_level_set: boolean;
|
||||
}
|
||||
|
||||
export interface PlatformProfileFunctions {
|
||||
platform_profile: boolean;
|
||||
fan_curves: boolean;
|
||||
}
|
||||
|
||||
export enum AdvancedAura {
|
||||
None = "None",
|
||||
Zoned = "Zoned",
|
||||
PerKey = "PerKey",
|
||||
}
|
||||
|
||||
export interface LedSupportedFunctions {
|
||||
dev_id: AuraDevice;
|
||||
brightness: boolean;
|
||||
basic_modes: AuraModeNum[];
|
||||
basic_zones: AuraZone[];
|
||||
advanced_type: AdvancedAura;
|
||||
power_zones: PowerZones[];
|
||||
}
|
||||
|
||||
export interface RogBiosSupportedFunctions {
|
||||
post_sound: boolean;
|
||||
gpu_mux: boolean;
|
||||
panel_overdrive: boolean;
|
||||
dgpu_disable: boolean;
|
||||
egpu_enable: boolean;
|
||||
mini_led_mode: boolean;
|
||||
}
|
||||
|
||||
export interface SupportedFunctions {
|
||||
anime_ctrl: AnimeSupportedFunctions;
|
||||
charge_ctrl: ChargeSupportedFunctions;
|
||||
platform_profile: PlatformProfileFunctions;
|
||||
keyboard_led: LedSupportedFunctions;
|
||||
rog_bios_ctrl: RogBiosSupportedFunctions;
|
||||
}
|
||||
|
||||
export enum GpuMode {
|
||||
Discrete = "Discrete",
|
||||
Optimus = "Optimus",
|
||||
@@ -56,3 +13,28 @@ export enum GpuMode {
|
||||
NotSupported = "NotSupported",
|
||||
}
|
||||
|
||||
export enum PlatformPolicy {
|
||||
Balanced = "Balanced",
|
||||
Performance = "Performance",
|
||||
Quiet = "Quiet",
|
||||
}
|
||||
|
||||
/** CamelCase names of the properties. Intended for use with DBUS */
|
||||
export enum Properties {
|
||||
ChargeControlEndThreshold = "ChargeControlEndThreshold",
|
||||
DgpuDisable = "DgpuDisable",
|
||||
GpuMuxMode = "GpuMuxMode",
|
||||
PostAnimationSound = "PostAnimationSound",
|
||||
PanelOd = "PanelOd",
|
||||
MiniLedMode = "MiniLedMode",
|
||||
EgpuEnable = "EgpuEnable",
|
||||
PlatformPolicy = "PlatformPolicy",
|
||||
PptPl1Spl = "PptPl1Spl",
|
||||
PptPl2Sppt = "PptPl2Sppt",
|
||||
PptFppt = "PptFppt",
|
||||
PptApuSppt = "PptApuSppt",
|
||||
PptPlatformSppt = "PptPlatformSppt",
|
||||
NvDynamicBoost = "NvDynamicBoost",
|
||||
NvTempTarget = "NvTempTarget",
|
||||
}
|
||||
|
||||
|
||||
@@ -1,35 +1,24 @@
|
||||
/*
|
||||
Generated by typeshare 1.6.0
|
||||
Generated by typeshare 1.7.0
|
||||
*/
|
||||
|
||||
export enum FanCurvePU {
|
||||
CPU = "CPU",
|
||||
GPU = "GPU",
|
||||
MID = "MID",
|
||||
}
|
||||
|
||||
export interface CurveData {
|
||||
fan: FanCurvePU;
|
||||
pwm: [number, number, number, number, number, number, number, number];
|
||||
temp: [number, number, number, number, number, number, number, number];
|
||||
}
|
||||
|
||||
/** A `FanCurveSet` contains both CPU and GPU fan curve data */
|
||||
export interface FanCurveSet {
|
||||
enabled: boolean;
|
||||
cpu: CurveData;
|
||||
gpu: CurveData;
|
||||
}
|
||||
|
||||
/** Main purpose of `FanCurves` is to enable restoring state on system boot */
|
||||
export interface FanCurveProfiles {
|
||||
balanced: FanCurveSet;
|
||||
performance: FanCurveSet;
|
||||
quiet: FanCurveSet;
|
||||
}
|
||||
|
||||
export enum Profile {
|
||||
Balanced = "Balanced",
|
||||
Performance = "Performance",
|
||||
Quiet = "Quiet",
|
||||
balanced: CurveData[];
|
||||
performance: CurveData[];
|
||||
quiet: CurveData[];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user