Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Multimedia
  • Search

alsamixer: cannot open mixer: No such file or directory

Help with creation, editing, or playback of sounds, images, or video. Amarok, audacious, mplayer, grip, cdparanoia and anything else that makes a sound or plays a video.
Post Reply
Advanced search
9 posts • Page 1 of 1
Author
Message
acidunit
n00b
n00b
Posts: 15
Joined: Sat Jul 14, 2018 11:02 pm

alsamixer: cannot open mixer: No such file or directory

  • Quote

Post by acidunit » Sat Jul 14, 2018 11:07 pm

ls /dev | grep mixer returns nothing. ls /dev/snd/control* returns nothing. cat /proc/asound/cards returns "--- no soundcards ---". My user is a part of the audio group. It doesn't work as root.

I've been trying to fix this for over an hour now, can anyone help?
Top
krinn
Watchman
Watchman
User avatar
Posts: 7476
Joined: Fri May 02, 2003 6:14 am

  • Quote

Post by krinn » Sat Jul 14, 2018 11:37 pm

fixing sound is generally easy, but do takes times as we will drive you and wait for your answers. This to say, because it really sucks to not have sound, you may wish ask help in irc, you'll get a more living question/answer and quicker solve.

in case you could wait, here's the things to check.

infos from dmesg

Code: Select all

dmesg | grep "snd\|sound" -i
identify the card module (if your kernel cannot output this, use a livecd), should be snd_hda_intel, but you might have other too.

Code: Select all

lspci -k | grep Audio -A4
identify the card codec

Code: Select all

head -1 /proc/asound/card*/codec*
verify kernel (because nearly everyone own a card that use SND_HDA), correct answer is mostly everything set as module or buildin

Code: Select all

grep SND_HDA /usr/src/linux/.config
please make sure the right kernel parameters are set, lacking them is the logical result of your "no soundcards"
Top
acidunit
n00b
n00b
Posts: 15
Joined: Sat Jul 14, 2018 11:02 pm

  • Quote

Post by acidunit » Sun Jul 15, 2018 12:18 am

krinn wrote:fixing sound is generally easy, but do takes times as we will drive you and wait for your answers. This to say, because it really sucks to not have sound, you may wish ask help in irc, you'll get a more living question/answer and quicker solve.

in case you could wait, here's the things to check.

infos from dmesg

Code: Select all

dmesg | grep "snd\|sound" -i
identify the card module (if your kernel cannot output this, use a livecd), should be snd_hda_intel, but you might have other too.

Code: Select all

lspci -k | grep Audio -A4
identify the card codec

Code: Select all

head -1 /proc/asound/card*/codec*
verify kernel (because nearly everyone own a card that use SND_HDA), correct answer is mostly everything set as module or buildin

Code: Select all

grep SND_HDA /usr/src/linux/.config
please make sure the right kernel parameters are set, lacking them is the logical result of your "no soundcards"
"dmesg | grep "snd\|sound" -i" returns "No soundcards found" after the ALSA driver initializes.

"lspci -k | grep Audio -A4" returns a valid audio device.

"head -1 /proc/asound/card*/codec*" returns "cannot open '/proc/asound/card*/codec*' for reading: No such file or directory"

"grep SND_HDA /usr/src/linux/.config" retrns CONFIG_SND_HDA=y.

I'm not sure how to check the kernel parameters, as the Archwiki guide does not work for me on all installations of GRUB I have used :(
Top
Jaglover
Watchman
Watchman
User avatar
Posts: 8291
Joined: Sun May 29, 2005 1:57 am
Location: Saint Amant, Acadiana

  • Quote

Post by Jaglover » Sun Jul 15, 2018 12:32 am

You need correct driver enabled in kernel, then the device nodes will appear in /dev/.
My conf as an example, I have Realtek sound chip and also I want HDMI sound.

Code: Select all

CONFIG_SND_HDA=y
CONFIG_SND_HDA_INTEL=y
# CONFIG_SND_HDA_HWDEP is not set
# CONFIG_SND_HDA_RECONFIG is not set
# CONFIG_SND_HDA_INPUT_BEEP is not set
# CONFIG_SND_HDA_PATCH_LOADER is not set
CONFIG_SND_HDA_CODEC_REALTEK=y
# CONFIG_SND_HDA_CODEC_ANALOG is not set
# CONFIG_SND_HDA_CODEC_SIGMATEL is not set
# CONFIG_SND_HDA_CODEC_VIA is not set
CONFIG_SND_HDA_CODEC_HDMI=y
# CONFIG_SND_HDA_CODEC_CIRRUS is not set
# CONFIG_SND_HDA_CODEC_CONEXANT is not set
# CONFIG_SND_HDA_CODEC_CA0110 is not set
# CONFIG_SND_HDA_CODEC_CA0132 is not set
# CONFIG_SND_HDA_CODEC_CMEDIA is not set
# CONFIG_SND_HDA_CODEC_SI3054 is not set
CONFIG_SND_HDA_GENERIC=y
CONFIG_SND_HDA_POWER_SAVE_DEFAULT=0
CONFIG_SND_HDA_CORE=y
CONFIG_SND_HDA_I915=y
CONFIG_SND_HDA_PREALLOC_SIZE=512
My Gentoo installation notes.
Please learn how to denote units correctly!
Top
acidunit
n00b
n00b
Posts: 15
Joined: Sat Jul 14, 2018 11:02 pm

  • Quote

Post by acidunit » Sun Jul 15, 2018 12:44 am

Jaglover wrote:You need correct driver enabled in kernel, then the device nodes will appear in /dev/.
My conf as an example, I have Realtek sound chip and also I want HDMI sound.

Code: Select all

CONFIG_SND_HDA=y
CONFIG_SND_HDA_INTEL=y
# CONFIG_SND_HDA_HWDEP is not set
# CONFIG_SND_HDA_RECONFIG is not set
# CONFIG_SND_HDA_INPUT_BEEP is not set
# CONFIG_SND_HDA_PATCH_LOADER is not set
CONFIG_SND_HDA_CODEC_REALTEK=y
# CONFIG_SND_HDA_CODEC_ANALOG is not set
# CONFIG_SND_HDA_CODEC_SIGMATEL is not set
# CONFIG_SND_HDA_CODEC_VIA is not set
CONFIG_SND_HDA_CODEC_HDMI=y
# CONFIG_SND_HDA_CODEC_CIRRUS is not set
# CONFIG_SND_HDA_CODEC_CONEXANT is not set
# CONFIG_SND_HDA_CODEC_CA0110 is not set
# CONFIG_SND_HDA_CODEC_CA0132 is not set
# CONFIG_SND_HDA_CODEC_CMEDIA is not set
# CONFIG_SND_HDA_CODEC_SI3054 is not set
CONFIG_SND_HDA_GENERIC=y
CONFIG_SND_HDA_POWER_SAVE_DEFAULT=0
CONFIG_SND_HDA_CORE=y
CONFIG_SND_HDA_I915=y
CONFIG_SND_HDA_PREALLOC_SIZE=512
How do I enable HDMI in the menuconfig? What options are it under?
Top
ali3nx
l33t
l33t
User avatar
Posts: 732
Joined: Sun Sep 21, 2003 4:28 am
Location: Winnipeg, Canada
Contact:
Contact ali3nx
Website

  • Quote

Post by ali3nx » Sun Jul 15, 2018 12:53 am

Here's four screenshots displaying the proper and correctly configured modular menuconfig setup for alsa. adjust your HD audio chipset driver as required. HDMI/Displayport support is also enabled.

Also note the pre-allocated HD audio buffer size is configured as recommended to 2 MB

https://i.imgur.com/9A3KECC.png
https://i.imgur.com/e6gO2Tw.png
https://i.imgur.com/9H9TocU.png
https://i.imgur.com/xZV7q5r.png

It's important and beneficial with alsa to use a modular kernel config as more often than not if you compile the entire alsa subsystem into the kernel binary alsa will not function properly.
Compiling Gentoo since version 1.4
Thousands of Gentoo Installs Completed
Emerged on every continent but Antarctica
Compile long and Prosper!
Top
acidunit
n00b
n00b
Posts: 15
Joined: Sat Jul 14, 2018 11:02 pm

  • Quote

Post by acidunit » Sun Jul 15, 2018 1:12 am

ali3nx wrote:Here's four screenshots displaying the proper and correctly configured modular menuconfig setup for alsa. adjust your HD audio chipset driver as required. HDMI/Displayport support is also enabled.

Also note the pre-allocated HD audio buffer size is configured as recommended to 2 MB

https://i.imgur.com/9A3KECC.png
https://i.imgur.com/e6gO2Tw.png
https://i.imgur.com/9H9TocU.png
https://i.imgur.com/xZV7q5r.png

It's important and beneficial with alsa to use a modular kernel config as more often than not if you compile the entire alsa subsystem into the kernel binary alsa will not function properly.
Thanks, I'll try this now and see if it works.
Top
acidunit
n00b
n00b
Posts: 15
Joined: Sat Jul 14, 2018 11:02 pm

  • Quote

Post by acidunit » Sun Jul 15, 2018 1:18 am

ali3nx wrote:Here's four screenshots displaying the proper and correctly configured modular menuconfig setup for alsa. adjust your HD audio chipset driver as required. HDMI/Displayport support is also enabled.

Also note the pre-allocated HD audio buffer size is configured as recommended to 2 MB

https://i.imgur.com/9A3KECC.png
https://i.imgur.com/e6gO2Tw.png
https://i.imgur.com/9H9TocU.png
https://i.imgur.com/xZV7q5r.png

It's important and beneficial with alsa to use a modular kernel config as more often than not if you compile the entire alsa subsystem into the kernel binary alsa will not function properly.
It worked! Thank you, you absolute genius!
Top
ali3nx
l33t
l33t
User avatar
Posts: 732
Joined: Sun Sep 21, 2003 4:28 am
Location: Winnipeg, Canada
Contact:
Contact ali3nx
Website

  • Quote

Post by ali3nx » Sun Jul 15, 2018 1:44 am

acidunit wrote:
ali3nx wrote:Here's four screenshots displaying the proper and correctly configured modular menuconfig setup for alsa. adjust your HD audio chipset driver as required. HDMI/Displayport support is also enabled.

Also note the pre-allocated HD audio buffer size is configured as recommended to 2 MB

https://i.imgur.com/9A3KECC.png
https://i.imgur.com/e6gO2Tw.png
https://i.imgur.com/9H9TocU.png
https://i.imgur.com/xZV7q5r.png

It's important and beneficial with alsa to use a modular kernel config as more often than not if you compile the entire alsa subsystem into the kernel binary alsa will not function properly.
It worked! Thank you, you absolute genius!
Your welcome :)
Compiling Gentoo since version 1.4
Thousands of Gentoo Installs Completed
Emerged on every continent but Antarctica
Compile long and Prosper!
Top
Post Reply

9 posts • Page 1 of 1

Return to “Multimedia”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy