ubuntuusers.de

Ubuntu Server: Kein Sound in MPD

Status: Ungelöst | Ubuntu-Version: Server 16.04 (Xenial Xerus)
Antworten |

alexander1974

Anmeldungsdatum:
7. November 2016

Beiträge: 2

Hi Community,

ich bräuchte Hilfe, nachdem ich am Soundsystem verzweifel. Ich habe einen Server, auf dem meine Musik liegt. Darauf läuft mpd und über die Devil Hdx Soundkarte wollte ich das ganze an den Verstärker schicken. Die Soundkarte wird erkannt. Auf mpd kann ich vom Laptop zugreifen (gmpc). Alsamixer zeigt, das alle Kanäle offen und laut sind. Trotzdem kommt kein Ton.

 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
alex@server:~$ aplay -l
**** Liste der Hardware-Geräte (PLAYBACK) ****
Karte 0: PCH [HDA Intel PCH], Gerät 0: VT2020 Analog [VT2020 Analog]
  Sub-Geräte: 0/1
  Sub-Gerät #0: subdevice #0
Karte 0: PCH [HDA Intel PCH], Gerät 1: VT2020 Digital [VT2020 Digital]
  Sub-Geräte: 1/1
  Sub-Gerät #0: subdevice #0
Karte 0: PCH [HDA Intel PCH], Gerät 2: VT2020 Alt Analog [VT2020 Alt Analog]
  Sub-Geräte: 1/1
  Sub-Gerät #0: subdevice #0
Karte 0: PCH [HDA Intel PCH], Gerät 3: HDMI 0 [HDMI 0]
  Sub-Geräte: 1/1
  Sub-Gerät #0: subdevice #0
Karte 0: PCH [HDA Intel PCH], Gerät 7: HDMI 1 [HDMI 1]
  Sub-Geräte: 1/1
  Sub-Gerät #0: subdevice #0
Karte 0: PCH [HDA Intel PCH], Gerät 8: HDMI 2 [HDMI 2]
  Sub-Geräte: 1/1
  Sub-Gerät #0: subdevice #0
Karte 1: CMedia [HDA C-Media], Gerät 0: CMI8888 Analog [CMI8888 Analog]
  Sub-Geräte: 0/1
  Sub-Gerät #0: subdevice #0
Karte 1: CMedia [HDA C-Media], Gerät 1: CMI8888 Digital [CMI8888 Digital]
  Sub-Geräte: 1/1
  Sub-Gerät #0: subdevice #0

/etc/pulse/client.conf

 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
alex@server:~$ cat /etc/pulse/client.conf 
# This file is part of PulseAudio.
#
# PulseAudio is free software; you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# PulseAudio is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with PulseAudio; if not, see <http://www.gnu.org/licenses/>.

## Configuration file for PulseAudio clients. See pulse-client.conf(5) for
## more information. Default values are commented out.  Use either ; or # for
## commenting.

default-sink = alsa_output.pci-0000_03_00.0.analog-stereo
; default-source =
; default-server =
; default-dbus-server =

autospawn = yes
; daemon-binary = /usr/bin/pulseaudio
extra-arguments = --log-target=syslog -vvv

; cookie-file =

; enable-shm = yes
; shm-size-bytes = 0 # setting this 0 will use the system-default, usually 64 MiB

; auto-connect-localhost = no
auto-connect-display = no

pacmd list-sinks

 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
alex@server:~$ pacmd list-sinks
1 sink(s) available.
  * index: 0
	name: <alsa_output.pci-0000_00_1b.0.analog-stereo>
	driver: <module-alsa-card.c>
	flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
	state: SUSPENDED
	suspend cause: IDLE 
	priority: 9959
	volume: front-left: 32846 /  50% / -18,00 dB,   front-right: 32846 /  50% / -18,00 dB
	        balance 0,00
	base volume: 65536 / 100% / 0,00 dB
	volume steps: 65537
	muted: yes
	current latency: 0,00 ms
	max request: 0 KiB
	max rewind: 0 KiB
	monitor source: 0
	sample spec: s16le 2ch 44100Hz
	channel map: front-left,front-right
	             Stereo
	used by: 0
	linked by: 0
	configured latency: 0,00 ms; range is 0,50 .. 371,52 ms
	card: 0 <alsa_card.pci-0000_00_1b.0>
	module: 6
	properties:
		alsa.resolution_bits = "16"
		device.api = "alsa"
		device.class = "sound"
		alsa.class = "generic"
		alsa.subclass = "generic-mix"
		alsa.name = "VT2020 Analog"
		alsa.id = "VT2020 Analog"
		alsa.subdevice = "0"
		alsa.subdevice_name = "subdevice #0"
		alsa.device = "0"
		alsa.card = "0"
		alsa.card_name = "HDA Intel PCH"
		alsa.long_card_name = "HDA Intel PCH at 0xf7d10000 irq 29"
		alsa.driver_name = "snd_hda_intel"
		device.bus_path = "pci-0000:00:1b.0"
		sysfs.path = "/devices/pci0000:00/0000:00:1b.0/sound/card0"
		device.bus = "pci"
		device.vendor.id = "8086"
		device.vendor.name = "Intel Corporation"
		device.product.id = "1e20"
		device.product.name = "7 Series/C210 Series Chipset Family High Definition Audio Controller"
		device.form_factor = "internal"
		device.string = "front:0"
		device.buffering.buffer_size = "65536"
		device.buffering.fragment_size = "32768"
		device.access_mode = "mmap+timer"
		device.profile.name = "analog-stereo"
		device.profile.description = "Analog Stereo"
		device.description = "Internes Audio Analog Stereo"
		alsa.mixer_name = "VIA VT2020"
		alsa.components = "HDA:11060441,1458a014,00100100 HDA:80862806,80860101,00100000"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"
	ports:
		analog-output-lineout: Line-Ausgang (priority 9900, latency offset 0 usec, available: no)
			properties:
				
		analog-output-headphones: Kopfhörer (priority 9000, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "audio-headphones"
	active port: <analog-output-lineout>

Gigabyte H77 D3H

Powercolor Devil HDX PCIe Sound Card

hakel

Anmeldungsdatum:
13. August 2009

Beiträge: 23336

http://askubuntu.com/questions/28176/how-do-i-run-pulseaudio-in-a-headless-server-installation

Pulseaudio ohne Desktop ist sicher nicht ganz einfach. Leider noch nie gemacht. Bei einem Server würde ich darauf eher verzichten.

Du bist dir sicher, daß der Sound nicht bei HDMI landet?

pepre Team-Icon

Supporter
Avatar von pepre

Anmeldungsdatum:
31. Oktober 2005

Beiträge: 6474

Wohnort: Erlangen

Ja, da pflichte ich bei, dass PulseAudio hier keine gute Wahl ist. Nimm einfach ALSA (s. Soundsystem für die Grundlagen).

mpd kann auch mit ALSA: http://mpd.wikia.com/wiki/Alsa. IdF wäre dies dein Gerät:

Karte 1: CMedia [HDA C-Media], Gerät 0: CMI8888 Analog [CMI8888 Analog]

Testbar mit:

speaker-test -c2 -Dhw:1

alexander1974

(Themenstarter)

Anmeldungsdatum:
7. November 2016

Beiträge: 2

Danke für eure Hilfe, konnte leider erst jetzt antworten. Hab es bisher nicht geschafft, pulseaudio am Server zum Laufen zu bringen. Verwende jetzt Alsa und das funktioniert.

Antworten |