Werkend krijgen pulseaudio op Debian (Jessie)

Pagina: 1
Acties:

Vraag


Acties:
  • 0 Henk 'm!

  • Rukapul
  • Registratie: Februari 2000
  • Laatst online: 00:17
Mijn 10+ jaar oude Debian machine heeft een probleem met pulseaudio. Beter gezegd pulseaudio werkt niet. Net zoals alsa ooit oss verving in een upgrade heeft een upgrade pulseaudio op het systeem gebracht, maar zonder dat het werkte.

Uiteraard diverse zaken geprobeerd met als laatste stap het verwijderen van pulseaudio via aptitude inclusief verwijdering van /etc/pulse, /tmp/pulse/*, /home/*/.pulse, etc. (dit staat ook in de Debian pulseaudio wiki). Echter na installeren van pulseaudio via aptitude werkt het zeker niet meer. /etc/pulse is leeg en bij een poging de daemon handmatig te starten geeft:
paul@pvr:~$ pulseaudio
E: [pulseaudio] main.c: Daemon startup without any loaded modules, refusing to work.
Hoe kan ik pulseaudio op een cleane wijze werkend krijgen?

Alle reacties


Acties:
  • 0 Henk 'm!

  • borft
  • Registratie: Januari 2002
  • Laatst online: 17-07 14:51
heb je een purge gedaan bij het verwijderen? (apt-get remove --purge), daarna zou een herinstallatie alle configs terug moeten zetten

Acties:
  • 0 Henk 'm!

  • Rukapul
  • Registratie: Februari 2000
  • Laatst online: 00:17
Even geprobeerd met remove --purge gevolgd door install, maar geen verschil.

Acties:
  • 0 Henk 'm!

  • Hero of Time
  • Registratie: Oktober 2004
  • Laatst online: 17-07 22:39

Hero of Time

Moderator LNX

There is only one Legend

Geen modules, dan moet je pulseaudio-module-x11 installeren. Als je automatically install recommended uit hebt, dan wordt die niet meegenomen en krijg je dus niets. ;)

Dit is wat ik heb op m'n laptop voor PA:
gstreamer0.10-pulseaudio
gstreamer1.0-pulseaudio
libpulse-mainloop-glib0
libpulse0
libpulsedsp
pulseaudio
pulseaudio-module-x11
pulseaudio-utils
pavucontrol

Met pavucontrol kan je ook het een en ander zien en instellen, ook wel handig om te hebben (is ook een volume control).

Commandline FTW | Tweakt met mate


Acties:
  • 0 Henk 'm!

  • Rukapul
  • Registratie: Februari 2000
  • Laatst online: 00:17
pulseaudio-module-x11 was en is aanwezig :) Is ook een recommended by pavucontrol. Die laatste doet overigens niets als er geen pulseaudio daemon draait om naar te connected zoals bij mij :+

Acties:
  • 0 Henk 'm!

  • Blokker_1999
  • Registratie: Februari 2003
  • Laatst online: 09:54

Blokker_1999

Full steam ahead

Het kan niet zijn dat pulseaudio actief is onder een andere gebruiker die daardoor beslag legt op de geluidskaart?

No keyboard detected. Press F1 to continue.


Acties:
  • 0 Henk 'm!

  • Rukapul
  • Registratie: Februari 2000
  • Laatst online: 00:17
Nope:
pvr:~# ps axu |grep pulse
root 31680 0.0 0.0 508 4 pts/2 D+ 20:52 0:00 grep pulse
De daemon draait niet eens.

Of er überhaupt niets de sound devices gebruikt vind ik een lastige. In elk geval heb ik kodi, X, nog een applicatie en enkele VMs die potentieel audio gebruiken gekilled. In de praktijk gebruikt alleen kodi audio (over hdmi).

Acties:
  • 0 Henk 'm!

  • H!GHGuY
  • Registratie: December 2002
  • Niet online

H!GHGuY

Try and take over the world...

Rukapul schreef op dinsdag 05 januari 2016 @ 21:06:
Of er überhaupt niets de sound devices gebruikt vind ik een lastige. In elk geval heb ik kodi, X, nog een applicatie en enkele VMs die potentieel audio gebruiken gekilled. In de praktijk gebruikt alleen kodi audio (over hdmi).
Kijk eens met lsof.

ASSUME makes an ASS out of U and ME


Acties:
  • 0 Henk 'm!

  • Hero of Time
  • Registratie: Oktober 2004
  • Laatst online: 17-07 22:39

Hero of Time

Moderator LNX

There is only one Legend

Ik heb op mijn HTPC Pulseaudio geïnstalleerd terwijl Kodi nog draaide. Even een hickup in output en de internet radio daarin speelde gewoon weer verder. Het schakelde automatisch over naar Pulseaudio (dat zeggen ze ook op hun wiki).

Is er een specifieke reden dat je Pulse wilt gebruiken, zoals bijvoorbeeld met een broswser of VM geluid te krijgen terwijl Kodi nog draait?

Heb je wel geluid gehad? Verwijder Pulseaudio en voer eens verschillende tests uit, zoals speaker-test en check je audio apparaten met aplay -l en -L (dus kleine en grote L).

Met Pulse geïnstalleerd, staat er in /etc/pulse/default.pa entries voor 'load-module'? Heb je ook modules in /usr/lib/pulse*/modules?

Commandline FTW | Tweakt met mate


Acties:
  • 0 Henk 'm!

  • Rukapul
  • Registratie: Februari 2000
  • Laatst online: 00:17
Dat had ik al gedaan. Tevens met
code:
1
fuser -v /dev/dsp* /dev/snd/* /dev/seq*
Hero of Time schreef op dinsdag 05 januari 2016 @ 21:21:
Is er een specifieke reden dat je Pulse wilt gebruiken, zoals bijvoorbeeld met een broswser of VM geluid te krijgen terwijl Kodi nog draait?
Bij voorkeur wil ik audio kunnen mixen. Tevens zou ik graag de audio die naar hdmi gaat ook op de analoge stereo output hebben. Tevens wil ik zo dicht mogelijk tegen standaard Debiangebruik zitten in plaats van in oude meuk te blijven hangen om om zaken heen te moeten werken.
Heb je wel geluid gehad? Verwijder Pulseaudio en voer eens verschillende tests uit, zoals speaker-test en check je audio apparaten met aplay -l en -L (dus kleine en grote L).
Met alsa had ik audio op de analoge jack (bv via mplayer via remote shell) en had/heb audio over hdmi (geforceerd in kodi). Pulseaudio heeft nooit gewerkt denk ik.
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
pvr:~# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC892 Analog [ALC892 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 1: ALC892 Digital [ALC892 Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

en
code:
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
null
    Discard all samples (playback) or generate zero samples (capture)
pulse
    PulseAudio Sound Server
default
analog
mixed-analog
digital
mixed-digital
dmix-analog
dmix-digital
sysdefault:CARD=PCH
    HDA Intel PCH, ALC892 Analog
    Default Audio Device
front:CARD=PCH,DEV=0
    HDA Intel PCH, ALC892 Analog
    Front speakers
surround21:CARD=PCH,DEV=0
    HDA Intel PCH, ALC892 Analog
    2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=PCH,DEV=0
    HDA Intel PCH, ALC892 Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=PCH,DEV=0
    HDA Intel PCH, ALC892 Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=PCH,DEV=0
    HDA Intel PCH, ALC892 Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=PCH,DEV=0
    HDA Intel PCH, ALC892 Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=PCH,DEV=0
    HDA Intel PCH, ALC892 Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=PCH,DEV=0
    HDA Intel PCH, ALC892 Digital
    IEC958 (S/PDIF) Digital Audio Output
hdmi:CARD=PCH,DEV=0
    HDA Intel PCH, HDMI 0
    HDMI Audio Output
hdmi:CARD=PCH,DEV=1
    HDA Intel PCH, HDMI 1
    HDMI Audio Output
hdmi:CARD=PCH,DEV=2
    HDA Intel PCH, HDMI 2
    HDMI Audio Output
dmix:CARD=PCH,DEV=0
    HDA Intel PCH, ALC892 Analog
    Direct sample mixing device
dmix:CARD=PCH,DEV=1
    HDA Intel PCH, ALC892 Digital
    Direct sample mixing device
dmix:CARD=PCH,DEV=3
    HDA Intel PCH, HDMI 0
    Direct sample mixing device
dmix:CARD=PCH,DEV=7
    HDA Intel PCH, HDMI 1
    Direct sample mixing device
dmix:CARD=PCH,DEV=8
    HDA Intel PCH, HDMI 2
    Direct sample mixing device
dsnoop:CARD=PCH,DEV=0
    HDA Intel PCH, ALC892 Analog
    Direct sample snooping device
dsnoop:CARD=PCH,DEV=1
    HDA Intel PCH, ALC892 Digital
    Direct sample snooping device
dsnoop:CARD=PCH,DEV=3
    HDA Intel PCH, HDMI 0
    Direct sample snooping device
dsnoop:CARD=PCH,DEV=7
    HDA Intel PCH, HDMI 1
    Direct sample snooping device
dsnoop:CARD=PCH,DEV=8
    HDA Intel PCH, HDMI 2
    Direct sample snooping device
hw:CARD=PCH,DEV=0
    HDA Intel PCH, ALC892 Analog
    Direct hardware device without any conversions
hw:CARD=PCH,DEV=1
    HDA Intel PCH, ALC892 Digital
    Direct hardware device without any conversions
hw:CARD=PCH,DEV=3
    HDA Intel PCH, HDMI 0
    Direct hardware device without any conversions
hw:CARD=PCH,DEV=7
    HDA Intel PCH, HDMI 1
    Direct hardware device without any conversions
hw:CARD=PCH,DEV=8
    HDA Intel PCH, HDMI 2
    Direct hardware device without any conversions
plughw:CARD=PCH,DEV=0
    HDA Intel PCH, ALC892 Analog
    Hardware device with all software conversions
plughw:CARD=PCH,DEV=1
    HDA Intel PCH, ALC892 Digital
    Hardware device with all software conversions
plughw:CARD=PCH,DEV=3
    HDA Intel PCH, HDMI 0
    Hardware device with all software conversions
plughw:CARD=PCH,DEV=7
    HDA Intel PCH, HDMI 1
    Hardware device with all software conversions
plughw:CARD=PCH,DEV=8
    HDA Intel PCH, HDMI 2
    Hardware device with all software conversions
Met Pulse geïnstalleerd, staat er in /etc/pulse/default.pa entries voor 'load-module'? Heb je ook modules in /usr/lib/pulse*/modules?
/etc/pulse/ is leeg
er is dus geen default.pa (meer) en had dus gehoopt dat die geherinstalleerd/geconfigureerd kan worden

modules genoeg:
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
mythtv@pvr:/usr/lib/pulse-5.0/modules$ ls
libalsa-util.so               module-console-kit.so             module-native-protocol-unix.so   module-suspend-on-idle.so
libcli.so                     module-dbus-protocol.so           module-null-sink.so              module-switch-on-connect.so
liboss-util.so                module-default-device-restore.so  module-null-source.so            module-switch-on-port-available.so
libprotocol-cli.so            module-detect.so                  module-oss.so                    module-systemd-login.so
libprotocol-http.so           module-device-manager.so          module-pipe-sink.so              module-tunnel-sink-new.so
libprotocol-native.so         module-device-restore.so          module-pipe-source.so            module-tunnel-sink.so
libprotocol-simple.so         module-echo-cancel.so             module-position-event-sounds.so  module-tunnel-source-new.so
librtp.so                     module-equalizer-sink.so          module-remap-sink.so             module-tunnel-source.so
libwebrtc-util.so             module-esound-sink.so             module-remap-source.so           module-udev-detect.so
module-alsa-card.so           module-filter-apply.so            module-rescue-streams.so         module-virtual-sink.so
module-alsa-sink.so           module-filter-heuristics.so       module-role-cork.so              module-virtual-source.so
module-alsa-source.so         module-http-protocol-tcp.so       module-role-ducking.so           module-virtual-surround-sink.so
module-always-sink.so         module-http-protocol-unix.so      module-rtp-recv.so               module-volume-restore.so
module-augment-properties.so  module-intended-roles.so          module-rtp-send.so               module-x11-bell.so
module-card-restore.so        module-ladspa-sink.so             module-rygel-media-server.so     module-x11-cork-request.so
module-cli-protocol-tcp.so    module-loopback.so                module-simple-protocol-tcp.so    module-x11-publish.so
module-cli-protocol-unix.so   module-match.so                   module-simple-protocol-unix.so   module-x11-xsmp.so
module-cli.so                 module-mmkbd-evdev.so             module-sine.so
module-combine-sink.so        module-native-protocol-fd.so      module-sine-source.so
module-combine.so             module-native-protocol-tcp.so     module-stream-restore.so

[ Voor 94% gewijzigd door Rukapul op 05-01-2016 22:26 ]


Acties:
  • 0 Henk 'm!

  • CAPSLOCK2000
  • Registratie: Februari 2003
  • Laatst online: 16-07 10:55

CAPSLOCK2000

zie teletekst pagina 888

Gek dat default.pa niet wordt geherinstalleerd na een purge & reinstall. Het suggereert dat er iets niet goed gaat bij het herinstalleren. Je zou de .deb met de hand kunnen unpacken en de gewenste files er zelf uit halen.

Als ik zelf problemen heb met geluid begin ik met de Ubuntu handleiding (ook al gebruik ik Debian) want die is erg goed:
https://help.ubuntu.com/community/SoundTroubleshooting
https://wiki.ubuntu.com/PulseAudio/Log

This post is warranted for the full amount you paid me for it.


Acties:
  • 0 Henk 'm!

  • Rukapul
  • Registratie: Februari 2000
  • Laatst online: 00:17
Was er toevallig net weer mee bezig:
apt-file search /etc/pulse/default.pa
pulseaudio: /etc/pulse/default.pa
pvr:~# apt-get --reinstall install pulseaudio
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
Need to get 0 B/971 kB of archives.
After this operation, 0 B of additional disk space will be used.
(Reading database ... 177671 files and directories currently installed.)
Preparing to unpack .../pulseaudio_5.0-13_amd64.deb ...
Unpacking pulseaudio (5.0-13) over (5.0-13) ...
Processing triggers for dbus (1.8.20-0+deb8u1) ...
Processing triggers for man-db (2.7.0.2-5) ...
Setting up pulseaudio (5.0-13) ...
Processing triggers for libc-bin (2.19-18+deb8u1) ...
pvr:~# ls /etc/pulse/
Zal wel kijken naar handmatig, maar zou wel jammer zijn.

[ Voor 3% gewijzigd door Rukapul op 06-01-2016 10:26 ]


Acties:
  • 0 Henk 'm!

  • Rukapul
  • Registratie: Februari 2000
  • Laatst online: 00:17
apart: dpkg --unpack zet wel de files in /etc/pulse met .dpkg-new extentie, maar een install verwijderd alles.

Anyway, default file zijn nu present en na een reboot draait in elk geval de pulseaudio daemon voor een user. Later even testen of er ook geluid uit komt :)

Acties:
  • 0 Henk 'm!

  • Rukapul
  • Registratie: Februari 2000
  • Laatst online: 00:17
Korte update: uiteindelijk via https://wiki.archlinux.org/index.php/PulseAudio/Examples op een goed pad gekomen.

Blijkbaar werkt "module-udev-detect" niet goed, maar als ik handmatig "load-module module-alsa-sink device=hw:0,8" in default.pa opneem dan heb ik in elk geval een hardware device... en pulse audio onder X :) Binnenkort de details maar eens uitpluizen.

Acties:
  • 0 Henk 'm!

  • Hero of Time
  • Registratie: Oktober 2004
  • Laatst online: 17-07 22:39

Hero of Time

Moderator LNX

There is only one Legend

Aparte hardware heb je dan dat je dat moet doen. Juist de udev module van PA moet ervoor zorgen dat 't niet nodig is. Mijn default.pa en system.pa zijn wat er met Pulse is meegeleverd en dat werkt gewoon out of the box. Op al m'n systemen.

Als je niets aanpast en 'm op udev laat staan, zie je dan in pavucontrol wel hardware? Start PA dan ook gewoon zonder fouten?

Commandline FTW | Tweakt met mate


Acties:
  • 0 Henk 'm!

  • Rukapul
  • Registratie: Februari 2000
  • Laatst online: 00:17
Nope. Dan is er in pavucontrol alleen maar een dummy device. Misschien is er iets van udev stuk? Afaik is het extreem standaard hardware (Intel onboard mobo chipset).

overigens heb ik nu ook combined output (hdmi + analog stereo) werkend met volume levels geregeld via pavucontrol, etc. Dat werkt dan wel weer mooi met pulse audio :)

[ Voor 10% gewijzigd door Rukapul op 08-01-2016 10:27 ]


Acties:
  • 0 Henk 'm!

  • Hero of Time
  • Registratie: Oktober 2004
  • Laatst online: 17-07 22:39

Hero of Time

Moderator LNX

There is only one Legend

De laatste tab van pavucontrol laat je kaarten zien. Als je daar alles uit zet, die je in de andere tabs natuurlijk niets dan een dummy. ;) Maar daar zag je dus ook niets?

Commandline FTW | Tweakt met mate


Acties:
  • 0 Henk 'm!

  • Rukapul
  • Registratie: Februari 2000
  • Laatst online: 00:17
Pavucontrol is niet heilig ;) pacmd en pactl lieten geen kaarten zien :) Geen van allen liet kaarten zien overigens.
Pagina: 1