Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 03-May-2022 | - | ||||
subprojects/ | H | 16-Mar-2021 | - | 16 | 12 | |
.build.yml | H A D | 16-Mar-2021 | 259 | 16 | 15 | |
.gitignore | H A D | 16-Mar-2021 | 70 | 4 | 3 | |
LICENSE | H A D | 16-Mar-2021 | 1 KiB | 20 | 16 | |
README.md | H A D | 16-Mar-2021 | 1.2 KiB | 51 | 37 | |
drm_info.h | H A D | 16-Mar-2021 | 154 | 10 | 6 | |
fourcc.py | H A D | 16-Mar-2021 | 1.1 KiB | 58 | 44 | |
json.c | H A D | 16-Mar-2021 | 23.2 KiB | 789 | 641 | |
main.c | H A D | 16-Mar-2021 | 750 | 41 | 35 | |
meson.build | H A D | 16-Mar-2021 | 2.5 KiB | 88 | 76 | |
modifiers.c | H A D | 16-Mar-2021 | 6 KiB | 241 | 216 | |
modifiers.h | H A D | 16-Mar-2021 | 110 | 9 | 5 | |
pretty.c | H A D | 16-Mar-2021 | 27.2 KiB | 883 | 776 | |
tables.h | H A D | 16-Mar-2021 | 228 | 12 | 6 |
README.md
1# drm_info 2 3[![builds.sr.ht status](https://builds.sr.ht/~ascent/drm_info/commits.svg)](https://builds.sr.ht/~ascent/drm_info/commits?) 4 5Small utility to dump info about DRM devices. 6 7Requires libdrm and json-c. 8 9## Building 10 11Build with 12``` 13meson build 14cd build 15ninja 16sudo ninja install 17``` 18 19If you don't have the minimum json-c version (0.13.0), meson will automatically 20download and compile it for you. If you don't want this, run the first meson 21command with 22``` 23meson build --wrap-mode nofallback 24``` 25 26## Usage 27 28``` 29drm_info [-j] [--] [path]... 30``` 31- `-j` - Output info in JSON. Otherwise the output is pretty-printed. 32- `path` - Zero or more paths to a DRM device to print info about, e.g. 33`/dev/dri/card0`. If no paths are given, all devices found in 34`/dev/dri/card*` are printed. 35 36## DRM database 37 38[drmdb](https://drmdb.emersion.fr) is a database of Direct Rendering Manager 39dumps. This database is used to keep track of GPUs and DRM driver features 40support. 41 42Please help us gather more data! You can do so by uploading DRM information 43from your GPU. 44 45``` 46drm_info -j | curl -X POST -d @- https://drmdb.emersion.fr/submit 47``` 48 49This will upload information about your GPUs, your GPU drivers and your 50screens. 51