LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Sound is not playing (https://www.linuxquestions.org/questions/linux-newbie-8/sound-is-not-playing-4175600449/)

procfs 02-23-2017 12:11 PM

Sound is not playing
 
Hi I have upgraded to Fedora 25 and my sound is not playing :), below are some details

[root@noentry ~]# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Intel [HDA Intel], device 0: ALC888 Analog [ALC888 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
[root@noentry ~]# lsmod | grep snd
snd_hda_codec_realtek 86016 1
snd_hda_codec_generic 73728 1 snd_hda_codec_realtek
snd_hda_intel 36864 7
snd_hda_codec 126976 3 snd_hda_intel,snd_hda_codec_generic,snd_hda_codec_realtek
snd_hda_core 81920 4 snd_hda_intel,snd_hda_codec,snd_hda_codec_generic,snd_hda_codec_realtek
snd_hwdep 16384 1 snd_hda_codec
snd_seq 69632 0
snd_seq_device 16384 1 snd_seq
snd_pcm 118784 3 snd_hda_intel,snd_hda_codec,snd_hda_core
snd_timer 32768 2 snd_seq,snd_pcm
snd 86016 23 snd_hda_intel,snd_hwdep,snd_seq,snd_hda_codec,snd_timer,snd_hda_codec_generic,snd_seq_device,snd_hda _codec_realtek,snd_pcm
soundcore 16384 1 snd
[root@noentry ~]# lspci -v | grep -A11 -i "audio"
00:1b.0 Audio device: Intel Corporation NM10/ICH7 Family High Definition Audio Controller (rev 01)
Subsystem: Intel Corporation Device d606
Flags: bus master, fast devsel, latency 0, IRQ 29
Memory at 901c0000 (64-bit, non-prefetchable) [size=16K]
Capabilities: [50] Power Management version 2
Capabilities: [60] MSI: Enable+ Count=1/1 Maskable- 64bit+
Capabilities: [70] Express Root Complex Integrated Endpoint, MSI 00
Capabilities: [100] Virtual Channel
Capabilities: [130] Root Complex Link
Kernel driver in use: snd_hda_intel
Kernel modules: snd_hda_intel

[root@noentry ~]#


Thanks and Best Regards

procfs 02-23-2017 12:20 PM

I found below command in the web and I am not sure if this will help

[root@noentry ~]# wget -O alsa-info.sh http://www.alsa-project.org/alsa-info.sh && chmod +x ./alsa-info.sh && ./alsa-info.sh --upload
--2017-02-23 18:16:47-- http://www.alsa-project.org/alsa-info.sh
Resolving www.alsa-project.org (www.alsa-project.org)... 77.48.224.243
Connecting to www.alsa-project.org (www.alsa-project.org)|77.48.224.243|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://git.alsa-project.org/?p=alsa-...o/alsa-info.sh [following]
--2017-02-23 18:16:48-- http://git.alsa-project.org/?p=alsa-...o/alsa-info.sh
Resolving git.alsa-project.org (git.alsa-project.org)... 77.48.224.243
Connecting to git.alsa-project.org (git.alsa-project.org)|77.48.224.243|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/x-sh]
Saving to: ‘alsa-info.sh’

alsa-info.sh [ <=> ] 28.03K 76.7KB/s in 0.4s

2017-02-23 18:16:49 (76.7 KB/s) - ‘alsa-info.sh’ saved [28707]

pcilib: sysfs_read_vpd: read failed: Input/output error
Uploading information to www.alsa-project.org ... Done!

Your ALSA information is located at http://www.alsa-project.org/db/?f=a8...209afb77a4733f

Please inform the person helping you.

[root@noentry ~]#

TB0ne 02-23-2017 12:59 PM

Quote:

Originally Posted by procfs (Post 5675101)
Hi I have upgraded to Fedora 25 and my sound is not playing :), below are some details
Code:

[root@noentry ~]# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Intel [HDA Intel], device 0: ALC888 Analog [ALC888 Analog]


You've been asked several times in the past to put CODE tags around such things when posting them. You were also warned several times to NOT LOG IN AS ROOT, but you appear to be doing that too. If you're not going to take advice from us, then why ask questions here????

While the aplay information is good, you omit anything from the log files, dmesg, or other sources, and don't even tell us what kind of hardware (laptop? desktop? external/internal speakers?) you're using. If it was working with another version of Fedora and now isn't, have you checked to see if it's muted?? You don't tell us what desktop environment you're in, but check the mixer/channels, and adjust things. How are you testing this?

Shadow_7 02-23-2017 06:52 PM

$ cat /proc/asound/cards

$ alsamixer -c 0

$ speaker-test -c 2 -l 1

$ groups

The user needs to be in the audio group.
The sound device needs to be un-muted (defaults to muted)
And you need to select which soundcard to use. Everything has a soundcard on it now, and device 0 is by default the default. Which could be your webcam and only has sound input.

$ pavucontrol

If using pulseaudio you can use that application to select your soundcard and adjust the mixer settings. Otherwise you might need a .asoundrc configuration file to change your default soundcard.

procfs 02-24-2017 11:04 AM

Hi Shadow_7, thanks for the reply please see below output

Code:

[root@noentry ~]# cat /proc/asound/cards
 0 [Intel          ]: HDA-Intel - HDA Intel
                      HDA Intel at 0x901c0000 irq 29


$ alsamixer -c 0 - a mixer comes up

$ groups
xxxx audio


$ speaker-test -c 2 -l 1

speaker-test 1.1.1

Playback device is default
Stream parameters are 48000Hz, S16_LE, 2 channels
Using 16 octaves of pink noise
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 96 to 1048576
Period size range from 32 to 349526
Using max buffer size 1048576
Periods = 4
was set period_size = 262144
was set buffer_size = 1048576
 0 - Front Left
 1 - Front Right
Time per period = 10.964049


But sound is not coming :(

This is an onboard sound card on a desktop!

Dmesg | grep audio out put as below

Code:

dmesg | grep audio
[    9.099921] snd_hda_codec_realtek hdaudioC0D2: ALC888: SKU not ready 0x411111f0
[    9.100293] snd_hda_codec_realtek hdaudioC0D2: autoconfig for ALC888: line_outs=1 (0x14/0x0/0x0/0x0/0x0) type:line
[    9.100295] snd_hda_codec_realtek hdaudioC0D2:    speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[    9.100297] snd_hda_codec_realtek hdaudioC0D2:    hp_outs=1 (0x1b/0x0/0x0/0x0/0x0)
[    9.100299] snd_hda_codec_realtek hdaudioC0D2:    mono: mono_out=0x0
[    9.100300] snd_hda_codec_realtek hdaudioC0D2:    inputs:
[    9.100302] snd_hda_codec_realtek hdaudioC0D2:      Front Mic=0x19
[    9.100304] snd_hda_codec_realtek hdaudioC0D2:      Rear Mic=0x18
[    9.100305] snd_hda_codec_realtek hdaudioC0D2:      Line=0x1a

Thanks and Best Regards

TB0ne 02-24-2017 11:50 AM

Quote:

Originally Posted by procfs (Post 5675463)
Hi Shadow_7, thanks for the reply please see below output

But sound is not coming :( This is an onboard sound card on a desktop!

Thank you so much for acknowledging the questions I asked too, procfs. So now that we know it's a desktop, you still haven't told us if you bothered to check to see if it was muted or not, as was suggested to you.

AGAIN: Have you checked the mixer to see if things were muted????

DavidMcCann 02-24-2017 11:58 AM

Unless Fedora has changed a lot since I last saw it, if you use the default Gnome there should be a sound control applet in the menu (under System preferences, or something like that). That will enable you to set the preferred devices for output and input and to set the volume. If you don't have it, install pavucontrol and run that command in a terminal.

TB0ne 02-24-2017 12:02 PM

Quote:

Originally Posted by DavidMcCann (Post 5675487)
Unless Fedora has changed a lot since I last saw it, if you use the default Gnome there should be a sound control applet in the menu (under System preferences, or something like that). That will enable you to set the preferred devices for output and input and to set the volume. If you don't have it, install pavucontrol and run that command in a terminal.

Yep...suggested that to the OP in post #3, the first reply. He apparently ignored that.

jsbjsb001 02-24-2017 12:26 PM

Quote:

Originally Posted by procfs (Post 5675463)
Hi Shadow_7, thanks for the reply please see below output

Code:

[root@noentry ~]# cat /proc/asound/cards
 0 [Intel          ]: HDA-Intel - HDA Intel
                      HDA Intel at 0x901c0000 irq 29


$ alsamixer -c 0 - a mixer comes up

$ groups
xxxx audio


$ speaker-test -c 2 -l 1

speaker-test 1.1.1

Playback device is default
Stream parameters are 48000Hz, S16_LE, 2 channels
Using 16 octaves of pink noise
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 96 to 1048576
Period size range from 32 to 349526
Using max buffer size 1048576
Periods = 4
was set period_size = 262144
was set buffer_size = 1048576
 0 - Front Left
 1 - Front Right
Time per period = 10.964049


But sound is not coming :(

This is an onboard sound card on a desktop!

Dmesg | grep audio out put as below

Code:

dmesg | grep audio
[    9.099921] snd_hda_codec_realtek hdaudioC0D2: ALC888: SKU not ready 0x411111f0
[    9.100293] snd_hda_codec_realtek hdaudioC0D2: autoconfig for ALC888: line_outs=1 (0x14/0x0/0x0/0x0/0x0) type:line
[    9.100295] snd_hda_codec_realtek hdaudioC0D2:    speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[    9.100297] snd_hda_codec_realtek hdaudioC0D2:    hp_outs=1 (0x1b/0x0/0x0/0x0/0x0)
[    9.100299] snd_hda_codec_realtek hdaudioC0D2:    mono: mono_out=0x0
[    9.100300] snd_hda_codec_realtek hdaudioC0D2:    inputs:
[    9.100302] snd_hda_codec_realtek hdaudioC0D2:      Front Mic=0x19
[    9.100304] snd_hda_codec_realtek hdaudioC0D2:      Rear Mic=0x18
[    9.100305] snd_hda_codec_realtek hdaudioC0D2:      Line=0x1a

Thanks and Best Regards

While I have to agree with TB0ne, in that your first step is to make sure the sound is not muted, the following line in your dmesg output, caught my eye;

Code:

[    9.099921] snd_hda_codec_realtek hdaudioC0D2: ALC888: SKU not ready 0x411111f0
A quick Google search of the above, turned up lot of similar results, with the same issues, being no sound.

Have you read any of them?

As from the little I have read of these results, it looks like there could be a clue there.

rtmistler 02-24-2017 12:35 PM

I agree with the thoughts to check the state of mute and other alsa settings. It has been a while for me with alsa. I formerly used amixer but cannot locate any of the scripts I used to ensure all resource were not on mute and also that all resource volume levels were "max" or "100", I think it was 100. I did a brief recheck of the amixer command and if you issue it with no arguments it tells you back the settings. The benefit of this is that it gives you the resources which you can then "set" controls for. The recommended controls would be "mute off" and "volume 100".

procfs 02-24-2017 01:13 PM

Thank you all for the replays, yes going through the google! why I posted this since I need a quick fix to go through some interview related videos!

All controls on alsamixer is at 100%, hope this means its not muted!

Best Regards

TB0ne 02-24-2017 01:23 PM

Quote:

Originally Posted by procfs (Post 5675530)
Thank you all for the replays, yes going through the google! why I posted this since I need a quick fix to go through some interview related videos!

If you need a quick fix, it's probably best to actually answer the questions you were asked, instead of ignoring them until later. You still haven't said what desktop GUI you're using, but do you honestly not know, after eleven years...
Quote:

All controls on alsamixer is at 100%, hope this means its not muted!
...how to check to see if your sound is muted??? All that means is that the levels are at 100%. They can be all the way up AND muted. If you're not familiar with the GUI mixer (probably be something VERY obvious...like a speaker icon with a line through it), then run "alsamixer" from the command-line, press F5 for "All" and look for things with an "MM" at the bottom of the bar.

jsbjsb001 02-24-2017 01:49 PM

Quote:

Originally Posted by procfs (Post 5675530)
Thank you all for the replays, yes going through the google! why I posted this since I need a quick fix to go through some interview related videos!

All controls on alsamixer is at 100%, hope this means its not muted!

Best Regards

What does "going through the google!" mean?? Have you checked what TB0ne has asked?? As there is no way to help you until you provide the requested info.

rtmistler 02-24-2017 01:56 PM

Quote:

Originally Posted by procfs (Post 5675530)
All controls on alsamixer is at 100%, hope this means its not muted!

It does not. It means the volume controls are at 100%. The mute property is a separate attribute setting.

As before, recommend you check the mute setting.

Also please let us know if sound ever worked on this system.

@jsbjsb001: "going through the google" I believe is their way of stating that they tried a web search using the Google search engine. It is also possible that this is a colloquialism and was meant to indicate that they performed a web search, regardless of whatever search engine they chose to use.

procfs 02-24-2017 01:57 PM

I am sorry for the trouble, in my frustration was trying to go about doing everything than just simply following instructions. Surround was muted. thank you all for the help and understanding, it was my mistake!

Thanks you and best regards


All times are GMT -5. The time now is 11:30 AM.