Screen goes black after 15' on VLC 1.1

*nix specific usage questions
TeM
New Cone
New Cone
Posts: 5
Joined: 30 Jun 2010 10:26

Screen goes black after 15' on VLC 1.1

Postby TeM » 30 Jun 2010 10:42

Hi everyone,

I'm experiencing a really annoying issue with VLC 1.1.

I'm using archlinux with the last Gnome and VLC packages and while playing a movie full-screen, the screen goes black after like 15-20 minutes, as if it was going into sleep mode except I made sure that :
* I have disabled power management (tested this both using the gnome configuration menu and the inhibit applet)
* This is a bit weird because it feels like it's not power saving, I'm much pretty convinced that the led of my screen is supposed to turn orange when it switches to PS mode. however it stays blue when this happens, meaning this is only the signal going black, not the computer switching to PS.
* gnome-screensaver is NOT installed on my computer
* Moving the mouse or hitting a key brings the image back
* Sound is still playing while this happens

Downgrading VLC to version 1.0.6 solved the issue.

So it seems like a VLC regression to me. However from what I can read, I seem to be the only one experiencing this issue.

Anyone got any clues / suggestions / solution / question ?
Last edited by TeM on 02 Jul 2010 12:39, edited 1 time in total.

xtophe
Big Cone-huna
Big Cone-huna
Posts: 1209
Joined: 24 Nov 2003 10:12
Location: Bristol, England

Re: Screen goes black after 15' on VLC 1.1

Postby xtophe » 30 Jun 2010 17:12

DPMS?
Xtophe

TeM
New Cone
New Cone
Posts: 5
Joined: 30 Jun 2010 10:26

Re: Screen goes black after 15' on VLC 1.1

Postby TeM » 01 Jul 2010 00:30

DPMS?
here's what i have during playback (xset q)
DPMS (Energy Star):
Standby: 0 Suspend: 0 Off: 0
DPMS is Disabled

Rémi Denis-Courmont
Developer
Developer
Posts: 15067
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Screen goes black after 15' on VLC 1.1

Postby Rémi Denis-Courmont » 02 Jul 2010 03:59

No matter what you have to say, that is definitely a screensaver or power management feature of your system.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

TeM
New Cone
New Cone
Posts: 5
Joined: 30 Jun 2010 10:26

Re: Screen goes black after 15' on VLC 1.1

Postby TeM » 02 Jul 2010 12:30

Well,

I'm sorry but :
* The monitor is not going into "sleep mode" i've just double checked, it is really the image which is turning black
* I'm running arch, and due to the way this distribution installs, I know pretty much what's running on my computer, and I'm rather affirmative that :
--- I have no "screensaver" packet installed
--- DPMS is disabled when vlc is running
--- I've turned off any possible Power Management feature I could think of

Moreover, as I already highlighted it :
* I can't reproduce the issue in vlc 1.0.6, Downgrading to this version solves the issue.
* I had never experienced this issue with any other build of VLC in like, 2 years
* Other players such as MPlayer are working well

So no matter what you have to say, this looks like hell there is some VLC-related issue here !

Rémi Denis-Courmont
Developer
Developer
Posts: 15067
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Screen goes black after 15' on VLC 1.1

Postby Rémi Denis-Courmont » 02 Jul 2010 14:59

And VLC versions 1.0.6 & 1.1.0 use different interfaces to inhibit the screensaver... so there you have it, screensaver problem.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

snatch213
Blank Cone
Blank Cone
Posts: 10
Joined: 24 Jun 2010 13:43

Re: Screen goes black after 15' on VLC 1.1

Postby snatch213 » 03 Jul 2010 13:22

hello

I've been experiencing the same problem.
the power management kicks in after a while.
it doesn't matter if I set
inhibit=1
in the config file to inhibit the power management daemon

snatch
Last edited by snatch213 on 03 Jul 2010 13:26, edited 1 time in total.

snatch213
Blank Cone
Blank Cone
Posts: 10
Joined: 24 Jun 2010 13:43

Re: Screen goes black after 15' on VLC 1.1

Postby snatch213 » 03 Jul 2010 13:24

Hello,

I am running this on opensuse 11.2 32 bit.
I have also tried the downgrade trick and there the powermanagement does not kick in.

so this happens not only on arch but also on opensuse.

When you say
"And VLC versions 1.0.6 & 1.1.0 use different interfaces to inhibit the screensaver... so there you have it, screensaver problem."

I read it like this.
platform + screensaver + software v1.0.4 (old interface) = function properly
platform + screensaver + software v1.1 (new interface) = malfunction

I tested this, the only piece of the puzzle that changes is the vlc player version.
Why do you blame the screensaver ?

snatch

TeM
New Cone
New Cone
Posts: 5
Joined: 30 Jun 2010 10:26

Re: Screen goes black after 15' on VLC 1.1

Postby TeM » 03 Jul 2010 20:36

It looks like the problem was related to the "blank time" xorg option.

Modifying the xorg.conf file such that the Serverflags section looks like :

Code: Select all

Section "ServerFlags" Option "blank time" "0" Option "standby time" "0" Option "suspend time" "0" Option "off time" "0" EndSection
Seem to solve the issue.

I still blame VLC for this because it does not properly inhibit the X screen blanking.
Don't really care if it's because of the "new interface" or not : the thing is : it does not work, period.

Rémi Denis-Courmont
Developer
Developer
Posts: 15067
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Screen goes black after 15' on VLC 1.1

Postby Rémi Denis-Courmont » 11 Jul 2010 12:59

Does that solve your problem?

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
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

snatch213
Blank Cone
Blank Cone
Posts: 10
Joined: 24 Jun 2010 13:43

Re: Screen goes black after 15' on VLC 1.1

Postby snatch213 » 12 Jul 2010 08:58

Gimme some time to figure out how to find the patch and apply it.

TeM
New Cone
New Cone
Posts: 5
Joined: 30 Jun 2010 10:26

Re: Screen goes black after 15' on VLC 1.1

Postby TeM » 23 Jul 2010 10:26

Sorry, I was away for a while.

I'll be able to give this a try next week, I'll keep you posted.

Jaycoke
New Cone
New Cone
Posts: 1
Joined: 24 Jul 2010 15:43

Re: Screen goes black after 15' on VLC 1.1

Postby Jaycoke » 24 Jul 2010 15:47

+1
PCLinuxOS 2010 similar issues as OP
Just after upgrade from 1.06 to 1.1.1 the screensaver will come on when watching a movie. I tried reset the vlc preferences, no luck.

snatch213
Blank Cone
Blank Cone
Posts: 10
Joined: 24 Jun 2010 13:43

Re: Screen goes black after 15' on VLC 1.1

Postby snatch213 » 19 Aug 2010 17:46

Hello,

Sorry for the delay, but life got in the way.

I've tried your patch remi and it works.
I'm now watching a dvd with the screen saver settings in kde set to 1 minute and the screen does not blanc.

Good one :)
snatch213

1800yolk
New Cone
New Cone
Posts: 1
Joined: 16 Nov 2011 06:41

Re: Screen goes black after 15' on VLC 1.1

Postby 1800yolk » 16 Nov 2011 06:46

I have this same problem, and would like to try remi's solution, but I haven't any idea what to do with that code! I'm sort of a linux newbie, so I'm not sure where that code should go, or what type of file it should be saved as.
My guess would be in the vlc install directory saved as a bash file, but I'm not sure. Thanks!


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 3 guests