DBUS
Service
- Bus Name:
com.github.opengamingcollective.cardwire - Object Path:
/com/github/opengamingcollective/cardwire - Interface:
com.github.opengamingcollective.cardwire
Methods
SetGpuBlock
Set the block state for a specific GPU. Only available when Mode is set to Manual
The default GPU cannot be blocked
Inputs:
- gpu_id (in):
u– The GPU identifier (idfield) - block (in):
b–trueto block,falseto unblock
Outputs: None
ListDevices
List all detected GPU devices
Inputs: None
Outputs:
- (out):
a{t(ussuubbbs)}
GPU Struct (ussuubbbs) fields:
id:u– GPU identifiername:s– GPU namepci:s– PCI address (e.g.0000:01:00.0)render:u– DRM render node minor numbercard:u– DRM card node minor numberdefault:b– Whether this is the default display GPUblocked:b– Whether the GPU is currently blocked by the daemonnvidia:b– Whether the GPU is an NVIDIA devicenvidia_minor:s– NVIDIA driver minor number (empty string if not applicable)
ListDevicesPci
List all detected PCI devices
Inputs: None
Outputs:
- (out):
a{s(ssssssss)}
PCI Struct (ssssssss) fields:
pci_address:s– PCI address (e.g.0000:01:00.0)iommu_group:s– IOMMU group number (empty string if none)vendor_id:s– PCI vendor ID (empty string if unknown)device_id:s– PCI device ID (empty string if unknown)vendor_name:s– Vendor name (empty string if unknown)device_name:s– Device name (empty string if unknown)driver:s– Kernel driver in use (empty string if unknown)class:s– PCI class (empty string if unknown)
Properties
Mode
Controls the global GPU blocking mode
- Type:
u(uint32) - Access: Read/Write
- Emits:
PropertiesChangedon change
Values:
0– Integrated: Block the dGPU. Requires exactly 2 GPUs1– Hybrid: Unblock the dGPU. Requires exactly 2 GPUs2– Manual: Allow per-GPU blocking viaSetGpuBlock, applies saved GPU state ifauto_applyis enabled