aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drminfo.man29
-rw-r--r--drmtest.c1
-rw-r--r--drmtest.man48
3 files changed, 78 insertions, 0 deletions
diff --git a/drminfo.man b/drminfo.man
new file mode 100644
index 0000000..a9ac1a3
--- /dev/null
+++ b/drminfo.man
@@ -0,0 +1,29 @@
+.TH DRMINFO 1
+.SH NAME
+drminfo - print drm device information
+.SH SYNOPSIS
+\fBdrminfo\fP [\fIoptions\fP]
+.SH DESCRIPTION
+.BR drminfo
+prints various informations about the drm device, including the
+outputs, the supported display resolutions (for connected outputs) and
+the supported framebuffer formats.
+.SH OPTIONS
+.TP
+.B -h
+Print usage info.
+.TP
+.BI "-c" "\ nr"
+Pick card number.
+.SH "SEE ALSO"
+.BR drmtest(1),
+.SH AUTHOR
+Gerd Hoffmann
+.BR <kraxel@redhat.com>
+.SH COPYRIGHT
+Copyright (c) 2017 Gerd Hoffmann <kraxel@redhat.com>
+.P
+This program is free software; you can redistribute it and/or modify it under
+the terms of the GNU General Public License as published by the Free Software
+Foundation; either version 2 of the License, or (at your option) any later
+version.
diff --git a/drmtest.c b/drmtest.c
index 1a52bb5..48e1384 100644
--- a/drmtest.c
+++ b/drmtest.c
@@ -461,6 +461,7 @@ static void usage(FILE *fp)
" -o <name> pick output\n"
" -s <secs> set sleep time\n"
" -i <file> load and display image <file>\n"
+ " -f <fmt> pick framebuffer format\n"
" -g openngl mode\n"
#if 0
" -d debug mode (opengl)\n"
diff --git a/drmtest.man b/drmtest.man
new file mode 100644
index 0000000..615fd4b
--- /dev/null
+++ b/drmtest.man
@@ -0,0 +1,48 @@
+.TH DRMTEST 1
+.SH NAME
+drmtest - show test image
+.SH SYNOPSIS
+\fBdrmtest\fP [\fIoptions\fP]
+.SH DESCRIPTION
+.BR drmtest
+renders a test image to the screen.
+.SH OPTIONS
+.TP
+.B -h
+Print usage info.
+.TP
+.BI "-c" "\ nr"
+Pick card number.
+.TP
+.BI "-o" "\ name"
+Pick output (use
+.BR "drminfo" "(1)"
+to print valid choices).
+.TP
+.BI "-s" "\ secs"
+Set sleep time. Default is 60 secs. Any key press will quit
+.B drmtest
+too.
+.TP
+.BI "-i" "\ file"
+Load and display the given image file instead of the test screen.
+Supports png and jpeg files.
+.TP
+.BI "-f" "\ fmt"
+Pick framebuffer format (rgb24, rgb30, rgb16). Has no effect in GL mode.
+.TP
+.B -g
+Use GL mode. Creates OpenGL context using EGL and uses that instead
+of (cairo) software rendering.
+.SH "SEE ALSO"
+.BR drminfo(1),
+.SH AUTHOR
+Gerd Hoffmann
+.BR <kraxel@redhat.com>
+.SH COPYRIGHT
+Copyright (c) 2017 Gerd Hoffmann <kraxel@redhat.com>
+.P
+This program is free software; you can redistribute it and/or modify it under
+the terms of the GNU General Public License as published by the Free Software
+Foundation; either version 2 of the License, or (at your option) any later
+version.