LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 05-02-2015, 07:26 PM   #1
eurabilis
LQ Newbie
 
Registered: May 2015
Posts: 8

Rep: Reputation: Disabled
No sound, Hardware is in the kernel, detected and listed in KDE control panel.


Hello all!
I am running slackware 64 bit -current, with KDE5 and a custom 4.0.1 kernel. However even on the default install before I did the above things I still had no sound. I believe I did everything right.

In dmesg, alsa complains no soundcards are found, but shortly afterwards down a bit I see this.

Code:
[    5.463379] input: HDA NVidia HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:0d.0/0000:02:00.1/sound/
card0/input5
[    5.463928] input: HDA NVidia HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:0d.0/0000:02:00.1/sound/
card0/input6
lspci -v
Code:
02:00.1 Audio device: NVIDIA Corporation GF119 HDMI Audio Controller (rev a1)
        Subsystem: Micro-Star International Co., Ltd. Device 809f
        Flags: bus master, fast devsel, latency 0, IRQ 16
        Memory at d2000000 (32-bit, non-prefetchable) [size=16K]
        Capabilities: [60] Power Management version 3
        Capabilities: [68] MSI: Enable- Count=1/1 Maskable- 64bit+
        Capabilities: [78] Express Endpoint, MSI 00
        Kernel driver in use: snd_hda_intel
        Kernel modules: snd_hda_intel
aplay -l

Code:
bash-4.3# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
bash-4.3#
The devices are listed in KDE control panel/multimedia but when I select one it simply says it does not work, and its defaulting to default. I almost have my system just the way I need it but I would like sound obviously. I will appreciate any help I get. If there is any other information you need that will help us debug this just ask. Thanks for your time!
 
Old 05-03-2015, 11:52 AM   #2
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,225

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
I assume you want to use your motherboard's onboard sound card, and you're not trying to output audio through HDMI?

Your motherboard's onboard sound card isn't disabled in the BIOS, is it?

Last edited by dugan; 05-03-2015 at 11:53 AM.
 
Old 05-03-2015, 11:55 AM   #3
eurabilis
LQ Newbie
 
Registered: May 2015
Posts: 8

Original Poster
Rep: Reputation: Disabled
Hello Dugan. I am almost positive it is as I am weird like that and quite OCD. I will check though and make sure when I get home.
 
Old 05-03-2015, 01:37 PM   #4
eurabilis
LQ Newbie
 
Registered: May 2015
Posts: 8

Original Poster
Rep: Reputation: Disabled
Yes

Yes AC97 onboard is disabled in the BIOS. thanks. I actually want to use Nvidias HDMI and not the onboard.
 
Old 05-03-2015, 02:30 PM   #5
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,225

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
Create the following ~/.asoundrc:

Code:
defaults.pcm.card 0
defaults.pcm.device 3
If 3 doesn't work, then try 7.

Log out and back in after each change to ~/.asoundrc.

Last edited by dugan; 05-03-2015 at 02:31 PM.
 
Old 05-03-2015, 04:27 PM   #6
eurabilis
LQ Newbie
 
Registered: May 2015
Posts: 8

Original Poster
Rep: Reputation: Disabled
Thanks, Neither of those worked though, and for some reason only "Default" is listed in system settings/multimedia
 
Old 05-03-2015, 05:23 PM   #7
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,225

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
Hmm... that usually works. Don't know what else to say.

This is NVidia's official documentation on getting HDMI audio working. Not sure if it will help:

ftp://download.nvidia.com/XFree86/gp...dmi-audio.html

Trying to get it work with command-line tools like aplay before trying to troubleshoot KDE would probably be a good idea.

Last edited by dugan; 05-03-2015 at 05:24 PM.
 
Old 05-03-2015, 05:59 PM   #8
eurabilis
LQ Newbie
 
Registered: May 2015
Posts: 8

Original Poster
Rep: Reputation: Disabled
I seen that link in my recent searches but I am going to go through it again step by step and more in depth so thank you for that. Some things worth noting, I ran kmix, and the only thing listed is IEC958 HDA NVIDIA and its muted. I cannot unmute it. also in alsamixer the only ones listed are spdif and they are both muted too and I am unable to alter that. I tried both compiling in and setting the snd_? as kernel modules they all seem to load fine.

Code:
bash-4.3# lsmod
Module                  Size  Used by
nouveau              1271791  2 
snd_hda_codec_hdmi     37086  1 
cfbfillrect             3722  1 nouveau
cfbimgblt               2143  1 nouveau
wmi                     7715  1 nouveau
cfbcopyarea             3230  1 nouveau
drm_kms_helper         80493  1 nouveau
snd_hda_intel          18795  1 
snd_hda_controller     18491  1 snd_hda_intel
ttm                    69067  1 nouveau
snd_hda_codec          96685  3 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_controller
snd_hwdep               5962  1 snd_hda_codec
bash-4.3#
Thank you for your help maybe I will figure it out and/or someone here more knowledgable can pick up where we left off. If I find a solution i'll let the forum know.
 
Old 05-03-2015, 06:23 PM   #9
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,716
Blog Entries: 3

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
make sure you have the correct channel set in kmixer if you have that option I use channel 6 on mine and default is 2.
create an /etc/sound.conf file and put this in it.
Code:
alias char-major-116 snd
alias char-major-14 soundcore
alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss
alias snd-card-0 snd-hda-intel
alias sound-slot-0 snd-hda-intel
options snd slots=snd-hda-intel,snd-usb-audio,snd-usb-audio
now reboot first device is your intel second will be any usb cameras with mic then any usb-mic or sound device you plug in then it will load the sound on your video card last. now reboot when you come back kde will want to delete stuff yes. now go configure your stuff in settings. then go to kmix and display all the stuff on your devices.
if this is a laptop most laptops do this because they are made to do this on purpose so the default device will do presentations. not anymore you will have to set that through kde down the road when you want to do that. After you reboot you will be fine if not. Oh well.
 
Old 05-03-2015, 06:26 PM   #10
eurabilis
LQ Newbie
 
Registered: May 2015
Posts: 8

Original Poster
Rep: Reputation: Disabled
Hey one more question. I think I may have figured out what could be wrong although it leads me to another problem but ill get to that in a second. The link you gave me says
Quote:
"The following steps all assume that X is running using the NVIDIA binary driver, and that your HDMI display is attached to your computer, and displaying your X desktop. HDMI audio is not expected to work if this is not the case."
does that mean I should not be running nouveau? because I am. I don't fully understand what they are saying does it mean I need to be running the propietary driver? Which leads me to the problem of getting this error in nvidia_installer.log when I try to build the driver it says unable to build module and I get this.

Code:
/tmp/selfgz1748/NVIDIA-Linux-x86_64-304.125/kernel/nv.c: In function 'nv_kern_compat_ioctl':
   /tmp/selfgz1748/NVIDIA-Linux-x86_64-304.125/kernel/nv.c:2038:30: error: 'struct file' has no member named 'f_dentry'
        return nv_kern_ioctl(file->f_dentry->d_inode, file, cmd, i_arg);
                                 ^
   /tmp/selfgz1748/NVIDIA-Linux-x86_64-304.125/kernel/nv.c: In function 'nv_kern_unlocked_ioctl':
   /tmp/selfgz1748/NVIDIA-Linux-x86_64-304.125/kernel/nv.c:2030:1: warning: control reaches end of non-void function [-Wreturn-type]
    }
    ^
   /tmp/selfgz1748/NVIDIA-Linux-x86_64-304.125/kernel/nv.c: In function 'nv_kern_compat_ioctl':
   /tmp/selfgz1748/NVIDIA-Linux-x86_64-304.125/kernel/nv.c:2039:1: warning: control reaches end of non-void function [-Wreturn-type]
    }
    ^
   make[4]: *** [/tmp/selfgz1748/NVIDIA-Linux-x86_64-304.125/kernel/nv.o] Error 1
   make[3]: *** [_module_/tmp/selfgz1748/NVIDIA-Linux-x86_64-304.125/kernel] Error 2
   make[2]: *** [sub-make] Error 2
   NVIDIA: left KBUILD.
   nvidia.ko failed to build!
   make[1]: *** [module] Error 1
   make: *** [module] Error 2
-> Error.
ERROR: Unable to build the NVIDIA kernel module.
ERROR: Installation has failed.  Please see the file '/var/log/nvidia-installer.log' for details.
Is there a better way to install proprietary on slackware? Thanks!
 
Old 05-03-2015, 06:31 PM   #11
eurabilis
LQ Newbie
 
Registered: May 2015
Posts: 8

Original Poster
Rep: Reputation: Disabled
You must have posted right when I did. I tried adding that sound.conf nothing changed at all. Thanks anyway
 
Old 05-03-2015, 06:39 PM   #12
eurabilis
LQ Newbie
 
Registered: May 2015
Posts: 8

Original Poster
Rep: Reputation: Disabled
Alright. Here is something strange. If I open multimedia in KDE, only default is listed. But after doing everything you said. If I go in KMIX, and select audio settings, it opens KDE,multimedia and everything is listed. If i select nvidia hda7, I get sound! But that channel is not listed in KMIX, and I get no auudio from ex youtube. We made progress but I need your help a little further please. Thanks!
 
  


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
LXer: The Road to KDE 4: Solid Brings Hardware Configuration and Control to KDE LXer Syndicated Linux News 0 04-24-2007 11:46 AM
How to rotate the Display using KDE Control Panel? blish_blash Linux - Software 1 03-17-2005 10:31 AM
KDE Control panel missing Theme manager Random`Zero Slackware 2 12-31-2004 01:02 AM
No configuration for audiocds in the KDE control panel A_Thom Linux - Newbie 3 11-08-2004 03:19 PM
Missing Control Panel Option in MDK 9.1/KDE magicvash Mandriva 1 10-24-2003 10:55 PM

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

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