2019-12-12 17:19:29 +00:00
|
|
|
<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN"
|
|
|
|
"http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
|
|
|
|
|
2018-09-06 00:55:20 +00:00
|
|
|
<node>
|
2019-12-12 17:19:29 +00:00
|
|
|
|
|
|
|
<!--
|
|
|
|
net.hadess.SwitcherooControl:
|
|
|
|
@short_description: D-Bus proxy to access dual-GPU controls.
|
|
|
|
|
|
|
|
After checking the availability of two switchable GPUs in the machine,
|
|
|
|
check the value of net.hadess.SwitcherooControl.HasDualGpu to see
|
|
|
|
if running applications on the discrete GPU should be offered.
|
|
|
|
|
|
|
|
The object path will be "/net/hadess/SwitcherooControl".
|
|
|
|
-->
|
2018-09-06 00:55:20 +00:00
|
|
|
<interface name="net.hadess.SwitcherooControl">
|
2019-12-12 17:19:29 +00:00
|
|
|
<!--
|
|
|
|
HasDualGpu:
|
|
|
|
|
|
|
|
Whether two switchable GPUs are present on the system. This property
|
|
|
|
has been obsoleted in favour of the "NumGPUs" property.
|
|
|
|
-->
|
2018-09-06 00:55:20 +00:00
|
|
|
<property name="HasDualGpu" type="b" access="read"/>
|
2019-12-12 17:19:29 +00:00
|
|
|
|
|
|
|
<!--
|
|
|
|
NumGPUs:
|
|
|
|
|
|
|
|
The number of GPUs available on the system. Note that while having no
|
|
|
|
GPUs is unlikely, consumers of this API should probably not throw errors
|
|
|
|
if that were the case.
|
|
|
|
-->
|
|
|
|
<property name="NumGPUs" type="u" access="read"/>
|
|
|
|
|
|
|
|
<!--
|
|
|
|
GPUs:
|
|
|
|
|
|
|
|
An array of key-pair values representing each GPU. The key named "Name" (s)
|
|
|
|
will contain a user-facing name for the GPU, the "Environment" (as) key will
|
|
|
|
contain an array of even number of strings, each being an environment
|
|
|
|
variable to set to use the GPU, followed by its value, the "Default" (b) key
|
|
|
|
will tag the default (usually integrated) GPU.
|
|
|
|
-->
|
|
|
|
<property name="GPUs" type="aa{sv}" access="read"/>
|
|
|
|
|
2018-09-06 00:55:20 +00:00
|
|
|
</interface>
|
|
|
|
</node>
|