aura: update dbus xml

This commit is contained in:
Luke D. Jones
2023-07-11 21:02:40 +12:00
parent 3dbc893905
commit 03052e129b

View File

@@ -11,51 +11,10 @@
Set a variety of states, input is array of enum.
`enabled` sets if the sent array should be disabled or enabled
```text
pub struct AuraPowerDev {
tuf: Vec<AuraDevTuf>,
x1866: Vec<AuraDevRog1>,
x19b6: Vec<AuraDevRog2>,
}
pub enum AuraDevTuf {
Boot,
Awake,
Sleep,
Keyboard,
}
pub enum AuraDevRog1 {
Awake = 0x000002,
Keyboard = 0x080000,
Lightbar = 0x040500,
Boot = 0xc31209,
Sleep = 0x300804,
}
pub enum AuraDevRog2 {
BootLogo = 1,
BootKeyb = 1 << 1,
AwakeLogo = 1 << 2,
AwakeKeyb = 1 << 3,
SleepLogo = 1 << 4,
SleepKeyb = 1 << 5,
ShutdownLogo = 1 << 6,
ShutdownKeyb = 1 << 7,
BootBar = 1 << (7 + 2),
AwakeBar = 1 << (7 + 3),
SleepBar = 1 << (7 + 4),
ShutdownBar = 1 << (7 + 5),
BootLid = 1 << (15 + 1),
AwakeLid = 1 << (15 + 2),
SleepLid = 1 << (15 + 3),
ShutdownLid = 1 << (15 + 4),
BootRearGlow = 1 << (23 + 1),
AwakeRearGlow = 1 << (23 + 2),
SleepRearGlow = 1 << (23 + 3),
ShutdownRearGlow = 1 << (23 + 4),
}
```
For Modern ROG devices the "enabled" flag is ignored.
-->
<method name="SetLedPower">
<arg name="options" type="(asasas)" direction="in"/>
<arg name="options" type="(asas((sbbbb)(sbbbb)(sbbbb)(sbbbb)(sbbbb)))" direction="in"/>
<arg name="enabled" type="b" direction="in"/>
</method>
<method name="SetLedMode">
@@ -76,7 +35,7 @@
<arg type="s" direction="out"/>
</method>
<method name="LedPower">
<arg type="asasas" direction="out"/>
<arg type="(asas((sbbbb)(sbbbb)(sbbbb)(sbbbb)(sbbbb)))" direction="out"/>
</method>
<!--
Return the current mode data
@@ -102,7 +61,7 @@
<arg name="data" type="(ss(yyy)(yyy)ss)"/>
</signal>
<signal name="NotifyPowerStates">
<arg name="data" type="(asasas)"/>
<arg name="data" type="(asas((sbbbb)(sbbbb)(sbbbb)(sbbbb)(sbbbb)))"/>
</signal>
<!--
Return the current LED brightness