aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drv_X11.c2
-rw-r--r--drv_serdisplib.c18
-rw-r--r--svn_version.h2
3 files changed, 18 insertions, 4 deletions
diff --git a/drv_X11.c b/drv_X11.c
index 7310cd1..a61ac96 100644
--- a/drv_X11.c
+++ b/drv_X11.c
@@ -494,7 +494,7 @@ static void plugin_brightness(RESULT * result, const int argc, RESULT * argv[])
/* list models */
int drv_X11_list(void)
{
- printf("any");
+ printf("any X11 server");
return 0;
}
diff --git a/drv_serdisplib.c b/drv_serdisplib.c
index 59cea0b..b04c48b 100644
--- a/drv_serdisplib.c
+++ b/drv_serdisplib.c
@@ -186,6 +186,15 @@ static int drv_SD_start(const char *section)
return -1;
}
+ /* print supported options by display */
+ info("%s: options supported by display %s:", Name, model);
+ serdisp_options_t optiondesc;
+ optiondesc.name = ""; /* start the iteration with assigning an empty string before the first call */
+ while (serdisp_nextoptiondescription(dd, &optiondesc)) {
+ info(" %s", optiondesc.name);
+ }
+
+
DROWS = serdisp_getheight(dd);
DCOLS = serdisp_getwidth(dd);
NUMCOLS = serdisp_getcolours(dd);
@@ -281,16 +290,21 @@ static void plugin_rotate(RESULT * result, RESULT * arg1)
int drv_SD_list(void)
{
serdisp_display_t displaydesc;
+ long version;
if (verbose_level > 0) {
- printf(" version %i.%i, supported displays:\n",
- SERDISP_VERSION_GET_MAJOR(SERDISP_VERSION_CODE), SERDISP_VERSION_GET_MINOR(SERDISP_VERSION_CODE));
+ version = serdisp_getversioncode();
+ printf(" linked version %i.%i (compiled with header %i.%i), supported displays:\n",
+ SERDISP_VERSION_GET_MAJOR(version), SERDISP_VERSION_GET_MINOR(version),
+ SERDISP_VERSION_MAJOR, SERDISP_VERSION_MINOR);
+
displaydesc.dispname = "";
printf(" display name alias names description\n");
printf(" --------------- -------------------- -----------------------------------\n");
while (serdisp_nextdisplaydescription(&displaydesc)) {
printf(" %-15s %-20s %-35s\n", displaydesc.dispname, displaydesc.aliasnames, displaydesc.description);
}
+
} else {
displaydesc.dispname = "";
while (serdisp_nextdisplaydescription(&displaydesc)) {
diff --git a/svn_version.h b/svn_version.h
index ffe0c54..24ad33f 100644
--- a/svn_version.h
+++ b/svn_version.h
@@ -1 +1 @@
-#define SVN_VERSION "931"
+#define SVN_VERSION "954M"