this post was submitted on 07 Feb 2024
21 points (86.2% liked)

Linux

48044 readers
776 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
21
submitted 9 months ago* (last edited 9 months ago) by [email protected] to c/[email protected]
 

I'm trying to find a way to stream my monitor to Apple TVs in my school via AirPlay. I've already done some research and it seems like there are currently no software solutions, with the closest one being openairplay, however it seems to be pretty dead.

I "need" AirPlay, as my school only uses Apple TVs, and it's quite inconvenient to always bring my HDMI cable and have to hook up to projectors that way.

I'm also open to more scuffed solutions, as I won't be going to that school for much longer. Some things I have thought of so far are:

  1. Using my old iPhone 6 (maybe jailbreak it, I don't think that matters here though) and something like deskreen to first cast my laptop screen to the iPhone and then AirPlay from there. I'd expect this to work, but it wouldn't be much less cumbersome than just using HDMI directly, and it would also mean having to carry that iPhone and a charging cable for it with me all the time.
  2. Using a Mac OS virtual machine with something like OSX-KVM, then possibly buying a WiFi card with AirPlay support and passing it through to the VM in combination with a similar deskreen solution as in 1. This also seems pretty complicated, and I'm not even sure if it would work at all.

Does anyone here have any experience with this, know of any better solutions (I'm also open to more scuffed solutions), or maybe even tried one of my scuffed methods already?

top 6 comments
sorted by: hot top controversial new old
[–] [email protected] 4 points 9 months ago (1 children)

My main experience casting to Apple TVs from Linux is with Home Assistant, which has a few different addons related to Apple TV. Unfortunately most are related to receiving casts or casting music, and it doesn’t look like any support screen mirroring. The main library - https://pyatv.dev - has only limited support for AirPlay, and its documentation indicates it lacks screen mirroring support. If you just want to stream a video, though, then it would be worth looking into.

open-airplay with the auth solution by @funtax (on Github) is the approach I would try, but unfortunately I can’t comment as to whether or not that actually still works.

[–] [email protected] 1 points 9 months ago (1 children)

I can't find any "funtax" user in the linked openairplay repo, but it appears that I have completely missed pyatv's ability to stream video. As long as it can stream video I think I can make it do screen mirroring too. Thank you very much, I will be looking into pyatv now!

[–] [email protected] 2 points 9 months ago

I don’t think they contributed to openairplay, but they mentioned in an open issue in the openairplay repo that they had created a separate repo to handle the auth piece. Strangely I can’t find the issue now, but this is the repo I was talking about for that: https://github.com/openairplay/AirPlayAuth

That all said, it pyatv will work for you it looks like a much better bet, anyway. Good luck!

[–] [email protected] 3 points 9 months ago* (last edited 9 months ago) (1 children)

Workaround instead of solution:
You could buy a Wireless HDMI Transmitter and Receiver setup. Should be able to find a version where it kinda looks like a Compute Stick (HDMI end) that is powered with a USB cable.
This isn't much easier than using an HDMI cable and unless you have use for it at home afterwards it is a costly solution:
https://duckduckgo.com/?q=Wireless+HDMI+Transmitter+and+Receiver
edit: cleaned up duckgogo link

[–] [email protected] 2 points 9 months ago (1 children)

Your link doesn't work, but I still found what you mean. I think at that point I'd probably look into the Microsoft Wireless Display Adapter or something similar instead, as Miracast on Linux actually works quite well with GNOME Network Displays. But my current goal is not having to connect any additional hardware to the projector, so I will be looking into pyatv for now.

[–] [email protected] 1 points 9 months ago

I guess your "best" solution is to talk to Campus IT and sell them on the idea of buying the Microsoft Wireless Display Adapters and use as a secondary solutions with all projectors/tvs. Then all you have to do is plug in the client end that's already there waiting for you. ;-)