From bd565e4bb7c4cff44d6fe7ac422ac7a6219f07dd Mon Sep 17 00:00:00 2001 From: Jon Smirl Date: Wed, 18 May 2005 02:48:44 +0000 Subject: Fix for writing the wrong sysfs variable when blanking --- src/mesa/drivers/dri/fb/fb_egl.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/mesa/drivers') diff --git a/src/mesa/drivers/dri/fb/fb_egl.c b/src/mesa/drivers/dri/fb/fb_egl.c index 9541f4f39d3..6c06c5373c2 100644 --- a/src/mesa/drivers/dri/fb/fb_egl.c +++ b/src/mesa/drivers/dri/fb/fb_egl.c @@ -720,7 +720,7 @@ err: printf("chown all fb sysfs attrib to allow write - %s\n", buffer); return EGL_FALSE; } - snprintf(buffer, sizeof(buffer), "%d", (m == EGL_NO_MODE_MESA ? VESA_POWERDOWN : VESA_HSYNC_SUSPEND)); + snprintf(buffer, sizeof(buffer), "%d", (m == EGL_NO_MODE_MESA ? VESA_POWERDOWN : VESA_VSYNC_SUSPEND)); fputs(buffer, file); fclose(file); @@ -745,6 +745,8 @@ err: fputs(buffer, file); fclose(file); + snprintf(buffer, sizeof(buffer), "%s/%s/blank", sysfs, scrn->fb); + file = fopen(buffer, "r+"); if (!file) goto err; -- cgit v1.2.3