Gentoo – Getting Sound With Alsa

image_pdfimage_print

In order to get sound working in Gentoo you need to set up ALSA. If you have not set up your kernel with ALSA support you will need to do so, see here for more information. Recompile your kernel with ALSA support and your sound card built in. Then do the following:

  • emerge -av alsa-utils alsa-tools alsa-oss \ 
    alsa-plugins mpg123 vorbis-tools
  • rc-update add alsasound boot
  • /etc/init.d/alsasound start
  • alsamixer
  • Set all of the levels and unmute the necessary channels.
  • /etc/init.d/alsasound save
  • gpasswd -a username audio

Reboot your pc and you should now be able to play a .mp3 file by using the following command:

mpg123 filename.mp3

if you hear the song playing alsa is working properly.