@@ -281,7 +281,8 @@
static struct VideoMode *FindVideoMode(const char *name);
static void ModifyVideoMode(struct VideoMode *vmode);
static void DisplayVModeInfo(struct VideoMode *vmode);
-static void DisplayFBInfo(struct fb_fix_screeninfo *fix);
+static void DisplayFBInfo(struct fb_fix_screeninfo *fix,
+ struct fb_var_screeninfo *var);
static int FillScanRates(struct VideoMode *vmode);
static void Usage(void) __attribute__ ((noreturn));
int main(int argc, char *argv[]);
@@ -758,7 +759,8 @@
* Display the Frame Buffer Device Information
*/
-static void DisplayFBInfo(struct fb_fix_screeninfo *fix)
+static void DisplayFBInfo(struct fb_fix_screeninfo *fix,
+ struct fb_var_screeninfo *var)
{
int i;
@@ -845,6 +847,16 @@
puts(Accelerators[i].name);
else
printf("Unknown (%d)\n", fix->accel);
+
+ printf(" Dimensions : %dx%d pixels", var->xres, var->yres);
+ if (var->width != -1 && var->height != -1)
+ printf(" (%dx%d mm)", var->width, var->height);
+ putc('\n', stdout);
+ printf(" Virtual : %dx%d pixels\n", var->xres_virtual, var->yres_virtual);
+ printf(" Offset : %dx%d pixels\n", var->xoffset, var->yoffset);
+ printf(" Bits/Pixel : %d\n", var->bits_per_pixel);
+ if (var->grayscale)
+ printf(" Graylevels : %d\n", var->grayscale);
}
@@ -1101,7 +1113,7 @@
if (Opt_verbose)
puts("Getting further frame buffer information");
GetFixScreenInfo(fh, &fix);
- DisplayFBInfo(&fix);
+ DisplayFBInfo(&fix, &var);
}
/*