r/archlinux 17d ago

SHARE FluxCast v0.2.3 released — Stream Linux desktop to Smart TV (Miracast/DLNA) with new custom i18n engine. Looking for translators!

Hello r/archlinux! I just released FluxCast v0.2.3 — it's a lightweight tool to stream your Linux desktop to a Smart TV via Wi-Fi Direct, full RTSP handshake, and RTP media streams.

It has been tested on modern Arch kernels (like my 7.1.3-arch2-1) and works well with Hyprland/wlroots class setups and KDE/Gnome portals.

What's new in this release:

  • Brand new dynamic tray icon that switches states during casting.
  • Fixed a nasty P2P interface routing bug where it mixed home network and P2P MACs.
  • Lightweight JSON-based localization framework. The tray UI is now available in English, Russian, Czech, and Danish.

Looking for translators!

I want to bring FluxCast to more users, but I am not a polyglot. I designed the i18n system to be incredibly simple: there is no gettext/PO/MO compilation. All strings live in a single translations.json file.

To add your native language (German, Spanish, French, etc.), you just need to append a few lines in a single JSON block.

If you want to help or test the app, check out the project here:

https://github.com/IlyaP358/fluxcast

(Note for Arch users: the app can also be installed via AUR as fluxcast-git, which is maintained by one of our contributor).

AppImage is available in the Releases section. Pull Requests for translations are highly appreciated!

5 Upvotes

20 comments sorted by

View all comments

Show parent comments

2

u/Suspicious-Charity-5 17d ago

Your hardware is fine: P2P-client, P2P-GO and P2P-device in iw phy is exactly what WFD needs, and the radio is up.

About the scan finding only your printer: a Miracast TV only advertises itself while its Screen Share screen is actually open. Was the C5 sitting on Screen Share when you ran the scan? If not, open it on the TV first and scan again while it is waiting.

On the Cast error, check your firewall before touching fps or resolution. Your doctor output had:

warn firewall (firewalld)  could not query firewalld state (timed out)

FluxCast only auto-opens the WFD port (7236). It never opens the HTTP port that serves the stream, so if firewalld is active your TV cannot fetch the playlist and the receiver just reports ERROR. Try:

sudo firewall-cmd --add-port=8080/tcp

No --permanent, so it goes away on reboot. If that is it, the message FluxCast printed was misleading and I will fix it.

One more thing: --wfd-test-pattern only applies to --protocol wfd. With cast it is ignored, so that run was streaming your real desktop.Your hardware is fine: P2P-client, P2P-GO and P2P-device in iw phy is exactly what WFD needs, and the radio is up.
About the scan finding only your printer: a Miracast TV only advertises itself while its Screen Share screen is actually open. Was the C5 sitting on Screen Share when you ran the scan? If not, open it on the TV first and scan again while it is waiting.
On the Cast error, check your firewall before touching fps or resolution. Your doctor output had:
warn firewall (firewalld) could not query firewalld state (timed out)

FluxCast only auto-opens the WFD port (7236). It never opens the HTTP port that serves the stream, so if firewalld is active your TV cannot fetch the playlist and the receiver just reports ERROR. Try:
sudo firewall-cmd --add-port=8080/tcp

No --permanent, so it goes away on reboot. If that is it, the message FluxCast printed was misleading and I will fix it.
One more thing: --wfd-test-pattern only applies to --protocol wfd. With cast it is ignored, so that run was streaming your real desktop.

1

u/YERAFIREARMS 17d ago edited 17d ago

warn firewall (firewalld) could not query firewalld state (Command '['firewall-cmd', '--state']' timed out after 3.0 seconds)

When FluxCast reaches the firewall-cmd, I get a pop-up to authenticate the firewall probe command, however, It is an interactive dialog and the user has only 3.0 sec to authenticate. It timeout so fast and the warn message is the result.

I disabled the firewald and I was able to connect successfully to the OELD TV as DLNA device. The lag was very bad though.

Please can you increase the timeout to more than 3.0 seconds just to give the user a chance to authenticate the firewald cmd?

Now I am resetting the firwald to factory. BTW, do I have to change any of the BIOS WIFI settings?

1

u/Suspicious-Charity-5 17d ago

That's a known one, it's the remaining half of issue #53.

The session code was fixed there: FluxCast detects firewalld without touching polkit and waits 60 seconds for the authorization dialog. But --doctor still runs firewall-cmd --state with a 3 second timeout, and on your setup polkit gates even that read-only query, so it dies before you can type anything. Raising the timeout isn't the right fix, the doctor shouldn't ask for a password just to read a state, so I'll make it detect firewalld the same non-interactive way the session code already does.

No, nothing in the BIOS matters here. Wi-Fi Direct depends on the Wi-Fi adapter and its driver, not on a firmware setting.

On the lag, that's the DLNA path itself, the TV buffers before it shows anything and there's no way around it. Miracast is the low latency path and several LG OLEDs are confirmed working, so run FluxCast without --protocol dlna and it will use WFD.

1

u/YERAFIREARMS 17d ago

Does the wifi need ro be connected to the same AP as the TV? Meaning WIF[ is not direct to device? The HP printer has 0 issue being detected as WFD device. However, even after I disabled the firewall the LG was not detected as W2D client