Forums

Skip to content

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

No sound with systemd and alsa

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
2 posts • Page 1 of 1
Author
Message
d3x73r
n00b
n00b
Posts: 55
Joined: Fri Apr 16, 2010 7:09 pm
Location: Bahia/Brazil

No sound with systemd and alsa

  • Quote

Post by d3x73r » Sun Jan 19, 2014 11:48 pm

I am running a Gentoo box, and after and update the sound is muted. I have recently migrated to systemd but don't know if it is a systemd related issue.

Here is some outputs

Code: Select all

$ lsmod | grep 'snd'

snd_hda_codec_hdmi     25590  1 
snd_hda_codec_realtek    30851  1 
snd_hda_intel          24209  7 
snd_hda_codec         100852  3 snd_hda_codec_realtek,snd_hda_codec_hdmi,snd_hda_intel
snd_hwdep               5213  1 snd_hda_codec
snd_pcm                60443  4 snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel
snd_page_alloc          6218  2 snd_pcm,snd_hda_intel
snd_timer              15485  1 snd_pcm
snd                    48467  20 snd_hda_codec_realtek,snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_pcm,snd_hda_codec,snd_hda_intel

Code: Select all

$ amixer

Simple mixer control 'Master',0
  Capabilities: pvolume pswitch pswitch-joined
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 65536
  Mono:
  Front Left: Playback 30129 [46%] [on]
  Front Right: Playback 30129 [46%] [on]
Simple mixer control 'Capture',0
  Capabilities: cvolume cswitch cswitch-joined
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 65536
  Front Left: Capture 8251 [13%] [on]
  Front Right: Capture 8251 [13%] [on]

Code: Select all

aplay -v < /dev/urandom
Plays a clear static noised sound.

Code: Select all

$ lspci | grep 'Audio'

00:1b.0 Audio device: Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller (rev 05)

Code: Select all

$ alsactl init

Found hardware: "HDA-Intel" "Intel CougarPoint HDMI" "HDA:10ec0269,10280446,00100100 HDA:80862805,80860101,00100000" "0x1028" "0x0446"
Hardware is initialized using a generic method
As I can see, everything seems normal. However my system returns no sound. After alsactcl init command, the sound works. How to make this to start automatically?
KDE also says that my sound card is disabled and the drivers may be removed form config list.
Top
Kompi
Apprentice
Apprentice
User avatar
Posts: 252
Joined: Sat Oct 05, 2002 6:01 pm
Location: Germany

Re: No sound with systemd and alsa

  • Quote

Post by Kompi » Thu Jan 23, 2014 12:05 pm

d3x73r wrote:After alsactcl init command, the sound works. How to make this to start automatically?
Normally it is enough to call alsactl restore to restore the mixer settings. This one should be done by systemd automatically if alsa-utils is installed. (it shipped /usr/lib/systemd/system/alsa-[store|restore].service").

If you need to additionally call "alsactl init" at boot, just write a simple unit file. For example:
/etc/systemd/system/alsa-init.service wrote: [Unit]
Description=Init Sound Card State

[Service]
Type=oneshot
ExecStart=/usr/sbin/alsactl init

[Install]
WantedBy=basic.target
And enable it at boot:

Code: Select all

systemctl enable alsa-init
Top
Post Reply

2 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

 

 

magic