View previous topic :: View next topic |
Author |
Message |
nirucon n00b
Joined: 23 Apr 2021 Posts: 4
|
Posted: Fri Apr 23, 2021 5:43 pm Post subject: [SOLVED] No sound (warning: my first gentoo install) |
|
|
I have managed to get my first Gentoo installation up and running on one of my old laptops (Dell Latitude E5450 i5). Call me noob if you want but I think almost everything works except sound.
Searched for solutions and tried several things without luck.
Someone who can be kind and assist with help?
I hope some of this below are helpful or let me know what to dig after.
Thanks in advance.
Error with mpv:
Code: |
niru@gentoo ~ $ mpv https://sverigesradio.se/topsy/direkt/132-hi-mp3.m3u
Playing: https://http-live.sr.se/p1-mp3-192
(+) Audio --aid=1 (mp3 2ch 48000Hz)
ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.2.3.2-r1/work/alsa-lib-1.2.3.2/src/pcm/pcm_dmix.c:1090:(snd_pcm_dmix_open) unable to open slave
[ao/alsa] Playback open error: No such file or directory
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
[ao/jack] cannot open server
[ao] Failed to initialize audio driver 'jack'
Could not open/initialize audio device -> no sound.
Audio: no audio
Exiting... (Some errors happened)
|
lsblk (audio)
Code: |
00:03.0 Audio device: Intel Corporation Broadwell-U Audio Controller (rev 09)
Subsystem: Dell Broadwell-U Audio Controller
Kernel driver in use: snd_hda_intel
Kernel modules: snd_hda_intel
...
00:1b.0 Audio device: Intel Corporation Wildcat Point-LP High Definition Audio Controller (rev 03)
Subsystem: Dell Wildcat Point-LP High Definition Audio Controller
Kernel driver in use: snd_hda_intel
Kernel modules: snd_hda_intel
|
/etc/modprobe.d/alsa.conf
Code: |
# Alsa kernel modules' configuration file.
# ALSA portion
alias char-major-116 snd
# OSS/Free portion
alias char-major-14 soundcore
##
## IMPORTANT:
## You need to customise this section for your specific sound card(s)
## and then run `update-modules' command.
## Read alsa-driver's INSTALL file in /usr/share/doc for more info.
##
## ALSA portion
## alias snd-card-0 snd-interwave
## alias snd-card-1 snd-ens1371
## OSS/Free portion
## alias sound-slot-0 snd-card-0
## alias sound-slot-1 snd-card-1
##
# OSS/Free portion - card #1
alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss
## OSS/Free portion - card #2
## alias sound-service-1-0 snd-mixer-oss
## alias sound-service-1-3 snd-pcm-oss
## alias sound-service-1-12 snd-pcm-oss
alias /dev/mixer snd-mixer-oss
alias /dev/dsp snd-pcm-oss
alias /dev/midi snd-seq-oss
# Set this to the correct number of cards.
options snd cards_limit=1
|
Last edited by nirucon on Fri Apr 23, 2021 7:17 pm; edited 1 time in total |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54232 Location: 56N 3W
|
Posted: Fri Apr 23, 2021 5:49 pm Post subject: |
|
|
nirucon,
Welcome to Gentoo.
You have at least two sound cards, maybe the wrong card is the default?
What does /proc/asound/devices contain?
Which audio output do you want to use?
To save us a round of quests, please put your kernel .config file onto a pastebin site.
Its far too big for a post, wgetpaste can help. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
nirucon n00b
Joined: 23 Apr 2021 Posts: 4
|
Posted: Fri Apr 23, 2021 6:04 pm Post subject: |
|
|
NeddySeagoon wrote: | nirucon,
Welcome to Gentoo.
You have at least two sound cards, maybe the wrong card is the default?
What does /proc/asound/devices contain?
Which audio output do you want to use?
To save us a round of quests, please put your kernel .config file onto a pastebin site.
Its far too big for a post, wgetpaste can help. |
Thank you for welcome and fast reply!
/proc/asound/devices
Code: |
1: : sequencer
2: [ 1- 0]: digital audio playback
3: [ 1- 0]: digital audio capture
4: [ 1- 0]: hardware dependent
5: [ 1] : control
6: [ 0- 3]: digital audio playback
7: [ 0- 7]: digital audio playback
8: [ 0- 8]: digital audio playback
9: [ 0- 9]: digital audio playback
10: [ 0-10]: digital audio playback
11: [ 0- 0]: hardware dependent
12: [ 0] : control
33: : timer
|
.config (probably many noob errors hahaha)
https://pastebin.com/9FjkY1ci |
|
Back to top |
|
|
nirucon n00b
Joined: 23 Apr 2021 Posts: 4
|
Posted: Fri Apr 23, 2021 6:11 pm Post subject: |
|
|
Forgot to add that I want to have sound in the built in laptop speakers. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54232 Location: 56N 3W
|
Posted: Fri Apr 23, 2021 7:12 pm Post subject: |
|
|
nirucon,
As card 0 has no capture controls, that is likely your HDMI output(s) associated with the video card.
Card 0 is the default card, which is not what you want
Make a file called containing
Code: | # Use sound card 1 by default.
defaults.pcm.card 1
defaults.ctl.card 1 |
-- Edit --
Reply timing is a matter of luck. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
nirucon n00b
Joined: 23 Apr 2021 Posts: 4
|
Posted: Fri Apr 23, 2021 7:17 pm Post subject: |
|
|
NeddySeagoon wrote: | nirucon,
As card 0 has no capture controls, that is likely your HDMI output(s) associated with the video card.
Card 0 is the default card, which is not what you want
Make a file called containing
Code: | # Use sound card 1 by default.
defaults.pcm.card 1
defaults.ctl.card 1 |
-- Edit --
Reply timing is a matter of luck. |
Solved! Thank you very much! and I learned some more on my first day with Gentoo.
Edit: sound with cmus 2021-04-24-073101_1366x768_scrot.png |
|
Back to top |
|
|
|