simplified logic for framebuffer detection