Open airidosas252 opened 5 months ago
D: [pulseaudio] conf-parser.c: /data/data/com.termux/files/usr/etc/pulse/client.conf.d does not exist, ignoring.
I: [pulseaudio] main.c: setrlimit(RLIMIT_RTPRIO, (9, 9)) failed: Unknown error 1
D: [pulseaudio] core-rtclock.c: Timer slack is set to 50 us.
D: [pulseaudio] core-util.c: setpriority() worked.
I: [pulseaudio] core-util.c: Successfully gained nice level -11.
I: [pulseaudio] main.c: This is PulseAudio 17.0-dirty
D: [pulseaudio] main.c: Compilation CFLAGS: Not yet supported on meson
D: [pulseaudio] main.c: Running on host: Linux aarch64 5.15.123-android13-8-28577312-abS918BXXU3CXCF #1 SMP PREEMPT Tue Mar 19 10:27:50 UTC 2024
D: [pulseaudio] main.c: Found 8 CPUs.
I: [pulseaudio] main.c: Page size is 4096 bytes
D: [pulseaudio] main.c: Compiled with Valgrind support: no
D: [pulseaudio] main.c: Running in valgrind mode: no
D: [pulseaudio] main.c: Running in VM: no
D: [pulseaudio] main.c: Running from build tree: no
D: [pulseaudio] main.c: Optimized build: yes
D: [pulseaudio] main.c: All asserts enabled.
I: [pulseaudio] main.c: Machine ID is e48fa3b453984d648d2393c26609a3bb.
I: [pulseaudio] main.c: Using runtime directory /data/data/com.termux/files/home/.config/pulse/e48fa3b453984d648d2393c26609a3bb-runtime.
I: [pulseaudio] main.c: Using state directory /data/data/com.termux/files/home/.config/pulse.
I: [pulseaudio] main.c: Using modules directory /data/data/com.termux/files/usr/lib/pulseaudio/modules.
I: [pulseaudio] main.c: Running in system mode: no
I: [pulseaudio] main.c: System supports high resolution timers
D: [pulseaudio] memblock.c: Using shared memfd memory pool with 1024 slots of size 64.0 KiB each, total size is 64.0 MiB, maximum usable slot size is 65472
I: [pulseaudio] database.c: Successfully opened 'device-volumes' database file '/data/data/com.termux/files/home/.config/pulse/e48fa3b453984d648d2393c26609a3bb-device-volumes.simple'.
I: [pulseaudio] module.c: Loaded "module-device-restore" (index: #0; argument: "").
I: [pulseaudio] database.c: Successfully opened 'stream-volumes' database file '/data/data/com.termux/files/home/.config/pulse/e48fa3b453984d648d2393c26609a3bb-stream-volumes.simple'.
D: [pulseaudio] protocol-dbus.c: Interface org.PulseAudio.Ext.StreamRestore1 added for object /org/pulseaudio/stream_restore1
D: [pulseaudio] protocol-dbus.c: Interface org.PulseAudio.Ext.StreamRestore1.RestoreEntry added for object /org/pulseaudio/stream_restore1/entry0
D: [pulseaudio] protocol-dbus.c: Interface org.PulseAudio.Ext.StreamRestore1.RestoreEntry added for object /org/pulseaudio/stream_restore1/entry1
I: [pulseaudio] module.c: Loaded "module-stream-restore" (index: #1; argument: "").
I: [pulseaudio] database.c: Successfully opened 'card-database' database file '/data/data/com.termux/files/home/.config/pulse/e48fa3b453984d648d2393c26609a3bb-card-database.simple'.
I: [pulseaudio] module.c: Loaded "module-card-restore" (index: #2; argument: "").
I: [pulseaudio] module.c: Loaded "module-augment-properties" (index: #3; argument: "").
I: [pulseaudio] module.c: Loaded "module-switch-on-port-available" (index: #4; argument: "").
D: [pulseaudio] module.c: Checking for existence of '/data/data/com.termux/files/usr/lib/pulseaudio/modules/module-detect.so': success
D: [pulseaudio] module.c: Checking for existence of '/data/data/com.termux/files/usr/lib/pulseaudio/modules/module-jackdbus-detect.so': failure
D: [pulseaudio] module.c: Checking for existence of '/data/data/com.termux/files/usr/lib/pulseaudio/modules/module-esound-protocol-unix.so': failure
I: [pulseaudio] module.c: Loaded "module-native-protocol-unix" (index: #5; argument: "").
I: [pulseaudio] module-default-device-restore.c: No previous default sink setting, ignoring.
I: [pulseaudio] module-default-device-restore.c: No previous default source setting, ignoring.
I: [pulseaudio] module.c: Loaded "module-default-device-restore" (index: #6; argument: "").
D: [pulseaudio] module-always-sink.c: Autoloading null-sink as no other sinks detected.
I: [pulseaudio] sink.c: Created sink 0 "auto_null" with sample spec s16le 2ch 44100Hz and channel map front-left,front-right
I: [pulseaudio] sink.c: device.description = "Dummy Output"
I: [pulseaudio] sink.c: device.class = "abstract"
I: [pulseaudio] sink.c: device.icon_name = "audio-card"
I: [pulseaudio] source.c: Created source 0 "auto_null.monitor" with sample spec s16le 2ch 44100Hz and channel map front-left,front-right
I: [pulseaudio] source.c: device.description = "Monitor of Dummy Output"
I: [pulseaudio] source.c: device.class = "monitor"
I: [pulseaudio] source.c: device.icon_name = "audio-input-microphone"
D: [null-sink] module-null-sink.c: Thread starting up
E: [null-sink] util.c: Failed to connect to system bus: Failed to connect to socket /data/data/com.termux/files/usr/var/run/dbus/system_bus_socket: No such file or directory
E: [null-sink] util.c: Failed to connect to system bus: Failed to connect to socket /data/data/com.termux/files/usr/var/run/dbus/system_bus_socket: No such file or directory
E: [null-sink] util.c: Failed to connect to system bus: Failed to connect to socket /data/data/com.termux/files/usr/var/run/dbus/system_bus_socket: No such file or directory
E: [null-sink] util.c: Failed to connect to system bus: Failed to connect to socket /data/data/com.termux/files/usr/var/run/dbus/system_bus_socket: No such file or directory
E: [null-sink] util.c: Failed to connect to system bus: Failed to connect to socket /data/data/com.termux/files/usr/var/run/dbus/system_bus_socket: No such file or directory
I: [null-sink] util.c: Failed to acquire real-time scheduling: Unknown error 5
D: [pulseaudio] sink.c: auto_null: state: INIT -> IDLE
D: [pulseaudio] source.c: auto_null.monitor: state: INIT -> IDLE
I: [pulseaudio] core.c: default_source: (unset) -> auto_null.monitor
I: [pulseaudio] core.c: default_sink: (unset) -> auto_null
D: [pulseaudio] core-subscribe.c: Dropped redundant event due to change event.
I: [pulseaudio] module.c: Loaded "module-null-sink" (index: #8; argument: "sink_name=auto_null sink_properties='device.description="Dummy Output"'").
I: [pulseaudio] module.c: Loaded "module-always-sink" (index: #7; argument: "").
I: [pulseaudio] module.c: Loaded "module-intended-roles" (index: #9; argument: "").
D: [pulseaudio] module-suspend-on-idle.c: Sink auto_null becomes idle, timeout in 5 seconds.
I: [pulseaudio] module.c: Loaded "module-suspend-on-idle" (index: #10; argument: "").
D: [pulseaudio] module.c: Checking for existence of '/data/data/com.termux/files/usr/lib/pulseaudio/modules/module-console-kit.so': success
E: [pulseaudio] module-console-kit.c: Unable to contact D-Bus system bus: org.freedesktop.DBus.Error.FileNotFound: Failed to connect to socket /data/data/com.termux/files/usr/var/run/dbus/system_bus_socket: No such file or directory
E: [pulseaudio] module.c: Failed to load module "module-console-kit" (argument: ""): initialization failed.
D: [pulseaudio] module.c: Checking for existence of '/data/data/com.termux/files/usr/lib/pulseaudio/modules/module-systemd-login.so': failure
I: [pulseaudio] module.c: Loaded "module-position-event-sounds" (index: #12; argument: "").
D: [pulseaudio] stream-interaction.c: Using role 'phone' as trigger role.
D: [pulseaudio] stream-interaction.c: Using roles 'music' and 'video' as cork roles.
I: [pulseaudio] module.c: Loaded "module-role-cork" (index: #13; argument: "").
I: [pulseaudio] module.c: Loaded "module-filter-heuristics" (index: #14; argument: "").
I: [pulseaudio] module.c: Loaded "module-filter-apply" (index: #15; argument: "").
W: [pulseaudio] cli-command.c: stat('/data/data/com.termux/files/usr/etc/pulse/default.pa.d'): Unknown error 2
E: [pulseaudio] ltdl-bind-now.c: Failed to open module /data/data/com.termux/files/usr/lib/pulseaudio/modules/module-sles-sink.so: dlopen failed: library "libskcodec.so" not found: needed by /system/lib64/libskandroidcodec.so in namespace (default)
E: [pulseaudio] module.c: Failed to open module "module-sles-sink".
W: [pulseaudio] server-lookup.c: Unable to contact D-Bus: org.freedesktop.DBus.Error.Spawn.ExecFailed: /data/data/com.termux/files/usr/bin/dbus-launch terminated abnormally with the following error: dbus-launch: No existing session bus was found, and failed to connect to X11 display.
W: [pulseaudio] main.c: Unable to contact D-Bus: org.freedesktop.DBus.Error.Spawn.ExecFailed: /data/data/com.termux/files/usr/bin/dbus-launch terminated abnormally with the following error: dbus-launch: No existing session bus was found, and failed to connect to X11 display.
I: [pulseaudio] main.c: Daemon startup complete.
I: [pulseaudio] main.c: Daemon startup successful.
I: [pulseaudio] module-suspend-on-idle.c: Sink auto_null idle for too long, suspending ...
D: [pulseaudio] sink.c: auto_null: suspend_cause: (none) -> IDLE
D: [pulseaudio] sink.c: auto_null: state: IDLE -> SUSPENDED
D: [pulseaudio] source.c: auto_null.monitor: suspend_cause: (none) -> IDLE
D: [pulseaudio] source.c: auto_null.monitor: state: IDLE -> SUSPENDED
D: [pulseaudio] module-suspend-on-idle.c: State of monitor source 'auto_null.monitor' has changed, checking state of monitored sink
D: [pulseaudio] core.c: Hmm, no streams around, trying to vacuum.```
Managed to get some logs.
i have been using ubuntu jelly on Termux with my Samsung fold z 5. I also have installed all debian's proot-disto, also archlinux. All lost audio. Strange thing is pulse audio seems works well in distro. but no audio come out. I hope this can be fix easly. Before One UI 6.1 i was on 6.0 and no problem for audio. After uupdat to 6.1 audio just gone.
On Termux Discord we have finally figured out what's wrong:
LD_PRELOAD=/system/lib64/libskcodec.so
This line needs to be added before pulseaudio command and the audio should start working again. For whatever reason, Pulseaudio could not locate/load this file even if it is in the correct location. Might be a bug introduced with One UI 6.1.
Once some people confirms this fix works, I'm gonna close this issue. For me at least, Pulseaudio in Wine is back.
On Termux Discord we have finally figured out what's wrong:
LD_PRELOAD=/system/lib64/libskcodec.so
This line needs to be added before pulseaudio command and the audio should start working again. For whatever reason, Pulseaudio could not locate/load this file even if it is in the correct location. Might be a bug introduced with One UI 6.1.
Once some people confirms this fix works, I'm gonna close this issue. For me at least, Pulseaudio in Wine is back.
wow that is amazing i just applied and works right away. No sound issue anymore.
i would like to give more explaniation about that how to do it for other people.
I just modified the distro .sh file. like.
on termux terminal, for adding nano package
apt install nano
than example you start the distro " startxfce4_debian.sh " so you need to modify this on termux
nano startxfce4_debian.sh
than you add the line
LD_PRELOAD=/system/lib64/libskcodec.so pulseaudio --start --load="module-native-protocol-tcp auth-ip-acl=127.0.0.1 auth-anonymous=1" --exit-idle-time=-1
than ctrl + X Save the file and run the distro as usual.
Sound back again. Thank you so much to airidosas252
This issue seems to be related to a specific vendor and not related to termux.
I have same problem but this didnt help.
I found a fix for whoever is having issue with Termux after troubleshooting it's Cause. I found out that its an error with ONE UI 6.1 vendor. Fix for S23 series with Pulseaudio issues "sound issues" On Termux run this command
"nano ../usr/etc/bash.bashrc" and paste this in the last line of the edit..... "LD_PRELOAD=/system/lib64/libskcodec.so pulseaudio --start --load="module-native-protocol-tcp auth-ip-acl=127.0.0.1 auth-anonymous=1" --exit-idle-time=-1"
Everything should work now even when you exit Termux.
I just encountered this myself and LD_PRELOAD=/system/lib64/libskcodec.so
solved it for me.
Thanks @airidosas252!
When starting my script with LD_PRELOAD=/system/lib64/libskcodec.so
the sound works but webgl no longer works on chrome or firefox any idea how to solve this?
Also, it might not be the right place but when starting the same script from the Termux:Widget app the command LD_PRELOAD=/system/lib64/libskcodec.so
doesn't seem to work, no sound and webgl work on browser, any idea why?
When starting my script with
LD_PRELOAD=/system/lib64/libskcodec.so
the sound works but webgl no longer works on chrome or firefox any idea how to solve this? Also, it might not be the right place but when starting the same script from the Termux:Widget app the commandLD_PRELOAD=/system/lib64/libskcodec.so
doesn't seem to work, no sound and webgl work on browser, any idea why?
Every updates on one UI 6.1 brings different issues, remove this `LD_PRELOAD=/system/lib64/libskcodec.so" from the "nano ../usr/etc/bash.bashrc" and try this new fix.
This would be fixed from the "pulseaudio.pa" file from Mobox or Darkos. Location= Z:/usr/etc/pulse and edit "pulseaudio.pa" Scroll down to where you found this "#load-module module-aaudio-sink" and just remove the "#". Save it and shutdown "mobox" or "Darkos".
Go back to Termux terminal and run this command,
"pulseaudio -v" to terminate pulser services and run this after the above command,
"pkg install espeak" and "pkg install sox" Shut down your device and reboot. It should fix the issue.
When starting my script with
LD_PRELOAD=/system/lib64/libskcodec.so
the sound works but webgl no longer works on chrome or firefox any idea how to solve this? Also, it might not be the right place but when starting the same script from the Termux:Widget app the commandLD_PRELOAD=/system/lib64/libskcodec.so
doesn't seem to work, no sound and webgl work on browser, any idea why?Every updates on one UI 6.1 brings different issues, remove this `LD_PRELOAD=/system/lib64/libskcodec.so" from the "nano ../usr/etc/bash.bashrc" and try this new fix.
This would be fixed from the "pulseaudio.pa" file from Mobox or Darkos. Location= Z:/usr/etc/pulse and edit "pulseaudio.pa" Scroll down to where you found this "#load-module module-aaudio-sink" and just remove the "#". Save it and shutdown "mobox" or "Darkos".
Go back to Termux terminal and run this command,
"pulseaudio -v" to terminate pulser services and run this after the above command,
"pkg install espeak" and "pkg install sox" Shut down your device and reboot. It should fix the issue.
Thanks for your answer but I'm not trying to use Mobox or darkos, I'm just using termux with xfce and x11.
I did try to do what you said with ../usr/etc/pulse/default.pa, and then install the packages. But the sound doesn't work anymore.
When starting my script with
LD_PRELOAD=/system/lib64/libskcodec.so
the sound works but webgl no longer works on chrome or firefox any idea how to solve this? Also, it might not be the right place but when starting the same script from the Termux:Widget app the commandLD_PRELOAD=/system/lib64/libskcodec.so
doesn't seem to work, no sound and webgl work on browser, any idea why?Every updates on one UI 6.1 brings different issues, remove this `LD_PRELOAD=/system/lib64/libskcodec.so" from the "nano ../usr/etc/bash.bashrc" and try this new fix.
This would be fixed from the "pulseaudio.pa" file from Mobox or Darkos. Location= Z:/usr/etc/pulse and edit "pulseaudio.pa" Scroll down to where you found this "#load-module module-aaudio-sink" and just remove the "#". Save it and shutdown "mobox" or "Darkos".
Go back to Termux terminal and run this command,
"pulseaudio -v" to terminate pulser services and run this after the above command,
"pkg install espeak" and "pkg install sox" Shut down your device and reboot. It should fix the issue.
Thanks for your answer but I'm not trying to use Mobox or darkos, I'm just using termux with xfce and x11.
I did try to do what you said with ../usr/etc/pulse/default.pa, and then install the packages. But the sound doesn't work anymore.
It should work. Did you follow the instructions properly?
When starting my script with
LD_PRELOAD=/system/lib64/libskcodec.so
the sound works but webgl no longer works on chrome or firefox any idea how to solve this? Also, it might not be the right place but when starting the same script from the Termux:Widget app the commandLD_PRELOAD=/system/lib64/libskcodec.so
doesn't seem to work, no sound and webgl work on browser, any idea why?Every updates on one UI 6.1 brings different issues, remove this `LD_PRELOAD=/system/lib64/libskcodec.so" from the "nano ../usr/etc/bash.bashrc" and try this new fix.
This would be fixed from the "pulseaudio.pa" file from Mobox or Darkos. Location= Z:/usr/etc/pulse and edit "pulseaudio.pa" Scroll down to where you found this "#load-module module-aaudio-sink" and just remove the "#". Save it and shutdown "mobox" or "Darkos".
Go back to Termux terminal and run this command,
"pulseaudio -v" to terminate pulser services and run this after the above command,
"pkg install espeak" and "pkg install sox" Shut down your device and reboot. It should fix the issue.
Thanks for your answer but I'm not trying to use Mobox or darkos, I'm just using termux with xfce and x11.
I did try to do what you said with ../usr/etc/pulse/default.pa, and then install the packages. But the sound doesn't work anymore.
It should work. Did you follow the instructions properly?
I think the first time it didn't kill pulseaudio before installing the packages. I didn't a complete reinstall of termux and did what you explain and it solved the issue. Now I do have sound and webgl is working. Thanks a lot.
When starting my script with
LD_PRELOAD=/system/lib64/libskcodec.so
the sound works but webgl no longer works on chrome or firefox any idea how to solve this? Also, it might not be the right place but when starting the same script from the Termux:Widget app the commandLD_PRELOAD=/system/lib64/libskcodec.so
doesn't seem to work, no sound and webgl work on browser, any idea why?Every updates on one UI 6.1 brings different issues, remove this `LD_PRELOAD=/system/lib64/libskcodec.so" from the "nano ../usr/etc/bash.bashrc" and try this new fix.
This would be fixed from the "pulseaudio.pa" file from Mobox or Darkos. Location= Z:/usr/etc/pulse and edit "pulseaudio.pa" Scroll down to where you found this "#load-module module-aaudio-sink" and just remove the "#". Save it and shutdown "mobox" or "Darkos".
Go back to Termux terminal and run this command,
"pulseaudio -v" to terminate pulser services and run this after the above command,
"pkg install espeak" and "pkg install sox" Shut down your device and reboot. It should fix the issue.
The only issue with this is that you switch audio backend from OpenSL ES to AAudio. But hey, if it works, it works.
@airidosas252
Recently, my Galaxy Tab S8+ got an update from One UI 6.0 to One UI 6.1, and when I did, audio seemed to have broken.
Appending your specified LD_PRELOAD to pulse seemed to have fixed my problem, so it definitely seems to do with something about One UI 6.1.
Problem description
So not too long ago my device (Samsung Galaxy S23 Ultra) gotten One UI 6.1 update and then after I noticed that exact same environment I use does not reproduce any audio. At first I thought it was my own typo, but then after looking deeper it could not hook into OpenSL ES anymore. Whatever I do, it just says Dummy Output in Wine environment. Same exact settings were working before without any issues.
Tried redoing everything like three times without any success.
What's funny is that Pulseaudio starts up fine supposedly but there's no audio, unless there are some problems lying underneath which I cannot see.
What steps will reproduce the bug?
Own a Samsung device with One UI 6.1 installed (although it might be only Samsung Galaxy S23 related) Use whatever app with sound, start Pulseaudio and see whether audio is there Other than that it's standard fair
What is the expected behavior?
The audio should just work out of the box.