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:
@@ -2,57 +2,12 @@
|
||||
<node>
|
||||
<interface name="org.asuslinux.Daemon">
|
||||
<!--
|
||||
Writes a data stream of length. Will force system thread to exit until it is restarted
|
||||
Writes a data stream of length. Will force system thread to exit until
|
||||
it is restarted
|
||||
-->
|
||||
<method name="Write">
|
||||
<arg name="input" type="(ays)" direction="in"/>
|
||||
</method>
|
||||
<!--
|
||||
Set base brightness level
|
||||
-->
|
||||
<method name="SetBrightness">
|
||||
<arg name="brightness" type="s" direction="in"/>
|
||||
</method>
|
||||
<!--
|
||||
Enable the builtin animations or not. This is quivalent to "Powersave
|
||||
animations" in Armory crate
|
||||
-->
|
||||
<method name="SetBuiltinsEnabled">
|
||||
<arg name="enabled" type="b" direction="in"/>
|
||||
</method>
|
||||
<!--
|
||||
Set which builtin animation is used for each stage
|
||||
-->
|
||||
<method name="SetBuiltinAnimations">
|
||||
<arg name="boot" type="s" direction="in"/>
|
||||
<arg name="awake" type="s" direction="in"/>
|
||||
<arg name="sleep" type="s" direction="in"/>
|
||||
<arg name="shutdown" type="s" direction="in"/>
|
||||
</method>
|
||||
<!--
|
||||
Set whether the AniMe is enabled at all
|
||||
-->
|
||||
<method name="SetEnableDisplay">
|
||||
<arg name="enabled" type="b" direction="in"/>
|
||||
</method>
|
||||
<!--
|
||||
Set if to turn the AniMe Matrix off when external power is unplugged
|
||||
-->
|
||||
<method name="SetOffWhenUnplugged">
|
||||
<arg name="enabled" type="b" direction="in"/>
|
||||
</method>
|
||||
<!--
|
||||
Set if to turn the AniMe Matrix off when the laptop is suspended
|
||||
-->
|
||||
<method name="SetOffWhenSuspended">
|
||||
<arg name="enabled" type="b" direction="in"/>
|
||||
</method>
|
||||
<!--
|
||||
Set if to turn the AniMe Matrix off when the lid is closed
|
||||
-->
|
||||
<method name="SetOffWhenLidClosed">
|
||||
<arg name="enabled" type="b" direction="in"/>
|
||||
</method>
|
||||
<!--
|
||||
The main loop is the base system set action if the user isn't running
|
||||
the user daemon
|
||||
@@ -64,14 +19,39 @@
|
||||
Get the device state as stored by asusd
|
||||
-->
|
||||
<method name="DeviceState">
|
||||
<arg type="bsb(ssss)bbb" direction="out"/>
|
||||
<arg type="(bub(ssss)bbbu)" direction="out"/>
|
||||
</method>
|
||||
<!--
|
||||
Notify listeners of the status of AniMe LED power and factory
|
||||
system-status animations
|
||||
Set base brightness level
|
||||
-->
|
||||
<signal name="NotifyDeviceState">
|
||||
<arg name="data" type="(bsb(ssss)bbb)"/>
|
||||
</signal>
|
||||
<!--
|
||||
Set base brightness level
|
||||
-->
|
||||
<property name="Brightness" type="u" access="readwrite"/>
|
||||
<!--
|
||||
Set which builtin animation is used for each stage
|
||||
-->
|
||||
<property name="BuiltinAnimations" type="(ssss)" access="readwrite"/>
|
||||
<!--
|
||||
Enable the builtin animations or not. This is quivalent to "Powersave
|
||||
animations" in Armory crate
|
||||
-->
|
||||
<property name="BuiltinsEnabled" type="b" access="readwrite"/>
|
||||
<!--
|
||||
Set whether the AniMe is enabled at all
|
||||
-->
|
||||
<property name="EnableDisplay" type="b" access="readwrite"/>
|
||||
<!--
|
||||
Set if to turn the AniMe Matrix off when the lid is closed
|
||||
-->
|
||||
<property name="OffWhenLidClosed" type="b" access="readwrite"/>
|
||||
<!--
|
||||
Set if to turn the AniMe Matrix off when the laptop is suspended
|
||||
-->
|
||||
<property name="OffWhenSuspended" type="b" access="readwrite"/>
|
||||
<!--
|
||||
Set if to turn the AniMe Matrix off when external power is unplugged
|
||||
-->
|
||||
<property name="OffWhenUnplugged" type="b" access="readwrite"/>
|
||||
</interface>
|
||||
</node>
|
||||
|
||||
@@ -2,52 +2,10 @@
|
||||
<node>
|
||||
<interface name="org.asuslinux.Daemon">
|
||||
<!--
|
||||
Set the keyboard brightness level (0-3)
|
||||
Get the data set for every mode available
|
||||
-->
|
||||
<method name="SetBrightness">
|
||||
<arg name="brightness" type="s" direction="in"/>
|
||||
</method>
|
||||
<!--
|
||||
Set a variety of states, input is array of enum.
|
||||
`enabled` sets if the sent array should be disabled or enabled
|
||||
|
||||
For Modern ROG devices the "enabled" flag is ignored.
|
||||
-->
|
||||
<method name="SetLedPower">
|
||||
<arg name="options" type="(asas((sbbbb)(sbbbb)(sbbbb)(sbbbb)(sbbbb)))" direction="in"/>
|
||||
<arg name="enabled" type="b" direction="in"/>
|
||||
</method>
|
||||
<method name="SetLedMode">
|
||||
<arg name="effect" type="(ss(yyy)(yyy)ss)" direction="in"/>
|
||||
</method>
|
||||
<method name="NextLedMode">
|
||||
</method>
|
||||
<method name="PrevLedMode">
|
||||
</method>
|
||||
<method name="NextLedBrightness">
|
||||
</method>
|
||||
<method name="PrevLedBrightness">
|
||||
</method>
|
||||
<!--
|
||||
Return the device type for this Aura keyboard
|
||||
-->
|
||||
<method name="DeviceType">
|
||||
<arg type="s" direction="out"/>
|
||||
</method>
|
||||
<method name="LedPower">
|
||||
<arg type="asas((sbbbb)(sbbbb)(sbbbb)(sbbbb)(sbbbb))" direction="out"/>
|
||||
</method>
|
||||
<!--
|
||||
Return the current mode data
|
||||
-->
|
||||
<method name="LedMode">
|
||||
<arg type="s" direction="out"/>
|
||||
</method>
|
||||
<!--
|
||||
Return a list of available modes
|
||||
-->
|
||||
<method name="LedModes">
|
||||
<arg type="a{s(ss(yyy)(yyy)ss)}" direction="out"/>
|
||||
<method name="AllModeData">
|
||||
<arg type="a{u(us(yyy)(yyy)ss)}" direction="out"/>
|
||||
</method>
|
||||
<!--
|
||||
On machine that have some form of either per-key keyboard or per-zone
|
||||
@@ -57,15 +15,51 @@
|
||||
<method name="DirectAddressingRaw">
|
||||
<arg name="data" type="aay" direction="in"/>
|
||||
</method>
|
||||
<signal name="NotifyLed">
|
||||
<arg name="data" type="(ss(yyy)(yyy)ss)"/>
|
||||
</signal>
|
||||
<signal name="NotifyPowerStates">
|
||||
<arg name="data" type="(asas((sbbbb)(sbbbb)(sbbbb)(sbbbb)(sbbbb)))"/>
|
||||
</signal>
|
||||
<!--
|
||||
Return the current LED brightness
|
||||
-->
|
||||
<property name="LedBrightness" type="n" access="read"/>
|
||||
<!--
|
||||
Set the keyboard brightness level (0-3)
|
||||
-->
|
||||
<property name="Brightness" type="u" access="readwrite"/>
|
||||
<!--
|
||||
Return the device type for this Aura keyboard
|
||||
-->
|
||||
<property name="DeviceType" type="s" access="read"/>
|
||||
<!--
|
||||
The current mode data
|
||||
-->
|
||||
<!--
|
||||
Set an Aura effect if the effect mode or zone is supported.
|
||||
|
||||
On success the aura config file is read to refresh cached values, then
|
||||
the effect is stored and config written to disk.
|
||||
-->
|
||||
<property name="LedMode" type="u" access="readwrite"/>
|
||||
<!--
|
||||
The current mode data
|
||||
-->
|
||||
<!--
|
||||
Set an Aura effect if the effect mode or zone is supported.
|
||||
|
||||
On success the aura config file is read to refresh cached values, then
|
||||
the effect is stored and config written to disk.
|
||||
-->
|
||||
<property name="LedModeData" type="(us(yyy)(yyy)ss)" access="readwrite"/>
|
||||
<!--
|
||||
Set a variety of states, input is array of enum.
|
||||
`enabled` sets if the sent array should be disabled or enabled
|
||||
|
||||
For Modern ROG devices the "enabled" flag is ignored.
|
||||
-->
|
||||
<property name="LedPower" type="(asas((sbbbb)(sbbbb)(sbbbb)(sbbbb)(sbbbb)))" access="readwrite"/>
|
||||
<!--
|
||||
Total levels of brightness available
|
||||
-->
|
||||
<property name="SupportedBrightness" type="au" access="read"/>
|
||||
<!--
|
||||
The total available modes
|
||||
-->
|
||||
<property name="SupportedModes" type="au" access="read"/>
|
||||
</interface>
|
||||
</node>
|
||||
|
||||
@@ -2,49 +2,28 @@
|
||||
<node>
|
||||
<interface name="org.asuslinux.Daemon">
|
||||
<!--
|
||||
Fetch profile names
|
||||
Set all fan curves for a profile to enabled status. Will also activate a
|
||||
fan curve if in the same profile mode
|
||||
-->
|
||||
<method name="Profiles">
|
||||
<arg type="as" direction="out"/>
|
||||
</method>
|
||||
<!--
|
||||
Toggle to next platform_profile. Names provided by `Profiles`.
|
||||
If fan-curves are supported will also activate a fan curve for profile.
|
||||
-->
|
||||
<method name="NextProfile">
|
||||
</method>
|
||||
<!--
|
||||
Fetch the active profile name
|
||||
-->
|
||||
<method name="ActiveProfile">
|
||||
<arg type="s" direction="out"/>
|
||||
</method>
|
||||
<!--
|
||||
Set this platform_profile name as active
|
||||
-->
|
||||
<method name="SetActiveProfile">
|
||||
<arg name="profile" type="s" direction="in"/>
|
||||
</method>
|
||||
<!--
|
||||
Get a list of profiles that have fan-curves enabled.
|
||||
-->
|
||||
<method name="EnabledFanProfiles">
|
||||
<arg type="as" direction="out"/>
|
||||
</method>
|
||||
<!--
|
||||
Set a profile fan curve enabled status. Will also activate a fan curve
|
||||
if in the same profile mode
|
||||
-->
|
||||
<method name="SetFanCurveEnabled">
|
||||
<method name="SetFanCurvesEnabled">
|
||||
<arg name="profile" type="s" direction="in"/>
|
||||
<arg name="enabled" type="b" direction="in"/>
|
||||
</method>
|
||||
<!--
|
||||
Get the fan-curve data for the currently active Profile
|
||||
Set a single fan curve for a profile to enabled status. Will also
|
||||
activate a fan curve if in the same profile mode
|
||||
-->
|
||||
<method name="SetProfileFanCurveEnabled">
|
||||
<arg name="profile" type="s" direction="in"/>
|
||||
<arg name="fan" type="s" direction="in"/>
|
||||
<arg name="enabled" type="b" direction="in"/>
|
||||
</method>
|
||||
<!--
|
||||
Get the fan-curve data for the currently active PlatformPolicy
|
||||
-->
|
||||
<method name="FanCurveData">
|
||||
<arg name="profile" type="s" direction="in"/>
|
||||
<arg type="(b(s(yyyyyyyy)(yyyyyyyy))(s(yyyyyyyy)(yyyyyyyy)))" direction="out"/>
|
||||
<arg type="a(s(yyyyyyyy)(yyyyyyyy)b)" direction="out"/>
|
||||
</method>
|
||||
<!--
|
||||
Set the fan curve for the specified profile.
|
||||
@@ -52,7 +31,7 @@
|
||||
-->
|
||||
<method name="SetFanCurve">
|
||||
<arg name="profile" type="s" direction="in"/>
|
||||
<arg name="curve" type="(s(yyyyyyyy)(yyyyyyyy))" direction="in"/>
|
||||
<arg name="curve" type="(s(yyyyyyyy)(yyyyyyyy)b)" direction="in"/>
|
||||
</method>
|
||||
<!--
|
||||
Reset the stored (self) and device curve to the defaults of the
|
||||
@@ -73,8 +52,5 @@
|
||||
<method name="ResetProfileCurves">
|
||||
<arg name="profile" type="s" direction="in"/>
|
||||
</method>
|
||||
<signal name="NotifyProfile">
|
||||
<arg name="profile" type="s"/>
|
||||
</signal>
|
||||
</interface>
|
||||
</node>
|
||||
@@ -1,67 +1,46 @@
|
||||
<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN" "http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
|
||||
<node>
|
||||
<interface name="org.asuslinux.Daemon">
|
||||
<method name="SetGpuMuxMode">
|
||||
<arg name="mode" type="u" direction="in"/>
|
||||
<!--
|
||||
Returns a list of property names that this system supports
|
||||
-->
|
||||
<method name="SupportedProperties">
|
||||
<arg type="as" direction="out"/>
|
||||
</method>
|
||||
<method name="GpuMuxMode">
|
||||
<arg type="u" direction="out"/>
|
||||
<method name="SupportedInterfaces">
|
||||
<arg type="as" direction="out"/>
|
||||
</method>
|
||||
<signal name="NotifyGpuMuxMode">
|
||||
<arg name="mode" type="u"/>
|
||||
</signal>
|
||||
<method name="SetPostBootSound">
|
||||
<arg name="on" type="b" direction="in"/>
|
||||
</method>
|
||||
<method name="PostBootSound">
|
||||
<arg type="n" direction="out"/>
|
||||
</method>
|
||||
<signal name="NotifyPostBootSound">
|
||||
<arg name="on" type="b"/>
|
||||
</signal>
|
||||
<method name="SetPanelOd">
|
||||
<arg name="overdrive" type="b" direction="in"/>
|
||||
<!--
|
||||
Toggle to next platform_profile. Names provided by `Profiles`.
|
||||
If fan-curves are supported will also activate a fan curve for profile.
|
||||
-->
|
||||
<method name="NextThrottleThermalPolicy">
|
||||
</method>
|
||||
<property name="ChargeControlEndThreshold" type="y" access="readwrite"/>
|
||||
<property name="DgpuDisable" type="b" access="read"/>
|
||||
<property name="EgpuEnable" type="b" access="read"/>
|
||||
<property name="GpuMuxMode" type="y" access="readwrite"/>
|
||||
<!--
|
||||
Get the `panel_od` value from platform. Updates the stored value in
|
||||
internal config also.
|
||||
-->
|
||||
<method name="PanelOd">
|
||||
<arg type="b" direction="out"/>
|
||||
</method>
|
||||
<signal name="NotifyPanelOd">
|
||||
<arg name="overdrive" type="b"/>
|
||||
</signal>
|
||||
<method name="SetMiniLedMode">
|
||||
<arg name="on" type="b" direction="in"/>
|
||||
</method>
|
||||
<property name="MiniLedMode" type="b" access="readwrite"/>
|
||||
<property name="NvDynamicBoost" type="y" access="readwrite"/>
|
||||
<property name="NvTempTarget" type="y" access="readwrite"/>
|
||||
<!--
|
||||
Get the `panel_od` value from platform. Updates the stored value in
|
||||
internal config also.
|
||||
-->
|
||||
<method name="MiniLedMode">
|
||||
<arg type="b" direction="out"/>
|
||||
</method>
|
||||
<signal name="NotifyMiniLedMode">
|
||||
<arg name="on" type="b"/>
|
||||
</signal>
|
||||
<method name="SetDgpuDisable">
|
||||
<arg name="disable" type="b" direction="in"/>
|
||||
</method>
|
||||
<method name="DgpuDisable">
|
||||
<arg type="b" direction="out"/>
|
||||
</method>
|
||||
<signal name="NotifyDgpuDisable">
|
||||
<arg name="disable" type="b"/>
|
||||
</signal>
|
||||
<method name="SetEgpuEnable">
|
||||
<arg name="enable" type="b" direction="in"/>
|
||||
</method>
|
||||
<method name="EgpuEnable">
|
||||
<arg type="b" direction="out"/>
|
||||
</method>
|
||||
<signal name="NotifyEgpuEnable">
|
||||
<arg name="enable" type="b"/>
|
||||
</signal>
|
||||
<property name="PanelOd" type="b" access="readwrite"/>
|
||||
<property name="PostAnimationSound" type="b" access="readwrite"/>
|
||||
<property name="PptApuSppt" type="y" access="readwrite"/>
|
||||
<property name="PptFppt" type="y" access="readwrite"/>
|
||||
<!--
|
||||
************************************************************************
|
||||
-->
|
||||
<property name="PptPl1Spl" type="y" access="readwrite"/>
|
||||
<property name="PptPl2Sppt" type="y" access="readwrite"/>
|
||||
<property name="PptPlatformSppt" type="y" access="readwrite"/>
|
||||
<property name="ThrottleThermalPolicy" type="s" access="readwrite"/>
|
||||
</interface>
|
||||
</node>
|
||||
|
||||
@@ -1,20 +0,0 @@
|
||||
<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN" "http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
|
||||
<node>
|
||||
<interface name="org.asuslinux.Daemon">
|
||||
<method name="SetChargeControlEndThreshold">
|
||||
<arg name="limit" type="y" direction="in"/>
|
||||
</method>
|
||||
<method name="ChargeControlEndThreshold">
|
||||
<arg type="y" direction="out"/>
|
||||
</method>
|
||||
<method name="MainsOnline">
|
||||
<arg type="b" direction="out"/>
|
||||
</method>
|
||||
<signal name="NotifyChargeControlEndThreshold">
|
||||
<arg name="limit" type="y"/>
|
||||
</signal>
|
||||
<signal name="NotifyMainsOnline">
|
||||
<arg name="on" type="b"/>
|
||||
</signal>
|
||||
</interface>
|
||||
</node>
|
||||
@@ -1,12 +0,0 @@
|
||||
<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN" "http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
|
||||
<node>
|
||||
<interface name="org.asuslinux.Daemon">
|
||||
<method name="SupportedFunctions">
|
||||
<arg type="b(b)(bb)(sbasassas)(bbbbbb)" direction="out"/>
|
||||
</method>
|
||||
<method name="MeaningOfLife">
|
||||
<arg name="answer" type="i" direction="out"/>
|
||||
<arg name="question" type="s" direction="out"/>
|
||||
</method>
|
||||
</interface>
|
||||
</node>
|
||||
Reference in New Issue
Block a user