this post was submitted on 07 Feb 2024
20 points (85.7% liked)

Linux

48328 readers
652 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
 

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?

you are viewing a single comment's thread
view the rest of the comments
[–] hedgehog@ttrpg.network 3 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.

[–] eco_game@discuss.tchncs.de 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!

[–] hedgehog@ttrpg.network 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!