summaryrefslogtreecommitdiff
path: root/src/mesa/drivers
diff options
context:
space:
mode:
authorJon Smirl <jonsmirl@gmail.com>2005-05-18 02:48:44 +0000
committerJon Smirl <jonsmirl@gmail.com>2005-05-18 02:48:44 +0000
commitbd565e4bb7c4cff44d6fe7ac422ac7a6219f07dd (patch)
tree8c22f39f82d9ff1cad7a4b70d7c5dee63f7f5b04 /src/mesa/drivers
parent9a3da7ea7b61fcd71dd5caf9be9eaf485aa7947d (diff)
Fix for writing the wrong sysfs variable when blanking
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r--src/mesa/drivers/dri/fb/fb_egl.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/fb/fb_egl.c b/src/mesa/drivers/dri/fb/fb_egl.c
index 9541f4f39d..6c06c5373c 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;