You are not logged in.

#1 2011-09-15 21:47:46

orschiro
Member
Registered: 2009-06-04
Posts: 2,136
Website

Restore alsa settings at boot

Hello all,

I'm using alsa with pulse and set my alsa config through alsamixer. However each time I do so, the settings are not restored at boot up.

I added @alsa to my daemon array as well writing the alsa settings as root with "alsactl store".

Might it be that I use pulseaudio which overwrites or handles the settings differently?

Thanks for your advice.

Offline

#2 2011-09-15 21:56:38

examon
Member
Registered: 2011-05-07
Posts: 208

Re: Restore alsa settings at boot

alsactl store

and when you boot, type alsactl restore

Offline

#3 2011-09-16 00:51:06

orschiro
Member
Registered: 2009-06-04
Posts: 2,136
Website

Re: Restore alsa settings at boot

Hi examon,

As written above, I used alsactl store to keep the settings. And running alsactl restore shouldn't be neccessary as this is done by the alsa daemon, isn't?

Regards

Offline

#4 2011-09-16 05:56:23

orschiro
Member
Registered: 2009-06-04
Posts: 2,136
Website

Re: Restore alsa settings at boot

I'm on the right track. Pulseaudio overwrites my alsa settings.

That means, when I run 'alsactl restore' manually after bootup, the correct settings are restored.

Now the question is, how can I restrict pulse to not behave like that?

This is my daemon array where I'm starting ALSA:

DAEMONS=(dbus !network !dhcdbd !networkmanager syslog-ng @acpid @alsa @wicd @bluetooth)

This is my openbox autostart.sh where I'm starting pulse:

adeskbar &
conky -q &
nitrogen --restore &
start-pulseaudio-x11 & 
pnmixer &
fbxkb &
batti &
dropboxd &
blueman-applet &

And finally my inittab executing slim:

#
# /etc/inittab
#

#  Runlevels:
#    0    Halt
#    1(S)	Single-user
#    2    Not used
#    3    Multi-user
#    4    Not used
#    5    X11
#    6    Reboot

## Only one of the following two lines can be uncommented!
# Boot to console
id:5:initdefault:
# Boot to X11
#id:5:initdefault:

rc::sysinit:/etc/rc.sysinit
rs:S1:wait:/etc/rc.single
rm:2345:wait:/etc/rc.multi
rh:06:wait:/etc/rc.shutdown
su:S:wait:/sbin/sulogin -p

# -8 options fixes umlauts problem on login
c1:2345:respawn:/sbin/agetty -8 38400 tty1 linux
c2:2345:respawn:/sbin/agetty -8 38400 tty2 linux
c3:2345:respawn:/sbin/agetty -8 38400 tty3 linux
c4:2345:respawn:/sbin/agetty -8 38400 tty4 linux
c5:2345:respawn:/sbin/agetty -8 38400 tty5 linux
c6:2345:respawn:/sbin/agetty -8 38400 tty6 linux

ca::ctrlaltdel:/sbin/shutdown -t3 -r now

# Example lines for starting a login manager
#x:5:respawn:/bin/su robert -l -c "/bin/bash --login -c /usr/bin/startx >/dev/null 2>&1"
#x:5:respawn:/usr/sbin/gdm -nodaemon
#x:5:respawn:/usr/bin/kdm -nodaemon
x:5:respawn:/usr/bin/slim >& /dev/null

# End of file

Any ideas?

Offline

#5 2011-10-13 19:33:57

orschiro
Member
Registered: 2009-06-04
Posts: 2,136
Website

Re: Restore alsa settings at boot

Any new approaches how to let alsa store its settings permanently when using pulseaudio?

Regards

Offline

#6 2011-10-20 05:36:20

orschiro
Member
Registered: 2009-06-04
Posts: 2,136
Website

Re: Restore alsa settings at boot

As a workaround I restore my alsa settings again after pulseaudio had started since there is no other way of telling pulse not to behave like that.

In my autostart.sh of openbox I added:

(sleep 30 && alsactl -f /var/lib/alsa/asound.state restore) &

The sleep is important in order to ensure that pulse has fully loaded.

Regards

Offline

Board footer

Powered by FluxBB