The size of framebuffer is 0x4800000 by default on tx2.
how to resize it?
529759718,
Sorry for late reply. May I ask what is the mode of your monitor?
“sudo service lightdm stop”,and copy a picture to framebuffer.
“fp = open(”/dev/fb0", O_RDWR);"
“ioctl(fp,FBIOGET_FSCREENINFO,&finfo)”
“printf(“The mem is :%d\n”,finfo.smem_len);”
finfo.smem_len is 0x4800000.
I want to resize framebuffer.
I want to konw how to resize it in driver.
for example resize it from 0x4800000 to 0x7E9000.
Please try below methods.
show list of modes: cat /sys/class/graphics/fb0/modes
blank display: echo 4 >/sys/class/graphics/fb0/blank
select mode from list of support modes above: echo D:1920x1080p-60 >/sys/class/graphics/fb0/mode
turn display back on: echo 0 >/sys/class/graphics/fb0/blank
I just want to resize the framebuffer of /dev/fb0.
I want that I use the following fuction and get finfo.smem_len is 0x7E9000, and now it is 0x4800000 by default.
“fp = open(”/dev/fb0", O_RDWR);"
“ioctl(fp,FBIOGET_FSCREENINFO,&finfo)”
“printf(“The mem is :%d\n”,finfo.smem_len);”
I think this question is not specific to tegra, but can be applied to all Linux system platform.
For example, this topic from stackoverflow looks the same as your request.
https://stackoverflow.com/questions/34904763/linux-framebuffer-set-resolution-correctly