timvideos / edid.tv

EDID Database Website
GNU General Public License v2.0
26 stars 7 forks source link

Linux alternative to xrandr, to get all EDID #43

Open bp0 opened 5 years ago

bp0 commented 5 years ago

xrandr requires X, so it can't be used to get EDID from an X-less machine. Also, the EDID may be from a remote machine if ssh -X.

find /sys/devices -name edid -print -exec hexdump -v -e '16/1 "%02x""\n"' {} \;
linuxhw commented 4 years ago

edid-decode /sys/devices/pci0000:00/0000:00:02.0/drm/card0/card0-LVDS-1/edid

or

edid-decode /sys/class/drm/card0-LVDS-1/edid ?

Which is most reliable way?

bp0 commented 4 years ago

The second one is a symlink to the first, for convenience. Only those in the /sys/devices tree are real, but places like /sys/class/drm can be used to get flat lists of devices in the tree. In the future, a unified /sys/subsystem/... is to replace class, bus, block from /sys, as I understand it, but those will continue to exist for a long time.

On Wed, Feb 19, 2020, 1:14 AM Linux Hardware Project < notifications@github.com> wrote:

edid-decode /sys/devices/pci0000:00/0000:00:02.0/drm/card0/card0-LVDS-1/edid

or

edid-decode /sys/class/drm/card0-LVDS-1/edid ?

Which is most reliable way?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/timvideos/edid.tv/issues/43?email_source=notifications&email_token=AANNHCXEVJBNVQVFWEBM4F3RDTL4XA5CNFSM4IPHHX7KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEMGT25I#issuecomment-588070261, or unsubscribe https://github.com/notifications/unsubscribe-auth/AANNHCU37RNADIKIBX3QQV3RDTL4XANCNFSM4IPHHX7A .