sound card not recognized or configured properly Opensuse leap 42.2

Hi I am Rupesh from India. I have installed Opensuse leap 42.2 on my system and everything are working fine except I am not getting sound I mean very very low volume from speakers.

After installation of os I have installed codecs and after that I have tried to play some music files and I observed I am getting low volume from speakers. I have examined sound entry from yast and I have noticed that sound card not configured and found options such as add edit etc.,.

Previously I have installed the same os and used nicely and accidentally deleted in partition manager but at present I am unable to play music.

I am providing the output of the command and its output below


# lspci | grep audio
00:14.2 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI] SBx00 Azalia (Intel HDA) [1002:4383]

I have tried to compile audio driver’s from realtek but I got errors.

Please suggest how to configure the sound card properly.

There should be no need to edit the config if sound is working (even at a low level). It is more likely to be related to the mixer levels, so I recommend making sure that all levels are set appropriately. Install ‘pavucontrol’ (if it isn’t already) and check the levels from there.

It might also pay to check the pavucontrol ‘Configuration’ tab to make sure that the appropriate profile is set (surround sound, stereo output etc).

I am unable to see any entries in audio mixer. All the entries in pulse audio controller are null.

I am able to play music in other operating system Windows.

Run the alsa-info.sh diagnostic script. It will upload the output it generates to an online server, and provide a link to it that you can post here.

https://en.opensuse.org/SDB:Audio_troubleshooting#Script_to_run_to_obtain_detailed_information

I agree with deano_ferrari … this is likely an alsa mixer or a pulse audio volume control setting that is incorrect.

As noted by deano_ferrari you can get more information on pulse audio settings via the application “pavucontrol” (pulse audio volume control).

You can obtain your mixer settings (in a konsole) by typing (for card-0) as a regular user (NOT as root) :


amixer -c0

or card-1 (as a regular user)


amixer -c1

or if totally confused wrt card definitions run (with pc connected to internet) as a regular user, in a konsole the following command:


/usr/sbin/alsa-info.sh

select the SHARE/UPLOAD option when prompted. Allow the script to run to completion. In the konsole will be a URL/web-address where PC audio configuration was uploaded to. Simply share that web-address and we can point out any incorrect mixer settings.
.

I have issued the command amixer -c0 and amixer -c1 as non root user for both I got the output as below


Device-E21ECF:~/Downloads # su rupeshforu3
rupeshforu3@Device-E21ECF:/root/Downloads> amixer -c0
Invalid card number.
Usage: amixer <options> [command]

Available options:
  -h,--help       this help
  -c,--card N     select the card
  -D,--device N   select the device, default 'default'
  -d,--debug      debug mode
  -n,--nocheck    do not perform range checking
  -v,--version    print version of this program
  -q,--quiet      be quiet
  -i,--inactive   show also inactive controls
  -a,--abstract L select abstraction level (none or basic)
  -s,--stdin      Read and execute commands from stdin sequentially
  -R,--raw-volume Use the raw value (default)
  -M,--mapped-volume Use the mapped volume

Available commands:
  scontrols       show all mixer simple controls
  scontents       show contents of all mixer simple controls (default command)
  sset sID P      set contents for one mixer simple control
  sget sID        get contents for one mixer simple control
  controls        show all controls for given card
  contents        show contents of all controls for given card
  cset cID P      set control contents for one control
  cget cID        get control contents for one control
rupeshforu3@Device-E21ECF:/root/Downloads> amixer -c1
Invalid card number.
Usage: amixer <options> [command]

Available options:
  -h,--help       this help
  -c,--card N     select the card
  -D,--device N   select the device, default 'default'
  -d,--debug      debug mode
  -n,--nocheck    do not perform range checking
  -v,--version    print version of this program
  -q,--quiet      be quiet
  -i,--inactive   show also inactive controls
  -a,--abstract L select abstraction level (none or basic)
  -s,--stdin      Read and execute commands from stdin sequentially
  -R,--raw-volume Use the raw value (default)
  -M,--mapped-volume Use the mapped volume

Available commands:
  scontrols       show all mixer simple controls
  scontents       show contents of all mixer simple controls (default command)
  sset sID P      set contents for one mixer simple control
  sget sID        get contents for one mixer simple control
  controls        show all controls for given card
  contents        show contents of all controls for given card
  cset cID P      set control contents for one control
  cget cID        get control contents for one control
rupeshforu3@Device-E21ECF:/root/Downloads> whoami 
rupeshforu3
rupeshforu3@Device-E21ECF:/root/Downloads> 

I have issued the command ***/usr/sbin/alsa-info.sh ***and its output I am providing below


cat: /proc/asound/version: No such file or directory
grep: /proc/asound/cards: No such file or directory
cat: /proc/asound/cards: No such file or directory
pcilib: sysfs_read_vpd: read failed: Input/output error
cat: /proc/asound/modules: No such file or directory
ls: cannot access '/dev/snd/*': No such file or directory
grep: /proc/asound/cards: No such file or directory
/usr/sbin/alsactl: save_state:1595: No soundcards found...
cat: /tmp/alsa-info.45FYfjSpmS/alsactl.tmp: No such file or directory

After that it has displayed automatically upload alsa information to www.alsa-project.org I have selected save to local and it saved to /tmp/alsa-info.txt.3IZpRKubT2 of which I am providing its content below


upload=true&script=true&cardinfo=
!!################################
!!ALSA Information Script v 0.4.64
!!################################

!!Script ran on: Thu Jun  8 21:58:28 UTC 2017


!!Linux Distribution
!!------------------

Welcome to openSUSE Leap 42.2 - Kernel \r (\l). openSUSE 42.2 (x86_64) # /etc/SuSE-release is deprecated and will be removed in the future, use /etc/os-release instead NAME="openSUSE Leap" ID=opensuse ID_LIKE="suse" PRETTY_NAME="openSUSE Leap 42.2" CPE_NAME="cpe:/o:opensuse:leap:42.2" BUG_REPORT_URL="https://bugs.opensuse.org" HOME_URL="https://www.opensuse.org/"


!!DMI Information
!!---------------

Manufacturer:      Gigabyte Technology Co., Ltd.
Product Name:      GA-78LMT-S2PT
Product Version:    
Firmware Version:  F2


!!Kernel Information
!!------------------

Kernel release:    4.4.27-2-default
Operating System:  GNU/Linux
Architecture:      x86_64
Processor:         x86_64
SMP Enabled:       Yes


!!ALSA Version
!!------------

Driver version:     
Library version:    1.1.2
Utilities version:  1.1.2


!!Loaded ALSA modules
!!-------------------



!!Sound Servers on this system
!!----------------------------

Pulseaudio:
      Installed - Yes (/usr/bin/pulseaudio)
      Running - No

ESound Daemon:
      Installed - Yes (/usr/bin/esd)
      Running - No


!!Soundcards recognised by ALSA
!!-----------------------------



!!PCI Soundcards installed in the system
!!--------------------------------------

00:14.2 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] SBx00 Azalia (Intel HDA)


!!Advanced information - PCI Vendor/Device/Subsystem ID's
!!-------------------------------------------------------

00:14.2 0403: 1002:4383
    Subsystem: 1458:a002


!!Loaded sound module options
!!---------------------------


!!ALSA Device nodes
!!-----------------



!!Aplay/Arecord output
!!--------------------

APLAY

aplay: device_list:268: no soundcards found...

ARECORD

arecord: device_list:268: no soundcards found...

!!Amixer output
!!-------------


!!Alsactl output
!!--------------

--startcollapse--
--endcollapse--


!!All Loaded Modules
!!------------------

Module
af_packet
rndis_wlan
rndis_host
cdc_ether
usbnet
cfg80211
mii
rfkill
nls_iso8859_1
nls_cp437
vfat
fat
uas
usb_storage
nls_utf8
isofs
fuse
nf_log_ipv6
xt_pkttype
nf_log_ipv4
nf_log_common
xt_LOG
xt_limit
ip6t_REJECT
nf_reject_ipv6
xt_tcpudp
nf_conntrack_ipv6
nf_defrag_ipv6
ip6table_raw
ipt_REJECT
nf_reject_ipv4
iptable_raw
xt_CT
iptable_filter
ip6table_mangle
nf_conntrack_netbios_ns
nf_conntrack_broadcast
nf_conntrack_ipv4
nf_defrag_ipv4
ip_tables
xt_conntrack
nf_conntrack
ip6table_filter
ip6_tables
x_tables
kvm_amd
kvm
irqbypass
atl1c
sp5100_tco
8250_fintek
shpchp
i2c_piix4
edac_mce_amd
ppdev
k10temp
fam15h_power
edac_core
crct10dif_pclmul
parport_pc
crc32_pclmul
parport
fjes
acpi_cpufreq
crc32c_intel
drbg
serio_raw
pcspkr
ansi_cprng
processor
button
aesni_intel
aes_x86_64
lrw
gf128mul
glue_helper
ablk_helper
cryptd
ext4
crc16
jbd2
mbcache
hid_generic
usbhid
sd_mod
sr_mod
cdrom
ata_generic
ohci_pci
amdkfd
amd_iommu_v2
ahci
libahci
pata_atiixp
ohci_hcd
radeon
ehci_pci
ehci_hcd
i2c_algo_bit
usbcore
drm_kms_helper
usb_common
syscopyarea
sysfillrect
sysimgblt
fb_sys_fops
ttm
libata
drm
sg
scsi_mod
autofs4


!!ALSA/HDA dmesg
!!--------------

please suggest how to configure sound card

I have issued the command ***/usr/sbin/alsa-info.sh ***and its output I am providing below

After that it has displayed automatically upload alsa information to www.alsa-project.org I have selected save to local and it saved to /tmp/alsa-info.txt.3IZpRKubT2 of which I am providing its content below

There is no sound driver loaded so there won’t be any sound! PulseAudio isn’t running because of this as well.

I’m puzzled about why snd-hda-intel is not loaded automatically as expected, yet in your opening post you stated that you had sound albeit at a very low volume (which is a separate issue). Anyway, capture what is reported (if anything) by the following

dmesg|snd

You could try loading the driver manually

modprobe snd-hda-intel

then check mixer levels again

amixer -c0

If that checks out try configuring the sound card explicitly via YaST > Hardware > Sound

Am Thu, 08 Jun 2017 22:06:02 GMT
schrieb deano ferrari <deano_ferrari@no-mx.forums.microfocus.com>:

> Code:
> --------------------
> dmesg|snd
> --------------------

I am pretty sure deano meant

Code:

dmesg | grep snd

or am I wrong?

AK


Never attribute to malice that which can be adequately explained by stupidity.
(R.J. Hanlon)

Thanks Akoellh. Yes I did mean

dmesg | grep snd

After installation of os I have tried to play mp3 files I got very low volume from speakers and so I have tried to install realtek drivers source code and I got errors and after that I have again tried to play music and this time there is no output from speakers at all.

I am providing the output of the commands specified by you below


Device-0003A1:~ # modprobe snd-hda-intel
modprobe: FATAL: Module snd-hda-intel not found.
Device-0003A1:~ # amixer -c0
Invalid card number.
Usage: amixer <options> [command]

Available options:
  -h,--help       this help
  -c,--card N     select the card
  -D,--device N   select the device, default 'default'
  -d,--debug      debug mode
  -n,--nocheck    do not perform range checking
  -v,--version    print version of this program
  -q,--quiet      be quiet
  -i,--inactive   show also inactive controls
  -a,--abstract L select abstraction level (none or basic)
  -s,--stdin      Read and execute commands from stdin sequentially
  -R,--raw-volume Use the raw value (default)                                                                  
  -M,--mapped-volume Use the mapped volume                                                                     
                                                                                                               
Available commands:                                                                                            
  scontrols       show all mixer simple controls                                                               
  scontents       show contents of all mixer simple controls (default command)                                 
  sset sID P      set contents for one mixer simple control                                                    
  sget sID        get contents for one mixer simple control                                                    
  controls        show all controls for given card                                                             
  contents        show contents of all controls for given card                                                 
  cset cID P      set control contents for one control                                                         
  cget cID        get control contents for one control                                                         
Device-0003A1:~ # dmesg | grep snd
Device-0003A1:

There was no point running amixer again after you got this error message


Device-0003A1:~ # modprobe snd-hda-intel
modprobe: FATAL: Module snd-hda-intel not found.

Clearly the module is missing, and based on what you’ve stated here

you’ve managed to remove the driver that comes as part of the kernel package. As such the easiest thing to do is reinstall the kernel-default package I think

zypper in --force kernel-default

the reboot.

That should return your missing sound module. After that, you can post the mixer levels again.

I have performed what you suggested.

At present I am able to get sound from speakers but when I see sound entry from fast it is showing as sound card not configured.

That’s because it isn’t… and it may not need to be. Is the sound level adequate now? What you now need to do is return to providing us the mixer levels.

Volume levels are ok but I am unable to get maximum output as in Windows 8.

I have another question ie., is my sound card realtek or Intel hda. Previously I mean in opensuse 12.3 I have compiled realtek source code and it worked at its best.

Ok, but you haven’t shared your current mixer levels yet.

I have another question ie., is my sound card realtek or Intel hda. Previously I mean in opensuse 12.3 I have compiled realtek source code and it worked at its best.

It is the chipset details that count here. The vendor ID is 1002 (AMD/ATI). The product ID (4383) pertains to device model built to the Azalia (Intel HDA) specification. The Linux kernel ‘snd-hda-intel’ driver supports this chipset (amongst many others).

Intel High Definition Audio (also called HD Audio or Azalia) is a specification for the audio sub-system of personal computers. It was released by Intel in 2004 as successor to their AC’97 PC audio standard.[1]](Intel High Definition Audio - Wikipedia) During development it had the codename “Azalia”.

As deano_ferrari noted, if you wish us to help here you need to share your mixer levels. I described how to do that in an above post … which I will repeat here to make it easier for you. [INDENT=2]
You can obtain your mixer settings (in a konsole) by typing (for card-0) as a regular user (NOT as root) :


amixer -c0

or card-1 (as a regular user)


amixer -c1

or if totally confused wrt card definitions run (with pc connected to internet) as a regular user, in a konsole the following command:


/usr/sbin/alsa-info.sh

select the SHARE/UPLOAD option when prompted. Allow the script to run to completion. In the konsole will be a URL/web-address where PC audio configuration was uploaded to. Simply share that web-address and we can point out any incorrect mixer settings.
[/INDENT]
.

I am providing the output of amixer below


Device-EDDC62:~ # amixer -c0
Simple mixer control 'Master',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 64
  Mono: Playback 64 [100%] [0.00dB] [on]
Simple mixer control 'Headphone',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 64
  Mono:
  Front Left: Playback 64 [100%] [0.00dB] [on]
  Front Right: Playback 64 [100%] [0.00dB] [on]
Simple mixer control 'PCM',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 255
  Mono:
  Front Left: Playback 255 [100%] [0.00dB]
  Front Right: Playback 255 [100%] [0.00dB]
Simple mixer control 'Front',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 64
  Mono:
  Front Left: Playback 64 [100%] [0.00dB] [on]
  Front Right: Playback 64 [100%] [0.00dB] [on]
Simple mixer control 'Front Mic',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono:
  Front Left: Playback 0 [0%] -34.50dB] [off]
  Front Right: Playback 0 [0%] -34.50dB] [off]
Simple mixer control 'Front Mic Boost',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 3
  Front Left: 0 [0%] [0.00dB]
  Front Right: 0 [0%] [0.00dB]
Simple mixer control 'Surround',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 64
  Mono:
  Front Left: Playback 64 [100%] [0.00dB] [on]
  Front Right: Playback 64 [100%] [0.00dB] [on]
Simple mixer control 'Center',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 64
  Mono: Playback 64 [100%] [0.00dB] [on]
Simple mixer control 'LFE',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 64
  Mono: Playback 64 [100%] [0.00dB] [on]
Simple mixer control 'Line',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono:
  Front Left: Playback 0 [0%] -34.50dB] [off]
  Front Right: Playback 0 [0%] -34.50dB] [off]
Simple mixer control 'Line Boost',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 3
  Front Left: 0 [0%] [0.00dB]
  Front Right: 0 [0%] [0.00dB]
Simple mixer control 'CD',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono:
  Front Left: Playback 0 [0%] -34.50dB] [off]
  Front Right: Playback 0 [0%] -34.50dB] [off]
Simple mixer control 'Beep',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono:
  Front Left: Playback 0 [0%] -34.50dB] [off]
  Front Right: Playback 0 [0%] -34.50dB] [off]
Simple mixer control 'Capture',0
  Capabilities: cvolume cswitch
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 46
  Front Left: Capture 28 [61%] [12.00dB] [on]
  Front Right: Capture 28 [61%] [12.00dB] [on]
Simple mixer control 'Capture',1
  Capabilities: cvolume cswitch
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 46
  Front Left: Capture 0 [0%] -16.00dB] [off]
  Front Right: Capture 0 [0%] -16.00dB] [off]
Simple mixer control 'Channel Mode',0
  Capabilities: enum
  Items: '2ch' '4ch' '6ch'
  Item0: '2ch'
Simple mixer control 'Digital',0
  Capabilities: cvolume
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 120
  Front Left: Capture 60 [50%] [0.00dB]
  Front Right: Capture 60 [50%] [0.00dB]
Simple mixer control 'Input Source',0
  Capabilities: cenum
  Items: 'Rear Mic' 'Front Mic' 'Line' 'CD'
  Item0: 'Rear Mic'
Simple mixer control 'Input Source',1
  Capabilities: cenum
  Items: 'Rear Mic' 'Front Mic' 'Line' 'CD'
  Item0: 'Rear Mic'
Simple mixer control 'Loopback Mixing',0
  Capabilities: enum
  Items: 'Disabled' 'Enabled'
  Item0: 'Disabled'
Simple mixer control 'Rear Mic',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono:
  Front Left: Playback 0 [0%] -34.50dB] [off]
  Front Right: Playback 0 [0%] -34.50dB] [off]
Simple mixer control 'Rear Mic Boost',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 3
  Front Left: 0 [0%] [0.00dB]
  Front Right: 0 [0%] [0.00dB]
Device-EDDC62:~ # amixer -c1
Invalid card number.
Usage: amixer <options> [command]

Available options:
  -h,--help       this help
  -c,--card N     select the card
  -D,--device N   select the device, default 'default'
  -d,--debug      debug mode
  -n,--nocheck    do not perform range checking
  -v,--version    print version of this program
  -q,--quiet      be quiet
  -i,--inactive   show also inactive controls
  -a,--abstract L select abstraction level (none or basic)
  -s,--stdin      Read and execute commands from stdin sequentially
  -R,--raw-volume Use the raw value (default)
  -M,--mapped-volume Use the mapped volume

Available commands:
  scontrols       show all mixer simple controls
  scontents       show contents of all mixer simple controls (default command)
  sset sID P      set contents for one mixer simple control
  sget sID        get contents for one mixer simple control
  controls        show all controls for given card
  contents        show contents of all controls for given card
  cset cID P      set control contents for one control
  cget cID        get control contents for one control
Device-EDDC62:~ # 

I am providing the address generated by alsa-info.sh

http://www.alsa-project.org/db/?f=49b98fc8aa1b66a8659d95b0e98010d94555b829 

The mixer setting looks ok - and volume controls in alsa are maxed out.

What I suggest next is you check the volume levels in ‘pavucontrol’ (install it if not already installed) and ensure the volume levels there are also up high (so to obtain a higher volume level, which is what I think you are looking for).