LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-14-2015, 05:44 PM   #1
floppy_stuttgart
Member
 
Registered: Nov 2010
Location: Stuttgart, Germany
Distribution: Debian like
Posts: 710
Blog Entries: 2

Rep: Reputation: 68
New graphic card installed: the sound is now gone. how to solve?


hello,
I installed an ATI card into my pc, now the sound is gone. I suppose this is due to the position of that new card which is now "0" (when I start alsamixer, I see the sound default is "HD-Audio Generic" with "Chip: ATI R6xx HDMI". I dont have a screen on the HDMI. I just want to take the "Intel ICH6" with "Chip: Analog Devices AD1981B" as the default card as per previous installation.

What should I do?

cat /proc/asound/cards
Code:
 0 [Generic        ]: HDA-Intel - HD-Audio Generic
                      HD-Audio Generic at 0xf0620000 irq 42
 1 [ICH6           ]: ICH4 - Intel ICH6
                      Intel ICH6 with AD1981B at irq 21
Thanks.
 
Old 02-14-2015, 06:03 PM   #2
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Posts: 3,366
Blog Entries: 33

Rep: Reputation: 216Reputation: 216Reputation: 216
Hi, This may be slightly different on your system, I use Mageia and an nVidia graphics card.

What I do to stop the sound being hijacked by the graphics card > hdmi connector, is

blacklist the kernel module, so the hdmi sound is not loaded at boot.

I do this here... The name of the file maybe different on your fedora system...

/etc/modprobe/blacklist-mga.conf
Code:
# blacklisted modules for PCI coldplug
# see also /etc/modprobe.d/blacklist-compat

blacklist rivatv
blacklist bluetooth
# For some bridges both intel-agp and i82875p_edac are loaded. If i82875p_edac
# is loaded first it will grab the device. Then intel-agp doesn't work.
# Therefore we disable automatic loading of 82875p_edac. (Bug 213840)
# https://bugzilla.novell.com/show_bug.cgi?id=213840
blacklist i82875p_edac

# do not use "Boot Protocol" drivers, we prefer usbhid
# and they cause problems when loaded together with usbhid (#37726, #40861)
blacklist usbkbd
blacklist usbmouse

# disable PC speaker by default
# pcspkr is the standard driver, while snd-pcsp is the ALSA driver
blacklist pcspkr
blacklist snd-pcsp
blacklist nouveau
blacklist snd_hda_codec_hdmi  #hda-nvidia-digital-stereo
blacklist snd_hda_codec_realtek #hda onboard 5.1 surround
blacklist snd_hda_intel
blacklist snd_hda_codec
# Prevent conflicts with nvidiabl
blacklist nvidia_bl
blacklist nvbacklight
blacklist mbp_nvidia_bl
# End of entries added for nvidiabl
this module is the one I block snd_hda_codec_hdmi

You should be able to check with the lsmod command in a terminal, like konsole with kde.

type, you might need to be root
Code:
lsmod | grep hdmi
greping for hdmi will, I hope, only show any lines that have "hdmi" in them/it.

check to see if it's loaded before and after a reboot.

You need root (admin) privliges to save any changes to /etc/...

I use vi or nano to edit system config files as root.

I hope this helps.

regards Glenn
 
Old 02-15-2015, 09:41 PM   #3
codeguy
Member
 
Registered: Jan 2004
Distribution: Slackware
Posts: 129

Rep: Reputation: 16
You could try this:

http://superuser.com/questions/62660...-automatically
 
Old 02-19-2015, 07:34 AM   #4
floppy_stuttgart
Member
 
Registered: Nov 2010
Location: Stuttgart, Germany
Distribution: Debian like
Posts: 710
Blog Entries: 2

Original Poster
Rep: Reputation: 68
Thanks for the advices. Here are my current findings.
I am first testing the advice for blacklisting according post #2: I added and tried the bootcode "snd_hda_codec_hdmi.blacklist=yes"
The module snd_hda_codec_hdmi is nomore loaded (it dont appear in the output of lsmod).
But, the wrong chip still appear as defaultdevice in alsamixer "HD-Audio Generic" "ATI ID aa01" (different from the loaded card if snd_hda_codec_hdmi would have been loaded) and I still cannot hear the sound.
So, perhaps another module should be blacklisted. Which one?

lsmod
Code:
Module                  Size  Used by
cpufreq_stats           2600  0 
cpufreq_powersave        575  0 
cpufreq_conservative     3562  0 
parport_pc             23969  0 
ppdev                   4124  0 
lp                      6127  0 
parport                21942  3 lp,ppdev,parport_pc
af_packet              19031  2 
nfsd                  156046  2 
auth_rpcgss            19755  1 nfsd
nfs_acl                 1576  1 nfsd
nfs                    88586  0 
lockd                  42731  2 nfs,nfsd
fscache                21695  1 nfs
sunrpc                122417  6 nfs,nfsd,auth_rpcgss,lockd,nfs_acl
dm_crypt               10846  0 
radeon                667381  2 
snd_intel8x0           20884  0 
snd_ac97_codec         78826  1 snd_intel8x0
iTCO_wdt                3732  0 
iTCO_vendor_support     1285  1 iTCO_wdt
mperf                    870  0 
lpc_ich                 9742  0 
snd_hda_intel          20789  1 
snd_seq_dummy           1000  0 
snd_hda_codec          61825  1 snd_hda_intel
snd_seq_oss            20961  0 
i2c_algo_bit            3774  1 radeon
ttm                    38821  1 radeon
drm_kms_helper         18634  1 radeon
drm                   154481  4 ttm,drm_kms_helper,radeon
snd_hwdep               4072  1 snd_hda_codec
snd_seq_midi            3497  0 
snd_pcm_oss            27139  0 
snd_seq_midi_event      3597  2 snd_seq_oss,snd_seq_midi
snd_mixer_oss          10395  1 snd_pcm_oss
snd_rawmidi            12946  1 snd_seq_midi
snd_pcm                50892  5 snd_pcm_oss,snd_ac97_codec,snd_intel8x0,snd_hda_codec,snd_hda_intel
snd_page_alloc          5091  3 snd_intel8x0,snd_pcm,snd_hda_intel
snd_seq                35033  6 snd_seq_midi_event,snd_seq_oss,snd_seq_dummy,snd_seq_midi
shpchp                 18904  0 
intel_agp               7588  0 
snd_seq_device          3878  5 snd_seq,snd_rawmidi,snd_seq_oss,snd_seq_dummy,snd_seq_midi
snd_timer              12249  2 snd_pcm,snd_seq
pci_hotplug            17192  1 shpchp
intel_gtt              10385  1 intel_agp
snd                    36962  17 snd_pcm_oss,snd_ac97_codec,snd_intel8x0,snd_hwdep,snd_timer,snd_pcm,snd_seq,snd_rawmidi,snd_hda_codec,snd_hda_intel,snd_seq_oss,snd_seq_device,snd_mixer_oss,snd_seq_dummy,snd_seq_midi
mac_hid                 2214  0 
evdev                   6815  7 
rng_core                2252  0 
agpgart                18196  4 drm,ttm,intel_agp,intel_gtt
soundcore               3463  1 snd
ac97_bus                 691  1 snd_ac97_codec
psmouse                52159  0 
pcspkr                  1273  0 
serio_raw               3177  0 
processor              23837  0 
microcode               8484  0 
wmi                     6240  0 
thermal_sys            10423  1 processor
button                  3513  0 
btrfs                 555574  0 
zlib_deflate           15207  1 btrfs
dm_mod                 51354  1 dm_crypt
floppy                 41663  0 
tg3                   108940  0

Last edited by floppy_stuttgart; 02-19-2015 at 07:35 AM.
 
Old 02-19-2015, 07:56 AM   #5
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,130
Blog Entries: 2

Rep: Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825
Quote:
Originally Posted by floppy_stuttgart View Post
What should I do?
Tell Alsa which soundcard you want to have as default. Examples and instructions here: https://wiki.archlinux.org/index.php...ult_sound_card
 
Old 02-19-2015, 08:35 AM   #6
floppy_stuttgart
Member
 
Registered: Nov 2010
Location: Stuttgart, Germany
Distribution: Debian like
Posts: 710
Blog Entries: 2

Original Poster
Rep: Reputation: 68
a) After a second boot with "snd_hda_codec_hdmi.blacklist=yes", the sound is there! (it was not the case at the first boot.. curious..)

b) In any case, I made the try according Post #3 and #5 (no blacklist as boot parameter); I included
in /etc/modprobe.d/alsa-base.conf
...
# change 19 Feb 2015
# Keep hdmi outputof the radeon graphic card from beeing loaded as first soundcard
options snd_hda_codec_hdmi index=-2
#
...
It works! Thanks.

What I see:
- GOOD: the standard intel card of the PC
- no hdmi module is loaded as per Post #1 (no "hdmi" module can be seen with lsmod)
- the "HD-Audio Generic" "ATI ID aa01" can be seen as second card

My expectations with my comprehension of alsamixer, changing the file alsa-base.conf and interpreting the comments of that conf file would have been:
- the hdmi module would have been loaded
- the standard card is the intel
- the second card would be "HD-Audio Generic" "Chip: ATI R6xx HDMI" as per Post #1 (dont see this)
Whatever are my expectation, I am happy and it works!
 
Old 02-19-2015, 11:46 AM   #7
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Posts: 3,366
Blog Entries: 33

Rep: Reputation: 216Reputation: 216Reputation: 216
Hi, I'm glad you got it sorted.

I would have thought that the "pc speaker" was next to be blacklisted.

Code:
...
pcspkr                  1273  0 
...
Anyhow, all the best,

Regards Glenn
 
Old 02-28-2015, 04:23 AM   #8
floppy_stuttgart
Member
 
Registered: Nov 2010
Location: Stuttgart, Germany
Distribution: Debian like
Posts: 710
Blog Entries: 2

Original Poster
Rep: Reputation: 68
At a cold boot that morning (after 2 days of no use), the "HD ATI" sound card was loaded at first despite the contermeasure indicated in a previous post (I had the feeling it worked).
At a second boot, the sound of the "Intel" was there.
Curious behavior: hopefully I dont need 2x times boot for having the correct card loaded.
Lets keep observing that behaviour: I will log the first and second boot the next days and analyze this.
 
Old 02-28-2015, 11:31 AM   #9
DavidMcCann
Senior Member
 
Registered: Jul 2006
Location: London
Distribution: CentOS, Salix
Posts: 4,158

Rep: Reputation: 1223Reputation: 1223Reputation: 1223Reputation: 1223Reputation: 1223Reputation: 1223Reputation: 1223Reputation: 1223Reputation: 1223
I've heard of this behaviour before in Debian-based systems. Try blacklisting by putting
blacklist snd_hda_codec_hdmi
in /etc/modprobe.d/blacklist.conf or whatever your system calls it, rather than using a boot parameter.
 
Old 02-28-2015, 05:21 PM   #10
floppy_stuttgart
Member
 
Registered: Nov 2010
Location: Stuttgart, Germany
Distribution: Debian like
Posts: 710
Blog Entries: 2

Original Poster
Rep: Reputation: 68
This was a bit like #6: at a cold first boot, the blacklisting in the kernel parameter did not work. But it worked at the second boot.
I blacklist now according #9 and will make a cold boot tomorrow and post the result here.
Just for information (no snd_hda_codec_hdmi module loaded):
lsmod (of wrongly loaded card)
Code:
Module                  Size  Used by
cpufreq_stats           2600  0 
cpufreq_powersave        575  0 
cpufreq_conservative     3562  0 
parport_pc             23969  0 
ppdev                   4124  0 
lp                      6127  0 
parport                21942  3 lp,ppdev,parport_pc
af_packet              19031  2 
nfsd                  156046  2 
auth_rpcgss            19755  1 nfsd
nfs_acl                 1576  1 nfsd
nfs                    88586  0 
lockd                  42731  2 nfs,nfsd
fscache                21695  1 nfs
sunrpc                122417  6 nfs,nfsd,auth_rpcgss,lockd,nfs_acl
dm_crypt               10846  0 
snd_intel8x0           20884  0 
snd_ac97_codec         78826  1 snd_intel8x0
snd_hda_intel          20789  0 
snd_hda_codec          61825  1 snd_hda_intel
snd_hwdep               4072  1 snd_hda_codec
snd_pcm_oss            27139  0 
snd_mixer_oss          10395  1 snd_pcm_oss
snd_pcm                50892  5 snd_pcm_oss,snd_ac97_codec,snd_intel8x0,snd_hda_codec,snd_hda_intel
snd_page_alloc          5091  3 snd_intel8x0,snd_pcm,snd_hda_intel
snd_seq_dummy           1000  0 
snd_seq_oss            20961  0 
snd_seq_midi            3497  0 
snd_seq_midi_event      3597  2 snd_seq_oss,snd_seq_midi
snd_rawmidi            12946  1 snd_seq_midi
snd_seq                35033  6 snd_seq_midi_event,snd_seq_oss,snd_seq_dummy,snd_seq_midi
radeon                667381  2 
mperf                    870  0 
snd_seq_device          3878  5 snd_seq,snd_rawmidi,snd_seq_oss,snd_seq_dummy,snd_seq_midi
snd_timer              12249  2 snd_pcm,snd_seq
snd                    36962  15 snd_pcm_oss,snd_ac97_codec,snd_intel8x0,snd_hwdep,snd_timer,snd_pcm,snd_seq,snd_rawmidi,snd_hda_codec,snd_hda_intel,snd_seq_oss,snd_seq_device,snd_mixer_oss,snd_seq_dummy,snd_seq_midi
i2c_algo_bit            3774  1 radeon
iTCO_wdt                3732  0 
iTCO_vendor_support     1285  1 iTCO_wdt
lpc_ich                 9742  0 
mac_hid                 2214  0 
ttm                    38821  1 radeon
drm_kms_helper         18634  1 radeon
drm                   154481  4 ttm,drm_kms_helper,radeon
ac97_bus                 691  1 snd_ac97_codec
soundcore               3463  1 snd
shpchp                 18904  0 
pci_hotplug            17192  1 shpchp
intel_agp               7588  0 
microcode               8484  0 
intel_gtt              10385  1 intel_agp
psmouse                52159  0 
evdev                   6815  7 
serio_raw               3177  0 
pcspkr                  1273  0 
rng_core                2252  0 
agpgart                18196  4 drm,ttm,intel_agp,intel_gtt
wmi                     6240  0 
processor              23837  0 
thermal_sys            10423  1 processor
button                  3513  0 
btrfs                 555574  0 
zlib_deflate           15207  1 btrfs
dm_mod                 51354  1 dm_crypt
floppy                 41663  0 
tg3                   108940  0
but cat /proc/asound/cards (in that case, no sound)
Code:
 0 [Generic        ]: HDA-Intel - HD-Audio Generic
                      HD-Audio Generic at 0xf0620000 irq 43
 1 [ICH6           ]: ICH4 - Intel ICH6
                      Intel ICH6 with AD1981B at irq 21
and "alsamixer" indicate the loaded card
Card: HD-Audio Generic
Chip: ATI ID aa01

Curious...

Blacklisting according #9 and a warm reboot (sound works) give another lsmod with a "1" and "17" marked in bold which deviates from previous lsmod (the "1" and "17" are coming up from a warm reboot and make it working? The "0" and "15" are a sign its not ok? I will have to understand what are these parameters in the "lsmod" output):
lsmod (the sound works)
Code:
Module                  Size  Used by
cpufreq_stats           2600  0 
cpufreq_powersave        575  0 
cpufreq_conservative     3562  0 
parport_pc             23969  0 
ppdev                   4124  0 
lp                      6127  0 
parport                21942  3 lp,ppdev,parport_pc
af_packet              19031  2 
nfsd                  156046  2 
auth_rpcgss            19755  1 nfsd
nfs_acl                 1576  1 nfsd
nfs                    88586  0 
lockd                  42731  2 nfs,nfsd
fscache                21695  1 nfs
sunrpc                122417  6 nfs,nfsd,auth_rpcgss,lockd,nfs_acl
dm_crypt               10846  0 
snd_hda_intel          20789  0 
snd_intel8x0           20884  1 
snd_hda_codec          61825  1 snd_hda_intel
snd_ac97_codec         78826  1 snd_intel8x0
snd_hwdep               4072  1 snd_hda_codec
snd_seq_dummy           1000  0 
snd_seq_oss            20961  0 
radeon                667381  2 
snd_pcm_oss            27139  0 
snd_seq_midi            3497  0 
snd_mixer_oss          10395  1 snd_pcm_oss
snd_seq_midi_event      3597  2 snd_seq_oss,snd_seq_midi
i2c_algo_bit            3774  1 radeon
snd_rawmidi            12946  1 snd_seq_midi
snd_pcm                50892  5 snd_pcm_oss,snd_ac97_codec,snd_intel8x0,snd_hda_codec,snd_hda_intel
snd_seq                35033  6 snd_seq_midi_event,snd_seq_oss,snd_seq_dummy,snd_seq_midi
ttm                    38821  1 radeon
drm_kms_helper         18634  1 radeon
mperf                    870  0 
iTCO_wdt                3732  0 
iTCO_vendor_support     1285  1 iTCO_wdt
lpc_ich                 9742  0 
psmouse                52159  0 
drm                   154481  4 ttm,drm_kms_helper,radeon
snd_page_alloc          5091  3 snd_intel8x0,snd_pcm,snd_hda_intel
snd_seq_device          3878  5 snd_seq,snd_rawmidi,snd_seq_oss,snd_seq_dummy,snd_seq_midi
evdev                   6815  7 
snd_timer              12249  2 snd_pcm,snd_seq
mac_hid                 2214  0 
serio_raw               3177  0 
pcspkr                  1273  0 
rng_core                2252  0 
shpchp                 18904  0 
pci_hotplug            17192  1 shpchp
snd                    36962  17 snd_pcm_oss,snd_ac97_codec,snd_intel8x0,snd_hwdep,snd_timer,snd_pcm,snd_seq,snd_rawmidi,snd_hda_codec,snd_hda_intel,snd_seq_oss,snd_seq_device,snd_mixer_oss,snd_seq_dummy,snd_seq_midi
intel_agp               7588  0 
intel_gtt              10385  1 intel_agp
agpgart                18196  4 drm,ttm,intel_agp,intel_gtt
processor              23837  0 
button                  3513  0 
microcode               8484  0 
soundcore               3463  1 snd
ac97_bus                 691  1 snd_ac97_codec
wmi                     6240  0 
thermal_sys            10423  1 processor
btrfs                 555574  0 
zlib_deflate           15207  1 btrfs
dm_mod                 51354  1 dm_crypt
floppy                 41663  0 
tg3                   108940  0

Last edited by floppy_stuttgart; 03-01-2015 at 02:42 AM.
 
Old 03-08-2015, 11:58 AM   #11
floppy_stuttgart
Member
 
Registered: Nov 2010
Location: Stuttgart, Germany
Distribution: Debian like
Posts: 710
Blog Entries: 2

Original Poster
Rep: Reputation: 68
So, I blacklisted according #9:
- a cold boot: no sound available
- a second boot (hot boot), the sound is there
My thoughts: with a cold boot, the sound system is not coming up (slow hardware? capacitor empty and which needs more time?).
So, perhaps should I put a delay in booting for the system to have time to boot correctly?
How to put a delay? Any advice is welcome.

Update: during a cold boot, I included waitdev=5 into the grub command line and it booted with the sound.
Then, I included then waitdev=5 into grub via "sudo leafpad /boot/grub/menu.lst" then "sudo update-grub". Let see if it boots continuously with sound now (without editing the grub command line and at each cold boot).

Update: after a hot reboot of the previous successfull coldboot, the sound is gone. I'm still searching what happens..
(1) When during a cold boot (seen in dmesg) ...
snd_hda_intel 0000:06:00.1: irq 42 for MSI/MSI-X ...
ALSA sound/pci/hda/hda_intel.c:2713 0000:06:00.1: Handle VGA-switcheroo audio client ...
radeon 0000:06:00.0: irq 43 for MSI/MSI-X ... sound dont work
(2) but during a warm boot ...
radeon 0000:06:00.0: irq 42 for MSI/MSI-X ...
radeon 0000:06:00.0: radeon: using MSI. ...
ALSA sound/pci/hda/hda_intel.c:2713 0000:06:00.1: Handle VGA-switcheroo audio client ...
snd_hda_intel 0000:06:00.1: irq 43 for MSI/MSI-X .. does work

The question would be how to change the irq for both different module or how to change the load sequence for both modules. Perhaps I should remove the snd_hda_intel, reload it, and restart alsa (= effect would be the snd_hda_intel would be in any case a module loaded after the radeon like 2).

Last edited by floppy_stuttgart; 03-12-2015 at 02:24 PM.
 
Old 03-15-2015, 03:27 AM   #12
floppy_stuttgart
Member
 
Registered: Nov 2010
Location: Stuttgart, Germany
Distribution: Debian like
Posts: 710
Blog Entries: 2

Original Poster
Rep: Reputation: 68
With blacklisting snd_hda_intel (additionally to snd_hda_codec_hdmi), the sound is there at each boot. Topic closed.

My findings:
a) sometime the processor is recognized as "tsc: Detected 3393.662 MHz processor" and the radeon driver was loaded before the snd_hda_intel. GOOD (sound working). I found out that snd_hda_intel dont need to be loaded in my PC for making the sound working.
b) sometime the processor is recognized as "tsc: Detected 3393.808 MHz processor" and the snd_hda_intel driver is loaded before the radeon driver. NOT GOOD (sound NOT WORKING).

I dont know why the processor is recognized differently (bad contact at the pin..?). I will not further search.
 
1 members found this post helpful.
  


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
detect the Graphic card installed CSharpguy Linux - Desktop 1 11-21-2010 06:48 AM
sound/graphic/network card on Fedora Core loda117 Linux - Newbie 3 08-20-2007 11:29 PM
asus crosshair and graphic card and sound card help cobra1981 Linux - Hardware 6 07-10-2007 06:45 PM
Prowler Sound card drivers installed, but get sound errors? MDK9.2 RHLinuxGUY Mandriva 1 03-11-2004 10:26 PM
I have 2 graphic card installed. How do I tell GNOME which one to use? iqbala Slackware 1 03-03-2004 02:46 PM


All times are GMT -5. The time now is 11:03 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration