HardwareManager
Inherits: Resource
Discover and queries different aspects of the hardware
Description
HardwareManager is responsible for providing a way to discover and query different aspects of the current hardware.
Properties
| Type | Name | Default |
|---|---|---|
| String | pci_ids_path | |
| APUDatabase | amd_apu_database | |
| APUDatabase | intel_apu_database | |
| APUDatabase | dmi_overrides_apu_database | |
| CustomLogger | logger | |
| DRMCardInfo[] | cards | get_gpu_cards() |
| DRMCardPort[] | card_ports | |
| CPU | cpu | get_cpu() |
| HardwareManager.GPUInfo | gpu | get_gpu_info() |
| String | bios | get_bios_version() |
| String | kernel | get_kernel_version() |
| String | product_name | get_product_name() |
| String | vendor_name | get_vendor_name() |
| SharedThread | thread |
Methods
| Returns | Signature |
|---|---|
| String | get_bios_version() |
| String | get_product_name() |
| String | get_vendor_name() |
| CPU | get_cpu() |
| HardwareManager.GPUInfo | get_gpu_info() |
| String | get_kernel_version() |
| DRMCardInfo | get_gpu_card(card_dir: String) |
| DRMCardInfo[] | get_gpu_cards() |
| DRMCardInfo | get_active_gpu_card() |
| PackedStringArray | get_active_gpu_device() |
| void | start_gpu_watch() |
Property Descriptions
pci_ids_path
String pci_ids_path
Note
There is currently no description for this property. Please help us by contributing one!
amd_apu_database
APUDatabase amd_apu_database
Note
There is currently no description for this property. Please help us by contributing one!
intel_apu_database
APUDatabase intel_apu_database
Note
There is currently no description for this property. Please help us by contributing one!
dmi_overrides_apu_database
APUDatabase dmi_overrides_apu_database
Note
There is currently no description for this property. Please help us by contributing one!
logger
CustomLogger logger
Note
There is currently no description for this property. Please help us by contributing one!
cards
DRMCardInfo[] cards = get_gpu_cards()
Note
There is currently no description for this property. Please help us by contributing one!
card_ports
DRMCardPort[] card_ports
Note
There is currently no description for this property. Please help us by contributing one!
cpu
CPU cpu = get_cpu()
Note
There is currently no description for this property. Please help us by contributing one!
gpu
HardwareManager.GPUInfo gpu = get_gpu_info()
Note
There is currently no description for this property. Please help us by contributing one!
bios
String bios = get_bios_version()
Note
There is currently no description for this property. Please help us by contributing one!
kernel
String kernel = get_kernel_version()
Note
There is currently no description for this property. Please help us by contributing one!
product_name
String product_name = get_product_name()
Note
There is currently no description for this property. Please help us by contributing one!
vendor_name
String vendor_name = get_vendor_name()
Note
There is currently no description for this property. Please help us by contributing one!
thread
SharedThread thread
Note
There is currently no description for this property. Please help us by contributing one!
Method Descriptions
get_bios_version()
String get_bios_version()
Queries /sys/class for BIOS information
get_product_name()
String get_product_name()
Returns the hardware product name
get_vendor_name()
String get_vendor_name()
Returns the hardware vendor name
get_cpu()
CPU get_cpu()
Provides info on the CPU vendor, model, and capabilities.
get_gpu_info()
HardwareManager.GPUInfo get_gpu_info()
Returns the GPUInfo
get_kernel_version()
String get_kernel_version()
Returns the kernel version
get_gpu_card()
DRMCardInfo get_gpu_card(card_dir: String)
Returns GPU card info for the given card directory in /sys/class/drm (e.g. get_gpu_card("card1"))
get_gpu_cards()
DRMCardInfo[] get_gpu_cards()
Returns an array of CardInfo resources derived from /sys/class/drm
get_active_gpu_card()
DRMCardInfo get_active_gpu_card()
Returns the currently active GPU card
get_active_gpu_device()
PackedStringArray get_active_gpu_device()
Returns the string of the currently active GPU
start_gpu_watch()
void start_gpu_watch()
Starts watching for GPU connector port state changes in a separate thread, updating the properties of DRMCardPort objects and emitting signals when their state changes.