Casting issues with gnome-network-displays

Hello! I'm attempting to connect my Roku to my laptop, and it won't let me for some reason? I can cast other devices (windows laptops, and phones) but not my computer? The log when ran from the terminal shows:

MESA-INTEL: warning: ../src/intel/vulkan/anv_formats.c:782: FINISHME: support YUV colorspace with DRM format modifiers
MESA-INTEL: warning: ../src/intel/vulkan/anv_formats.c:814: FINISHME: support more multi-planar formats with DRM modifiers

(gnome-network-displays:2): Gnd-WARNING **: 13:20:53.992: NdCCProvider: Failed to resolve Avahi service: Resolving failed: Timeout reached

(gnome-network-displays:2): Gnd-WARNING **: 13:20:58.284: codec list not initialized

(gnome-network-displays:2): Gnd-WARNING **: 13:20:58.284: codec list not initialized

(gnome-network-displays:2): Gnd-WARNING **: 13:21:50.488: CcCtrl: Media load failed
gnome-network-displays: ../src/cc/cc-ctrl.c:595: cc_ctrl_connection_init: Assertion `ctrl->state == CC_CTRL_STATE_DISCONNECTED' failed.

and then quits. Could someone please help me, and thank you!

Hi and welcome. I suspect it might be down to Wayland compositor. Next time you login, select your username but don't enter your password. You will see a cog lower right. Click on it and select 'Zorin on x.org', then enter your password. Now try screencasting.

1 Like

Hello! I tried to do what you said, and it still doesn't work. It will say "Establishing connection to sink." and after a little will just say error. All of my stuff is connected to the internet, to the same network (since there is only one connection). I get the same errors in the terminal (codecs not initialized), don't know how to initialize them :confused:.

I would try installing the full gstreamer plugins and for good measure, the ubuntu-restricted extras

sudo apt update && sudo apt install -y ubuntu-restricted-extras gstreamer1.0-plugins-{bad,ugly,good} gstreamer1.0-libav

1 Like

When I went to install those it said:

E: The repository 'https://ppa.launchpadcontent.net/thopiekar/miraclecast/ubuntu jammy Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'https://ppa.launchpadcontent.net/yg-jensge/gupnp/ubuntu jammy Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

and when I open Gnome Network Displays again, it still says that the codecs are not initialized.

Thomas Pietrowski has not updated Miraclecast beyone Bionic - which is Ubuntu 18.04.
Zorin OS 17 is based on Ubuntu 22.04 (Jammy)
Zorin OS 16 is based on Ubuntu 20.04 (Focal)
Zorin OS 15 is based on Ubuntu 18.04 (Bionic)

The last update on Miraclecast is Bionic (18.04)

This repository is defunct - you should remove it.

Jens work ceased even earlier, in Xenial (Zorin OS 12).
This repository is defunct and should be remvoed.

I took a look around for alternatives. I found this:

But his instructions extend only up to Ubuntu 20.04 - one release edition earlier than Zorin OS 17. It might work...
That being said:
GNOME now has built-in support for Miracast (Wi-Fi Display) starting from GNOME 42

Zorin OS 17 is using Gnome 43. So you should not need to install repositories, and extra software.
let's remove the defunct repos:

sudo add-apt-repository --remove ppa:thopiekar/miraclecast

sudo add-apt-repository --remove ppa:yg-jensge/gupnp

sudo apt update && sudo apt full-upgrade

Check you are selected to Intel Graphics.
Ensure Gnome Network Displays package is installed:

sudo apt install gnome-network-displays

Launch:

gnome-network-displays

1 Like

[quote="Aravisian, post:6, topic:45470, full:true"]

Package doesn't exist on the apt repository (E: Unable to locate package gnome-network-displays). I was using the flatpack version, since I knew it was there on that, but still getting the same errors. But how would I check that my graphics are set to Intel Graphics? My system only has Intel graphics (Mesa IntelĀ® UHD Graphics 620 (KBL GT2)), and thats what it shows in the about page.

Then it is set to Intel. :wink:

What I said above applies if you are using a dedicated Nvidia or AMD card in addition to integrated Intel graphics.

I did not realize it was only available as flatpak, but am not surprised...

Have you checked the status of avahi?

systemctl status avahi-daemon

If not running, you can use systemctl to start or enable it

sudo systemctl start avahi-daemon

sudo systemctl enable avahi-daemon

Along with Gstreamer, you may need:

sudo apt install intel-media-va-driver

For the Mesa; Vulkan warnings, you might also try

You are logging in on Zorin on Xorg, right? Not Wayland?

Yes, and I followed the guide, installing the repo, and upgrading, but am still getting the error:

MESA-INTEL: warning: ../src/intel/vulkan/anv_formats.c:782: FINISHME: support YUV colorspace with DRM format modifiers
MESA-INTEL: warning: ../src/intel/vulkan/anv_formats.c:814: FINISHME: support more multi-planar formats with DRM modifiers

Am not sure what to do?

Those are not errors; just warnings about some modifiers that the product developer would like to see included in Mesa.

Is casting to the other screen working?

No, and now if ran from the terminal, it isn't showing anything. It will launch, just no log in the terminal. *Showed log, but just kept saying codecs not initialized

I tried searching all over the web on this: my best guess is that Gnome 43 released this included package when unready.
Here is an example: https://www.reddit.com/r/gnome/comments/1eecbdw/gnomenetworkdisplays_on_ubuntu_2204_cant_get_it/

The repeated answer is - it should work in Ubuntu 24.04.

Though I found plenty of examples of it not working in Ubuntu 24.04 - these examples are missing codecs but at least specifies which are missing.
This is mirrored in this POP_OS 20.04 bug report:

I think I am beginning to understand why you went looking at Miracast.