LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Can't open pavucontrol in xfce - sound not configured (https://www.linuxquestions.org/questions/linux-newbie-8/can%27t-open-pavucontrol-in-xfce-sound-not-configured-4175531013/)

Higgsboson 01-14-2015 10:59 AM

Can't open pavucontrol in xfce - sound not configured
 
I am trying to open pavucontrol in debian with the xfce desktop.
The error message is:

Code:

Connection to Pulseaudio failed. Automatic retry in 5s
In this case this is likely because PULSE_SERVER in the Environment/X11 Root Windows Properties or default-server in client.conf is misconfigured.

I am having trouble getting sound and configuring the settings.
There is no sound setting in the Settings Manager of xfce.
Also, every time I change alsamixer to my hdmi sound card it keeps going back to the default analog sound card when I exit the program.

How can I access the system settings on the desktop or do I need to change a file setting from the terminal?

Higgsboson 01-16-2015 07:44 AM

My radeon sound card has given me problems with my previous debian install. From this, I've learned some changes I need to make which rectify the problem.
I've done the following:

Ensure etc/apt/sources.list includes 'contrib' and 'non-free'
Code:

debian stable main contrib non-free
Install relevant firmware:
Code:

apt-get install firmware-linux
apt-cache search firmware
apt-get install alsa-firmware-loaders

Ensure /etc/default/grub has 'radeon.audio=1' added:
Code:

GRUB_CMDLINE_LINUX_DEFAULT="quiet radeon.audio=1"
When I open alsamixer from the terminal it defaults to the analog sound card which isn't being used. I need to set the sound card to the radeon hdmi one but don't know how.
There is no sound icon on this xfce DE under system settings!

DavidMcCann 01-16-2015 10:13 AM

If the card you want is listed as 1 and the analogue as 0, try creating a file $HOME/.asoundrc to contain
defaults.pcm.card 1
defaults.pcm.device 0
defaults.ctl.card 1
Then you need to log out and in again. No guarantees, though: Debian sound is a black art. I remember one case where the numbering of the devices could change from boot to boot!

Higgsboson 01-16-2015 11:58 AM

Quote:

Originally Posted by DavidMcCann (Post 5301903)
If the card you want is listed as 1 and the analogue as 0, try creating a file $HOME/.asoundrc to contain
defaults.pcm.card 1
defaults.pcm.device 0
defaults.ctl.card 1
Then you need to log out and in again. No guarantees, though: Debian sound is a black art. I remember one case where the numbering of the devices could change from boot to boot!

My previous install on a different partition where the sound is working doesn't have a .asoundrc file.
I have come across some solutions referring to the .asoundrc file. However, since the first install doesn't even have the file, I'm wondering if the answer is somewhere else.

One thing I haven't done is change the system settings for sound on the desktop. But for some reason there is no icon for it on this xfce desktop!
I'm thinking that there must be a problem if the xfce desktop doesn't even have a system setting for sound...

Higgsboson 01-16-2015 12:41 PM

Well, I've got pavucontrol working!

I tried opening pavucontrol from the terminal, and nothing happened.
So I tried installing it again. It installed correctly without saying that the program was already installed.

So the error message for the program must have been due to a broken install.
I can now open the program via desktop and terminal.
Still got no sound though.

DavidMcCann 01-17-2015 10:45 AM

Quote:

Originally Posted by Higgsboson (Post 5301960)
My previous install on a different partition where the sound is working doesn't have a .asoundrc file. I have come across some solutions referring to the .asoundrc file. However, since the first install doesn't even have the file, I'm wondering if the answer is somewhere else.

I don't think any distro creates that file by default. It's something you make yourself if you need it in very hands-on distros like Debian, Arch, or Slackware.

The command
aplay -l
should list your devices and confirm which is numbered 0 and which is 1. If the sound card isn't listed, try
cat /proc/asound/modules
to see if the kernel module for it is loaded. If it isn't, then you need to install that from Debian and reboot.

Higgsboson 01-17-2015 11:04 AM

Quote:

Originally Posted by DavidMcCann (Post 5302418)
The command
aplay -l
should list your devices and confirm which is numbered 0 and which is 1. If the sound card isn't listed, try
cat /proc/asound/modules
to see if the kernel module for it is loaded. If it isn't, then you need to install that from Debian and reboot.

The hdmi card is listed under 'aplay-l':
Code:

aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: SB [HDA ATI SB], device 0: ALC892 Analog [ALC892 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: SB [HDA ATI SB], device 1: ALC892 Digital [ALC892 Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: HDMI [HDA ATI HDMI], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

The problem I'm having is being able to change system settings to default to the hdmi sound card.
But now I'm beginning to wonder if the .asoundrc file will do this anyway.
I'll give it a try.


All times are GMT -5. The time now is 07:16 PM.