Mythtv on Ubuntu 22.04 with Wayland

For discussion of topics specific to MythTV on linux
Post Reply
jarnos
Junior
Posts: 38
Joined: Sun Aug 11, 2019 8:17 am
Finland

Mythtv on Ubuntu 22.04 with Wayland

Post by jarnos »

Does Mythtv 32 work well with Wayland?
User avatar
heyted
Senior
Posts: 332
Joined: Sun Jun 08, 2014 2:14 am
Location: South Florida
Contact:
United States of America

Re: Mythtv on Ubuntu 22.04 with Wayland

Post by heyted »

I experienced issues with v31 with Wayland. But, v32 has been fine with Wayland for me.
Ted | My blog
white_haired_uncle
Senior
Posts: 666
Joined: Thu Feb 23, 2023 8:55 pm
Location: Safe outside my gilded cage
United States of America

Re: Mythtv on Ubuntu 22.04 with Wayland

Post by white_haired_uncle »

I'm compiling v33/fixes for a completely unrelated reason, and I noticed this.

Code: Select all

# Misc Features
Frontend                  yes
Backend                   yes
Qt private headers        no
Wayland extras            no
It looks like Wayland extras is enabled by default, but depends on Qt private headers, so it wasn't enabled for me. This is as far as I looked into it. I don't know the implications, I just saw this and thought of your thread and figured you might want to be aware of this if you end up rolling your own.
User avatar
kmdewaal
Developer
Posts: 748
Joined: Wed Dec 07, 2016 8:01 pm
Netherlands

Re: Mythtv on Ubuntu 22.04 with Wayland

Post by kmdewaal »

What can happen is that you get GUI and video issues. Here I have seen incorrect repainting of the GUI, no more keyboard focus after alt-tab back and forth, and, on 4k screens, the video covering only the left/top corner of the screen.
This can happen when the so-called "Qt platform" is wayland instead of xcb and wayland is the default when wayland is used instead of xorg.
All these issues are fixed by adding the mythfrontend command line option "-platform xcb" and then mythtfrontend runs OK on wayland.
You can verify in the log of mythfrontend if you can find a line like this:

Code: Select all

2023-08-18 19:01:00.280571 I [70171/70171] CoreContext mythrenderopengl.cpp:422:DebugFeatures  OpenGL: Qt platform          : xcb
and this should then show xcb.
weff
Junior
Posts: 29
Joined: Sun Nov 26, 2017 5:46 am
Australia

Re: Mythtv on Ubuntu 22.04 with Wayland

Post by weff »

Thanks for this workaround - this bug hit me this week and I was getting desperate!! This is v34/fixes on fedora and a self-compiled version on voidlinux
Post Reply