Score:3

Ubuntu 22.04 How to cast the entire screen with sound

to flag

I recently updated my Ubuntu version to 22.04, and I would like to cast my desktop to Chromecast.

I tried the following things:

  1. With Google Chrome I'm able to cast a browser tab. Sound and image works nice.
  2. When you try to share desktop, I can see the image properly, but sound does not work.
  3. I tried to use from GNOME desktop "Cast to TV" extension, but it seems it doesn't work with this Ubuntu version.
  4. I tried with mkchromecast. After trying several commands, I only could cast image from my desktop. I couldn't cast the sound.

Has anyone faced the same issue? Does anyone with Ubuntu 22.04 have any alternative working method for casting desktop?

Score:0
al flag

Have you tried using the built-in Ubuntu screen-sharing feature? It's a little hidden, but it's there. Go to the settings, look for "Sharing" and give it a shot. If that doesn't work, you can always try using VLC to stream your desktop. It's a bit more complicated, but it will get the job done. Just follow the instructions on their website, and you'll be good to go.

mvpasamon avatar
to flag
Thanks for your answer.
mvpasamon avatar
to flag
Thanks for your answer. I tried screen-sharing feature (you were right, it is a little bit hidden). It seems it is made for sharing your desktop through a remote desktop client (remmina) and for sharing your media files through dlna client-server. This is not what I need. I would like use my chromecast as a screen mirroring (It worked fine in older ubuntu versions using cast screen choice of chrome). VLC is not a choice in my case. I tried the renderer choice for casting only the video I'm watching and it does not work either. I don't know why. I'm still looking for a solution. Thx.
Score:0
ss flag

Try disabling Wayland. https://linuxconfig.org/how-to-enable-disable-wayland-on-ubuntu-22-04-desktop Starting with $ sudo nano /etc/gdm3/custom.conf in a terminal window. The first link has it all so no need to repeat parts of it. It worked for me.

David avatar
cn flag
While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. - [From Review](/review/late-answers/1291262)
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.