Commit graph

5 commits

Author SHA1 Message Date
Simon Ser
f0e5199b50 Add a CLI tool
For now it only prints the JSON representation of the information
exposed by libdisplay-info.

A JSON schema [1] and libjsonschema [2] are used to encode JSON.

[1]: https://json-schema.org/
[2]: https://sr.ht/~emersion/libjsonschema/

Signed-off-by: Simon Ser <contact@emersion.fr>
2022-11-21 15:41:29 +01:00
Simon Ser
fc9a605611 Move Python scripts to script/
We'll use the tool/ directory for the libdisplay-info CLI tool.

Signed-off-by: Simon Ser <contact@emersion.fr>
2022-11-21 15:41:29 +01:00
Pekka Paalanen
ac857e8985 info: use PNP ID database for manufacturer names
The three character PNP ID is a key to manufacturer name database. It
may be desirable to report the manufacturer's real name than just PNP ID
which can be misleading, e.g. MSI refers to Microstep and not MSI GmbH.

This builds the PNP ID database into libdisplay-info to avoid having to
find and parse files at runtime.

tool/gen-search-table.py started as a copy of Wayland 1.21.0's
src/embed.py and took influence from
10945c4ed8/conv.py
However, our script parses the text file shipped in hwdata package in
Debian (and presumably other distributions) rather than the original
CSV.

Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
2022-11-11 13:09:18 +02:00
Simon Ser
4ead11c64b dmt: add more timing info
Signed-off-by: Simon Ser <contact@emersion.fr>
2022-09-17 06:53:39 +00:00
Simon Ser
0cc784971b dmt: introduce generated table for DMT data
The Display Monitor Timing specification is a PDF with data tables.
A small Python script can be used to extract its contents in a
machine-readable form.

For now only extract a few fields. This can be extended later.

Signed-off-by: Simon Ser <contact@emersion.fr>
2022-08-01 14:35:33 +00:00