diff options
author | Jon Smirl <[email protected]> | 2005-05-18 02:48:44 +0000 |
---|---|---|
committer | Jon Smirl <[email protected]> | 2005-05-18 02:48:44 +0000 |
commit | bd565e4bb7c4cff44d6fe7ac422ac7a6219f07dd (patch) | |
tree | 8c22f39f82d9ff1cad7a4b70d7c5dee63f7f5b04 /src/mesa/drivers | |
parent | 9a3da7ea7b61fcd71dd5caf9be9eaf485aa7947d (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.c | 4 |
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 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; |