edidtools

package
v0.0.0-...-eb33ec1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 26, 2025 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var QuirksRegistry = map[string]map[string]DisplayQuirks{
	"MRG": {
		"Air": {
			MaxWidth:        1920,
			MaxHeight:       1080,
			MaxRefreshRate:  120,
			SensorInitDelay: 10,
			ZVectorDisabled: true,
		},
	},
}

Vendor and devices names sourced from "https://uefi.org/uefi-pnp-export"

Functions

func LoadCustomEDIDFirmware

func LoadCustomEDIDFirmware(displayMetadata *DisplayMetadata, edidFirmware []byte) error

Loads custom firmware for a supported XR glass device

func UnloadCustomEDIDFirmware

func UnloadCustomEDIDFirmware(displayMetadata *DisplayMetadata) error

Unloads custom firmware for a supported XR glass device

Types

type DisplayMetadata

type DisplayMetadata struct {
	EDID              []byte
	DeviceVendor      string
	DeviceQuirks      DisplayQuirks
	MaxWidth          int
	MaxHeight         int
	MaxRefreshRate    int
	LinuxDRMCard      string
	LinuxDRMConnector string
}

func FetchXRGlassEDID

func FetchXRGlassEDID(allowUnsupportedDevices bool) (*DisplayMetadata, error)

Attempts to fetch the EDID firmware for any supported XR glasses device

func ParseEDID

func ParseEDID(rawEDIDFile []byte, allowUnsupportedDevices bool) (*DisplayMetadata, error)

type DisplayQuirks

type DisplayQuirks struct {
	MaxWidth        int
	MaxHeight       int
	MaxRefreshRate  int
	SensorInitDelay int
	ZVectorDisabled bool
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL