AnLinux-App
AnLinux-App copied to clipboard
Audio Error - Fedora
Can you still use the sound?
It is not possible to output sound currently, this is a technical limitation.
It is very difficult that play music on AnLinux even LinuxOnAndroid have never been done. Because it relatives the firmwares of your device, we could not make images which for every devices around the world. :(
Maybe you can hack it by yourself Good Luck ;)
It is very difficult that play music on AnLinux even LinuxOnAndroid have never been done. Because it relatives the firmwares of your device, we could not make images which for every devices around the world. :(
Maybe you can hack it by yourself Good Luck ;)
Ok email address: [email protected]
Termux has pulseaudio with android output, you can use it. Also maintainers can prebuild pulseaudio to be used inside the app, it can be built with Android NDK. See https://github.com/twaik/pulseaudio-sles-ndk. My Pulseaudio Android backend works and is used in Termux. You will need to add export PULSE_SERVER=localhost:4712
line to xinitrc or DE startup script to use it.
@twaik Thanks a lot for the info! We will look into this.
Can confirm, everything that is needed for audio playback is already available. You need to install pulseaudio in termux, make it available for localhost clients (see archlinux wiki for simple tutorial) and then use the pulseaudio server as your sound device in the guest OS.
Beware of one thing - pulseaudio quits after 20 seconds of not receiving any inputs by default, so you might want to put exit-idle-time = -1
in your daemon.conf
(this will stop pulseaudio from quitting for being idle - good for testing, but for production you might want to put some real value there like 3600 or smth).
Source: I am successfully running Mopidy with party plugin to make my phone portable jukebox playing anything available from YouTube or Spotify. Works great, there is only a little delay on playing the first song, but that is not audio-related.
I'd suggest closing this issue or at least relabeling it (as it's not a bug).
No one here really gave step by step instructions that ae easy to follow that just work.
Run the following command in Termux (Not inside Linux, make sure you are not inside ./start-ubuntu or the equivalent script, but just in the root of Termux ):
pkg install wget && wget https://andronixos.sfo2.cdn.digitaloceanspaces.com/OS-Files/setup-audio.sh && chmod +x setup-audio.sh && ./setup-audio.sh
You can now start ubuntu or whatever distro and your sound should now be working. I am not sure if I had installed anything before this, so let me know if it doesn't work.
I am using the full KDE installation incase that has more of the pulseaudio setup than the normal one.
Source from another Linux on Android project called Andronix: https://docs.andronix.app/troubleshoot/sound/
Audio is now available.