Warum gibt Firefox-Nightly keinen Ton aus, wenn der Lautsprechertest einwandfrei funktioniert? | Berechtigungsfehler | Pulseaudio | Arch Linux

Warum gibt Firefox-Nightly keinen Ton aus, wenn der Lautsprechertest einwandfrei funktioniert? | Berechtigungsfehler | Pulseaudio | Arch Linux

Ich verwende Arch Linux mit i3-gaps. Ich habe es versucht speaker-test -t wav -c 2und sowohl Kopfhörer als auch Lautsprecher funktionieren. Der Ton funktioniert gelegentlich, wenn ich mit sudo -u user pulseaudio -D --startund herumspiele start-pulseaudio-x11. Der pulseaudioBefehl funktioniert nur mit , sudo -u userschlägt aber fehl, wenn ich su userund denselben Befehl ausführe. Letzterer kann (manchmal) keine Verbindung herstellen, wenn er mit root oder ausgeführt wird sudo -u user, was zu führt pa_context_connect() failed: Connection refused. Der Wechsel zum Benutzer mit suund führt zu

E: [autospawn] core-util.c: XDG_RUNTIME_DIR (/run/user/0) is not owned by us (uid 1000), but by uid 0! (This could e.g. happen if you try to connect to a non-root PulseAudio as a root user, over the native protocol. Don't do that.)
W: [autospawn] lock-autospawn.c: Cannot access autospawn lock.
E: [pulseaudio] main.c: Failed to acquire autospawn lock

Pakete:

Alsa packages:
  ~ alsa-lib 1.2.2-1
  ~ alsa-plugins 1.2.2-1
  ~ alsa-topology-conf 1.2.2-2
  ~ alsa-ucm-conf 1.2.2-1
  - alsa-utils 1.2.2-1
Pulseaudio packages
  ~ libpulse 13.0-3
  ~ pulseaudio 13.0-3
  ~ pulseaudio-alsa 2-5

Antwort1

Ich habe die Antwort auf meine eigene Frage gefunden. Wenn ich es ausführen soll, pulseaudio -D --starttritt ein Fehler auf, aber pulseaudio -Dnur eine Warnung, und es wird funktionsfähig

verwandte Informationen