LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   New debian 7.7 non-free install - sound not working. (https://www.linuxquestions.org/questions/linux-newbie-8/new-debian-7-7-non-free-install-sound-not-working-4175530382/)

Higgsboson 01-07-2015 06:58 PM

New debian 7.7 non-free install - sound not working.
 
Hello everyone.
I have just installed debian stable non-free onto my hard drive but the sound isn't working.

I've been to the debian site https://wiki.debian.org/SoundConfiguration and found that 'users' don't automatically have access to audio (for security reasons).
So I did the following command as root (sudo):
Code:

adduser USER_NAME audio
Now when I am 'user', I can get sound.

I also did:
Code:

chgrp cdrom /dev/sr0
adduser USER_ID cdrom

This allows 'user' to get sound from the cdrom.

I then went onto the debian soundfaq https://wiki.debian.org/SoundFAQ

From the 'lspci -v' command, I get these 2 outputs which have the word 'audio' in it:
Code:

01:05.1 Audio device: Advanced Micro Devices [AMD] nee ATI RS880 HDMI Audio [Radeon HD 4200 Series]
        Subsystem: Giga-byte Technology Device 960f
        Flags: bus master, fast devsel, latency 0, IRQ 19
        Memory at fdefc000 (32-bit, non-prefetchable) [size=16K]
        Capabilities: [50] Power Management version 3
        Capabilities: [a0] MSI: Enable- Count=1/1 Maskable- 64bit+
        Kernel driver in use: snd_hda_intel

00:14.2 Audio device: Advanced Micro Devices [AMD] nee ATI SBx00 Azalia (Intel HDA) (rev 40)
        Subsystem: Giga-byte Technology Device a102
        Flags: bus master, slow devsel, latency 32, IRQ 16
        Memory at fe024000 (64-bit, non-prefetchable) [size=16K]
        Capabilities: [50] Power Management version 2
        Kernel driver in use: snd_hda_intel

So I have 2 sound cards.

The debian website says: 'If sound does not work for root account as well, then that means that either your sound card is not supported by Debian or it was not configured properly'.

Ok, so the first part of the statement is worrying.
So I went to the debian device driver check page http://kmuto.jp/debian/hcl/ and did 'lspci -n'.
The output can be pasted onto their web page and debian will say if the sound cards are supported.
The web page shows that the sound cards are supported:

Quote:

10024383 Yes Advanced Micro Devices [AMD] nee ATI SBx00 Azalia (Intel HDA) snd-hda-intel v2.6.25
10029715 Yes Advanced Micro Devices [AMD] nee ATI RS880 [Radeon HD 4250] radeon v2.6.35-
1002970f Yes Advanced Micro Devices [AMD] nee ATI RS880 HDMI Audio [Radeon HD 4200 Series] snd-hda-intel v2.6.27-
So now I'm guessing that my sound cards are 'not configured properly'. But I've run a Youtube video and then changed the sound cards under alsamixer and I still don't get sound.
Is there is a simple solution to this please? Thank you in advance.

Teufel 01-07-2015 07:09 PM

By default alsa has all channels muted, did you unmute them?
You can do it with alsamixer.

Head_on_a_Stick 01-08-2015 02:26 AM

What is the output of:
Code:

aplay -l

Shadow_7 01-08-2015 03:49 AM

$ cat /proc/asounds/cards

The default card is always zero. Without using pulseaudio you can go a semi-simple route.

FILE: ~/.asoundrc
Code:

defaults.ctl.card 1
defaults.pcm.card 1
defaults.pcm.device 0

Where the 1 is the number of the preferred device as referenced in /proc/asound/cards. And yes users are not autmoatically in the audio group. Not only that but if you do a minimal install, the alsa-base package isn't installed. Technically you only need the defaults.pcm.card line to have audio (that doesn't use OSS aka /dev/dsp) go to the other card.

Edit: and channels are muted by default. alsamixer -c 1

colorpurple21859 01-08-2015 05:26 AM

If both of these statements are true It shouldn't be a problem as long as you get sound as a user.
Quote:

sound does not work for root
Quote:

Now when I am 'user', I can get sound.

Higgsboson 01-08-2015 10:06 AM

Quote:

Originally Posted by Teufel (Post 5297366)
By default alsa has all channels muted, did you unmute them?
You can do it with alsamixer.

Yes, I've pressed the 'm' button to unmute the sound bars.
With F6, when I select the analog sound card - I get a number of sound bars.
But when I select the HDMI sound card there aren't any sound bars - just a small square with S/PDIF underneath.
So I'm wondering if the HDMI card has been configured correctly.

Higgsboson 01-08-2015 10:09 AM

Quote:

Originally Posted by Head_on_a_Stick (Post 5297488)
What is the output of:
Code:

aplay -l

It's showing:
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: 0/1
  Subdevice #0: subdevice #0


Higgsboson 01-08-2015 10:22 AM

Quote:

Originally Posted by Shadow_7 (Post 5297523)

Where the 1 is the number of the preferred device as referenced in /proc/asound/cards.

This is the output I'm getting:

Code:

/proc/asound# cat cards
 0 [SB            ]: HDA-Intel - HDA ATI SB
                      HDA ATI SB at 0xfe024000 irq 16
 1 [HDMI          ]: HDA-Intel - HDA ATI HDMI
                      HDA ATI HDMI at 0xfdefc000 irq 19


Higgsboson 01-08-2015 10:47 AM

Quote:

Originally Posted by colorpurple21859 (Post 5297577)
If both of these statements are true It shouldn't be a problem as long as you get sound as a user.

Sorry, I should've been more clear. I used the 'adduser USER_NAME audio' to enable sound to the user. But I still can't get sound for either user or root.

I opened the Synaptic package manager on System Tools and did a search for 'non-free'.
There's options for 'firmware-linux' and 'fglrx' packages which refer to 'non-free ATI/AMD RadeonHD display driver'. These must include my sound card.
But when I installed the packages, I got this error message:

Code:

The fglrx driver is not yet configured. please consider using /usr/bin/aticonfig to create a working xorg.conf configuration.
For example, sudo aticonfig --initial should be sufficient for most use cases

So does this mean I create directory /usr/bin/aticonfig and reinstall those 'non-free' packages?
I can't find an aticonfig directory in /usr/bin/, although I may have deleted it after removing the 'broken' pkg install on synaptic.

Teufel 01-08-2015 12:06 PM

Quote:

With F6, when I select the analog sound card - I get a number of sound bars.
But when I select the HDMI sound card there aren't any sound bars - just a small square with S/PDIF underneath.
So I'm wondering if the HDMI card has been configured correctly.
What is your speakers? How do you have them connected to PC?
If you're using regular speakers connected to line output, then nothing to do with HDMI. You should go with HDA ATI SB instead of HDA ATI HDM.

Higgsboson 01-08-2015 12:46 PM

Quote:

Originally Posted by Teufel (Post 5297792)
What is your speakers? How do you have them connected to PC?
If you're using regular speakers connected to line output, then nothing to do with HDMI. You should go with HDA ATI SB instead of HDA ATI HDM.

I have the computer hooked up to a tv.
I think the computer then gives sound from the tv's speaker.

Even so, if I play an mp3 file and then open alsamixer, neither of the sound cards produce sound when I use F6.

colorpurple21859 01-08-2015 06:23 PM

Have you tried going into system settings>sound to get sound working?

Higgsboson 01-08-2015 08:46 PM

Quote:

Originally Posted by colorpurple21859 (Post 5297952)
Have you tried going into system settings>sound to get sound working?

Yes, I've tried that. Essentially it allows me to change sound cards which I've done with rhythmbox running. Still no sound.
On System Tools there's an ATI Catalyst Converter app which I also have on Windows.
But when I open it, I get an error message: 'No AMD graphics driver is installed or the AMD driver is not functioning properly. Please install the AMD driver appropriate for your AMD hardware, or configure using aticonfig.'

But I'm using a new non-free 7.7 debian version on my live USB, which was a successful install, and synaptic seems to be showing all the drivers are installed at boot.
So now I'm wondering how to 'configure using aticonfig'!

Hungry ghost 01-08-2015 09:04 PM

I haven't used a computer connected to a TV, but have you tried connecting a speaker directly to the computer to rule out a problem originated in the computer/TV setup?

(In case you have Windows or another OS installed on your computer and your PC/TV setup works on this other OS, then definitely it's a configuration problem with Debian).

colorpurple21859 01-08-2015 09:38 PM

edit /etc/modprobe.d/alsa-base.conf and add to the end of the file:

snd-hda-intel model=generic

If you don't have a /etc/modprobe.d/alsa-base.conf create it. If it doen't work then undo.


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