Pre-amble
If you have used sucessfully the Porteus Settings Center, do not read any further please. This is one alternative for some like minded people who want to control their sound configuration/setup.....maybe the gui failed?
I am on XFCE 64 bit.
Before we start
-Delete any .asoundrc home file, any /etc/asound.conf.
-If you have created a non-guest login-name ensure you have added yourname using root powers to /etc/group for lines of audio,video,cdrom. Optional look at the other lines. EDIT no we should not user non-guest
-I prefer command=alsamixer for my mixer levels and that needs package=AlsaMixer.app* from USM. This allows me to save my mixer levels thru a root command later.
-Create a folder under your home dir, I call mine Keep (to remind my brain not to delete this folder)

-Some users may need firmware from USM search for alsa-tools
Intent
I like to have only 2 config files control my sound card. I know there are many system files for alsa.
Discovery
Code: Select all
su
alsactl init 0
# result is
alsactl: sysfs_init:48: sysfs path '/sys' is invalid
Found hardware: "HDA-Intel" "Intel Haswell HDMI" "HDA:80862807,80860101,00100000" "0x1043" "0x8534"
Hardware is initialized using a generic method
alsactl init 1
# result is
alsactl: sysfs_init:48: sysfs path '/sys' is invalid
Found hardware: "HDA-Intel" "Realtek ALC887-VD" "HDA:10ec0887,10438630,00100302" "0x1043" "0x8630"
Hardware is initialized using a generic method
Create rc.local file
TIp save it to Keep as well, use root powers to then overwrite to /etc/rc.d/rc.local and make it executable with
Code: Select all
# chmod +x /etc/rc.d/rc.local
Some Comments#!/bin/sh
rmmod snd_hda_intel
modprobe snd_hda_intel index=1
alsactl -f /home/guest/Keep/asound.state restore 0
The first 2 commands remove my module and then re-load with various options. Your options may be very complex such as quirks.
index=1 is because I want the second card swapped into the first card position.
-The restore command could have dropped the 0 but I leave it in for trouble-shooting and brain purposes.
That is, if you run the command manually and then run alsamixer you should get the desired results, on reboot.
Create the mixer levels file
Now the fun bit. Earlier we discovered I wanted my second card to be the first card. But I have yet to reboot. So I open a terminal and run
Code: Select all
alsamixer -c1
One simple play for volumes should work is
Code: Select all
speaker-test -c2 -l2
Code: Select all
alsactl -f /home/guest/Keep/asound.state store 1
Reboot to test
If you made no mistakes, open a terminal and run alsamixer and I get a beautiful result

good luck