LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 07-03-2014, 10:56 AM   #1
vladimir1986
Member
 
Registered: Jul 2011
Posts: 112

Rep: Reputation: Disabled
Intel audio not working, but driver loaded flawlessly [FIXED]


A couple of days ago I decided to try Funtoo, and even if it works fine I am having this weird problem (alsamixer detects the card, allows me to change volume levels and seems to work fine..) but I have no sound! When I play any video/music file the program does its thing (mplayer or cmus will show all the data and the percentage, etc) but everything will be muted, except for the annoying beep.

There are plenty of answers to this problem, but sadly they are all very old, and usually end on using some distro specific tool, none of them worked for me. I am running on a custom kernel, and no X or GUI, just the console: So I am limited to tools which can work on a terminal, using text or framebuffer.

The volume levels on the mixer are all set to 100%. On live Cd and any other distro I tried over this computer I always had sound.

The kernel has just the driver needed, but I also tried a generic Kernel with all the modules on. lsmod shows that my loaded sound drivers are snd_hda_intel snd_hda_controller snd_hda_codec snd_pcm

lscpi displays the sound card as: "Intel Corporation NM10/ICH7 Family High Definition Audio Controller (rev 02)"

On my the config file of my kernel I have HD audio PCI enabled as a module, then hwdep interface hardcoded, and as modules HD codec

Does anyone know how to fix this mess? Thank you in advance for the interest!

Last edited by vladimir1986; 07-04-2014 at 12:07 PM.
 
Old 07-03-2014, 10:07 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,921

Rep: Reputation: 3618Reputation: 3618Reputation: 3618Reputation: 3618Reputation: 3618Reputation: 3618Reputation: 3618Reputation: 3618Reputation: 3618Reputation: 3618Reputation: 3618
I would normally think the output is wrong like front panel versus back or such.

See this maybe. http://wiki.gentoo.org/wiki/ALSA#Service
 
Old 07-04-2014, 04:21 AM   #3
vladimir1986
Member
 
Registered: Jul 2011
Posts: 112

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by jefro View Post
I would normally think the output is wrong like front panel versus back or such.

See this maybe. http://wiki.gentoo.org/wiki/ALSA#Service
It didn't work at all... That gave me the vague idea of trying to force back or front speakers, just in case it was redirecting the sound to a non existant device, as I am on a laptop and I just have two speakers). No luck

I also tried to add "snd-hda-intel model=auto" in /etc/modprobe.d/alsasound (and created /etc/modprobe.d/snd-hda-intel with the same congiuration option)

I also created ~/.asoundrc and tried to set

defaults.pcm !card Intel
defaults.pcm !device 0

nothing changed. Then I commented it and added

pcm.hda-intel{
type hw
card 0
}
ctl.hda-intel{
type hw
card 0
}

and same result... I also made sure that the modem was on on the BIOS (that solved the problem to that guy in 2007, but it was already on), set acpi=off on boot (that gave me a kernel panic) and I tried to mute/unmute those exotich channels that I don't know what they are on alsamixer (S/PDIF, S/PDIF default PCM S/PDIF default source PCM or ADC) with no change. I also removed the pcspkr module, which worked for someone on 2008 but that didn't do much (except stopping the annoying beep every time I pressed tab for auto completion, so at least I won something!)


Maybe now is time to choose a God and start praying, as it seems to start to be the only solution left apart from changing distro

Last edited by vladimir1986; 07-04-2014 at 04:27 AM.
 
Old 07-04-2014, 07:23 AM   #4
cepheus11
Member
 
Registered: Nov 2010
Location: Germany
Distribution: Gentoo
Posts: 286

Rep: Reputation: 91
Can you post the sound relevant part of your kernel config:

Code:
zgrep CONFIG_SND /proc/config.gz
 
Old 07-04-2014, 07:57 AM   #5
vladimir1986
Member
 
Registered: Jul 2011
Posts: 112

Original Poster
Rep: Reputation: Disabled
Funny I donīt have /proc/config.gz. But those are the options I just compiled the kernel with (I actually also tried to compile as modules all the HDA_INTEL different devices, plus midi and OSS sequencer, with no result). However, the modules snd_hda_intel, snd_hda_controller, snd_hda_codec, snd and snd_pcm are loaded. This is the 3.15.3 kernel (also tried on the 3.14.4)

CONFIG_SND=m
CONFIG_SND_TIMER=m
CONFIG_SND_PCM=m
CONFIG_SND_HWDEP=m
CONFIG_SND_JACK=y
CONFIG_SND_SEQUENCER=m
CONFIG_SND_OSSEMUL=y
CONFIG_SND_SEQUENCER_OSS=y
CONFIG_SND_HRTIMER=m
CONFIG_SND_SEQ_HRTIMER_DEFAULT=y
CONFIG_SND_DYNAMIC_MINORS=y
CONFIG_SND_MAX_CARDS=32
CONFIG_SND_SUPPORT_OLD_API=y
CONFIG_SND_VERBOSE_PROCFS=y
CONFIG_SND_VMASTER=y
CONFIG_SND_KCTL_JACK=y
CONFIG_SND_DMA_SGBUF=y
CONFIG_SND_DRIVERS=y
CONFIG_SND_ISA=y
CONFIG_SND_PCI=y
CONFIG_SND_HDA=m
CONFIG_SND_HDA_INTEL=m
CONFIG_SND_HDA_PREALLOC_SIZE=64
CONFIG_SND_HDA_HWDEP=y
CONFIG_SND_HDA_RECONFIG=y
CONFIG_SND_HDA_INPUT_BEEP=y
CONFIG_SND_HDA_INPUT_BEEP_MODE=1
CONFIG_SND_HDA_INPUT_JACK=y
CONFIG_SND_HDA_PATCH_LOADER=y
CONFIG_SND_HDA_CODEC_ANALOG=m
CONFIG_SND_HDA_GENERIC=m
CONFIG_SND_HDA_POWER_SAVE_DEFAULT=20
CONFIG_SND_SPI=y
CONFIG_SND_USB=y
CONFIG_SND_HDA_GENERIC=m
CONFIG_SND_HDA_POWER_SAVE_DEFAULT=20
CONFIG_SND_SPI=y
CONFIG_SND_USB=y
CONFIG_SND_PCMCIA=y

Last edited by vladimir1986; 07-04-2014 at 08:00 AM.
 
Old 07-04-2014, 08:04 AM   #6
cepheus11
Member
 
Registered: Nov 2010
Location: Germany
Distribution: Gentoo
Posts: 286

Rep: Reputation: 91
Kernel config options look good to me. Maybe try enabling all the other codecs under "Intel HD Audio", (CONFIG_SND_HDA_CODEC_*), not just _ANALOG.

On a working live distro, you could try to extract the kernel config and compare.
 
Old 07-04-2014, 10:18 AM   #7
vladimir1986
Member
 
Registered: Jul 2011
Posts: 112

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by cepheus11 View Post
Kernel config options look good to me. Maybe try enabling all the other codecs under "Intel HD Audio", (CONFIG_SND_HDA_CODEC_*), not just _ANALOG.


Thans for your answer


On a working live distro, you could try to extract the kernel config and compare.
Thank you very much for your reply!

I tried to compile all the codecs with no result, and I burned puppy linux on a cd (bad choice, old 3.4 kernel and no linux source or config file). At least I did a lsmod | grep -i intel and compared with both systems to check the differences, as sound worked

the intel modules loaded on puppy:


snd_hda_codec 56855 2 snd_hda_intel,snd_hda_codec_analog
snd_pcm 47653 3 snd_pcm_oss,snd_hda_codec,snd_hda_intel
snd_page_alloc 4714 2 snd_pcm,snd_hda_intel
intel_agp 7953 0
intel_gtt 9472 1 intel_agp
agpgart 17718 4 drm,ttm,intel_agp,intel_gtt
snd 34138 13 snd_pcm_oss,snd_hwdep,snd_timer,snd_pcm,snd_seq,snd_rawmidi,snd_hda_codec,snd_hda_intel,snd_seq_oss, thinkpad_acpi,snd_seq_device,snd_mixer_oss,snd_hda_codec_analog


(I think that intel_gtt and apg are graphic drivers)

on funtoo

kvm_intel 129300 0
kvm 317866 1 kvm_intel
snd_hda_intel 17543 0
snd_hda_controller 22009 1 snd_hda_intel
snd_hda_codec 89633 4 snd_hda_codec_generic,snd_hda_intel,snd_hda_controller,snd_hda_codec_analog
snd_pcm 69834 3 snd_hda_codec,snd_hda_intel,snd_hda_controller
snd 46909 8 snd_hwdep,snd_timer,snd_pcm,snd_hda_codec_generic,snd_hda_codec,snd_hda_intel,thinkpad_acpi,snd_hda_ codec_analog

The only difference I can see is that snd_page_alloc, which doesn't exist in newer kernels.... Most similar option is an option to choose allocated buffer size for the driver, which I did set at 64kb.

I did also try to compile the default gentoo kernel, which is offered on Funtoo and has all the devices compiled on it. It doesn't work either but it took a lot of time to compile on my poor Core2.
 
Old 07-04-2014, 12:06 PM   #8
vladimir1986
Member
 
Registered: Jul 2011
Posts: 112

Original Poster
Rep: Reputation: Disabled
Well, It is fixed!

This experience teached me so much! for example: When you use alsamixer, if there is a "M" below the bar, it means "muted" unmuting the main channel might prove crucial to have sound

Thanks for the help tough.
 
Old 07-04-2014, 08:44 PM   #9
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,921

Rep: Reputation: 3618Reputation: 3618Reputation: 3618Reputation: 3618Reputation: 3618Reputation: 3618Reputation: 3618Reputation: 3618Reputation: 3618Reputation: 3618Reputation: 3618
The link had that but thanks for posting the solution.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Intel i915 - driver loaded - DRI enabled - 500fps? songangel Linux - Hardware 3 03-10-2009 04:52 PM
lmms - No audio-driver working - falling back to dummy-audio-driver GuySkarpz Linux - Software 3 01-20-2009 03:58 PM
Intel Audio driver issue Josh328 Linux - Hardware 3 02-28-2006 05:25 PM
snd-usb-audio driver loaded, but not the mic (fc4) Alterego Linux - Hardware 0 12-25-2005 04:12 PM
Network not working!! driver loaded, rc.inet1 is good?! jordan0 Slackware 11 04-20-2004 04:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 10:02 PM.

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