<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Dec 30, 2015 at 7:03 AM, Lawrence Rust <span dir="ltr"><<a href="mailto:lvr@softsystem.co.uk" target="_blank">lvr@softsystem.co.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Wed, 2015-12-30 at 12:02 +0000, Another Sillyname wrote:<br>
> On 30 December 2015 at 04:20, HP-mini <<a href="mailto:blm-ubunet@slingshot.co.nz">blm-ubunet@slingshot.co.nz</a>> wrote:<br>
> > On Sun, 2015-12-27 at 09:47 +0000, Lawrence Rust wrote:<br>
> >> On Sun, 2015-12-27 at 13:30 +1300, HP-mini wrote:<br>
> >> > On Sat, 2015-12-26 at 17:49 +0100, Jonatan Lindblad wrote:<br>
> ><br>
> > <snip><br>
> >> ><br>
> >> > That still might not be enough.. I have qtdbus enabled in master build<br>
> >> > but logs show "ScreenSaverDBus: Could not connect to dbus: " etc and so<br>
> >> > mate desktop screensaver does not inhibit during playback. Could this be<br>
> >> > dbus namespace problem?<br>
> >> ><br>
> >> > The xscreensaver works correctly.<br>
> >><br>
> >> I also note that on my Ubuntu 12.04 LTS based BE/FE the recent patches<br>
> >> to fixes/0.27 to use the DBus based screensaver inhibit have no effect<br>
> >> although the system suspend inhibit does work. E.g.:<br>
> >><br>
> >> 2015-12-27 09:24:56.479151 W ScreenSaverDBus: Could not connect to dbus: The name org.freedesktop.ScreenSaver was not provided by any .service files<br>
> >> 2015-12-27 09:24:56.479690 W ScreenSaverDBus: Could not connect to dbus: The name org.freedesktop.PowerManagement.Inhibit was not provided by any .service files<br>
> >> 2015-12-27 09:24:56.480211 W ScreenSaverDBus: Could not connect to dbus: The name org.mate.SessionManager was not provided by any .service files<br>
> >> 2015-12-27 09:24:56.482108 I ScreenSaverDBus: Created for DBus service: org.gnome.SessionManager<br>
> >><br>
> >> I ran foul of similar problems a couple of years ago after this patch<br>
> >> was added to 0.27: "5e13d41 Remove support for GNOME screensaver".<br>
> >><br>
> >> I have a combined BE/FE that runs 0.27 on Ubuntu 12.04 LTS and has<br>
> >> xscreensaver installed to display a slideshow while idle. Prior to that<br>
> >> patch I was using a wrapper around the gnome-screensaver-command that<br>
> >> trapped the obsolete --poke option. I had this<br>
> >> in /usr/local/bin/gnome-screensaver-command:<br>
> >><br>
> >> #!/bin/sh<br>
> >> set -e<br>
> >><br>
> >> Poke() {<br>
> >> dbus-send --session --dest=org.gnome.ScreenSaver --type=method_call\<br>
> >> /org/gnome/ScreenSaver org.gnome.ScreenSaver.SimulateUserActivity<br>
> >> }<br>
> >><br>
> >> case "${1:-}" in<br>
> >> --poke) Poke ;;<br>
> >> *) /usr/bin/gnome-screensaver-command "$@" ;;<br>
> >> esac<br>
> >><br>
> >> Following the removal of support for Gnome screensaver I wrote my own<br>
> >> patch that replaced the "gnome-screensaver-command --poke" call with a<br>
> >> call to "dbus-send...". This restored the behaviour that you are<br>
> >> seeking.<br>
> >><br>
> >> If you are interested, the patch is named<br>
> >> "0171-Screensaver-Add-DB-settings-for-the-detection-and-de.patch"<br>
> >> and is available in my MythTV patch archive:<br>
> >> <a href="http://www.softsystem.co.uk/download/mythtv/mythbuild-CURRENT.zip" rel="noreferrer" target="_blank">http://www.softsystem.co.uk/download/mythtv/mythbuild-CURRENT.zip</a><br>
> >><br>
> >> If necessary, you can configure the system command issued to disable the<br>
> >> Gnome screensaver from 'TV settings/Playback/General Playback/<br>
> >><br>
> >> HTH<br>
> >><br>
> >> -- Lawrence Rust<br>
> >><br>
> > Hi Lawrence,<br>
> > Here mythtv fails to work with mate-screensaver (fine with<br>
> > xscreensaver).<br>
> > I should try to figure out the root cause. Your script gives some<br>
> > insight..<br>
> > I recall switching to xscreensaver when gnome-screensaver stopped<br>
> > working as well.<br>
> ><br>
> > I've been using your playback seek recovery patch (PTS AV jiggle) for<br>
> > some years, the default behaviour is very annoying especially with near<br>
> > instant seeking.. Thanks.<br>
> > Brett.<br>
> ><br>
> ><br>
> ><br>
> > _______________________________________________<br>
> > mythtv-users mailing list<br>
> > <a href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a><br>
> > <a href="http://lists.mythtv.org/mailman/listinfo/mythtv-users" rel="noreferrer" target="_blank">http://lists.mythtv.org/mailman/listinfo/mythtv-users</a><br>
> > <a href="http://wiki.mythtv.org/Mailing_List_etiquette" rel="noreferrer" target="_blank">http://wiki.mythtv.org/Mailing_List_etiquette</a><br>
> > MythTV Forums: <a href="https://forum.mythtv.org" rel="noreferrer" target="_blank">https://forum.mythtv.org</a><br>
><br>
><br>
> Guys<br>
><br>
> Sorry to be a bit anal but a number have people have posted along the<br>
> lines of "....xscreensaver just works.....".<br>
><br>
> This is an imprecise statement as I'd already stated that while<br>
> xscreensaver screen blanking does appear to work as required the power<br>
> management element of it is NOT working correctly, so people posting<br>
> that xscreensaver "just works" may not be using power management or<br>
> it's settings may be either not turned on or set for such a long time<br>
> window that they don't 'see' the problem.<br>
><br>
> Could users possibly try the following.....<br>
><br>
> In xscreensaver settings<br>
><br>
> advanced settings<br>
><br>
> Display Power Management<br>
><br>
> Turn on >> Power Management Enabled<br>
><br>
> Set "Standby After" for say two minutes<br>
><br>
> In the 'Display Modes" setting set "Blank After" for say 5 minutes<br>
> (any value larger then the period set in "Standby After" above works<br>
> here)<br>
><br>
> exit the settings<br>
><br>
> start mythfrontend and start playing a video and leave it running with<br>
> no further key presses or remote inputs<br>
><br>
> see if the screen goes into power save mode after the period set in<br>
> "Standby After" even though a video is running.<br>
><br>
> I'd be interested to hear if people are surprised to find that Power<br>
> Save kicks in even though a video is running.....this is not the<br>
> desired behaviour but is what I'm seeing.<br>
<br>
Confirmed. On my Ubuntu 12.04 LTS FE/BE if Power Management is enabled<br>
then the video output powers down while Myth is playing a video. The<br>
relevant settings in ~/.xscreensaver are:<br>
<br>
timeout: 0:03:00 # time to screensaver start<br>
dpmsEnabled: True<br>
dpmsStandby: 0:04:00 # time to black screen<br>
dpmsSuspend: 0:04:00 # time to DPMS power saving<br>
dpmsOff: 0:05:00 # time to DPMS off<br>
<br>
These override any DPMS settings in xorg.conf.<br>
<br>
So it would appear that the X server requires real keyboard input or<br>
stimulating in a different way. DPMS can be disabled with 'xset -dpms'.<br>
Alternatively use xsendkey or xdotool to simulate a key-press every<br>
minute.<br>
<br>
FWIW I have DPMS disabled and use Myth's idle timeout and mythshutdown<br>
to put the system into 'Suspend To RAM'.<br></blockquote></div><br></div><div class="gmail_extra">I played a little with xscreensaver's DPMS but it didn't work correctly (it may have been the same symptoms but I don't recall), but I did use DPMS via `xset dpms 120 240 300` in my .xinitrc (very short timeouts) and it worked great on a remote frontend through the VGA port. It never blanked the screen while a video/recording was playing, but while paused or in the menus it followed the timeouts. This was a 0.27+ frontend.<br><br></div><div class="gmail_extra">Karl<br></div></div>