LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-27-2015, 09:23 AM   #1
lensilvan
Member
 
Registered: Jun 2013
Distribution: Arch Linux, Mintppc, Slackware
Posts: 160

Rep: Reputation: Disabled
Sound card suddenly not recognized anymore on Slackware 14.1.


I am using Slackware 14.1 (not current), with MATE on a Macbook 5.2 from 2009 (http://www.everymac.com/systems/appl...dia-specs.html), whilst I login with KDM.

As the title suggests, in my MATE session suddenly the audio simply refused to work no matter the application. I then rebooted, shutdown, and went to my KDE session where a dialogue box greeted me, saying that "one or more internal devices have been removed" and listed them as "Capture: HDA NVidia, ALC889A Analog (Default Audio Device)
and "Sortie: HDA NVidia, ALC889A Analog (Default Audio Device). Needless to say, when I log back into MATE, there is no sound.

I do not think that this is a hardware related-issue since Slackware is installed in dual-boot with Mac OS X (via rEFIT and LILO) and there the sound works as usual. This might be related to the drivers. Still, in "sound preferences", HDA-NVIDIA is highlighted ans selected as before this incident.

Here are the basic infos about my system:

Code:
$ lsmod
Module                  Size  Used by
nls_iso8859_1           4413  1 
nls_cp437               5945  1 
vfat                   10175  1 
fat                    51933  1 vfat
usb_storage            46020  1 
ipv6                  292446  16 
cpufreq_ondemand        8799  1 
lp                      9851  0 
ppdev                   5862  0 
parport_pc             19332  0 
parport                30389  3 lp,ppdev,parport_pc
fuse                   73848  3 
nvidia              10501455  42 
hid_apple               5481  0 
appletouch              9202  0 
b43                   364928  0 
hid_appleir             2884  0 
coretemp                5870  0 
acpi_cpufreq            7230  1 
bcma                   30033  1 b43
mac80211              429423  1 b43
mperf                   1163  1 acpi_cpufreq
cfg80211              380228  2 b43,mac80211
snd_hda_codec_realtek    34792  1 
processor              27543  2 acpi_cpufreq
btusb                  16152  0 
firewire_ohci          32099  0 
joydev                  9751  0 
thermal_sys            22993  1 processor
snd_hda_intel          34861  5 
i2c_dev                 5843  0 
kvm_intel             126236  0 
bluetooth             220548  2 btusb
rfkill                 15522  4 cfg80211,bluetooth
freq_table              2628  3 cpufreq_ondemand,acpi_cpufreq,thermal_sys
shpchp                 25417  0 
i2c_nforce2             5287  0 
firewire_core          51426  1 firewire_ohci
applesmc               12198  0 
input_polldev           2778  1 applesmc
hwmon                   1337  3 applesmc,coretemp,thermal_sys
forcedeth              56722  0 
battery                11579  0 
evdev                   9648  8 
apple_bl                3056  0 
ac                      4311  0 
button                  4696  0 
snd_hda_codec         143196  2 snd_hda_codec_realtek,snd_hda_intel
drm                   229054  3 nvidia
snd_hwdep               6388  1 snd_hda_codec
ssb                    52104  1 b43
agpgart                27267  1 drm
kvm                   363491  1 kvm_intel
mmc_core               88717  2 b43,ssb
pcmcia                 34628  2 b43,ssb
pcmcia_core            12280  1 pcmcia
microcode              13140  0 
i2c_core               20936  4 drm,i2c_dev,nvidia,i2c_nforce2
ehci_pci                3688  0 
snd_pcm                76009  2 snd_hda_codec,snd_hda_intel
snd_page_alloc          7098  2 snd_pcm,snd_hda_intel
snd_timer              18614  1 snd_pcm
snd                    58630  16 snd_hda_codec_realtek,snd_hwdep,snd_timer,snd_pcm,snd_hda_codec,snd_hda_intel
soundcore               5354  1 snd
loop                   18479  0 
ext4                  446120  1 
jbd2                   76403  1 ext4
mbcache                 5666  1 ext4
ohci_hcd               23924  0 
ehci_hcd               39275  1 ehci_pci
hid_generic             1145  0 
usbhid                 37080  0 
hid                    87523  4 hid_generic,usbhid,hid_appleir,hid_apple
Code:
# lspci
00:00.0 Host bridge: NVIDIA Corporation MCP79 Host Bridge (rev b1)
00:00.1 RAM memory: NVIDIA Corporation MCP79 Memory Controller (rev b1)
00:03.0 ISA bridge: NVIDIA Corporation MCP79 LPC Bridge (rev b3)
00:03.1 RAM memory: NVIDIA Corporation MCP79 Memory Controller (rev b1)
00:03.2 SMBus: NVIDIA Corporation MCP79 SMBus (rev b1)
00:03.3 RAM memory: NVIDIA Corporation MCP79 Memory Controller (rev b1)
00:03.4 RAM memory: NVIDIA Corporation MCP79 Memory Controller (rev b1)
00:03.5 Co-processor: NVIDIA Corporation MCP79 Co-processor (rev b1)
00:04.0 USB controller: NVIDIA Corporation MCP79 OHCI USB 1.1 Controller (rev b1)
00:04.1 USB controller: NVIDIA Corporation MCP79 EHCI USB 2.0 Controller (rev b1)
00:06.0 USB controller: NVIDIA Corporation MCP79 OHCI USB 1.1 Controller (rev b1)
00:06.1 USB controller: NVIDIA Corporation MCP79 EHCI USB 2.0 Controller (rev b1)
00:08.0 Audio device: NVIDIA Corporation MCP79 High Definition Audio (rev b1)
00:09.0 PCI bridge: NVIDIA Corporation MCP79 PCI Bridge (rev b1)
00:0a.0 Ethernet controller: NVIDIA Corporation MCP79 Ethernet (rev b1)
00:0b.0 IDE interface: NVIDIA Corporation MCP79 SATA Controller (rev b1)
00:10.0 PCI bridge: NVIDIA Corporation MCP79 PCI Express Bridge (rev b1)
00:15.0 PCI bridge: NVIDIA Corporation MCP79 PCI Express Bridge (rev b1)
00:16.0 PCI bridge: NVIDIA Corporation MCP79 PCI Express Bridge (rev b1)
02:00.0 VGA compatible controller: NVIDIA Corporation C79 [GeForce 9400M G] (rev b1)
03:00.0 Network controller: Broadcom Corporation BCM4322 802.11a/b/g/n Wireless LAN Controller (rev 01)
04:00.0 FireWire (IEEE 1394): LSI Corporation FW533 [TrueFire] PCIe 1394a Controller (rev 07)
Code:
# aplay -l
**** Liste des Priphriques Matriels PLAYBACK ****
carte 0: NVidia [HDA NVidia], priphrique 0: ALC889A Analog [ALC889A Analog]
  Sous-priphriques: 1/1
  Sous-priphrique #0: subdevice #0
carte 0: NVidia [HDA NVidia], priphrique 1: ALC889A Digital [ALC889A Digital]
  Sous-priphriques: 1/1
  Sous-priphrique #0: subdevice #0
Code:
# lspci -v | grep -i audio
00:08.0 Audio device: NVIDIA Corporation MCP79 High Definition Audio (rev b1)
I checked this topic here: http://www.linuxquestions.org/questi...rk-4175540579/

but I confirmed that I was already in the audio group by running #usermod -a -G audio lensilvan, which returned nothing, and in my case, no application release any sound.

Last edited by lensilvan; 08-29-2015 at 12:32 AM.
 
Old 08-27-2015, 11:46 AM   #2
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Do you have an /etc/asound.conf or ~/.asoundrc? Are you trying to use analog or digital sound output?
 
Old 08-27-2015, 09:06 PM   #3
lensilvan
Member
 
Registered: Jun 2013
Distribution: Arch Linux, Mintppc, Slackware
Posts: 160

Original Poster
Rep: Reputation: Disabled
I have asound.state (see below) in /etc, but no asound.conf.

Code:
state.NVidia {
        control.1 {
                iface MIXER
                name 'Front Playback Volume'
                value.0 52
                value.1 52
                comment {
                        access 'read write'
                        type INTEGER
                        count 2
                        range '0 - 64'
                        dbmin -6400
                        dbmax 0
                        dbvalue.0 -1200
                        dbvalue.1 -1200
                }
        }
        control.2 {
                iface MIXER
 name 'Front Playback Switch'
                value.0 true
                value.1 true
                comment {
                        access 'read write'
                        type BOOLEAN
                        count 2
                }
        }
        control.3 {
                iface MIXER
                name 'Surround Playback Volume'
                value.0 64
                value.1 64
                comment {
                        access 'read write'
                        type INTEGER
count 2
                        range '0 - 64'
                        dbmin -6400
                        dbmax 0
                        dbvalue.0 0
                        dbvalue.1 0
                }
        }
        control.4 {
                iface MIXER
                name 'Surround Playback Switch'
                value.0 true
                value.1 true
                comment {
                        access 'read write'
                        type BOOLEAN
                        count 2
                }
        }
        control.5 {
                iface MIXER
                name 'LFE Playback Volume'
                value.0 64
                value.1 64
                comment {
                        access 'read write'
                        type INTEGER
                        count 2
                        range '0 - 64'
                        dbmin -6400
                        dbmax 0
                        dbvalue.0 0
                        dbvalue.1 0
                }
        }
        control.6 {
                iface MIXER
                name 'LFE Playback Switch'
                value.0 true
                value.1 true
                comment {
                        access 'read write'
                        type BOOLEAN
                        count 2
                }
        }
        control.7 {
                iface MIXER
                name 'Headphone Playback Volume'
                value.0 52
                value.1 52
                comment {
                        access 'read write'
                        type INTEGER
                        count 2
                        range '0 - 64'
                        dbmin -6400
                        dbmax 0
                        dbvalue.0 -1200
                        dbvalue.1 -1200
                }
        }
        control.8 {
                iface MIXER
                name 'Headphone Playback Switch'
                value.0 true
                value.1 true
                comment {
                        access 'read write'
                        type BOOLEAN
                        count 2
                }
        }
        control.9 {
                iface MIXER
                name 'Line Playback Volume'
                value.0 23
                value.1 23
                comment {
                        access 'read write'
                        type INTEGER
                        count 2
                        range '0 - 31'
                        dbmin -3450
                        dbmax 1200
                        dbvalue.0 0
                        dbvalue.1 0
                }
        }
        control.10 {
                iface MIXER
                name 'Line Playback Switch'
                value.0 false
                value.1 false
                comment {
                        access 'read write'
                        type BOOLEAN
                        count 2
                }
        }
        control.11 {
                iface MIXER
                name 'Mic Playback Volume'
                value.0 0
                value.1 0
                comment {
                        access 'read write'
                        type INTEGER
                        count 2
                        range '0 - 31'
                        dbmin -3450
                }
        }
        control.12 {
                iface MIXER
                name 'Mic Playback Switch'
                value.0 false
                value.1 false
                comment {
                        access 'read write'
                        type BOOLEAN
                        count 2
                }
        }
        control.13 {
                iface MIXER
                name 'Line Boost Volume'
                value.0 0
                value.1 0
                comment {
                        access 'read write'
                        type INTEGER
                        count 2
                        range '0 - 3'
                        dbmin 0
                        dbmax 3000
                        dbvalue.0 0
                }
        }
        control.14 {
                iface MIXER
                name 'Mic Boost Volume'
                value.0 0
                value.1 0
                comment {
                        access 'read write'
                        type INTEGER
                        count 2
                        range '0 - 3'
                        dbmin 0
                        dbmax 3000
                        dbvalue.0 0
                        dbvalue.1 0
                }
        }
        control.15 {
                iface MIXER
                name 'Channel Mode'
                value '2ch'
                comment {
                        access 'read write'
                        type ENUMERATED
                        count 1
                        item.0 '2ch'
                        item.1 '6ch'
                }
        }
        control.16 {
                iface MIXER
                name 'Capture Switch'
                value.0 true
                value.1 true
                comment {
                        access 'read write'
                        type BOOLEAN
                        count 2
                }
        }
        control.17 {
                iface MIXER
                name 'Capture Switch'
                index 1
                value.0 false
                value.1 false
                comment {
                        access 'read write'
                        type BOOLEAN
                        count 2
                }
        }
        control.18 {
                iface MIXER
                name 'Capture Switch'
                index 2
                value.0 false
                value.1 false
                comment {
                        access 'read write'
                        type BOOLEAN
                        count 2
                }
        }
        control.19 {
                iface MIXER
                name 'Capture Volume'
                value.0 28
                value.1 28
                comment {
                        access 'read write'
                        type INTEGER
                        count 2
                        range '0 - 46'
                        dbmin -1600
                        dbmax 3000
                        dbvalue.0 1200
                        dbvalue.1 1200
                }
        }
        control.20 {
                iface MIXER
                name 'Capture Volume'
                index 1
                value.0 16
                value.1 16
                comment {
                        access 'read write'
                        type INTEGER
                        count 2
                        range '0 - 46'
                        dbmin -1600
                        dbmax 3000
                        dbvalue.0 0
                        dbvalue.1 0
                }
        }
        control.21 {
                iface MIXER
                name 'Capture Volume'
                index 2
                value.0 16
                value.1 16
                comment {
                        access 'read write'
                        type INTEGER
                        count 2
                        range '0 - 46'
                        dbmin -1600
                        dbmax 3000
                        dbvalue.0 0
                        dbvalue.1 0
                }
        }
        control.22 {
                iface MIXER
                name 'Input Source'
                value Mic
                comment {
                        access 'read write'
                        type ENUMERATED
                        count 1
                        item.0 Mic
                        item.1 Line
                        item.2 CD
                }
        }
        control.23 {
                iface MIXER
                name 'Input Source'
                index 1
                value Mic
                comment {
                        access 'read write'
                        type ENUMERATED
                        count 1
                        item.0 Mic
                        item.1 Line
                        item.2 CD
                }
        }
        control.24 {
                iface MIXER
                name 'Input Source'
                index 2
                value Mic
                comment {
                        access 'read write'
                        type ENUMERATED
                        count 1
                        item.0 Mic
                        item.1 Line
                        item.2 CD
                }
        }
        control.25 {
                iface MIXER
                name 'IEC958 Playback Con Mask'
                value '0fff00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000$
                comment {
                        access read
                        type IEC958
                        count 1
                }
        }
        control.26 {
                iface MIXER
                name 'IEC958 Playback Pro Mask'
                value '0f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000$
                comment {
                        access read
                        type IEC958
                        count 1
                }
        }
        control.27 {
                iface MIXER
                name 'IEC958 Playback Default'
                value '040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000$
                comment {
                        access 'read write'
                        type IEC958
                        count 1
                }
        }
        control.28 {
                iface MIXER
                name 'IEC958 Playback Switch'
                value false
                comment {
                        access 'read write'
                        type BOOLEAN
                        count 1
                }
        }
        control.29 {
                iface MIXER
                name 'IEC958 Default PCM Playback Switch'
                value true
                comment {
                        access 'read write'
                        type BOOLEAN
                        count 1
                }
        }
        control.30 {
                iface MIXER
                name 'IEC958 Capture Switch'
                value false
                comment {
                        access 'read write'
                        type BOOLEAN
                        count 1
                }
        }
        control.31 {
                iface MIXER
                name 'IEC958 Capture Default'
                value '040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000$
                comment {
                        access read
                        type IEC958
                        count 1
                }
        }
        control.32 {
                iface MIXER
                name 'Master Playback Volume'
                value 52
                comment {
                comment {
                        access 'read write'
                        type INTEGER
                        count 1
                        range '0 - 64'
                        dbmin -6400
                        dbmax 0
                        dbvalue.0 -1200
                }
        }
        control.33 {
                iface MIXER
                name 'Master Playback Switch'
                value true
                comment {
                        access 'read write'
                        type BOOLEAN
                        count 1
                }
        }
}
However, I have ~/.asoundrc with the following contents:
Code:
pcm.skype {
    type route
    slave.pcm "hw:0,0"
    slave.channels 2
    ttable.0.1 4
    ttable.1.0 0
  }
I think I use digital sound output.
 
Old 08-28-2015, 06:33 AM   #4
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
What happens if you try the following commands? Do you get sound with either of them?

Code:
aplay -D hw:0,0 /usr/share/sounds/alsa/Noise.wav
aplay -D hw:0,1 /usr/share/sounds/alsa/Noise.wav
 
Old 08-28-2015, 07:40 AM   #5
lensilvan
Member
 
Registered: Jun 2013
Distribution: Arch Linux, Mintppc, Slackware
Posts: 160

Original Poster
Rep: Reputation: Disabled
I tried both as a simple user and root, but still no sound...

Code:
$ aplay -D hw:0,0 /usr/share/sounds/alsa/Noise.wav
Lecture WAVE '/usr/share/sounds/alsa/Noise.wav' : Signed 16 bit Little Endian, Fréquence 48000 Hz, Mono
aplay: set_params:1239: number of canals not available
Code:
$ aplay -D hw:0,1 /usr/share/sounds/alsa/Noise.wav
Lecture WAVE '/usr/share/sounds/alsa/Noise.wav' : Signed 16 bit Little Endian, Fréquence 48000 Hz, Mono
aplay: set_params:1239: number of canals not available
 
Old 08-28-2015, 08:16 AM   #6
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,367

Rep: Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748
What happens if you try the following commands? Do you get sound with either of them?
Code:
aplay -D plughw:0,0 /usr/share/sounds/alsa/Noise.wav
aplay -D plughw:0,1 /usr/share/sounds/alsa/Noise.wav
For further information these links may help.
http://docs.slackware.com/howtos:har...s_on_slackware
http://docs.slackware.com/howtos:har..._snd-hda-intel
 
1 members found this post helpful.
Old 08-28-2015, 09:27 AM   #7
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Crap, I meant to do plughw. Thanks for the correction, allend.
 
1 members found this post helpful.
Old 08-28-2015, 09:39 AM   #8
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,367

Rep: Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748
@bassmadrigal - I have just realised my post could have been interpreted as arch. Thanks for not taking offense.
 
Old 08-28-2015, 11:31 PM   #9
lensilvan
Member
 
Registered: Jun 2013
Distribution: Arch Linux, Mintppc, Slackware
Posts: 160

Original Poster
Rep: Reputation: Disabled
OK, I tried to play the 2 last tracks but still without any sound. The only difference is that I did not receive any error message like the previous tracks.

Code:
$ lsmod | grep snd
snd_hda_codec_realtek    34792  1 
snd_hda_intel          34861  6 
snd_hda_codec         143196  2 snd_hda_codec_realtek,snd_hda_intel
snd_hwdep               6388  1 snd_hda_codec
snd_pcm                76009  2 snd_hda_codec,snd_hda_intel
snd_page_alloc          7098  2 snd_pcm,snd_hda_intel
snd_timer              18614  1 snd_pcm
snd                    58630  18 snd_hda_codec_realtek,snd_hwdep,snd_timer,snd_pcm,snd_hda_codec,snd_hda_intel
soundcore               5354  1 snd
Apparently, the correct driver isn't even being loaded since I use HDA nvidia (see on top), unless I am being wrong.

On alsamixer, I tried to change the card but only 2 choices were available: "Default" and "HDA nvidia". But both of them keep the chipset at Realtek ALC889A and the card at HDA nvidia.
 
Old 08-29-2015, 12:20 AM   #10
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,367

Rep: Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748
Your 00:08.0 Audio device: NVIDIA Corporation MCP79 High Definition Audio (rev b1) is supported by the hda-snd-intel kernel module, so the driver is correct.
Quote:
OK, I tried to play the 2 last tracks but still without any sound. The only difference is that I did not receive any error message like the previous tracks.
I would be looking at the alsamixer settings. Are your outputs unmuted? Are your levels set high?
 
Old 08-29-2015, 12:32 AM   #11
lensilvan
Member
 
Registered: Jun 2013
Distribution: Arch Linux, Mintppc, Slackware
Posts: 160

Original Poster
Rep: Reputation: Disabled
At the exception of "Master", all the others are set on mute and I can't unmute them...

Oh, I forgot to read man alsamixer: I thought that to unmute them, I had to use the spacebar. I didn't know (or I forgot) that I simply have to use 'M' for unmuting them...

Needless to say, now the sound works fine. It was simply Alsamixer which switched for no reason to 'mute'.
 
  


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
lost sound suddenly in slackware 14.1 puru Slackware 5 10-06-2014 11:33 AM
sound card not being recognized pconsolini Debian 1 03-14-2010 07:36 PM
Sound card recognized but no sound on SoundMAX Integrated Digital Audio xzallion Fedora 46 12-13-2006 10:18 PM
Sound card not working anymore on FC5 jialin Fedora 3 04-29-2006 07:08 PM
sound card not recognized kare13 Linux - Newbie 1 07-26-2004 09:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:49 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