Skip to content

jiajiehe/read_monitor_i2c

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

read_monitor_i2c

Description

An application in C to read the first 20 Bytes of the EDID (Extended Display Identification Data) of an HDMI display over i2c. From the EDID, the application can print the following information regarding the HDMI display:

  1. Manufacturer ID (e.g., “IBM”)
  2. Week and year of manufacture
  3. Serial number
  4. EDID version and revision (e.g., “1.3”)

Usage

sudo ./read <BUS_ID>

Tools

Before starting, it can be useful to know what bus the display is connected to and what the EDID looks like. Us i2c-tools to get a list of all the devices on a given i2c bus (install using apt or build from here): sudo i2cdetect <BUS_ID> To get the EDID from command line, and then parse it (requires read-edid, install using apt): sudo get-edid -b <BUS_ID> | parse-edid

Useful links

1.(userspace) Accessing i2c devices from userspace

2.(kernelspace) Kernel modules programming guide (Hello, World - Part 1)

3.(kernelspace) Writing i2c client drivers

About

Read monitor's EEID via I2C

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages