hi, when I try this command $cat "file name" > /dev/dsp I don't get any beep sound and there were no errors even. I don't understand(Iam an end user) what is the problem. I installed torcs and tried all audio options but there was no sound. I was told to try above command to find whether my audio worked properly or not. I thought if there is no beep sound then there is some problem with audio. Is there any relationship between the above command and problem with the sound in torcs. I have "nVidia Corporation MCP51 High Definition Audio" device. I would be really thankful if anyone can tell me what is the problem and suggest a solution for it.
On Mon, 2007-01-29 at 18:09 +0530, Manu G.V wrote:
hi, when I try this command $cat "file name" > /dev/dsp I don't get any beep sound and there were no errors even. I don't understand(Iam an end user) what is the problem. I installed torcs and tried all audio options but there was no sound. I was told to try above command to find whether my audio worked properly or not. I thought if there is no beep sound then there is some problem with audio. Is there any relationship between the above command and problem with the sound in torcs. I have "nVidia Corporation MCP51 High Definition Audio" device. I would be really thankful if anyone can tell me what is the problem and suggest a solution for it.
I can only make guesses. Some of my guesses will be wild goose chases. I am not an expert in sound. Like you, I am an end user.
My first guess is to assume you are using ALSA to control sound. ALSA is the default.
My second guess is to assume entries were made in your /etc/modprobe.conf associating sound cards with drivers. I believe entries are made during the Fedora installation process. In my case, I have the following /etc/modprobe.conf file. rsewill@rsewill:~ <2:23> $ more /etc/modprobe.conf alias eth0 forcedeth alias scsi_hostadapter sata_nv alias snd-card-0 snd-hda-intel options snd-card-0 index=0 options snd-hda-intel index=0 remove snd-hda-intel { /usr/sbin/alsactl store 0 >/dev/null 2>&1 || : ; }; /sbin /modprobe -r --ignore-remove snd-hda-intel rsewill@rsewill:~ <2:24> $
First, we need to determine what is found on your system.
Please do all of the following within a gnome-terminal or xterm window.
We will use some ALSA programs, one of which is "aplay" Please do "man aplay" to learn about aplay. Please do "aplay -l" that is aplay with the option lower-case L. A one and a lower-case L look the same to me. The goal of doing this command is to determine what devices are in your system. When I do the command, I get the following: rsewill@rsewill:~ <2:26> $ aplay -l **** List of PLAYBACK Hardware Devices **** card 0: NVidia [HDA NVidia], device 0: ALC883 Analog [ALC883 Analog] Subdevices: 1/1 Subdevice #0: subdevice #0 rsewill@rsewill:~ <2:27> $
I assume, another way to get information, would be to cat /proc/asound/cards and cat /proc/asound/devices: rsewill@rsewill:~ <2:27> $ cat /proc/asound/cards 0 [NVidia ]: HDA-Intel - HDA NVidia HDA NVidia at 0xfe024000 irq 7 rsewill@rsewill:~ <2:28> $ cat /proc/asound/devices 2: : timer 3: : sequencer 4: [ 0- 2]: digital audio capture 5: [ 0- 0]: digital audio playback 6: [ 0- 0]: digital audio capture 7: [ 0] : control rsewill@rsewill:~ <2:29> $ I would be guessing what the information from these files means.
If you have multiple sound cards, we will need to figure out how to select which sound card to use. I believe we would need to create a ~/.asoundrc file, with entries, that let us specify which card do use, with what alsa mixer name, but I am uncertain because I have only ever had one sound device. The following will assume you have one sound card and that card is "card 0".
If the problem is not multiple sound cards, I would next run the program, alsamixer. Please type "alsamixer" in the gnome-terminal or xterm window.
alsamixer should do "ncurses" graphics within the gnome-terminal or xterm window. The top will say something like, "Card: HDA NVidia Chip: Realtek ALC888 View: [Playback] Capture All Item: Headphone"
There will be bars showing how things (mixers) are set. Below the bars will percentages and indications if the device can be muted and is muted, and at the bottom, below each bar will be the name of mixer. The name for your mixers will be different than mine. You may not have "Item: Headphone" as your first item. You may or may not have "Headphone" as any mixer item.
The "View:" shows what type of mixers are currently being displayed. To switch "View:", use tab. Since we are interested in speakers, we are interested in "Playback".
By trial and error, I have learned multiple mixers control the output of a speaker. In my case, I need to have the bars for the "PCM" mixer raised and I need to have one or more other mixers, "Front", or "Front Line" raised. For "Front" and "Front Line", it is important the bottom of the bar have what looks like the infinity symbol (some will say double zero) and not have the MM symbol. The MM symbol means muted.
The names of your mixers can and will be different than mine. To move from one mixer to another, please use the left arrow and right arrow keys. To "mute" a mixer that can be muted, please type "m". To unmute a mixer that has been muted, please type "m". The "PCM" mixer cannot be muted.
Just above the name of the mixer, and below the bar for the mixer, is the percentage the mixer has been raised.
If you have left arrow or right arrow to a mixer that you want to raise, you will type "q" to raise the left channel, and type "e" to raise the right channel, and type "w" to raise both left and right channel. You will type "z" to lower the left channel, "c" to lower the right channel, and "x" to lower both left and right channel.
To exit alsamixer, please type "Escape". Please see "man alsamixer"
I would have another gnome-terminal or xterm window up while running alsamixer. I would do ls /usr/share/sounds and remember a name of a wav file from /usr/share/sounds. I would do the following: aplay /usr/share/sounds/startup3.wav -- if you have this file. Actually, any file should do.
I am guessing you have a similar problem to what I had in that one of your mixers is either muted or set too low.
I do not know if it is appropriate, but I raise my PCM mixer to maximum and control the volume of my speak using the "Front" mixer. I have problems with this approach. Some programs assume they should control the volume using the PCM mixer. I do not know which mixer a program will adjust when one tries to adjust the volume using that program. Hopefully, someone with more knowledge and experience will tell how to control this. I suspect, if I put the correct entries in a ~/.asoundrc file, I might be able to control which mixer is used, but do not know.
Assuming we start to get sound, the next step will be to save a working sound configuration. There is a program, "alsactl" which will store the current alsa controls to a file and will restore the alsa controls from a file. Please see "man alsactl".
There should be a file in the /etc directory, /etc/asound.state, which should be the global settings for the alsa controls. To change this global file to the current alsa control settings, assuming the current alsa control settings are what one wants, one would become root and do "alsactl -f /etc/asound.state store". One can also keep a local file and change the alsa control settings manually: alsactl -f ~/.asound.state store -- to save settings alsactl -f ~/.asound.state restore -- to load settings
I hope I do not lead you on too wild a goose chase and wish you luck.
Rick
Thanks for your suggestions Rick.
On 1/29/07, Rick Sewill rsewill@cableone.net wrote: My first guess is to assume you are using ALSA to control sound.
ALSA is the default.
yes ALSA is the default
My second guess is to assume entries were made in your /etc/modprobe.conf associating sound cards with drivers. I believe entries are made during the Fedora installation process. In my case, I have the following /etc/modprobe.conf file. rsewill@rsewill:~ <2:23> $ more /etc/modprobe.confi have the same output as
yours.
Audio works fine but there is no sound in Torcs. I can play music and all, I was told by someone that, when i run this command there should be a beep, which i don't get. I see my friends get a beep sound when they run this command in their PCs. $cat "file name" > /dev/dsp
So i am trying to figure out is there any problem with my sound(i too don't know much).
thanks
On Tue, 2007-01-30 at 16:46 +0530, Manu G.V wrote:
Audio works fine but there is no sound in Torcs. I can play musicand all, I was told by someone that, when i run this command there should be a beep, which i don't get. I see my friends get a beep sound when they run this command in their PCs. $cat "file name" > /dev/dsp
Are you literally typing that in, or substituting the name of a real file where you've got "file name"?
It is possible to send all sorts of things to that device, but you'd get nothing but wierd noises if it wasn't a sound file that you tried.
On 1/30/07, Tim ignored_mailbox@yahoo.com.au wrote:
On Tue, 2007-01-30 at 16:46 +0530, Manu G.V wrote:
Are you literally typing that in, or substituting the name of a real file where you've got "file name"?
yes i am substituting a name of real file(/etc/fstab)
It is possible to send all sorts of things to that device, but you'd get
nothing but wierd noises if it wasn't a sound file that you tried.
I am not getting any weird sounds(i was expecting a beep) when i send something to that device that is why i am worried.
Do u think something is wrong? Please help me.
thanks
Tim:
Are you literally typing that in, or substituting the name of a real file where you've got "file name"?
Manu G.V:
yes i am substituting a name of real file(/etc/fstab)
Well, don't expect that to work, other than give you strange noises.
I'd try getting your hands on something like an ogg file, then playing it with "ogg123", or a wav file and playing it with "play".
e.g. ogg123 sound-file.ogg or play /usr/share/sounds/generic.wav
You probably have the play command and that generic wav file by default. If not, you should be able to find one somewhere on your system with a command line like: locate wav |grep usr
I am not getting any weird sounds (i was expecting a beep) when i send something to that device that is why i am worried.
I don't know why you expect some random file to make a specific noise, like a beep. I can see your problem perhaps being due to a couple of things: Expecting something unrealistic, or that your sound card is not set up right.
You could try running "/usr/bin/system-config-soundcard" to try and fix the latter.
On Tue, 2007-01-30 at 16:46 +0530, Manu G.V wrote:
Thanks for your suggestions Rick.
On 1/29/07, Rick Sewill rsewill@cableone.net wrote: My first guess is to assume you are using ALSA to control sound.
ALSA is the default.
yes ALSA is the default
My second guess is to assume entries were made in your /etc/modprobe.conf associating sound cards with drivers. I believe entries are made during the Fedora installation process. In my case, I have the following /etc/modprobe.conf file. rsewill@rsewill:~ <2:23> $ more /etc/modprobe.conf
i have the same output as yours.
Audio works fine but there is no sound in Torcs. I can play musicand all, I was told by someone that, when i run this command there should be a beep, which i don't get. I see my friends get a beep sound when they run this command in their PCs. $cat "file name" > /dev/dsp
cat "file name" > /dev/dsp does not make any sound for me either.
So i am trying to figure out is there any problem with my sound(i too don't know much).
I installed torcs. It is a car racing game. I have a 64 bit machine. The game does not work well on my machine. It is jerky.
After starting torcs, I select options -> Sound It says "Sound System:" and there are three choices. openal, plib, and disabled. "openal" seems to work best for me. I could get statically noise from "plib".
I next had to "Configure Players" and configured player 1.
I next went to Race -> Configure Race It said, Select Track, Accept a track layout Select a play from the right hand side, click (De)Select so the player appears in the left hand box
Accept practice options
Select New Race, it showed this yellow race car.
Pushing the up arrow caused the car to move. I had the sound of a car engine.
My best guess is either the incorrect Sound System: is selected or sound on my system is configured differently than for your system.
I hope it is a configuration option in the game that is wrong. If not, we need to compare the configuration for sound for our systems.
My machine is running Fedora Core 6, 64 bit. I try to have the latest updates. I tend to install tons of stuff, out of curiosity. Tracking down what I have installed or configured that is different from your configuration will take time assuming it is something I installed.
thanks
-- manu -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
On 1/30/07, Rick Sewill rsewill@cableone.net wrote:
I installed torcs. It is a car racing game. I have a 64 bit machine. The game does not work well on my machine. It is jerky. After starting torcs, I select options -> Sound It says "Sound System:" and there are three choices. openal, plib, and disabled.
i too have same sound options.
"openal" seems to work best for me. I could get statically noise from
"plib".
But none of them work. I don't get any sound from any option.
Pushing the up arrow caused the car to move. I had the sound of a car engine.
i don't get any engine sound :(
My best guess is either the incorrect Sound System: is selected or sound on my system is configured differently than for your system.
How can i know that incorrect sound system is selected?
On Wed, 2007-01-31 at 00:33 +0530, Manu G.V wrote:
On 1/30/07, Rick Sewill rsewill@cableone.net wrote: >I installed torcs. It is a car racing game. I have a 64 bit machine. >The game does not work well on my machine. It is jerky. >After starting torcs, I select options -> Sound >It says "Sound System:" and there are three choices. >openal, plib, and disabled. i too have same sound options.
>"openal" seems to work best for me. I could get statically noise from >"plib". But none of them work. I don't get any sound from any option. >Pushing the up arrow caused the car to move. >I had the sound of a car engine. i don't get any engine sound :(My best guess is either the incorrect Sound System: is selected or
sound
on my system is configured differently than for your system.
How can i know that incorrect sound system is selected?
I am afraid you have me stumped.
As a last gasp attempt, I tried searching the Internet. I found references to playing games in general, not just torcs.
One person had problems with sounds with one game in kde, I think it might have been torcs, but it could also have been quake, but not gnome.
Then, another person pointed out they should check Sound Preferences under the System menu. There was a discussion about some games working better with one sound system than another. I do not know what to think.
Sound systems improve, hopefully, over time. What was good advice a year ago may not be good advice now.
When I examine my Sound Preferences under the System menu, I find I have the following: Sound Events Sound Playback: Autodetect
Music and Movies Sound Playback: Autodetect
Audio Conferencing Sound Playback: Autodetect Sound Capture: ALSA - Advance Linux Sound Architecture
I do not know if it would help, but I would next try changing these settings to see if changing these settings has any affect. I am guessing, and it is a guess, these settings control what sound systems are used by me when I do various things. I have no suggestion what settings to change or what values might work. Please write down the original settings before making any changes so you can get back to the original settings.
I fear this suggestion will be a wild goose chase.
I have another thought. torcs was available via yum. I downloaded the latest version available from yum, yesterday. openal and plib were also downloaded as torcs was dependent on them. Is it possible you need to update to a later release of torcs or openal or plib?
My system has the latest yum updates for Fedora Core 6. Is your system up to date?
I do not know what else to suggest.
I wish I could help. Sorry.
-- manu
Manu G.V wrote:
hi, when I try this command $cat "file name" > /dev/dsp I don't get any beep sound and there were no errors even. I don't understand(Iam an end user) what is the problem. I installed torcs and tried all audio options but there was no sound. I was told to try above command to find whether my audio worked properly or not. I thought if there is no beep sound then there is some problem with audio. Is there any relationship between the above command and problem with the sound in torcs. I have "nVidia Corporation MCP51 High Definition Audio" device. I would be really thankful if anyone can tell me what is the problem and suggest a solution for it.
It sounds like you do not have the OSS emulation layer loaded. I think this is covered in the ALSA docs. (Sorry, but I can not give the specific modules to load right now - not on my FC6 machine.)
Mikkel
Don't know if it's the same thing, and I'm running FC5. Had the problem of no sound on the PC at work. Solved it yesterday. Try toggling the line jack sense and headphone jack sense switches in kmix.
Dave
On Wednesday 31 January 2007 17:02, Mikkel L. Ellertson wrote:
Manu G.V wrote:
hi, when I try this command $cat "file name" > /dev/dsp I don't get any beep sound and there were no errors even. I don't understand(Iam an end user) what is the problem. I installed torcs and tried all audio options but there was no sound. I was told to try above command to find whether my audio worked properly or not. I thought if there is no beep sound then there is some problem with audio. Is there any relationship between the above command and problem with the sound in torcs. I have "nVidia Corporation MCP51 High Definition Audio" device. I would be really thankful if anyone can tell me what is the problem and suggest a solution for it.
It sounds like you do not have the OSS emulation layer loaded. I think this is covered in the ALSA docs. (Sorry, but I can not give the specific modules to load right now - not on my FC6 machine.)
Mikkel
I think the OP needs the alsa-oss package installed. This was not initially available on FC5, but as I use planetccrma I get it from them. I now see that alsa-oss is available on FC5, and presume this may be the same on FC6.
Nigel.
--
Do not meddle in the affairs of dragons, for thou art crunchy and taste good with Ketchup!