Failed video playback leaves screensaver disabled.

Have a MythTV related problem? Ask for help from other MythTV users here.

Moderator: Forum Moderators

Post Reply
white_haired_uncle
Senior
Posts: 245
Joined: Thu Feb 23, 2023 8:55 pm
Location: Safe outside my gilded cage
United States of America

Failed video playback leaves screensaver disabled.

Post by white_haired_uncle »

mythfrontend version: fixes/33 [v33.1-5-g7f288be61b], no window manager, screensaver set to "xset s blank; xset s 600".

Tonight I walked into the living room and found the video menu open long after the screen should have gone blank. The last thing I had done was to try to watch a video I was in the process of encoding, which failed. Looking at the log, it appears that when a video fails to start (at least?), the screensaver is not re-enabled. Here are two examples from the FE log:

First, I watch a few seconds of a working video:

Code: Select all

May 11 22:55:30 wolverine mythfrontend: mythfrontend[2228511]: I CoreContext tv_play.cpp:1955 (HandleStateChange) TV::HandleStateChange(): Attempting to change from WatchingVideo to None
May 11 22:55:30 wolverine mythfrontend: mythfrontend[2228511]: I CoreContext mythscreensaverx11.cpp:162 (RestoreScreenSaver) ScreenSaverX11: Uninhibited screensaver
May 11 22:55:30 wolverine mythfrontend: mythfrontend[2228511]: I CoreContext mythscreensaverx11.cpp:139 (RestoreDPMS) ScreenSaverX11: DPMS Reactivated 1
Then I attempt to watch a file that's still being encoded:

Code: Select all

May 11 22:57:16 wolverine mythfrontend: mythfrontend[2228511]: E CoreContext mythplayer.cpp:526 (OpenFile) Couldn't open decoder for: /net/hawkeye/export/share/video/msv-200-1pass.av1
May 11 22:57:16 wolverine mythfrontend: mythfrontend[2228511]: E CoreContext mythplayerui.cpp:68 (StartPlaying) PlayerUI: Unable to open video file.
May 11 22:57:16 wolverine mythfrontend: mythfrontend[2228511]: E CoreContext tv_play.cpp:208 (StartPlaying) TV::StartPlaying(): StartPlaying() Failed to start player
May 11 22:57:16 wolverine mythfrontend: mythfrontend[2228511]: C CoreContext tv_play.cpp:4663 (StartPlayer) TV::StartPlayer(): Failed to create player.
May 11 22:57:16 wolverine mythfrontend: mythfrontend[2228511]: I CoreContext mythscreensaverx11.cpp:248 (Disable) ScreenSaverX11: Inhibited X11 screensaver
May 11 22:57:16 wolverine mythfrontend: mythfrontend[2228511]: I CoreContext mythscreensaverx11.cpp:128 (DisableDPMS) ScreenSaverX11: DPMS Deactivated 1
May 11 22:57:16 wolverine mythfrontend: mythfrontend[2228511]: I CoreContext tv_play.cpp:356 (StartTV) TV::StartTV(): Entering main playback loop.
May 11 22:57:16 wolverine mythfrontend: mythfrontend[2228511]: I CoreContext tv_play.cpp:358 (StartTV) TV::StartTV(): Exiting main playback loop.
May 11 22:57:16 wolverine mythfrontend: mythfrontend[2228511]: N CoreContext mythmainwindow.cpp:2162 (PauseIdleTimer) Resuming idle timer
May 11 22:57:16 wolverine mythfrontend: mythfrontend[2228511]: N CoreContext mythmainwindow.cpp:2162 (PauseIdleTimer) Resuming idle timer
It looks to me like in the second case it fails to re-enable the screensaver. Seems odd that it disables the ss after failing to start, perhaps there's a reason I'm missing, but IMO it really should clean up after itself before exiting.
Post Reply