Top | ![]() |
![]() |
![]() |
![]() |
net.hadess.SwitcherooControlnet.hadess.SwitcherooControl — 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".
HasDualGpu readable b
Whether two switchable GPUs are present on the system. This property has been obsoleted in favour of the "NumGPUs" property.
NumGPUs readable u
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.
GPUs readable aa{sv}
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.