LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 01-25-2023, 01:42 PM   #1
Puforoz
LQ Newbie
 
Registered: Jan 2023
Posts: 3

Rep: Reputation: 0
Delay when detecting a soundcard


Hello!
After installing the OS, the sound in the system appears approximately one minute after booting. I noticed that at first there is one audio device in pacmd list-cards, and after the appearance of the sound there are 2 of them. I tried to set the sequence of sound cards in the /etc/modprobe.d/alsa-base.conf file
Code:
alias char-major-116 snd
alias snd-card-0 snd-hda-intel
alias snd-card-1 snd-hda-intel

options snd cards_limit=2

options snd-hda-intel id=PCH index=0
options snd-hda-intel id=NVidia index=1
but it doesn't help.

Perhaps I am specifying something incorrectly? Or is there another way to solve the problem?
I really hope for your help.

Code:
$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 11 (bullseye)
Release:        11
Codename:       bullseye

$ uname -a
Linux debian 5.10.0-20-amd64 #1 SMP Debian 5.10.158-2 (2022-12-13) x86_64 GNU/Linux

$ plasmashell --version
plasmashell 5.20.5
Code:
$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC897 Analog [ALC897 Analog]
  Subdevices: 0/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
card 1: NVidia [HDA NVidia], device 10: HDMI 4 [HDMI 4]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 11: HDMI 5 [HDMI 5]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 12: HDMI 6 [HDMI 6]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
 
Old 01-26-2023, 10:37 PM   #2
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
hi until you get a better reply...
I suggest to delete your current /etc/modprobe.d/alsa-base.conf
Also delete any .asoundrc and /etc/asound.conf
and do a full reboot.

now look at your
Code:
aplay -l
output

You have mentioned you want PCH so I assume you want analog sound out not hdmi.
Please reply with what type of sound device out you wish to connect to.

Leaping ahead....if I am correct hdmi shows up as card 0 then use root powers to create file
/etc/modprobe.d/index.conf (name not important just end in .conf)
contents
Quote:
options snd-hda-intel enable=0
What this says to alsa....for card =0 disable it....so if it detects next card, it then gives it card=0 which will be analog.

1=enabled yes
0=disabled or no

BUT
#####
if you want analog and aplay shows PCH already card 0 your file changes to
Quote:
options snd-hda-intel enable=1,0
which says enable card=0 and disable card 1 for hdmi

Full reboot aplay should show only one device ....PCH

(2) I do not like KDE/plasma as it has another sound layer called phonon. You may need to check your phonon settings.
https://community.kde.org/Phonon

(3) then you can check your mixer levels and whether any output is muted.
Which mixer are you used to?

Last edited by aus9; 01-26-2023 at 10:41 PM.
 
Old 01-27-2023, 12:39 PM   #3
Puforoz
LQ Newbie
 
Registered: Jan 2023
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by aus9 View Post
hi until you get a better reply...
I suggest to delete your current /etc/modprobe.d/alsa-base.conf
Also delete any .asoundrc and /etc/asound.conf
and do a full reboot.

now look at your
Code:
aplay -l
output

You have mentioned you want PCH so I assume you want analog sound out not hdmi.
Please reply with what type of sound device out you wish to connect to.

Leaping ahead....if I am correct hdmi shows up as card 0 then use root powers to create file
/etc/modprobe.d/index.conf (name not important just end in .conf)
contents

What this says to alsa....for card =0 disable it....so if it detects next card, it then gives it card=0 which will be analog.

1=enabled yes
0=disabled or no

BUT
#####
if you want analog and aplay shows PCH already card 0 your file changes to

which says enable card=0 and disable card 1 for hdmi

Full reboot aplay should show only one device ....PCH
Thanks for the answer. I no longer have the specified files. I really need only a PCH to play sound, what happens with hdmi is not important.
Therefore I used
Code:
options snd-hda-intel enable=1,0
After reboot
Code:
$ aplay -l
aplay: device_list:274: no soundcards found...
And a minute later an audio card appeared, but without hdmi.
Code:
$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC897 Analog [ALC897 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
Quote:
Originally Posted by aus9 View Post
(2) I do not like KDE/plasma as it has another sound layer called phonon. You may need to check your phonon settings.
https://community.kde.org/Phonon
For me, kde seemed the best option for home use. I will be glad to hear your opinion.
As I understand there is no Phonon in my system.

Quote:
Originally Posted by aus9 View Post
(3) then you can check your mixer levels and whether any output is muted.
Which mixer are you used to?
Apparently PulseAudio but I'm not sure. How can this be checked correctly?
 
Old 01-29-2023, 09:36 PM   #4
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
Hidding Hdmi is good based on your answer.

Install pavucontrol
it has a GUI...run it and maximise it to see all tabs.
Set your output as the analog device then check your device is not muted then raise mixer levels
 
Old 01-30-2023, 02:12 PM   #5
Puforoz
LQ Newbie
 
Registered: Jan 2023
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by aus9 View Post
Hidding Hdmi is good based on your answer.

Install pavucontrol
it has a GUI...run it and maximise it to see all tabs.
Set your output as the analog device then check your device is not muted then raise mixer levels
Now hdmi is not displayed but the sound still appears after a while after boot. Turns out it didn't get any better.

I installed pavucontrol and after loading only a stub is shown ("dummy output"). No sound. Only then the port "Line Out" appears and the sound immediately appears.

P.S. I tried different versions in live mode. On debian 11 kde or gnome I have a similar problem at startup. But there is no such problem on debian 10.13.
 
Old 01-30-2023, 07:20 PM   #6
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
If you can, install a different destop. If that solves the mixer issue, it means kde still needs phonon setup

If hdmi is still appearing that might be pulseaudio interference
 
  


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
USB devices stop detecting (or un-detecting). Mleahy Linux - Desktop 1 07-31-2011 03:08 AM
RedHat 9 is not detecting the LAN card, but Win'98 is detecting the LAN card SKYNAT Linux - Newbie 4 12-28-2007 11:25 PM
ALSACONF no detecting my soundcard Whatshisface Linux - Hardware 4 03-10-2005 11:24 PM
FC 2 not detecting soundcard azebuski Fedora 10 07-28-2004 01:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 02:58 AM.

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