In attempting to write directly to the graphics frame buffer /dev/fb0 , (Ubuntu 12.04) , the graphics screen does not change.
Has Ubuntu 12.04 invalidated the use of /dev/fb0 , or does it need to be activated in some way ?
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.
Sign up to join this communityIn attempting to write directly to the graphics frame buffer /dev/fb0 , (Ubuntu 12.04) , the graphics screen does not change.
Has Ubuntu 12.04 invalidated the use of /dev/fb0 , or does it need to be activated in some way ?
Had to do a 2nd ioctl()
to ACTIVATE the frame buffer, then it worked.
/* Refresh buffer manually */
vi.activate |= FB_ACTIVATE_NOW | FB_ACTIVATE_FORCE;
if(0 > ioctl(fd, FBIOPUT_VSCREENINFO, &vi)) {
printf("Failed to refresh\n");
return -1;
}