Hi Tis,
I am using DM8168 and DVRRDK v4.1. Does frame buffer support double buffer feature?
Here is some codes to use frame buffer ioctl for getting fixed screen info and variable screen info...
// open fb device
fb->fd = open("/dev/fb0", O_RDWR);
if (fb->fd < 0)
{
LOG_ERR("[bootfb] Can't open frame buffer device!\n");
return -1;
}
// get screen's fixed info
if (ioctl(fb->fd, FBIOGET_FSCREENINFO, &fb->finfo) < 0)
{
LOG_ERR("[bootfb] Read fixed screen info failed!\n");
return -1;
}
// get screen's var info
if (ioctl(fb->fd, FBIOGET_VSCREENINFO, &fb->vinfo) < 0)
{
LOG_ERR("[bootfb] Read variable screen information failed!\n");
return -1;
}
...
I print resolution of VSCREENINFO as below:
fb->vinfo.xres = 1920, fb->vinfo.yres = 1080, fb->vinfo.xres_virtual = 1920, fb->vinfo.yres_virtual = 1080
But after I modify the fb->vinfo.yres_virtual = 2160 and use FBIOPUT_VSCREENINFO ioctl to apply the new parameter...
There is no error after set FBIOPUT_VSCREENINFO but the vinfo.yres_virtual is still the same 1080...not 2160.
Why?
BR,
Steven