mythgame doesn't disable screensaver before launching game

Bug #264591 reported by Ross Campbell
2
Affects Status Importance Assigned to Milestone
Mythbuntu
Fix Released
Medium
Unassigned
mythplugins (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

using mythbuntu 8.04.1 on X64 with all latest patches and running mythtv packages from the weekly builds repository, I notice that launching a game from mythgame and playing it with a joypad will cause the screensaver to kick in after the default screensaver timeout.

I suspect that the gnome-screensaver disable patch that mythbuntu includes needs to be enhanced to disable screensaver in all plugins that could exec an external program prior to exec, and then re-enable it when the program returns.

Related branches

Revision history for this message
laga (laga) wrote :

Correct.

In /mythplugins-fixes/mythgame/mythgame/gamehandler.cpp, myth_system() is used to launch the game (around line 867).

myth_system() does not disable the screen saver by default. We can use the ScreenSaverControl class to, um, control the screen saver in mythgame.

Changed in mythbuntu:
status: New → Confirmed
Changed in mythplugins:
status: New → Confirmed
Changed in mythbuntu:
importance: Undecided → Medium
milestone: none → 8.10-final
Revision history for this message
laga (laga) wrote :

Hello Ross,

I've put together a patch and uploaded a test build to my PPA: https://launchpad.net/~laga/+archive

Revision history for this message
Ross Campbell (ross-campbell) wrote : Re: [Bug 264591] Re: mythgame doesn't disable screensaver before launching game

Is your patch in 0.21-fixes-1840 ? Looked like your fixes are for an older
svn-fixes version of mythgame.
-Ross

On Fri, Sep 26, 2008 at 1:15 PM, laga <email address hidden> wrote:

> Hello Ross,
>
> I've put together a patch and uploaded a test build to my PPA:
> https://launchpad.net/~laga/+archive<https://launchpad.net/%7Elaga/+archive>
>
> --
> mythgame doesn't disable screensaver before launching game
> https://bugs.launchpad.net/bugs/264591
> You received this bug notification because you are a direct subscriber
> of the bug.
>

laga (laga)
Changed in mythplugins:
status: Confirmed → Fix Committed
Changed in mythbuntu:
status: Confirmed → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package mythplugins - 0.21.0+fixes18722-0ubuntu1

---------------
mythplugins (0.21.0+fixes18722-0ubuntu1) intrepid; urgency=low

  * New upstream checkout. Fixes:
    - (LP: #256027)
    - (LP: #236297)
  * Add 12_fix_screensaver_in_mythgame.dpatch (LP: #264591)
  * debian/mythweb.postinst: fix symlink to MythVideo data folder in MythWeb
    (LP: #248563)

 -- Michael Haas <email address hidden> Wed, 15 Oct 2008 23:59:06 +0200

Changed in mythplugins:
status: Fix Committed → Fix Released
Revision history for this message
MarcRandolph (mrand) wrote :

Should have been released with 8.10 since it was fixed in mythplugins according to the following note:

This bug was fixed in the package mythplugins - 0.21.0+fixes18722-0ubuntu1
---------------
mythplugins (0.21.0+fixes18722-0ubuntu1) intrepid; urgency=low
  * New upstream checkout. Fixes:
    - (LP: #256027)
    - (LP: #236297)
  * Add 12_fix_screensaver_in_mythgame.dpatch (LP: #264591)
  * debian/mythweb.postinst: fix symlink to MythVideo data folder in MythWeb
    (LP: #248563)
 -- Michael Haas <email address hidden> Wed, 15 Oct 2008 23:59:06 +0200

Changed in mythbuntu:
status: Fix Committed → Fix Released
Revision history for this message
Ross Campbell (ross-campbell) wrote : Re: [Bug 264591] Re: mythgame doesn't disable screensaver before launching game

FYI - I still have the issue with screensaver in mythgame. I'm using
mythgame to launch pSX emulator. I'm using a game pad to control mythtv and
to use the game. It appears that just using the game pad doesn't appear as
an "activity" event to the screensaver... so after 20 minutes of play, the
screensaver kicks in and pauses the gameplay. It's a minor annoyance.
-Ross

On Mon, Apr 6, 2009 at 9:39 AM, MarcRandolph <email address hidden> wrote:

> Should have been released with 8.10 since it was fixed in mythplugins
> according to the following note:
>
>
> This bug was fixed in the package mythplugins - 0.21.0+fixes18722-0ubuntu1
> ---------------
> mythplugins (0.21.0+fixes18722-0ubuntu1) intrepid; urgency=low
> * New upstream checkout. Fixes:
> - (LP: #256027)
> - (LP: #236297)
> * Add 12_fix_screensaver_in_mythgame.dpatch (LP: #264591)
> * debian/mythweb.postinst: fix symlink to MythVideo data folder in MythWeb
> (LP: #248563)
> -- Michael Haas <email address hidden> Wed, 15 Oct 2008 23:59:06 +0200
>
>
> ** Changed in: mythbuntu
> Status: Fix Committed => Fix Released
>
> --
> mythgame doesn't disable screensaver before launching game
> https://bugs.launchpad.net/bugs/264591
> You received this bug notification because you are a direct subscriber
> of the bug.
>

Revision history for this message
MarcRandolph (mrand) wrote :

Ross, are you running a recent version (fixes18722 or newer)?

Thanks!

Changed in mythplugins (Ubuntu):
status: Fix Released → Confirmed
Changed in mythplugins (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Ross Campbell (ross-campbell) wrote :

I'm running the mythtv-fixes for Ubuntu 8.04 -- 20324, I have xscreensaver
enabled on my box for mythtv in general -- so when I'm at a menu and idle
for 20 mins it comes on, but when I'm watching a video or tv, it doesn't.

Here's the exact scenario where I get caught with the screensaver coming
back on...

launch pSX from mythgame (32-bit binary with all libs satisfied with
getlibs), play with joystick. Every 20 minutes, screen blanks and pauses
game. Joystick controller event input is not recognized by xscreensaver or
gnome-screensaver. I need to hit a key on the keyboard. Repeat everyt 20
minutes.

I just confirmed this again yesterday.

-Ross

On Thu, Apr 9, 2009 at 10:54 AM, MarcRandolph <email address hidden> wrote:

> Ross, are you running a recent version (fixes18722 or newer)?
>
> Thanks!
>
>
> ** Changed in: mythplugins (Ubuntu)
> Status: Fix Released => Confirmed
>
> --
> mythgame doesn't disable screensaver before launching game
> https://bugs.launchpad.net/bugs/264591
> You received this bug notification because you are a direct subscriber
> of the bug.
>

Revision history for this message
MarcRandolph (mrand) wrote :

screensaver stuff has been redone again, so I strongly suspect your problem is resolved. Please try 10.04 (beta 2 comes out next week). If there is still a problem, feel free to re-open this ticket.

Changed in mythplugins (Ubuntu):
status: Incomplete → Fix Released
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.