You are not logged in.
Hello everyone,
I have no sound with several music players (Clementine, RhythmBox, Cantata).
However with Audacious and VLC it's all good!
Here is what I did for Cantata:
I first loaded mpd and wildmidi.
[armand@Desktop-living ~]$ nano ~/.config/mpd/mpd.conf
music_directory "~/music"
playlist_directory "~/.mpd/playlists"
db_file "~/.mpd/database"
log_file "syslog"
pid_file "~/.mpd/pid"
state_file "~/.mpd/state"
sticker_file "~/.mpd/sticker.sql"
input {
plugin "curl"
}
audio_output {
type "alsa"
name "My ALSA Device"
}[armand@Desktop-living ~]$ systemctl status mpd
○ mpd.service - Music Player Daemon
Loaded: loaded (/usr/lib/systemd/system/mpd.service; disabled; vendor preset: disabled)
Active: inactive (dead)
Docs: man:mpd(1)
man:mpd.conf(5)
[armand@Desktop-living ~]$Then I started the daemon (mpd) with tty:
[armand@Desktop-living ~]$ systemctl start mpd
[armand@Desktop-living ~]$
[armand@Desktop-living ~]$ systemctl status mpd
● mpd.service - Music Player Daemon
Loaded: loaded (/usr/lib/systemd/system/mpd.service; disabled; vendor preset: disabled)
Active: active (running) since Thu 2021-08-12 19:16:47 +07; 2min 14s ago
Docs: man:mpd(1)
man:mpd.conf(5)
Main PID: 2996 (mpd)
Tasks: 3 (limit: 19121)
Memory: 39.2M
CPU: 66ms
CGroup: /system.slice/mpd.service
└─2996 /usr/bin/mpd --no-daemon
Aug 12 19:16:47 Desktop-living mpd[2996]: exception: bind to '0.0.0.0:6600' failed (continuing anyway, because binding to '[::]:6600' succeeded): Failed to bind soc>
Aug 12 19:16:47 Desktop-living mpd[2996]: exception: Decoder plugin 'wildmidi' is unavailable: configuration file does not exist: /etc/timidity/timidity.cfg
Aug 12 19:16:47 Desktop-living mpd[2996]: config: Found database setting without music_directory - disabling database
Aug 12 19:16:47 Desktop-living mpd[2996]: output: No 'audio_output' defined in config file
Aug 12 19:16:47 Desktop-living mpd[2996]: ALSA lib pcm_dmix.c:1035:(snd_pcm_dmix_open) unable to open slave
Aug 12 19:16:47 Desktop-living mpd[2996]: alsa_output: Error opening default ALSA device: No such file or directory
Aug 12 19:16:47 Desktop-living mpd[2996]: oss_output: Error opening OSS device "/dev/dsp": No such file or directory
Aug 12 19:16:47 Desktop-living mpd[2996]: oss_output: Error opening OSS device "/dev/sound/dsp": No such file or directory
Aug 12 19:16:47 Desktop-living mpd[2996]: output: Successfully detected a jack audio device
Aug 12 19:16:47 Desktop-living systemd[1]: Started Music Player Daemon.
lines 1-22/22 (END)By checking the status of mpd several things call out to me:Aug 12 19:16:47 Desktop-living mpd [2996]: exception: Decoder plugin 'wildmidi' is unavailable: configuration file does not exist: /etc/timidity/timidity.cfg
Aug 12 19:16:47 Desktop-living mpd [2996]: exception: Decoder plugin 'wildmidi' is unavailable: configuration file does not exist: /etc/timidity/timidity.cfg
What is this missing configuration file? I didn't see anywhere that I had to create one.
output: No 'audio_output' defined in config file
Which config file is this? In mpd.conf I have defined an audio_output.
When launching cantata with tty I got the same error message regarding wildmidi:
[armand@Desktop-living ~]$ cantata #
Icon theme "gnome" not found.
config_file: config parameter "id3v1_encoding" on line 18 is deprecated
Aug 12 19:22 : exception: Decoder plugin 'wildmidi' is unavailable: configuration file does not exist: /etc/timidity/timidity.cfg[armand@Desktop-living ~]$ pactl list sinks
Sink #1
State: RUNNING
Name: alsa_output.pci-0000_2d_00.4.analog-stereo
Description: Starship/Matisse HD Audio Controller Analog Stereo
Driver: module-alsa-card.c
Sample Specification: s16le 2ch 44100Hz
Channel Map: front-left,front-right
Owner Module: 7
Mute: no
Volume: front-left: 29491 / 45% / -20.81 dB, front-right: 29491 / 45% / -20.81 dB
balance 0.00
Base Volume: 65536 / 100% / 0.00 dB
Monitor Source: alsa_output.pci-0000_2d_00.4.analog-stereo.monitor
Latency: 123447 usec, configured 210000 usec
Flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY
Properties:
alsa.resolution_bits = "16"
device.api = "alsa"
device.class = "sound"
alsa.class = "generic"
alsa.subclass = "generic-mix"
alsa.name = "ALCS1200A Analog"
alsa.id = "ALCS1200A Analog"
alsa.subdevice = "0"
alsa.subdevice_name = "subdevice #0"
alsa.device = "0"
alsa.card = "1"
alsa.card_name = "HD-Audio Generic"
alsa.long_card_name = "HD-Audio Generic at 0xfcd00000 irq 92"
alsa.driver_name = "snd_hda_intel"
device.bus_path = "pci-0000:2d:00.4"
sysfs.path = "/devices/pci0000:00/0000:00:08.1/0000:2d:00.4/sound/card1"
device.bus = "pci"
device.vendor.id = "1022"
device.vendor.name = "Advanced Micro Devices, Inc. [AMD]"
device.product.id = "1487"
device.product.name = "Starship/Matisse HD Audio Controller"
device.string = "front:1"
device.buffering.buffer_size = "352768"
device.profile.description = "Analog Stereo"
device.description = "Starship/Matisse HD Audio Controller Analog Stereo"
module-udev-detect.discovered = "1"
device.icon_name = "audio-card-pci"
Ports:
analog-output-lineout: Line Out (type: Line, priority: 9000, not available)
analog-output-headphones: Headphones (type: Headphones, priority: 9900, available)
Active Port: analog-output-headphones
Formats:
pcm
[armand@Desktop-living ~]$ In short, I am completely lost. If someone had a great idea to get me out of this mess ...
Last edited by Breizh29 (2021-08-14 01:58:25)
Offline
Please edit your post to use [code] [/code] tags around file contents, commands and their outputs...
https://wiki.archlinux.org/title/Genera … s_and_code
You've edited the user mpd config files yet you're trying to start it as a system (not user) service.
Read the wiki page...
https://wiki.archlinux.org/title/Music_Player_Daemon
Offline
And you should configure the pulse rather than the alsa backend if you're using pulse.
Offline
And you should configure the pulse rather than the alsa backend if you're using pulse.
By adding this in ~/.config/mpd/mpd.conf ?
audio_output {
type "pulse"
name "pulse audio"
}Offline
You can remove the name line.
Offline
Please edit your post to use [code] [/code] tags around file contents, commands and their outputs...
https://wiki.archlinux.org/title/Genera … s_and_code
For the first point, sorry I'm a newbie on Arch!
But I changed the layout.
You've edited the user mpd config files yet you're trying to start it as a system (not user) service.]
To launch from a terminal as a user service is it sufficient?
armand@Desktop-living ~]$ mpd #
thanks in advance
Offline
For example. But if you want it autostarted when you login you can do
systemctl --user enable mpdwhich will logically bind to your normal user.
Offline
I still have the same problem - no sound.
And I think this error message has something to do with it. And I don't know how to get out of it ...
armand@Desktop-living mpd]$ cantata #
Icon theme "gnome" not found.
config_file: config parameter "id3v1_encoding" on line 18 is deprecated
Aug 13 18:43 : exception: Decoder plugin 'wildmidi' is unavailable: configuration file does not exist: /etc/timidity/timidity.cfg
[armand@Desktop-living mpd]$ Offline
The wildmidi message is irrelevant (unless you actually want to play midi files, but that would be something relatively special). Define "no sound" are you playing to the correct device? Is mpd started? What's your output for
sudo fuser -v /dev/snd/*
ps -ef | grep mpd
systemctl --user status mpd
pacmd list-sinks
pacmd list-sink-inputsLast edited by V1del (2021-08-13 12:21:59)
Offline
The wildmidi message is irrelevant (unless you actually want to play midi files, but that would be something relatively special). Define "no sound" are you playing to the correct device? Is mpd started? What's your output for
sudo fuser -v /dev/snd/* ps -ef | grep mpd systemctl --user status mpd pacmd list-sinks pacmd list-sink-inputs
[armand@Desktop-living ~]$ sudo fuser -v /dev/snd/*
[sudo] password for armand:
USER PID ACCESS COMMAND
/dev/snd/controlC0: armand 909 F.... pulseaudio
/dev/snd/controlC1: armand 909 F.... pulseaudio
/dev/snd/pcmC0D8p: armand 909 F...m pulseaudio
[armand@Desktop-living ~]$ [armand@Desktop-living ~]$ ps -ef | grep mpd
armand 660 653 0 05:07 ? 00:00:00 /usr/bin/mpd --no-daemon
armand 1592 1539 0 05:15 pts/1 00:00:00 grep mpd
[armand@Desktop-living ~]$ [armand@Desktop-living ~]$ systemctl --user status mpd
● mpd.service - Music Player Daemon
Loaded: loaded (/usr/lib/systemd/user/mpd.service; enabled; vendor preset: enabled)
Active: active (running) since Sat 2021-08-14 05:07:45 +07; 20min ago
Docs: man:mpd(1)
man:mpd.conf(5)
Main PID: 660 (mpd)
Tasks: 3 (limit: 19121)
Memory: 99.5M
CPU: 57ms
CGroup: /user.slice/user-1000.slice/user@1000.service/app.slice/mpd.service
└─660 /usr/bin/mpd --no-daemon
Aug 14 05:07:44 Desktop-living systemd[653]: Starting Music Player Daemon...
Aug 14 05:07:45 Desktop-living mpd[660]: exception: bind to '0.0.0.0:6600' failed (continuing anyway, because binding to '[::]:6600' succeeded): Failed to bind socket: Address already in use
Aug 14 05:07:45 Desktop-living systemd[653]: Started Music Player Daemon.
[armand@Desktop-living ~]$ [armand@Desktop-living ~]$ pacmd list-sinks
2 sink(s) available.
index: 0
name: <alsa_output.pci-0000_2b_00.1.hdmi-stereo-extra2>
driver: <module-alsa-card.c>
flags: HARDWARE DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
state: IDLE
suspend cause: (none)
priority: 9030
volume: front-left: 30147 / 46% / -20.23 dB, front-right: 30147 / 46% / -20.23 dB
balance 0.00
base volume: 65536 / 100% / 0.00 dB
volume steps: 65537
muted: no
current latency: 39.93 ms
max request: 6 KiB
max rewind: 6 KiB
monitor source: 0
sample spec: s16le 2ch 44100Hz
channel map: front-left,front-right
Stereo
used by: 0
linked by: 1
configured latency: 40.00 ms; range is 0.50 .. 1999.82 ms
card: 0 <alsa_card.pci-0000_2b_00.1>
module: 6
properties:
alsa.resolution_bits = "16"
device.api = "alsa"
device.class = "sound"
alsa.class = "generic"
alsa.subclass = "generic-mix"
alsa.name = "HDMI 2"
alsa.id = "HDMI 2"
alsa.subdevice = "0"
alsa.subdevice_name = "subdevice #0"
alsa.device = "8"
alsa.card = "0"
alsa.card_name = "HDA ATI HDMI"
alsa.long_card_name = "HDA ATI HDMI at 0xfce60000 irq 76"
alsa.driver_name = "snd_hda_intel"
device.bus_path = "pci-0000:2b:00.1"
sysfs.path = "/devices/pci0000:00/0000:00:03.1/0000:2b:00.1/sound/card0"
device.bus = "pci"
device.vendor.id = "1002"
device.vendor.name = "Advanced Micro Devices, Inc. [AMD/ATI]"
device.product.id = "aae0"
device.product.name = "Baffin HDMI/DP Audio [Radeon RX 550 640SP / RX 560/560X]"
device.string = "hdmi:0,2"
device.buffering.buffer_size = "352768"
device.buffering.fragment_size = "176384"
device.access_mode = "mmap+timer"
device.profile.name = "hdmi-stereo-extra2"
device.profile.description = "Digital Stereo (HDMI 3)"
device.description = "Baffin HDMI/DP Audio [Radeon RX 550 640SP / RX 560/560X] Digital Stereo (HDMI 3)"
module-udev-detect.discovered = "1"
device.icon_name = "audio-card-pci"
ports:
hdmi-output-2: HDMI / DisplayPort 3 (priority 5700, latency offset 0 usec, available: yes)
properties:
device.icon_name = "video-display"
device.product.name = "VG279"
active port: <hdmi-output-2>*
index: 1
name: <alsa_output.pci-0000_2d_00.4.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: 9039
volume: front-left: 28836 / 44% / -21.39 dB, front-right: 28836 / 44% / -21.39 dB
balance 0.00
base volume: 65536 / 100% / 0.00 dB
volume steps: 65537
muted: no
current latency: 0.00 ms
max request: 0 KiB
max rewind: 0 KiB
monitor source: 1
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 .. 1999.82 ms
card: 1 <alsa_card.pci-0000_2d_00.4>
module: 7
properties:
alsa.resolution_bits = "16"
device.api = "alsa"
device.class = "sound"
alsa.class = "generic"
alsa.subclass = "generic-mix"
alsa.name = "ALCS1200A Analog"
alsa.id = "ALCS1200A Analog"
alsa.subdevice = "0"
alsa.subdevice_name = "subdevice #0"
alsa.device = "0"
alsa.card = "1"
alsa.card_name = "HD-Audio Generic"
alsa.long_card_name = "HD-Audio Generic at 0xfcd00000 irq 78"
alsa.driver_name = "snd_hda_intel"
device.bus_path = "pci-0000:2d:00.4"
sysfs.path = "/devices/pci0000:00/0000:00:08.1/0000:2d:00.4/sound/card1"
device.bus = "pci"
device.vendor.id = "1022"
device.vendor.name = "Advanced Micro Devices, Inc. [AMD]"
device.product.id = "1487"
device.product.name = "Starship/Matisse HD Audio Controller"
device.string = "front:1"
device.buffering.buffer_size = "352768"
device.buffering.fragment_size = "176384"
device.access_mode = "mmap+timer"
device.profile.name = "analog-stereo"
device.profile.description = "Analog Stereo"
device.description = "Starship/Matisse HD Audio Controller Analog Stereo"
module-udev-detect.discovered = "1"
device.icon_name = "audio-card-pci"
ports:
analog-output-lineout: Line Out (priority 9000, latency offset 0 usec, available: no)
properties:
analog-output-headphones: Headphones (priority 9900, latency offset 0 usec, available: yes)
properties:
device.icon_name = "audio-headphones"
active port: <analog-output-headphones>
[armand@Desktop-living ~]$ [armand@Desktop-living ~]$ pacmd list-sink-inputs
0 sink input(s) available.
[armand@Desktop-living ~]$ [armand@Desktop-living ~]$ cantata #
Icon theme "gnome" not found.
config_file: config parameter "id3v1_encoding" on line 18 is deprecated[armand@Desktop-living ~]$ sudo fuser -v /dev/snd/*
USER PID ACCESS COMMAND
/dev/snd/controlC0: armand 909 F.... pulseaudio
/dev/snd/controlC1: armand 909 F.... pulseaudio
/dev/snd/pcmC0D8p: armand 909 F...m pulseaudio
/dev/snd/pcmC1D0p: armand 909 F...m pulseaudio
[armand@Desktop-living ~]$ [armand@Desktop-living ~]$ ps -ef | grep mpd
armand 660 653 0 05:07 ? 00:00:00 /usr/bin/mpd --no-daemon
armand 1846 1 0 05:32 ? 00:00:02 /usr/bin/mpd /home/armand/.local/share/cantata/mpd/mpd.conf
armand 1980 1715 0 05:44 pts/1 00:00:00 grep mpd
[armand@Desktop-living ~]$[armand@Desktop-living ~]$ pacmd list-sinks
2 sink(s) available.
index: 0
name: <alsa_output.pci-0000_2b_00.1.hdmi-stereo-extra2>
driver: <module-alsa-card.c>
flags: HARDWARE DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
state: IDLE
suspend cause: (none)
priority: 9030
volume: front-left: 30147 / 46% / -20.23 dB, front-right: 30147 / 46% / -20.23 dB
balance 0.00
base volume: 65536 / 100% / 0.00 dB
volume steps: 65537
muted: no
current latency: 39.93 ms
max request: 6 KiB
max rewind: 6 KiB
monitor source: 0
sample spec: s16le 2ch 44100Hz
channel map: front-left,front-right
Stereo
used by: 0
linked by: 1
configured latency: 40.00 ms; range is 0.50 .. 1999.82 ms
card: 0 <alsa_card.pci-0000_2b_00.1>
module: 6
properties:
alsa.resolution_bits = "16"
device.api = "alsa"
device.class = "sound"
alsa.class = "generic"
alsa.subclass = "generic-mix"
alsa.name = "HDMI 2"
alsa.id = "HDMI 2"
alsa.subdevice = "0"
alsa.subdevice_name = "subdevice #0"
alsa.device = "8"
alsa.card = "0"
alsa.card_name = "HDA ATI HDMI"
alsa.long_card_name = "HDA ATI HDMI at 0xfce60000 irq 76"
alsa.driver_name = "snd_hda_intel"
device.bus_path = "pci-0000:2b:00.1"
sysfs.path = "/devices/pci0000:00/0000:00:03.1/0000:2b:00.1/sound/card0"
device.bus = "pci"
device.vendor.id = "1002"
device.vendor.name = "Advanced Micro Devices, Inc. [AMD/ATI]"
device.product.id = "aae0"
device.product.name = "Baffin HDMI/DP Audio [Radeon RX 550 640SP / RX 560/560X]"
device.string = "hdmi:0,2"
device.buffering.buffer_size = "352768"
device.buffering.fragment_size = "176384"
device.access_mode = "mmap+timer"
device.profile.name = "hdmi-stereo-extra2"
device.profile.description = "Digital Stereo (HDMI 3)"
device.description = "Baffin HDMI/DP Audio [Radeon RX 550 640SP / RX 560/560X] Digital Stereo (HDMI 3)"
module-udev-detect.discovered = "1"
device.icon_name = "audio-card-pci"
ports:
hdmi-output-2: HDMI / DisplayPort 3 (priority 5700, latency offset 0 usec, available: yes)
properties:
device.icon_name = "video-display"
device.product.name = "VG279"
active port: <hdmi-output-2>
* index: 1
name: <alsa_output.pci-0000_2d_00.4.analog-stereo>
driver: <module-alsa-card.c>
flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
state: RUNNING
suspend cause: (none)
priority: 9039
volume: front-left: 28836 / 44% / -21.39 dB, front-right: 28836 / 44% / -21.39 dB
balance 0.00
base volume: 65536 / 100% / 0.00 dB
volume steps: 65537
muted: no
current latency: 149.28 ms
max request: 36 KiB
max rewind: 36 KiB
monitor source: 1
sample spec: s16le 2ch 44100Hz
channel map: front-left,front-right
Stereo
used by: 1
linked by: 1
configured latency: 210.00 ms; range is 0.50 .. 1999.82 ms
card: 1 <alsa_card.pci-0000_2d_00.4>
module: 7
properties:
alsa.resolution_bits = "16"
device.api = "alsa"
device.class = "sound"
alsa.class = "generic"
alsa.subclass = "generic-mix"
alsa.name = "ALCS1200A Analog"
alsa.id = "ALCS1200A Analog"
alsa.subdevice = "0"
alsa.subdevice_name = "subdevice #0"
alsa.device = "0"
alsa.card = "1"
alsa.card_name = "HD-Audio Generic"
alsa.long_card_name = "HD-Audio Generic at 0xfcd00000 irq 78"
alsa.driver_name = "snd_hda_intel"
device.bus_path = "pci-0000:2d:00.4"
sysfs.path = "/devices/pci0000:00/0000:00:08.1/0000:2d:00.4/sound/card1"
device.bus = "pci"
device.vendor.id = "1022"
device.vendor.name = "Advanced Micro Devices, Inc. [AMD]"
device.product.id = "1487"
device.product.name = "Starship/Matisse HD Audio Controller"
device.string = "front:1"
device.buffering.buffer_size = "352768"
device.buffering.fragment_size = "176384"
device.access_mode = "mmap+timer"
device.profile.name = "analog-stereo"
device.profile.description = "Analog Stereo"
device.description = "Starship/Matisse HD Audio Controller Analog Stereo"
module-udev-detect.discovered = "1"
device.icon_name = "audio-card-pci"
ports:
analog-output-lineout: Line Out (priority 9000, latency offset 0 usec, available: no)
properties:
analog-output-headphones: Headphones (priority 9900, latency offset 0 usec, available: yes)
properties:
device.icon_name = "audio-headphones"
active port: <analog-output-headphones>
[armand@Desktop-living ~]$ [armand@Desktop-living ~]$ pacmd list-sink-inputs
1 sink input(s) available.
index: 1
driver: <protocol-native.c>
flags:
state: RUNNING
sink: 1 <alsa_output.pci-0000_2d_00.4.analog-stereo>
volume: front-left: 65536 / 100% / 0.00 dB, front-right: 65536 / 100% / 0.00 dB
balance 0.00
muted: yes
current latency: 230.45 ms
requested latency: 210.00 ms
sample spec: s24-32le 2ch 44100Hz
channel map: front-left,front-right
Stereo
resample method: copy
module: 9
client: 10 <Music Player Daemon>
properties:
media.name = "Output"
application.name = "Music Player Daemon"
native-protocol.peer = "UNIX socket client"
native-protocol.version = "35"
media.role = "music"
application.icon_name = "mpd"
application.process.id = "1846"
application.process.user = "armand"
application.process.host = "Desktop-living"
application.process.binary = "mpd"
application.language = "C"
window.x11.display = ":1"
application.process.machine_id = "b89d5bdf20d14d6db1eb02f5e1a1a291"
application.process.session_id = "2"
module-stream-restore.id = "sink-input-by-media-role:music"
[armand@Desktop-living ~]$ And thank you again for your help.
Offline
Mpd is started twice for some reason, but your real problem is
volume: front-left: 65536 / 100% / 0.00 dB, front-right: 65536 / 100% / 0.00 dB
balance 0.00
muted: yespacmd set-sink-input-mute 1 offDouble check the index or look at pavucontrol or whatever mixer utility you usually use.
Last edited by V1del (2021-08-13 23:16:31)
Offline
Hi,
muted: yes: well seen! And thank you for the command that cancels the mute.
So cantata works now and out of curiosity I reinstalled clementine and it's all good.
Once again thank you V1del for your help. I really appreciate!
Offline