I installed Ubuntu on my new laptop and I need to connect it to a Samsung LED TV.
When I was in Windows 10 I was able to connect to my TV by just pressing the combination of Windows+K. Then it would automatically connect to it. I can't connect now.
- Dell Inspiron 15 3552
- Ubuntu 16.04 LTS
2 Answers
For the wireless projection You will need miraclecast to cast your screen over using the wireless display technology. To install miracle cast in Ubuntu via PPA:
sudo add-apt-repository ppa:thopiekar/miraclecast
sudo apt update
sudo apt install miraclecast ubuntu-restricted-extras checkIf the apt update fails, it might be because currently, this ppa has no Releases file. With current versions of apt, this blocks the apt update because the ppa is not secure enough. To sidestep this, we can disable this check for this repo. This is an insecure thing to do. Bad actors with access to the PPA could publish malicious code there without having access to the release file signing key. Try at your own risk:
sudo vim /etc/apt/sources.list.d/thopiekar-ubuntu-miraclecast-disco.listTo the first line of this file, add the [allow-insecure=yes] part:
deb [allow-insecure=yes] disco mainSave the file, try the steps above again, from 'sudo apt update'.
To start casting
Shutdown
wpa_supplicantand NetworkManager:sudo killall wpa_supplicant && sudo service network-manager stopLaunch wifi daemon:
sudo miracle-wifid &Now run miraclecast as a peer (peer is your device that is casting its screen to the TV):
Launch wifi control:
sudo miracle-wifictlthis should give you the miraclecast CLI and a link number. select the link with
select linkEnable wifi-direct visibility on the other device (if possible)
From the CLI locate the TV using:
p2p-scanyou get something like
12:34:ab:cd:45:43.ie the mac address
Then from the CLI initiate connection:
connect <mac addr> [pin]the pin could be the pin of the tv
Also look at the answers to How can i connect ubuntu 17.10 to my LG Smart TV
The miraclecast project page is also here on GitHub.
6If you can update to Ubuntu 21.04, there's Gnome-network-displays (available through the Flatpak system) which works reasonably well.