here's what i have during playback (xset q)DPMS?
Code: Select all
Section "ServerFlags"
Option "blank time" "0"
Option "standby time" "0"
Option "suspend time" "0"
Option "off time" "0"
EndSection
Code: Select all
From 12aa65389d43e0c7ac5d3defa4c727e6f78a3bb4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?R=C3=A9mi=20Denis-Courmont?= <remi@remlab.net>
Date: Sun, 11 Jul 2010 13:59:29 +0300
Subject: [PATCH] XCB: reset the X11 screen saver when displaying a picture
---
modules/video_output/xcb/glx.c | 3 +++
modules/video_output/xcb/x11.c | 2 ++
modules/video_output/xcb/xvideo.c | 2 ++
3 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/modules/video_output/xcb/glx.c b/modules/video_output/xcb/glx.c
index 6aa8976..42ff5cf 100644
--- a/modules/video_output/xcb/glx.c
+++ b/modules/video_output/xcb/glx.c
@@ -466,8 +466,11 @@ static void PictureRender (vout_display_t *vd, picture_t *pic)
static void PictureDisplay (vout_display_t *vd, picture_t *pic)
{
vout_display_sys_t *sys = vd->sys;
+ xcb_connection_t *conn = XGetXCBConnection (sys->display);
+ xcb_force_screen_saver (conn, XCB_SCREEN_SAVER_RESET);
vout_display_opengl_Display (&sys->vgl, &vd->source);
+ xcb_flush (conn);
picture_Release (pic);
}
diff --git a/modules/video_output/xcb/x11.c b/modules/video_output/xcb/x11.c
index ef9ba5e..51963dd 100644
--- a/modules/video_output/xcb/x11.c
+++ b/modules/video_output/xcb/x11.c
@@ -433,6 +433,8 @@ static void Display (vout_display_t *vd, picture_t *pic)
if (!p_sys->visible)
goto out;
+ xcb_force_screen_saver (p_sys->conn, XCB_SCREEN_SAVER_RESET);
+
if (segment != 0)
ck = xcb_shm_put_image_checked (p_sys->conn, p_sys->window, p_sys->gc,
/* real width */ pic->p->i_pitch / pic->p->i_pixel_pitch,
diff --git a/modules/video_output/xcb/xvideo.c b/modules/video_output/xcb/xvideo.c
index aa83249..66532b1 100644
--- a/modules/video_output/xcb/xvideo.c
+++ b/modules/video_output/xcb/xvideo.c
@@ -677,6 +677,8 @@ static void Display (vout_display_t *vd, picture_t *pic)
if (!p_sys->visible)
goto out;
+ xcb_force_screen_saver (p_sys->conn, XCB_SCREEN_SAVER_RESET);
+
if (segment)
ck = xcb_xv_shm_put_image_checked (p_sys->conn, p_sys->port,
p_sys->window, p_sys->gc, segment, p_sys->id, 0,
--
1.7.1
Return to “VLC media player for Linux and friends Troubleshooting”
Users browsing this forum: No registered users and 22 guests