[ubuntu karmic] mythtv-frontend does not prevent display being put to sleep during tv watching

Bug #453377 reported by ullix
28
This bug affects 4 people
Affects Status Importance Assigned to Milestone
gnome-power-manager (Ubuntu)
New
Undecided
Unassigned
gnome-screensaver (Ubuntu)
New
Undecided
Unassigned
mythtv (Ubuntu)
New
Undecided
Unassigned

Bug Description

my computer display is switched off after some inactivity (as it should) but even during watching tv with myth-frontend

I am using :
mythfrontend --version
Please include all output in bug reports.
MythTV Version : 22492
MythTV Branch : branches/release-0-22-fixes
Network Protocol : 50
Library API : 0.22.20091008-1
QT Version : 4.5.2

from:
deb http://ppa.launchpad.net/mythbuntu/trunk-0.22/ubuntu karmic main

affects: ubuntu → mythtv (Ubuntu)
Revision history for this message
Mario Limonciello (superm1) wrote :

Can you confirm whether this is gnome screensaver doing this, or the X power management?

You can confirm it's gnome-screensaver if when it happens you ssh in and killall gnome-screensaver and the display comes back.

That would mean that the gnome-screensaver inhibition stuff isn't working.

Revision history for this message
tankdriver (stoneraider-deactivatedaccount) wrote :

I can confirm this issue too. (SD and HD channels, no desktop effects)

Revision history for this message
ullix (ullix) wrote :

Mario, I tried to find the answer to your question, but there seem to be a few more oddities. Looks like gnome-screensaver has problems of its own and in its interaction with mythtv.

I set the preferences in the gnome-power-manager 2.28.0 to (for battery and AC)
- put the computer to sleep when inactive for: 1h
- put the display to sleep when inactive for: 1 min

On battery:
cold boot, then some cursor movement on the desktop before starting timing: nothing happened at 1min, but at 5min the display dimmed slowly to off. Via ssh from a second computer I killed gnome-screensaver, and the display came right back. Then, in intervals of 1 min, the screen switched to off in an quick change (I guess that slow-dimming is gnome-screensaver and quick-off is X power management?) Then I used mythtv-frontend to watch live tv, and it was still running fine at 8min. When stopping live-tv and looking at mythtv menues or other textual info, then screen was switched quick-off in 1 min intervals.

On AC:
same procedure as with battery: nothing happened at 1min, but slow dim off at 5min, and again, killing gnome-screensave via ssh brought the display back. But then it kept running beyond 8min. Not surprinsingly, live-tv via mythtv-frontend runs continuously.

On battery and AC:
from a cold boot with the gnome-screensaver running and mythtv showing live-tv: nothing happened at 1min, but mythtv crashed in 8 out of 9 attempts at 2-4 min. Once I was able to get mythtv runing to 5min, when the display dimmed off slowly. But then the display came back some 10 seconds later.

Revision history for this message
Mario Limonciello (superm1) wrote :

So the way that we work to disable screensaver is by running:
"gnome-screensaver-command --poke"

Can you start mythfrontend like this so we can see if it's even trying to run that command (and rule out if it's a gnome screensaver not responding to the poke problem, or a problem with the way myth is using the poke)

mythfrontend -v important,general,playback

Revision history for this message
ullix (ullix) wrote :

running on battery; looks like it's poking every 50 seconds?

$ mythfrontend -v important,general,playback | grep save
2009-10-18 19:06:18.074 ScreenSaverX11Private: Gnome screen saver support enabled
ALSA lib control.c:909:(snd_ctl_open_noupdate) Invalid CTL /dev/mixer
2009-10-18 19:07:22.240 ScreenSaverX11Private: Calling gnome-screensaver-command --poke
2009-10-18 19:08:12.251 ScreenSaverX11Private: Calling gnome-screensaver-command --poke
2009-10-18 19:09:02.254 ScreenSaverX11Private: Calling gnome-screensaver-command --poke
2009-10-18 19:09:52.237 ScreenSaverX11Private: Calling gnome-screensaver-command --poke

after this mythtv crashed again

Revision history for this message
Mario Limonciello (superm1) wrote :

I've marked this as a duplicate of bug 428884 because it looks like the patch that fixes it for VLC should fix it for mythtv too.

Revision history for this message
ullix (ullix) wrote :

with all updates from uo to this evening (Oct 20, 2009):

nothing is fixed. with the gnome-power-manager set to put the display to sleep in 1 min, nothing happens at this time, wjhile the display dims off slowly at 5 min, which is not set, neither for battery nor for AC.

mythtv is also not switched off at 1min (not sruprising given above) I can't determine if it is switched off at 5min, because it is always chrashing between 2 and <5min.

Killing gnome-screensaver results in the display switched fast-off at 1min. mythtv sometimes crashes at 2min, sometimes goes up to +8min.

Revision history for this message
Mario Limonciello (superm1) wrote : Re: [Bug 453377] Re: [ubuntu karmic] mythtv-frontend does not prevent display being put to sleep during tv watching

(the bug this is a duplicate of isn't fixed yet)

On Tue, Oct 20, 2009 at 15:37, ullix <email address hidden> wrote:

> *** This bug is a duplicate of bug 428884 ***
> https://bugs.launchpad.net/bugs/428884
>
> with all updates from uo to this evening (Oct 20, 2009):
>
> nothing is fixed. with the gnome-power-manager set to put the display to
> sleep in 1 min, nothing happens at this time, wjhile the display dims
> off slowly at 5 min, which is not set, neither for battery nor for AC.
>
> mythtv is also not switched off at 1min (not sruprising given above) I
> can't determine if it is switched off at 5min, because it is always
> chrashing between 2 and <5min.
>
> Killing gnome-screensaver results in the display switched fast-off at
> 1min. mythtv sometimes crashes at 2min, sometimes goes up to +8min.
>
> --
> [ubuntu karmic] mythtv-frontend does not prevent display being put to sleep
> during tv watching
> https://bugs.launchpad.net/bugs/453377
> You received this bug notification because you are a member of Mythbuntu
> Bug Team, which is subscribed to mythtv in ubuntu.
>

--
Mario Limonciello
<email address hidden>

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.