LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-04-2004, 02:58 AM   #1
spyderusa11
Member
 
Registered: Jun 2003
Location: Florida
Distribution: Fedora Core 1
Posts: 71

Rep: Reputation: 15
a few alsa problems


I'm having a few problems and I was hoping someone could help me out. First of all, I'm running FC1 with the regular kernel. I installed ALSA and it seems to be working for the most part... However, everytime I turn on my computer the left channel is mute (not in the mixer, just hearing it) and playing around with the volumes unmutes it. I guess it's not so much of a problem as it is an inconvenience.

Second thing, more of a problem, I can't run WineX. It gives me a:

/usr/lib/transgaming_winex3//winex/bin/wine: can't exec 'whatever.exe': error=21

And what I dmesg right after that I get:

ALSA ../../../alsa-kernel/core/seq/oss/seq_oss_init.c:213: no device found

I thought the OSS emulation was loaded correctly but I really don't know how to be sure. If anybody could point me in the right direction it would be greatly appreciated.

Thanks,
Mike
 
Old 03-04-2004, 04:11 PM   #2
Rounan
Member
 
Registered: Jun 2003
Location: Ontario
Distribution: Ubuntu, Gentoo, Debian
Posts: 416

Rep: Reputation: 30
For the loading/muting problem:
make sure you have a startup script for ALSA in your /etc/rc#.d directory, where # is your default runlevel. The script that comes with alsa should take care of saving/restoring volumes. If not, the commands are:
alsactl store <-- this stores current settings
alsactl restore <-- loads previous settings from file

OSS:
Try setting the output of XMMS or some other program to OSS. If it works, the problem is with WINE. If it doesn't, the problem is with ALSA.

--Rounan
 
Old 03-04-2004, 11:00 PM   #3
spyderusa11
Member
 
Registered: Jun 2003
Location: Florida
Distribution: Fedora Core 1
Posts: 71

Original Poster
Rep: Reputation: 15
I think the scripts are executing fine, when I run alsactl restore it puts the volumes back where they were when I started the computer but the audio channels are fine. It seems the only time they're off are when I first power on the computer. As for the OSS thing, I set xine to OSS and it seems to work fine. What else should I try?

Thanks in advance,
Mike
 
Old 03-05-2004, 09:15 AM   #4
Rounan
Member
 
Registered: Jun 2003
Location: Ontario
Distribution: Ubuntu, Gentoo, Debian
Posts: 416

Rep: Reputation: 30
If you can understand the scripts at all, read through the alsa one, and make sure it's calling alsactl store/restore at the proper places (stop/start).
Otherwise, just add a simple script to your default runlevel:
S99alsa:
alsactl restore
K99alsa:
alsactl store

If xine is working fine on OSS emulation, then it's 99% likely that the problem is in WINE, and its handling of sound. Check your WINE config - I've got 0 experience with it at this point, so I can't be of much help. search this forum and the WINE forums for a solution.

--Rounan
 
Old 03-06-2004, 12:30 PM   #5
spyderusa11
Member
 
Registered: Jun 2003
Location: Florida
Distribution: Fedora Core 1
Posts: 71

Original Poster
Rep: Reputation: 15
ok, ill try the script thing, i just dont understand how so im hoping someone can explain it to me. i see in each runlevel theres a file S or K##service, im assuming i just make one called (S/K##)alsa but i dont under the S## and K## thing. any kind of explanation would help. thanks.

Mike
 
Old 03-07-2004, 01:26 AM   #6
Rounan
Member
 
Registered: Jun 2003
Location: Ontario
Distribution: Ubuntu, Gentoo, Debian
Posts: 416

Rep: Reputation: 30
I realise you're on fedora core and thus using a redhat-based init system... but this is where I learned all I need to know about init scripts:
http://www.debian.org/doc/debian-pol...tml#s-sysvinit

That's debian-specific, so you'll have to read the redhat guides to get the exact syntax and file/folder format right. But that outlines the principle very soundly.

Hope that helps!
--Rounan
 
Old 03-07-2004, 08:56 AM   #7
spyderusa11
Member
 
Registered: Jun 2003
Location: Florida
Distribution: Fedora Core 1
Posts: 71

Original Poster
Rep: Reputation: 15
thanks to everybody who replied. i figured both out, and for anyone else who is having similar problems, here's how. for the balance problem, you guys said to make scripts for saving and restoring the volumes. well, there was already an alsa script in runlevels 0 and 6 (but not 5), so i looked at it and it said:

# It will save the ALSA settings, to restore them you will need to add
# the following to your /etc/modules.conf file :
#
# post-install snd-card-0 /usr/sbin/alsactl restore >/dev/null 2>&1 || :
# pre-remove snd-card-0 /usr/sbin/alsactl store >/dev/null 2>&1 || :
#
# The second line does the same as this script, for when the module is
# removed.

I already had a similar line in my modules.conf but it wasn't running /usr/sbin/alsactl... so all i had to do was replace the two lines there with these two lines... no scripts necessary. what i don't get is why alsaconf would create a script in the shutdown/reboot runlevels and add the right modules to modules.conf but not automatically put those two lines in there as well.

anyways, the winex3 problem. did a little searching around, and it turns out it had nothing to do with the oss drivers. fedora core 1 has some problem with winex3 and error=21 is due to pre-linking. so all i had to do was edit /etc/sysconfig/prelink and set PRELINKING to no, then run /etc/cron.daily/prelink and after that was done winex worked fine. the only question i have remaining is what does prelinking do, and what do i lose by disabling it?

thanks to everybody who responded and i hope this helps someone else who is having similar troubles.

Mike
 
  


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
alsa problems mark_alfred Debian 2 02-17-2005 12:24 AM
Alsa-problems again hanspb Linux - Software 4 11-17-2004 05:24 PM
alsa problems... socket9001 Slackware 1 04-27-2004 01:32 AM
Problems with OSS while trying to avoid problems in ALSA (scratchy sound) GT_Onizuka Linux - General 1 02-06-2004 12:55 AM
alsa problems, please help matjazk Slackware 16 12-15-2003 06:45 AM


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