summaryrefslogtreecommitdiffstats
path: root/minuitwrp
diff options
context:
space:
mode:
Diffstat (limited to 'minuitwrp')
-rw-r--r--minuitwrp/graphics.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/minuitwrp/graphics.c b/minuitwrp/graphics.c
index 10d74a7a7..1465ce99b 100644
--- a/minuitwrp/graphics.c
+++ b/minuitwrp/graphics.c
@@ -163,12 +163,17 @@ int getFbYres (void) {
static int get_framebuffer(GGLSurface *fb)
{
- int fd;
+ int fd, index = 0;
void *bits;
fd = open("/dev/graphics/fb0", O_RDWR);
+ while (fd < 0 && index < 10) {
+ usleep(1000);
+ fd = open("/dev/graphics/fb0", O_RDWR);
+ index++;
+ }
if (fd < 0) {
- perror("cannot open fb0");
+ perror("cannot open fb0\n");
return -1;
}