• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

subprojects/H16-Mar-2021-1612

.build.ymlH A D16-Mar-2021259 1615

.gitignoreH A D16-Mar-202170 43

LICENSEH A D16-Mar-20211 KiB2016

README.mdH A D16-Mar-20211.2 KiB5137

drm_info.hH A D16-Mar-2021154 106

fourcc.pyH A D16-Mar-20211.1 KiB5844

json.cH A D16-Mar-202123.2 KiB789641

main.cH A D16-Mar-2021750 4135

meson.buildH A D16-Mar-20212.5 KiB8876

modifiers.cH A D16-Mar-20216 KiB241216

modifiers.hH A D16-Mar-2021110 95

pretty.cH A D16-Mar-202127.2 KiB883776

tables.hH A D16-Mar-2021228 126

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