summaryrefslogtreecommitdiffstats
path: root/data/dbus-interfaces/net.hadess.SwitcherooControl.xml
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 15:07:22 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 15:07:22 +0000
commitf9d480cfe50ca1d7a0f0b5a2b8bb9932962bfbe7 (patch)
treece9e8db2d4e8799780fa72ae8f1953039373e2ee /data/dbus-interfaces/net.hadess.SwitcherooControl.xml
parentInitial commit. (diff)
downloadgnome-shell-8740dd82b8d4b36f9f5543d3e606008af2010c00.tar.xz
gnome-shell-8740dd82b8d4b36f9f5543d3e606008af2010c00.zip
Adding upstream version 3.38.6.upstream/3.38.6upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'data/dbus-interfaces/net.hadess.SwitcherooControl.xml')
-rw-r--r--data/dbus-interfaces/net.hadess.SwitcherooControl.xml46
1 files changed, 46 insertions, 0 deletions
diff --git a/data/dbus-interfaces/net.hadess.SwitcherooControl.xml b/data/dbus-interfaces/net.hadess.SwitcherooControl.xml
new file mode 100644
index 0000000..e52bc1a
--- /dev/null
+++ b/data/dbus-interfaces/net.hadess.SwitcherooControl.xml
@@ -0,0 +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>
+
+ <!--
+ 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:
+
+ Whether two switchable GPUs are present on the system. This property
+ has been obsoleted in favour of the "NumGPUs" property.
+ -->
+ <property name="HasDualGpu" type="b" access="read"/>
+
+ <!--
+ 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"/>
+
+ </interface>
+</node>