LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 11-28-2016, 08:06 AM   #1
Chronic13
LQ Newbie
 
Registered: Nov 2016
Location: Tokyo
Distribution: Fedora
Posts: 18

Rep: Reputation: Disabled
Question alsa installed but no sound


Installed alsa

Also tried using pavucontrol

Lots of options, but no sound...

I think I need to change my default sound card...
 
Old 11-28-2016, 09:42 AM   #2
erik2282
Member
 
Registered: May 2011
Location: Texas
Distribution: Debian/Ubuntu,CentOS
Posts: 848

Rep: Reputation: 231Reputation: 231Reputation: 231
Have you ran alsamixer and poked around in there?
 
Old 11-28-2016, 11:23 AM   #3
Chronic13
LQ Newbie
 
Registered: Nov 2016
Location: Tokyo
Distribution: Fedora
Posts: 18

Original Poster
Rep: Reputation: Disabled
Yes, I've poked around extensively there. Quite confused.

All of my sound cards are being recognized, yet I'm getting no output from my monitor.

Any suggestions?

Thanks!
 
Old 11-28-2016, 12:10 PM   #4
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Salix
Posts: 6,185

Rep: Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325
Have you made sure the sound isn't set to "mute" in whatever volume control is provided? Fedora used to have something in System Preferences. It seems silly, but I've seen distros that actually install like that!
 
Old 11-28-2016, 12:18 PM   #5
Chronic13
LQ Newbie
 
Registered: Nov 2016
Location: Tokyo
Distribution: Fedora
Posts: 18

Original Poster
Rep: Reputation: Disabled
Lightbulb

Thank you for your suggestion. I am fairly certain the system is not muted.

Perhaps the following code will help shine a light on what's going on.

Code:
[root@localhost user]# lspci -nnk | grep -i -A7 audio
00:1b.0 Audio device [0403]: Intel Corporation 9 Series Chipset Family HD Audio Controller [8086:8ca0]
	Subsystem: ASUSTeK Computer Inc. Device [1043:860b]
	Kernel driver in use: snd_hda_intel
	Kernel modules: snd_hda_intel
00:1c.0 PCI bridge [0604]: Intel Corporation 9 Series Chipset Family PCI Express Root Port 1 [8086:8c90] (rev d0)
	Kernel driver in use: pcieport
	Kernel modules: shpchp
00:1c.3 PCI bridge [0604]: Intel Corporation 82801 PCI Bridge [8086:244e] (rev d0)
--
02:00.1 Audio device [0403]: NVIDIA Corporation GM204 High Definition Audio Controller [10de:0fbb] (rev a1)
	Subsystem: eVga.com. Corp. Device [3842:2983]
	Kernel driver in use: snd_hda_intel
	Kernel modules: snd_hda_intel
04:00.0 PCI bridge [0604]: ASMedia Technology Inc. ASM1083/1085 PCIe to PCI Bridge [1b21:1080] (rev 04)
06:00.0 Network controller [0280]: Broadcom Limited BCM4360 802.11ac Wireless Network Adapter [14e4:43a0] (rev 03)
	Subsystem: ASUSTeK Computer Inc. Device [1043:85df]
	Kernel driver in use: bcma-pci-bridge
Code:
[root@localhost user]# lsmod | grep snd
snd_hda_codec_hdmi     45056  1
snd_hda_codec_realtek    86016  1
snd_hda_codec_generic    73728  1 snd_hda_codec_realtek
snd_hda_intel          36864  11
snd_hda_codec         126976  4 snd_hda_intel,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_codec_realtek
snd_hda_core           81920  5 snd_hda_intel,snd_hda_codec,snd_hda_codec_hdmi,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  4 snd_hda_intel,snd_hda_codec,snd_hda_core,snd_hda_codec_hdmi
snd_timer              32768  2 snd_seq,snd_pcm
snd                    86016  32 snd_hda_intel,snd_hwdep,snd_seq,snd_hda_codec,snd_timer,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_seq_device,snd_hda_codec_realtek,snd_pcm
soundcore              16384  1 snd
Code:
[root@localhost user]# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC892 Analog [ALC892 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 1: ALC892 Digital [ALC892 Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 9: HDMI 3 [HDMI 3]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
Code:
[root@localhost user]# dmesg | grep -iC 3 "audio"
[   27.313992] asus_wmi: BIOS WMI version: 0.9
[   27.314010] asus_wmi: SFUN value: 0x0
[   27.314087] snd_hda_intel 0000:02:00.1: Disabling MSI
[   27.314091] snd_hda_intel 0000:02:00.1: Handle vga_switcheroo audio client
[   27.314252] input: Eee PC WMI hotkeys as /devices/platform/eeepc-wmi/input/input13
[   27.314362] asus_wmi: Number of fans: 1
[   27.323550] vgaarb: device changed decodes: PCI:0000:02:00.0,olddecodes=io+mem,decodes=none:owns=io+mem
[   27.323610] nvidia-nvlink: Nvlink Core is being initialized, major device number 241
[   27.323620] NVRM: loading NVIDIA UNIX x86_64 Kernel Module  375.20  Tue Nov 15 16:49:10 PST 2016 (using threaded interrupts)
[   27.353826] snd_hda_codec_realtek hdaudioC0D0: autoconfig for ALC892: line_outs=3 (0x14/0x15/0x16/0x0/0x0) type:line
[   27.353827] snd_hda_codec_realtek hdaudioC0D0:    speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[   27.353828] snd_hda_codec_realtek hdaudioC0D0:    hp_outs=1 (0x1b/0x0/0x0/0x0/0x0)
[   27.353828] snd_hda_codec_realtek hdaudioC0D0:    mono: mono_out=0x0
[   27.353829] snd_hda_codec_realtek hdaudioC0D0:    dig-out=0x11/0x1e
[   27.353829] snd_hda_codec_realtek hdaudioC0D0:    inputs:
[   27.353830] snd_hda_codec_realtek hdaudioC0D0:      Front Mic=0x19
[   27.353831] snd_hda_codec_realtek hdaudioC0D0:      Rear Mic=0x18
[   27.353831] snd_hda_codec_realtek hdaudioC0D0:      Line=0x1a
[   27.359998] nvidia-modeset: Loading NVIDIA Kernel Mode Setting Driver for UNIX platforms  375.20  Tue Nov 15 16:43:27 PST 2016
[   27.363398] [drm] [nvidia-drm] [GPU ID 0x00000200] Loading driver
[   27.367622] input: HDA Intel PCH Front Mic as /devices/pci0000:00/0000:00:1b.0/sound/card0/input14
--
[   30.937207] NVRM: drivers including, but not limited to, vesafb, may result in
[   30.937207] NVRM: corruption and stability problems, and is not supported.
[   30.937682] nvidia-modeset: Allocated GPU:0 (GPU-bf7ec85b-16ba-7fa4-4828-abdbcd9d5178) @ PCI:0000:02:00.0
[   31.018095] snd_hda_codec_hdmi hdaudioC1D0: HDMI: invalid ELD data byte 6
[   31.911061] e1000e: eno1 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: Rx/Tx
[   31.911089] IPv6: ADDRCONF(NETDEV_CHANGE): eno1: link becomes ready
[   49.131494] snd_hda_codec_hdmi hdaudioC1D0: HDMI: invalid ELD data byte 0
[   49.327483] snd_hda_codec_hdmi hdaudioC1D0: HDMI: invalid ELD data byte 40
[   49.745266] fuse init (API version 7.25)
[ 6423.841569] snd_hda_codec_hdmi hdaudioC1D0: HDMI: invalid ELD data byte 9
[11673.264098] snd_hda_codec_hdmi hdaudioC1D0: HDMI: invalid ELD data byte 5
[13611.794689] snd_hda_codec_hdmi hdaudioC1D0: HDMI: invalid ELD data byte 3
[13831.911765] show_signal_msg: 189 callbacks suppressed
[13831.911767] WebKitWebProces[5974]: segfault at 1570 ip 00007f087a945809 sp 00007ffd77175f78 error 4 in libGLdispatch.so.0.0.0[7f087a945000+19000]
Thank you!
 
Old 11-28-2016, 12:50 PM   #6
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,643

Rep: Reputation: 2653Reputation: 2653Reputation: 2653Reputation: 2653Reputation: 2653Reputation: 2653Reputation: 2653Reputation: 2653Reputation: 2653Reputation: 2653Reputation: 2653
A few very IMPORTANT things you left out
WHAT IS THE OPERATING SYSTEM?
and its version !

WHAT is the desktop??
gnome is VERY different than KDE for sound
 
Old 11-28-2016, 12:59 PM   #7
Chronic13
LQ Newbie
 
Registered: Nov 2016
Location: Tokyo
Distribution: Fedora
Posts: 18

Original Poster
Rep: Reputation: Disabled
My apologies.

Operating system is Fedora 24 Version 4.8.8-200

Code:
uname -a
Linux localhost.localdomain 4.8.8-200.fc24.x86_64 #1 SMP Tue Nov 15 19:41:51 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
Desktop: gnome

Thanks!
 
Old 11-28-2016, 01:51 PM   #8
techboy317
LQ Newbie
 
Registered: Oct 2016
Posts: 5

Rep: Reputation: Disabled
Quote:
Originally Posted by Chronic13 View Post
Installed alsa
Try PulseAudio?
 
Old 11-28-2016, 02:08 PM   #9
notKlaatu
Senior Member
 
Registered: Sep 2010
Location: Lawrence, New Zealand
Distribution: Slackware
Posts: 1,077

Rep: Reputation: 733Reputation: 733Reputation: 733Reputation: 733Reputation: 733Reputation: 733Reputation: 733
What is your default soundcard? Try creating a file ~/.asoundrc to define what sound card you want ALSA to default to. Assuming you want to use your computer's soundcard and not HDMI (you don't actually specify which you want, so I'm assuming), the file should contain something like this:

Code:
defaults.ctl.card 0
defaults.pcm.card 0
defaults.timer.card 0

pcm.!default {
type hw
card 0
device 0
}

ctl.!default {
type hw
card 0
device 0
}

pcm.dsp {
type plug
slave.pcm "dmix"
}
You might want to reboot for safety (or you can opt to restart ALSA and Pulse, if you're a strict Non-Rebootian).

Once logged back in, re-check ALSA mixer to ensure volumes are up and everything's non muted.

Then open pavucontrol and check the Configuration tab: turn OFF the HDMI device and activate the Built-In Audio option (a likely setting is Analog Stereo Duplex, such that your internal soundcard is serving both input and output).

Check the Output Devices tab: make sure your output device is set to your speakers or headphones or whatever it is you want sound from (again, you have not specified this in your question, so I'm assuming).

Leave pavucontrol open so you can see output levels.

Open some sound application (you don't specify in your question what you are testing with). Go into its preferences and make sure it's using Pulse Audio as its output device. If no Pulse is listed, fallback on ALSA.

Play some sound.

In general, this is a pretty good overview of the Linux Audio experience, from understanding to configuring to troubleshooting. It may be helpful: http://slackermedia.info/handbook/do...?id=linuxaudio
 
1 members found this post helpful.
Old 11-28-2016, 09:59 PM   #10
c0wb0y
Member
 
Registered: Jan 2012
Location: Inside the oven
Distribution: Windows
Posts: 421

Rep: Reputation: 74
Try this:

Code:
alsactl init && alsactl store
 
Old 11-28-2016, 10:00 PM   #11
c0wb0y
Member
 
Registered: Jan 2012
Location: Inside the oven
Distribution: Windows
Posts: 421

Rep: Reputation: 74
Try this:

Code:
alsactl init && alsactl store
 
Old 11-28-2016, 11:03 PM   #12
Chronic13
LQ Newbie
 
Registered: Nov 2016
Location: Tokyo
Distribution: Fedora
Posts: 18

Original Poster
Rep: Reputation: Disabled
Smile

Thank you all for your suggestions.

notKlaatu - I made the file as you suggested and I was able to choose my default sound card. After a reboot (I'm no non-rebootian), I am hearing sound for the first time.

One thing I do find curious though is under Configuration, I am getting sound on the profile Digital Stereo (HDMI2) Output

Since I know I don't have any HDMI ports currently being used, I find it odd that it's mislabelled.

Under the Output Devices tab, It does say HDMI / DisplayPort 2 (plugged in), but it threw me for a bit.

Thanks again!
 
1 members found this post helpful.
Old 02-04-2024, 01:40 PM   #13
teraspora
LQ Newbie
 
Registered: Feb 2024
Posts: 2

Rep: Reputation: 0
Similar issue solved with ~/.asoundrc file

# Persistent Audio issue in Fedora 39

## Overview
- After a reboot, suddenly I had no sound at all in Chrome. I had previously had similar issues in Fedora 37 and 38, which after a lot of messing around with various PulseAudio and Pipewire services and configuration finally were resolved (by which I mean sound started working again in Chrome and sox), though it was never clear to me what had fixed it. I should mention, in addition, that the sound has not worked for me in Firefox since about Fedora 36 a couple of years ago! And when I said 'resolved', it still did not work in Firefox.
- However, it nearly always seems to work in VLC 3, but does not work in the VLC 4.0 preview.
- - The Gnome sound settings panel reports 'No Output Devices' and 'No Input Devices'.
- Also no sound from sox, which reported as follows:

Code:
17:00: ~ ⦿ sox --version
sox:      SoX v14.4.2

17:00: ~ ⦿ play -n synth pl G2 pl B2 pl D3 pl G3 pl D4 pl G4 delay 0 .05 .1 .15 .2 .25 remix - fade 0 4 .1 norm -1play FAIL ao: startwrite [ao driver]: Corrupted encoding data (bits per sample should not be zero)
play FAIL sox: Sorry, there is no default audio device configured
- OS Details:

Code:
17:09: ~ ⦿ hostnamectl 
     Static hostname: (unset)                              
  Transient hostname: fedora
           Icon name: computer-laptop
             Chassis: laptop ��
          Machine ID: a561a5a1e0e34a26bd82773ea8091dae
             Boot ID: 6b64b9f8220b4d28b25a243377354d8c
    Operating System: Fedora Linux 39 (Workstation Edition)
         CPE OS Name: cpe:/o:fedoraproject:fedora:39
      OS Support End: Tue 2024-11-12
OS Support Remaining: 9month 1w
              Kernel: Linux 6.6.14-200.fc39.x86_64
        Architecture: x86-64
     Hardware Vendor: ASUSTeK COMPUTER INC.
      Hardware Model: FX503VD
    Firmware Version: FX503VD.310
       Firmware Date: Thu 2020-07-16
        Firmware Age: 3y 6month 2w 6d
- `pavucontrol` brings up a 'Volume Control' window, which just says 'Establishing connection to Pulseaudio. Please wait...' eternally. Nothing changes, I have waited 20 minutes!
- I do seem to have an audio device configured:

Code:
17:03: ~ ⦿ lspci|grep -i audio
00:1f.3 Audio device: Intel Corporation CM238 HD Audio Controller (rev 31)

17:05: ~ ⦿ lsmod|grep -Ei 'sound|snd|audio'
snd_seq_dummy          12288  0
snd_hrtimer            12288  1
snd_hda_codec_hdmi     94208  1
snd_soc_avs           221184  0
snd_soc_hda_codec      28672  1 snd_soc_avs
snd_hda_ext_core       36864  2 snd_soc_avs,snd_soc_hda_codec
snd_soc_core          458752  2 snd_soc_avs,snd_soc_hda_codec
snd_compress           28672  2 snd_soc_avs,snd_soc_core
ac97_bus               12288  1 snd_soc_core
snd_pcm_dmaengine      16384  1 snd_soc_core
snd_hda_codec_realtek   196608  1
snd_hda_codec_generic   114688  1 snd_hda_codec_realtek
snd_hda_intel          65536  4
snd_intel_dspcfg       40960  2 snd_soc_avs,snd_hda_intel
snd_intel_sdw_acpi     16384  1 snd_intel_dspcfg
snd_hda_codec         225280  6 snd_hda_codec_generic,snd_soc_avs,snd_hda_codec_hdmi,snd_soc_hda_codec,snd_hda_intel,snd_hda_codec_realtek
snd_hda_core          151552  8 snd_hda_codec_generic,snd_soc_avs,snd_hda_codec_hdmi,snd_soc_hda_codec,snd_hda_intel,snd_hda_ext_core,snd_hda_codec,snd_hda_codec_realtek
snd_hwdep              20480  1 snd_hda_codec
snd_seq               126976  7 snd_seq_dummy
snd_seq_device         16384  1 snd_seq
snd_pcm               184320  8 snd_soc_avs,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_compress,snd_soc_core,snd_hda_core,snd_pcm_dmaengine
snd_timer              53248  3 snd_seq,snd_hrtimer,snd_pcm
snd                   155648  22 snd_hda_codec_generic,snd_seq,snd_seq_device,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek,snd_timer,snd_compress,snd_soc_core,snd_pcm
soundcore              16384  1 snd
ledtrig_audio          12288  2 snd_hda_codec_generic,asus_wmi

17:06: ~ ⦿ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC295 Analog [ALC295 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [DELL U2717D]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
- I have tried swapping out Pipewire for Pulseaudio, and back again, but this seems to make no difference.
- I am now tending to think this is probably a deeper issue. The only app I can get to play audio is VLC 3. Chrome, Firefox and RhythmBox have none.
- Just to say, of course I have checked my levels/muting in `alsamixer`!
- I'm now feeling a bit stuck and don't know what to try. Any ideas please?

## Update

- I followed the advice from **notKlaatu** on https://www.linuxquestions.org/quest...nd-4175594359/ to create the file
Code:
~/.asoundrc
, and after rebooting, sound returned in Chrome, VLC 3, sox and Rhythmbox - but not in Firefox!
Code:
17:52: ~ ⧓ play -n synth pl G2 pl B2 pl D3 pl G3 pl D4 pl G4 delay 0 .05 .1 .15 .2 .25 remix - fade 0 4 .1 norm -1play WARN alsa: can't encode 0-bit Unknown or not applicable

 File Size: 141T      
  Encoding: n/a           
  Channels: 6 @ 32-bit   
Samplerate: 48000Hz      
Replaygain: off         
  Duration: unknown      

In:0.00% 00:00:04.01 [00:00:00.00] Out:192k  [      |      ]        Clip:0    
Done.
- PulseAudio Volume Control, though, still says, interminably, 'Establishing connection to Pulseaudio. Please wait...'. And Gnome settings still shows no devices.
- So thank you notKlaatu! But the bigger question is, why has this been happening in the first place and why is it still not fully resolved, with sound in some apps but not others, and the audio device not being detected by pavucontrol and Gnome Sound Settings?

Last edited by teraspora; 02-04-2024 at 01:55 PM. Reason: typo
 
Old 02-06-2024, 08:17 AM   #14
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 6,175
Blog Entries: 1

Rep: Reputation: 2159Reputation: 2159Reputation: 2159Reputation: 2159Reputation: 2159Reputation: 2159Reputation: 2159Reputation: 2159Reputation: 2159Reputation: 2159Reputation: 2159
Quite unfortunately, Firefox requires pulse, even though pipewire and other methods provide superior quality. However, ~3.5 MiB pulseaudio is not required if you start Firefox with apulse, a ~130.0 KiB package which provides "PulseAudio emulation intended to be used with Firefox and Skype".
 
  


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
Debian Jessie - Have Pulseaudio and ALSA installed. Everything is unmuted and settings show sound outputting but no sound actually playing. jjd3592 Linux - Software 12 03-07-2016 08:10 AM
No sound with a CM8738 sound card -- alsa installed istar80 Linux - Hardware 1 06-17-2005 03:02 PM
no sound in Fedora, ALSA is installed Hockeyfan Linux - Software 4 05-15-2004 02:54 AM
ALSA installed, still no sound //alias Linux - Newbie 4 07-01-2003 03:34 PM
alsa installed, but no sound? neenee Slackware 34 04-29-2003 03:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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
Open Source Consulting | Domain Registration