Closed cjuniorfox closed 3 weeks ago
I managed to make sound work with a workaround. The issue seems to be related to the language of my Linux machine. I'm running with LANG=pt_BR.utf-8
, and feels like the scripts for detecting the sound output assume that you're executing with LANG=en_US
. So, by setting the environment variable LANG
as en
, I got the sound fully working again.
Here is my Sunshine's Systemd-unit:
default.target.wants/ sunshine.service
[junior@zentac ~]$ cat ~/.config/systemd/user/sunshine.service
[Unit]
Description=Self-hosted game stream host for Moonlight
StartLimitIntervalSec=500
StartLimitBurst=5
[Service]
Environment=LANG=en_US.UTF-8
ExecStart=/usr/bin/flatpak run dev.lizardbyte.app.Sunshine
ExecStop=/usr/bin/flatpak kill dev.lizardbyte.app.Sunshine
Restart=on-failure
RestartSec=5s
[Install]
WantedBy=xdg-desktop-autostart.target
Thanks for reporting the localization issue.
An alternative could be to use this:
$ pactl -f json info | jq -r '.server_string'
/run/user/1000/pulse/native
but that would require adding jq
as a dependency.
As long as the flatpak has KMS support there should probably be a wrapper script, e.g. sunshine_kms.sh
, installed by the additional-install.sh
. This script could then encapsulate all the ugliness of launching the flatpak... Also sunshine_kms.desktop
should be mentioned prominently in the documentation.
As for the primary issue here (no sound when launching as regular user with a non-KMS capture method), I don't know.
It seems this issue hasn't had any activity in the past 90 days. If it's still something you'd like addressed, please let us know by leaving a comment. Otherwise, to help keep our backlog tidy, we'll be closing this issue in 10 days. Thanks!
Is there an existing issue for this?
Is your issue described in the documentation?
Is your issue present in the latest beta/pre-release?
This issue is present in the latest pre-release
Describe the Bug
I am running Fedora 40, Silverblue/Atomic version (a fork of the Ublue project that I made) with Hyprland Hyprland Atomic and I am having the following issues:
Following the docs, starting with the command:
sudo -i PULSE_SERVER=unix:$(pactl info | awk '/Server String/{print$3}') flatpak run dev.lizardbyte.app.Sunshine
I'm having the following error:And with that, I was unable to stream the display device.
How, running directly, without using sudo and not setting the
PULSE_SERVER
variable,flatpak run dev.lizardbyte.app.Sunshine
I was able to stream the display device with no issues, but without sound. I'm running the following version of Sunshine: v2024.710.151651Expected Behavior
Having video and sound in both situations or, at least, at the most appropriated one.
Additional Context
Fedora 40 Hyprland, as mentioned, AMD Radeon GPU RX 6700 XT.
Host Operating System
Linux
Operating System Version
Fedora 40 - 6.9.7-200.fc40.x86_64
Architecture
32 bit
Sunshine commit or version
Sunshine version: v2024.710.151651
Package
Linux - flatpak
GPU Type
AMD
GPU Model
6700 XT
GPU Driver/Mesa Version
GLX_MESA_query_renderer 24.1.2
Capture Method
wlroots (Linux)
Config
Apps
Relevant log output