net.hadess.SwitcherooControl: Switcheroo Control Reference Manual

## net.hadess.SwitcherooControl net.hadess.SwitcherooControl — D-Bus proxy to access dual-GPU controls. |

## Properties

    HasDualGpu  readable   b
    NumGPUs     readable   u
    GPUs        readable   aa{sv}

## Description

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".

## Property Details

### The "HasDualGpu" property

    HasDualGpu  readable   b

Whether two switchable GPUs are present on the system. This property has been obsoleted in favour of the "NumGPUs" property.

### 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.

### The "GPUs" property

    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 GPU, the "Discrete" (b) key tags if the GPU is a dedicated component.