net.hadess.SwitcherooControl.xml 1.58 KB
Newer Older
Bastien Nocera's avatar
Bastien Nocera committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN"
"http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">

<node>

  <!--
      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".
  -->
  <interface name="net.hadess.SwitcherooControl">
    <!--
        HasDualGpu:

20
21
        Whether two switchable GPUs are present on the system. This property
        has been obsoleted in favour of the "NumGPUs" property.
Bastien Nocera's avatar
Bastien Nocera committed
22
    -->
Bastien Nocera's avatar
Bastien Nocera committed
23
    <property name="HasDualGpu" type="b" access="read"/>
Bastien Nocera's avatar
Bastien Nocera committed
24

25
26
27
28
29
30
31
32
33
    <!--
        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"/>

Bastien Nocera's avatar
Bastien Nocera committed
34
35
36
    <!--
        GPUs:

37
38
39
        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
40
41
        variable to set to use the GPU, followed by its value, the "Default" (b) key
        will tag the default (usually integrated) GPU.
Bastien Nocera's avatar
Bastien Nocera committed
42
    -->
43
    <property name="GPUs" type="aa{sv}" access="read"/>
Bastien Nocera's avatar
Bastien Nocera committed
44

Bastien Nocera's avatar
Bastien Nocera committed
45
46
  </interface>
</node>