Skip to content

DRMCardPort

Inherits: Resource

GPU connector port state

Description

Represents the data contained in /sys/class/drm/cardX-YYYY and includes an update function that can be called to update the state of the connector port.

Properties

Type Name Default
Mutex mutex
String name
String path
int connector_id -1
bool enabled false
PackedStringArray modes PackedStringArray()
String status
bool dpms

Methods

Returns Signature
void update()
int get_connector_id()
bool get_enabled()
PackedStringArray get_modes()
String get_status()
bool get_dpms()

Property Descriptions

mutex

Mutex mutex

Mutex used for thread safety

name

String name

Name of the port. E.g. HDMI-A-1

path

String path

Full path to the port. E.g. /sys/class/drm/card1-HDMI-A-1

connector_id

int connector_id = -1

The connector id. E.g. /sys/class/drm/card1-HDMI-A-1/connector_id

enabled

bool enabled = false

Whether or not the port is enabled

modes

PackedStringArray modes = PackedStringArray()

An array of valid modes (E.g. "1024x768", "1920x1080")

status

String status

Status of the port (e.g. "connected")

dpms

bool dpms

Display power management signaling


Method Descriptions

update()

void update()

Updates the properties of the port

get_connector_id()

int get_connector_id()

Note

There is currently no description for this method. Please help us by contributing one!

get_enabled()

bool get_enabled()

Note

There is currently no description for this method. Please help us by contributing one!

get_modes()

PackedStringArray get_modes()

Note

There is currently no description for this method. Please help us by contributing one!

get_status()

String get_status()

Note

There is currently no description for this method. Please help us by contributing one!

get_dpms()

bool get_dpms()

Note

There is currently no description for this method. Please help us by contributing one!