LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-11-2020, 12:07 PM   #1
torronto
LQ Newbie
 
Registered: Dec 2020
Distribution: Ubuntu
Posts: 28

Rep: Reputation: Disabled
Music player daemon: pulse audio output not working.


Good afternoon,
After installing mpd and getting some basic configuration done the daemon seems to be running normally but a control client, specifically mpc still states { Volume: n/a}.


mpd.conf:

Code:
# Recommended location for database
db_file            "~/.mpd/database"

# Logs to systemd journal
log_file           "~/.mpd/log"

# The music directory is by default the XDG directory, uncomment to amend and choose a different directory
music_directory    "~/Music"

# Uncomment to refresh the database whenever files in the music_directory are changed
auto_update "yes"

# Uncomment to enable the functionalities
playlist_directory "~/.mpd/playlists"
pid_file           "~/.mpd/pid"
state_file         "~/.mpd/state"
sticker_file       "~/.mpd/sticker.sql"

audio_output {
        type            "pulse"
        name            "pulse audio"
}
Log file:

Code:
Dec 08 17:35 : update: added Miyagi-YAMAKASI/Мало нам.mp3
Dec 08 17:35 : update: added Miyagi-YAMAKASI/Психопатия.mp3
Dec 08 17:35 : update: added Miyagi-YAMAKASI/Atlant.mp3
Dec 08 17:35 : update: added Miyagi-YAMAKASI/Minor.mp3
Dec 08 17:35 : update: added Miyagi-YAMAKASI/Yamakasi.mp3
Dec 08 17:35 : update: added Miyagi-YAMAKASI/Там ревели горы.mp3
Dec 08 17:35 : update: added Miyagi-YAMAKASI/Tantra.mp3
Dec 08 17:35 : update: added Miyagi-YAMAKASI/Medicine.mp3
Dec 08 17:35 : update: added Miyagi-YAMAKASI/Utopia.mp3
Dec 08 17:38 : exception: Failed to read mixer for 'default detected output': no such mixer control: PCM
Dec 08 18:19 : exception: Failed to commit /home/tt/.mpd/state: File exists
Dec 08 18:19 : exception: Failed to commit /home/tt/.mpd/state: File exists
Dec 08 18:19 : exception: Failed to commit /home/tt/.mpd/state: File exists
Dec 08 18:30 : exception: Failed to commit /home/tt/.mpd/state: File exists
Dec 08 18:36 : exception: Failed to read mixer for 'default detected output': no such mixer control: PCM
Dec 08 18:40 : exception: Failed to commit /home/tt/.mpd/state: File exists
Dec 08 18:40 : exception: Failed to commit /home/tt/.mpd/state: File exists

Last edited by torronto; 12-12-2020 at 07:25 AM.
 
Old 12-11-2020, 03:27 PM   #2
Brains
Senior Member
 
Registered: Apr 2009
Distribution: All OS except Apple
Posts: 1,591

Rep: Reputation: 389Reputation: 389Reputation: 389Reputation: 389
MPC Output commands from here:
Quote:
Output Commands

volume [+-]<num> - Sets the volume to <num> (0-100). If
+ or - is used, then it adjusts the volume relative to the current volume.

outputs - Lists all available outputs

disable [only] <output # or name> [...] - Disables the
output(s); a list of one or more names or numbers is required. If “only” is the first argument, all other outputs are enabled.
enable [only] <output # or name> [...] - Enables the
output(s); a list of one or more names or numbers is required. If “only” is the first argument, all other outputs are disabled.
toggleoutput <output # or name> [...] - Changes the
status for the given output(s); a list of one or more names or numbers is
Did you set the volume?
 
Old 12-11-2020, 04:35 PM   #3
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Full commands, full output please. No paraphrasing. And use CODE tags for commands & their output.
 
Old 12-12-2020, 07:35 AM   #4
torronto
LQ Newbie
 
Registered: Dec 2020
Distribution: Ubuntu
Posts: 28

Original Poster
Rep: Reputation: Disabled
Question

Quote:
Originally Posted by Brains View Post
MPC Output commands from here:

Did you set the volume?
Might sound like a stupid question but what's the proper syntax format to adjust the volume?


Code:
mpc volume + 5  
usage: mpc volume [+-]<num>
 
Old 12-12-2020, 09:02 AM   #5
torronto
LQ Newbie
 
Registered: Dec 2020
Distribution: Ubuntu
Posts: 28

Original Poster
Rep: Reputation: Disabled
Question

Quote:
Originally Posted by Brains View Post
MPC Output commands from here:

Did you set the volume?
Code:
mpc volume +5
volume: n/a   repeat: off   random: off   single: off   consume: off
 
Old 12-12-2020, 02:26 PM   #6
sgosnell
Senior Member
 
Registered: Jan 2008
Location: Baja Oklahoma
Distribution: Debian Stable and Unstable
Posts: 1,943

Rep: Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542
I don't use mpd, but the following looks wrong:
Code:
name            "pulse audio"
I think pulseaudio should be one word. That might not fix it, dunno, but I would try it.
 
Old 12-12-2020, 04:20 PM   #7
torronto
LQ Newbie
 
Registered: Dec 2020
Distribution: Ubuntu
Posts: 28

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by sgosnell View Post
I don't use mpd, but the following looks wrong:
Code:
name            "pulse audio"
I think pulseaudio should be one word. That might not fix it, dunno, but I would try it.
I'm pretty sure the "Type" variable is the only one that matters. The name part is pretty much just a comment and should be only used for reference.
Anyway, this thread was solved by adding my user to the audio group.
 
Old 12-13-2020, 02:39 AM   #8
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by torronto View Post
Anyway, this thread was solved by adding my user to the audio group.
Thanks for sharing the solution.
Maybe some documentation of how you did that?
Others will benefit.
 
Old 12-13-2020, 02:40 PM   #9
torronto
LQ Newbie
 
Registered: Dec 2020
Distribution: Ubuntu
Posts: 28

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ondoho View Post
Thanks for sharing the solution.
Maybe some documentation of how you did that?
Others will benefit.
Sure.
For me it was as simple a changing the 'User=' line down in the mpd service file to my own user and adding my user to the audio group.

Code:
/usr/lib/systemd/system/mpd.service

[Service]
User=usr
#Type=notify
PAMName=system-local-login
ExecStart=/usr/bin/mpd --no-daemon


sudo usermod -a -G audio usr
sudo reboot
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Audio output to File - Pulse Audio pr0xibus Linux - Software 3 08-26-2019 06:36 AM
LXer: Play your Music on Linux with Music Player Daemon LXer Syndicated Linux News 0 03-03-2014 06:41 PM
Pulse counter or frequency of incoming pulse train jayhorizon Programming 15 10-29-2010 04:29 AM
LXer: Exaile Music Player - Music Player for GTK+ in openSUSE LXer Syndicated Linux News 0 08-31-2008 12:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration