Documentation
¶
Overview ¶
Package edid reads a display's identity from its EDID: make, model and serial, as outputs are described and matched by.
Index ¶
Constants ¶
const PNPEnv = "LYS_PNP_IDS"
PNPEnv is the environment variable that points PNPPath at a PNP ID database.
Variables ¶
var ErrInvalid = errors.New("edid: invalid")
ErrInvalid is a blob that is not an EDID: too short, without the header, or with a bad base block checksum.
Functions ¶
Types ¶
type Info ¶
Info is a display's identity: its PNP manufacturer ID, its make (the manufacturer's name, or the PNP ID when unknown), its model and its serial.
func Parse ¶
Parse reads the identity from EDID b's base block. The model and serial come from the name and serial descriptors, falling back to the product code and the numeric serial in hex; a zero numeric serial leaves Serial empty. It fails with ErrInvalid.
func (Info) Description ¶
Description is make, model and serial joined by spaces, empty ones left out.