On Sun, Jan 2, 2011 at 16:49:10 +0100, Petter Reinholdtsen wrote:
> [Julien Cristau]
> > KMS.
>
> How do I use Kernel ModeSetting to print the DDC information from the
> monitor in userspace? Google was not very helpfull. :)
>
$ ls /sys/class/drm/card*/*/edid
/sys/class/drm/card0/card0-DisplayPort-1/edid
/sys/class/drm/card0/card0-DisplayPort-2/edid
/sys/class/drm/card0/card0-DisplayPort-3/edid
/sys/class/drm/card0/card0-HDMI Type A-1/edid
/sys/class/drm/card0/card0-HDMI Type A-2/edid
/sys/class/drm/card0/card0-LVDS-1/edid
/sys/class/drm/card0/card0-SVIDEO-1/edid
/sys/class/drm/card0/card0-VGA-1/edid
$ edid-decode /sys/class/drm/card*/*LVDS*/edid
Extracted contents:
header: 00 ff ff ff ff ff ff 00
serial number: 30 64 07 23 33 38 33 39 2b 12
version: 01 03
basic params: 90 1a 10 78 0a
chroma info: 87 f5 94 57 4f 8c 27 27 50 54
established: 00 00 00
standard: 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01
descriptor 1: 4e 20 00 7c 51 20 1f 30 48 80 36 00 05 a3 10 00 00 1a
descriptor 2: fe 15 00 9e 51 20 1f 30 48 80 36 00 05 a3 10 00 00 1a
descriptor 3: 00 00 00 fe 00 4e 55 34 31 32 80 31 32 31 45 57 55 0a
descriptor 4: 00 00 00 fe 00 00 00 00 00 00 00 00 00 01 01 0a 20 20
extensions: 00
checksum: 64
Manufacturer: LCD Model 2307 Serial Number 959658035
Made week 43 of 2008
EDID version: 1.3
Digital display
Maximum image size: 26 cm x 16 cm
Gamma: 2.20
Supported color formats: RGB 4:4:4, YCrCb 4:2:2
First detailed timing is preferred timing
Established timings supported:
Standard timings supported:
Detailed mode: Clock 82.700 MHz, 261 mm x 163 mm
1280 1352 1480 1660 hborder 0
800 803 809 831 vborder 0
+hsync -vsync
Detailed mode: Clock 56.300 MHz, 261 mm x 163 mm
1280 1352 1480 1694 hborder 0
800 803 809 831 vborder 0
+hsync -vsync
ASCII string: NU412�121EWU
ASCII string: Checksum: 0x64
EDID block does NOT conform to EDID 1.3!
Digital display field contains garbage: 10
Missing name descriptor
Missing monitor ranges
Cheers,
Julien
Attachment:
signature.asc
Description: Digital signature