From: Jon Smirl Date: Wed, 18 May 2005 02:48:44 +0000 (+0000) Subject: Fix for writing the wrong sysfs variable when blanking X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bd565e4bb7c4cff44d6fe7ac422ac7a6219f07dd;p=mesa.git Fix for writing the wrong sysfs variable when blanking --- 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;