In this lab you will make use of I/O control (ioctl) to get screen information. You will use ioctl's to get the fixed screen information and the variable screen information, from which can be derived the visual type, the accelerator (if any), the screen capabilities, the x-resolution, the y-resolution, and bits per pixel. You will direct all error messages to a file.
ret = ioctl(.., ..., ...); if(ret<0) { cerr << strerror(errno) << endl; }
For documentation on struct fb_fix_screeninfo and struct fb_var_screeninfo, see fb.h.
For documentation on Frame Buffer (screen) ioctl's, see The Frame Buffer Device API.
For a tutorial on I/O control and device drivers in Linux, see Controlling Hardware with ioctls.
Be sure to include the numbers for your fixed and variable screen information in your Lab4.cpp.
Email me your Makefile and your Lab4.cpp file to:
miguel.watler@senecapolytechnic.ca
NB: My last name is Watler, not Walter.