6 int main(int argc, char ** argv) {
7 int fd = open("/dev/fb0", O_WRONLY|O_NONBLOCK );
12 printf("You must specify on or off\n");
16 on = !strncmp(argv[1], "on", (strlen(argv[1]) > 1 ? 2 : 1));
18 printf((on ? "on\n" : "off\n"));
22 int ioctlnum = 0x4611;
23 int vesaMode = on ? 0 : 3;
24 res = ioctl ( fd, ioctlnum, vesaMode );