blob: 71e26b0aac8617a643dc65baea38da67b8fa4fd3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
ppc: 0.945
user-level: 0.931
PID: 0.921
permissions: 0.915
network: 0.865
files: 0.856
register: 0.849
debug: 0.845
mistranslation: 0.831
vnc: 0.825
semantic: 0.816
device: 0.815
graphic: 0.809
architecture: 0.788
virtual: 0.751
kernel: 0.738
peripherals: 0.737
performance: 0.735
socket: 0.732
arm: 0.716
boot: 0.684
risc-v: 0.651
VMM: 0.645
assembly: 0.636
TCG: 0.584
x86: 0.515
hypervisor: 0.514
i386: 0.439
KVM: 0.377
Pulse audio backend doesn't work in v4.0.0-rc4 release
Using Gentoo linux, build from source: qemu v4.0.0-rc4 release (eeba63fc7fface36f438bcbc0d3b02e7dcb59983)
Pulse audio backend doesn't initialize because of the:
audio/paaudio.c:
- if (!popts->has_server) {
- char pidfile[64];
- char *runtime;
- struct stat st;
-
- runtime = getenv("XDG_RUNTIME_DIR");
- if (!runtime) {
- return NULL;
- }
- snprintf(pidfile, sizeof(pidfile), "%s/pulse/pid", runtime);
- if (stat(pidfile, &st) != 0) {
- return NULL;
- }
- }
XDG_RUNTIME_DIR is not set for me. There is no /run/user directory exist in my system.
Also:
$ less ~/.pulse/client.conf
default-server = unix:/home/ivan/.pulse_server
Removing this lines makes pa backend work fine again. Much better than 3.x versions due to buffer fixes.
It looks like this code relies on the systemd specifics and doesn't work with OpenRC used in Gentoo by default. Still not fixed in 4.0.0 release.
You can use -audiodev pa,id=whatever,server=unix:/home/ivan/.pulse_server to get things going with your configuration.
Oh, and this has nothing to do with systemd:
kraxel@gentoo ~ $ set | grep ^XDG
XDG_CONFIG_DIRS=/etc/xdg
XDG_DATA_DIRS=/usr/local/share:/usr/share
XDG_RUNTIME_DIR=/var/run/user/1000
XDG_SESSION_COOKIE=gentoo-1556780854.41316-799155214
(gentoo with openrc + xfce, serial console login, x11 login has a few more of these set).
Looking through old bug tickets... is this still an issue with the latest version of QEMU? Or could we close this ticket nowadays?
[Expired for QEMU because there has been no activity for 60 days.]
|