LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 10-12-2007, 01:39 AM   #1
Erik765
Member
 
Registered: Mar 2007
Distribution: Kubuntu 7.10, Fedora 8
Posts: 48

Rep: Reputation: 15
Here's a weird one for ya...


I recently installed a Sound Blaster card because I thought my mic wasn't working and wanted to see if this would fix it. Well, in the midst of my first boot with the card installed I realized that all I had to do on my integrated sound was to enable the input port. Duh. I then took the Sound Blaster back out and ever since certain games that worked fine before will either not start because they say they can't initialize the sound, or they just won't have sound while running. I have sound on many other games still and .mpg, mp3 stuff is fine. I've looked at /proc/asounds/cards and other files in this directory and nothing seems out of the ordinary. They're all just listing the one integrated card. I've tried forcing alsa to start from KDE control center/sound system and unselecting automatic and selecting alsa. No luck.

Any ideas what it could be or what I could check?
Any files you need to see?

Thanks for you help.

 
Old 10-12-2007, 01:43 AM   #2
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
/etc/modprobe.conf
lsmod

... look for rogue drivers. Also check the syslog next time it happens.
... manually remove all alsa and oss modules and reboot?
 
Old 10-12-2007, 01:48 AM   #3
Erik765
Member
 
Registered: Mar 2007
Distribution: Kubuntu 7.10, Fedora 8
Posts: 48

Original Poster
Rep: Reputation: 15
K, thanks, but I'm a little confused. Do you need to see these files? What would I be looking for?

How would I check the syslog?
 
Old 10-12-2007, 01:59 AM   #4
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
When you installed the soundblaster... what did you actually do?

To look at the files:

cat /etc/modprobe.conf
... you are looking for any trace of the soundblaster driver or settings. Drivers can be loaded on the fly, so something that ain't in lsmod list right now can still show up later.

dmesg | tail
... this will display the last so-many entries in the syslog. You are looking for messages concerning sound or audio.

Another thing to try is to run an affected game in CLI by entering the executable name, then watching the messages. They won't all produce output and some programs need a "verbose" flag.

Programs will not load if they think something else has claimed the souncard. This is not so important with very modern distros which seem to be able to blend the audio streams from different apps.
 
Old 10-12-2007, 02:17 AM   #5
Erik765
Member
 
Registered: Mar 2007
Distribution: Kubuntu 7.10, Fedora 8
Posts: 48

Original Poster
Rep: Reputation: 15
Ok. My modprobe.conf file is this:
alias eth0 r8169
alias eth1 r8169
alias scsi_hostadapter ahci
alias scsi_hostadapter1 pata_amd
options snd cards_limit=8
options snd-hda-intel index=0
alias snd-card-7 snd-usb-audio
options snd-usb-audio index=7
options snd-ca0106 index=0

Not really sure which is which here.

When I installed the card I just put it in. I didn't install any software or drivers 'cause I located the mic problem before I got to that.

Any problems w/ the file?
 
Old 10-12-2007, 03:16 AM   #6
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Quote:
When I installed the card I just put it in. I didn't install any software or drivers 'cause I located the mic problem before I got to that.
... did you boot with the card installed? If so, then it was probably detected and configured. The drivers are already installed.

You seem to have an onboard intel soundcard and something plugged into USB - a camera with built-in mic?

Get your sound to fail then do the dmesg thing.
 
Old 10-12-2007, 02:44 PM   #7
Erik765
Member
 
Registered: Mar 2007
Distribution: Kubuntu 7.10, Fedora 8
Posts: 48

Original Poster
Rep: Reputation: 15
Question

I did boot with it installed.
The only things I have plugged into USB are a mouse, keyboard, joystick and external HD.

I can't find anything at all related to sound in dmesg after the games fail to start. Running my games from CLI doesn't produce anything.

Also, this part seems kinda strange to me... According to my list of installed programs, I have ALSA installed, but I can't get any response from anything on the command line regarding it. ALSA, ALSACONF, ALSAMIXER, nothing. My mixer in fedora is called Kmix.

What could this be all about?

I'm starting to wonder, since I know what sound card I have, (the Intel one) if there's just a place where I could delete any other reference to anything else, wherever that might be.

Any more thoughts?

 
Old 10-12-2007, 07:03 PM   #8
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
I am immediately suspicious of that usb sound entry in modprobe.conf ... comment them out and reboot?

Also suggest changing out all usb devices. Use those usb-ps/2 thingies.
lsusb
... what does your system think is plugged in?

Check the alsa modules are loading - especially after a sound failure.
lsmod | grep snd

I haven't kept up with fedora and have no idea what they are using for tools these days. Have a check on what is available with: "apropos alsa". It may be amixer et al. It may be that they expect you to use the KDE interface... especially if you chose not to install the CLI tools packages.

Hah! I just had a funny idea ... you could try switching onboard sound off in BIOS, boot with no soundcard at all and let fedora sort that out. Then shut-down, switch the sound back on, and boot.

Last edited by Simon Bridge; 10-12-2007 at 07:07 PM.
 
Old 10-12-2007, 08:01 PM   #9
Erik765
Member
 
Registered: Mar 2007
Distribution: Kubuntu 7.10, Fedora 8
Posts: 48

Original Poster
Rep: Reputation: 15
results

Here are the results of lsmod | grep snd

Quote:
[root@c-67-185-226-68 asound]# lsmod | grep snd
snd_hda_intel 316513 8
snd_usb_audio 98881 0
snd_usb_lib 26433 1 snd_usb_audio
snd_rawmidi 35137 1 snd_usb_lib
snd_hwdep 19145 1 snd_usb_audio
snd_seq_dummy 12613 0
snd_seq_oss 40897 0
snd_seq_midi_event 16577 1 snd_seq_oss
snd_seq 63201 5 snd_seq_dummy,snd_seq_oss,snd_seq_midi_event
snd_seq_device 17109 4 snd_rawmidi,snd_seq_dummy,snd_seq_oss,snd_seq
snd_pcm_oss 52673 0
snd_mixer_oss 25537 2 snd_pcm_oss
snd_pcm 93257 5 snd_hda_intel,snd_usb_audio,snd_pcm_oss
snd_timer 32585 4 snd_seq,snd_pcm
snd 71785 78 snd_hda_intel,snd_usb_audio,snd_rawmidi,snd_hwdep,snd_seq_oss,snd_seq,snd_seq_device,snd_pcm_oss,snd _mixer_oss,snd_pcm,snd_timer
soundcore 17249 2 snd
snd_page_alloc 19665 2 snd_hda_intel,snd_pcm

So quoting stuff out of modprobe.conf might work? Which exact lines should I quote out?

Quote:
alias eth0 r8169
alias eth1 r8169
alias scsi_hostadapter ahci
alias scsi_hostadapter1 pata_amd
options snd cards_limit=8
options snd-hda-intel index=0
alias snd-card-7 snd-usb-audio
options snd-usb-audio index=7
options snd-ca0106 index=0
Thanks very much for your help so far. I think we're on the right track here.

Last edited by Erik765; 10-12-2007 at 11:13 PM.
 
Old 10-12-2007, 08:56 PM   #10
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Quote:
Which exact lines should I quote out?
... that's "comment" out.

These ones:
Code:
alias snd-card-7 snd-usb-audio
options snd-usb-audio index=7
You wanna go back and edit the post so you only list modules once?
Anyway, I see your intel there and no soundblaster drivers. Which is as it should be. (snd-emu10k*)

Presumably this list is from when the sound goes?
So when you play something where the sound vanishes... is there a difference? What about dmesg | tail ?
 
Old 10-15-2007, 01:08 AM   #11
Erik765
Member
 
Registered: Mar 2007
Distribution: Kubuntu 7.10, Fedora 8
Posts: 48

Original Poster
Rep: Reputation: 15
The Latest

So, I found out some interesting facts. I'm using KDE. When I boot into Gnome, there is no problem at all with sound and these programs trying to run. Gnome only finds the one card in its sound card detection, which is correct since it's all I have installed at this point. I told Gnome to re-write the sound config files, but this made no difference when I booted KDE back up. I'd really like to continue using KDE. Perhaps I can just re-install KDE?

Anyway, back in KDE. dmesg | tail shows nothing at all different right before the program tries to run and right after it fails.

I commented the lines that were suggested from modprobe.conf. This made no difference, and lsmod | grep snd shows the same exact output as it did before and while a program with no sound is running.

There are only a handful of programs that are doing this. Programs that, however, I'd really like to use.

I'd like to resolve this issue rather than working around it with something such as moving to Gnome.

Any more ideas? I'm willing to re-install KDE if this is a possibilty.

Thanks for your help.
 
Old 10-15-2007, 06:02 PM   #12
Erik765
Member
 
Registered: Mar 2007
Distribution: Kubuntu 7.10, Fedora 8
Posts: 48

Original Poster
Rep: Reputation: 15
Bump. Come on guys! Why just KDE and not Gnome? Any ideas?
 
Old 10-18-2007, 05:03 PM   #13
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
It's in your KDE configuration - likely you booted to KDE when the soundblaster was inserted and KDE has remembered that. Looks like something to report as a bug to the KDE people.
 
Old 10-18-2007, 05:40 PM   #14
Erik765
Member
 
Registered: Mar 2007
Distribution: Kubuntu 7.10, Fedora 8
Posts: 48

Original Poster
Rep: Reputation: 15
I've actually discovered that it's only on root user in KDE that the sound is screwed up. Any other user on any desktop environment works fine. Go Figure.

Thanks for your help. I'll just use another user.
 
Old 10-20-2007, 02:16 AM   #15
Erik765
Member
 
Registered: Mar 2007
Distribution: Kubuntu 7.10, Fedora 8
Posts: 48

Original Poster
Rep: Reputation: 15
The resolution... finally!

Ok, after all the head-scratching and frustration, I finally figured out how to fix my 'lack of sound on certain programs' problem.

Props to Simon Bridge for the help.

The contents of /etc/modprobe.conf by default would read:
Quote:
alias eth0 r8169
alias eth1 r8169
alias scsi_hostadapter ahci
alias scsi_hostadapter1 pata_amd
options snd cards_limit=8
options snd-hda-intel index=0
alias snd-card-7 snd-usb-audio
options snd-usb-audio index=7
alias snd-card-0 snd-hda-intel
options snd-card-0 index=0
Whatever is showing up as snd-usb-audio is causing a conflict. The only devices I have that are usb are a keyboard, mouse, a joystick, and a hard drive. I was considering switching out my keyboard and mouse for ps2 with adapters to see if it changed anything but one time while booting into a different user (other than root) I noticed I had sound. I checked out the modprobe and it was different. This time revealing this:
Quote:
alias eth0 r8169
alias eth1 r8169
alias scsi_hostadapter ahci
alias scsi_hostadapter1 pata_amd
options snd cards_limit=8
alias snd-card-0 snd-hda-intel
options snd-hda-intel index=0
Nothing usb and also no reference to "index=7". I took note of this. Re-wrote my modprobe.conf (after backing up the original) with the working contents that I happened to save (luckily) and voila. Sound in everything.

I have yet to find the conflicting device and will start with the adapters, but in the mean time, I know a quick fix. When I find out I'll post it here just for reference.

Thanks for all the help guys. Esp. Simon Bridge.

 
  


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
Weird, weird problem nonades Slackware 2 10-11-2006 11:45 AM
weird, weird problems with logitech precision USB gamepad ikataii Linux - Hardware 4 10-14-2005 04:31 AM
HP Photosmart weird weird weird.... Vlad_M Linux - General 5 02-20-2005 05:41 AM
Weird, weird apache2 problem atheist Debian 1 09-17-2004 08:26 PM
This is weird mrsolo Linux - Networking 1 05-06-2003 12:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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