/* Made by Spiros Ioannou */ /* Control the frame buffer (off - on) */ /* sioan@mykonos.esd.ece.ntua.gr sivann a t theseas.ntua.gr */ #include #include #include #include #include main() { int fd; int i = 1; if ((fd = open("/dev/fb", O_RDWR)) == -1) { fprintf(stderr, "Cant open device\n"); exit(1); } printf("ENTER state:"); scanf("%d", &i); ioctl(fd, FBIOSVIDEO, &i); ioctl(fd, FBIOGVIDEO, &i); printf("Current state:%d\n", i); close(fd); }