GnomeRR.Output

Fields

None

Methods

can_clone (clone)

get_backlight ()

get_crtc ()

get_current_mode ()

get_display_name ()

get_edid_data (size)

get_id ()

get_ids_from_edid ()

get_is_primary ()

get_is_underscanning ()

get_min_backlight_step ()

get_name ()

get_physical_size ()

get_position ()

get_possible_crtcs ()

get_preferred_mode ()

is_builtin_display ()

list_modes ()

set_backlight (value)

set_color_transform (ctm)

supports_color_transform ()

supports_mode (mode)

supports_underscanning ()

Details

class GnomeRR.Output
can_clone(clone)
Parameters:

clone (GnomeRR.Output) – the output to compare

Returns:

TRUE if the output can clone another output

Return type:

bool

Checks whether the given output can clone another output.

get_backlight()
Returns:

The currently set backlight brightness

Return type:

int

Retrieves the backlight brightness of the given output.

get_crtc()
Returns:

the CRTC of the output

Return type:

GnomeRR.Crtc

Retrieves the CRTC of the given output.

get_current_mode()
Returns:

the current mode of this output

Return type:

GnomeRR.Mode

Retrieves the current mode of the given output.

get_display_name()
Returns:

the display name

Return type:

str

Retrieves the display name of the given output.

get_edid_data(size)
Parameters:

size (int) –

Return type:

int

get_id()
Return type:

int

get_ids_from_edid()
Returns:

vendor:

the output’s vendor string

product:

the output’s product string

serial:

the output’s serial string

Return type:

(vendor: str, product: str, serial: str)

Retrieves the model identifiers from the EDID of the given output.

get_is_primary()
Returns:

TRUE if the output is the primary one

Return type:

bool

Checks whether the given output is the primary output.

get_is_underscanning()
Return type:

bool

get_min_backlight_step()
Returns:

The minimum backlight step available in percent

Return type:

int

Retrieves the value of the minimum backlight step for the given output, as a percentage.

get_name()
Returns:

the name of the output

Return type:

str

Retrieves the name of the given output.

get_physical_size()
Returns:

width_mm:

the width of the output, in millimeters

height_mm:

the height of the output, in millimeters

Return type:

(width_mm: int, height_mm: int)

Retrieves the physical size of the given output.

get_position()
Returns:

x:

the X coordinate of the output

y:

the Y coordinate of the output

Return type:

(x: int, y: int)

get_possible_crtcs()
Returns:

the list of possible CRTC

Return type:

[GnomeRR.Crtc]

Retrieves all the possible CRTC for the given output.

get_preferred_mode()
Returns:

the preferred mode of the output

Return type:

GnomeRR.Mode

Retrieves the preferred mode of the given output.

is_builtin_display()
Returns:

TRUE if the output is a built-in display

Return type:

bool

Checks whether the given output is a built-in display.

list_modes()
Returns:

a list of modes

Return type:

[GnomeRR.Mode]

Retrieves all available modes of the given output.

set_backlight(value)
Parameters:

value (int) – the absolute value of the backlight

Raises:

GLib.Error

Returns:

TRUE for success

Return type:

bool

Sets the backlight level for the given output.

The value is a percentage, with a range of [0, 100].

set_color_transform(ctm)
Parameters:

ctm (GnomeRR.CTM) – the color transformation matrix

Raises:

GLib.Error

Returns:

TRUE on success

Return type:

bool

Sets the color transformation matrix for the given output.

supports_color_transform()
Return type:

bool

supports_mode(mode)
Parameters:

mode (GnomeRR.Mode) – the mode to compare

Returns:

TRUE if the mode is supported

Return type:

bool

Checks whether the given output supports a mode.

supports_underscanning()
Return type:

bool