MythTV on Wayland : "DPMS" is not disabled

For discussion of topics specific to MythTV on linux
Post Reply
Magus
Junior
Posts: 30
Joined: Fri Feb 12, 2016 3:19 pm
France

MythTV on Wayland : "DPMS" is not disabled

Post by Magus »

Hello folks,
I run Gnome with Wayland and MythTV over it. I don't know if MythTV runs natively on Wayland, probably on Xwayland. So now running on Wayland, when i'm launching LiveTV, even if the application has or not the focus, the monitor is always falling in suspend mode after a time fixed in the desktop (Gnome) settings, if i don't touch the inputs.
Do i have to open a ticket, or it's not a priority for MythTV developers to port to Wayland ?
Is there a workaround other than disable DPMS in Gnome settings ?

Thanks for any help.
Last edited by Magus on Thu Feb 16, 2017 2:55 pm, edited 2 times in total.
User avatar
stuarta
Developer
Posts: 220
Joined: Wed Feb 05, 2014 5:13 pm
Great Britain

Re: MythTV on Wayland : "DPMS" is not disabled

Post by stuarta »

Do you have DBus running on your system? The frontend will disable the screensaver via the DBus interface, which does work just fine on Wayland.

You should see messages about DBus screensaver in the output from the frontend log if it's working.


Regards
Stuart
Magus
Junior
Posts: 30
Joined: Fri Feb 12, 2016 3:19 pm
France

Re: MythTV on Wayland : "DPMS" is not disabled

Post by Magus »

Hi,

I have DBus on my system. I have the same problem for any applications using xwayland. I don't use any screensaver application, just suspend mode. If i correctly understand how Wayland works, it doesn't use DBus. Wayland clients (including xwayland) probably must communicate with the Wayland compositor to avoid the suspend mode, but i'm not sure.
User avatar
stuarta
Developer
Posts: 220
Joined: Wed Feb 05, 2014 5:13 pm
Great Britain

Re: MythTV on Wayland : "DPMS" is not disabled

Post by stuarta »

Hi,

What do your logs say. I've just run a test with the timeout set to 5 minutes, and mythtv has kept going without
the screen turning off past the 5 minute mark. I get the following regarding the screensaver when playback starts

{{{
2016-12-28 09:59:04.732903 I ScreenSaverDBus: Successfully inhibited screensaver via org.freedesktop.ScreenSaver. cookie 2124904818. nom nom
2016-12-28 09:59:04.735947 W ScreenSaverDBus: Failed to disable screensaver: Type of message, '(ss)', does not match expected type '(susu)'
}}}

It's that first line there which says it's managed to successfully stop the screen saver from triggering.
Can you share the "ScreenSaverDBus" log messages from your frontend when playing a recording?


Regards
Stuart
Magus
Junior
Posts: 30
Joined: Fri Feb 12, 2016 3:19 pm
France

Re: MythTV on Wayland : "DPMS" is not disabled

Post by Magus »

Hi stuarta,

I have these messages about ScreenSaverDBus :

Code: Select all

2017-01-04 18:23:48.964129 I  ScreenSaverDBus: Successfully inhibited screensaver via org.freedesktop.ScreenSaver. cookie 457156315. nom nom
2017-01-04 18:23:48.964679 W  ScreenSaverDBus: Failed to disable screensaver: Le type du message, « (ss) », ne correspond pas au type attendu « (susu) »
2017-01-04 18:24:01.842682 I  ScreenSaverDBus: Screensaver uninhibited via org.freedesktop.ScreenSaver
But no luck, my screen is turning off always.

As i said, i have this problem for any applications needing to switch off the display suspend mode showing anything at full screen.
Magus
Junior
Posts: 30
Joined: Fri Feb 12, 2016 3:19 pm
France

Re: MythTV on Wayland : "DPMS" is not disabled

Post by Magus »

Hi,

some news. I don't any file named 'org.freedesktop.ScreenSaver' maybe is this ? Because i don't use any screensaver (only screen blanking).

Code: Select all

qdbus org.freedesktop.ScreenSaver /ScreenSaver org.freedesktop.ScreenSaver.GetActive
Error: org.freedesktop.DBus.Error.NotSupported
This method is not implemented
Magus
Junior
Posts: 30
Joined: Fri Feb 12, 2016 3:19 pm
France

Re: MythTV on Wayland : "DPMS" is not disabled

Post by Magus »

I don't know really how, but installing gnome-screensaver resolved my problem.
Thaat's all !
Magus
Junior
Posts: 30
Joined: Fri Feb 12, 2016 3:19 pm
France

Re: MythTV on Wayland : "DPMS" is not disabled

Post by Magus »

Errr.... sorry for bumping, but it doesn't solve my problem. It still occurs...
Post Reply