Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
alsamixer isnt restoring settings. [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
Kazaza
Tux's lil' helper
Tux's lil' helper


Joined: 28 Mar 2004
Posts: 100
Location: Sweden

PostPosted: Sun May 15, 2005 3:22 pm    Post subject: alsamixer isnt restoring settings. [SOLVED] Reply with quote

Ive had this problem for some time now, that every time I bootup, I have to set the levels and settings in alsamixer. I have tried most of the howtos about alsa, if not all... but I cant seem to get it working. I would really need someone to help me through the steps necessary to get it working or ill go nuts. I have seen many post their .asoundrc, and I have searched for it but there is no asoundrc on any of my hdd:s. And everytime I shut down I get some message that /dev/mixer doesnt exist but as those messages never end up in any file in /var/log that is hard to really say exactly what that message says...
but here is some of what I can give you:
startupmessage in console:
Code:
  * Loading ALSA modules...
 *   Loading: snd-card-0...                                                                                                                               [ ok ]
 *   Loading: snd-seq-oss...                                                                                                                             [ ok ]
 *   Loading: snd-pcm-oss...                                                                                                                             [ ok ]
 *   Loading: snd-emu10k1-synth...                                                                                                                  [ ok ]
 *   Loading: snd-seq-midi...                                                                                                                             [ ok ]
 * Restoring Mixer Levels...                                                                                                                              [ ok ]
 * Loading Mixer settings...

as you see... no [ ok ] after loading Mixer settings! And it says ok after Restoring Mixer Levels... it doesnt...
# lspci | grep audio:
Code:
0000:01:0a.0 Multimedia audio controller: Creative Labs SB Audigy (rev 03)

In my /etc/make.conf:
Code:
ALSA_CARDS="snd-emu10k1"

# lsmod:
Code:
Module                  Size  Used by
snd_seq_midi            7584  0
snd_emu10k1_synth       7936  0
snd_emux_synth         36736  1 snd_emu10k1_synth
snd_seq_virmidi         7296  1 snd_emux_synth
snd_seq_midi_emul       7680  1 snd_emux_synth
snd_pcm_oss            49440  0
snd_mixer_oss          18816  1 snd_pcm_oss
snd_seq_oss            33664  0
snd_seq_midi_event      7296  3 snd_seq_midi,snd_seq_virmidi,snd_seq_oss
snd_seq                52624  8 snd_seq_midi,snd_emux_synth,snd_seq_virmidi,snd_seq_midi_emul,snd_seq_oss,snd_seq_midi_event
snd_emu10k1            96644  1 snd_emu10k1_synth
snd_rawmidi            21536  3 snd_seq_midi,snd_seq_virmidi,snd_emu10k1
snd_seq_device          8076  7 snd_seq_midi,snd_emu10k1_synth,snd_emux_synth,snd_seq_oss,snd_seq,snd_emu10k1,snd_rawmidi
snd_ac97_codec         75256  1 snd_emu10k1
snd_pcm                83972  3 snd_pcm_oss,snd_emu10k1,snd_ac97_codec
snd_timer              22532  3 snd_seq,snd_emu10k1,snd_pcm
snd_page_alloc          8708  2 snd_emu10k1,snd_pcm
snd_util_mem            4480  2 snd_emux_synth,snd_emu10k1
snd_hwdep               8608  2 snd_emux_synth,snd_emu10k1
nvidia_agp              7068  1
nvidia               3920156  12

# cat /proc/asound/cards:
Code:
0 [Audigy         ]: Audigy - Sound Blaster Audigy
                     Sound Blaster Audigy (rev.3, serial:0x521102) at 0xd400, irq 16

versions of alsa installed...
Code:
media-sound/alsa-utils-1.0.8  0 kB
media-sound/alsa-headers-1.0.9_rc3  0 kB
media-libs/alsa-lib-1.0.9_rc3  -doc -jack 0 kB
media-libs/alsa-oss-1.0.8-r1  0 kB

I have tried with all combinations from 1.0.7 and up...
The sound parts from my /etc/security/console.perms:
Code:
#<sound>=/dev/dsp* /dev/audio* /dev/midi* \
#   /dev/mixer* /dev/sequencer* \
#   /dev/sound/* /dev/snd/* /dev/beep \
#   /dev/admm* \
#   /dev/adsp* /dev/aload* /dev/amidi* /dev/dmfm* \
#   /dev/dmmidi* /dev/sndstat
#<console>  0600 <sound>      0600 root.audio

The parts in /etc/udev/permissions.d/50-udev.permissions:
Code:
# audio devices
dsp*:root:audio:0660
audio*:root:audio:0660
midi*:root:audio:0660
mixer*:root:audio:0660
sequencer*:root:audio:0660
sound/*:root:audio:0660
snd/*:root:audio:0660
beep:root:audio:0660
admm*:root:audio:0660
adsp*:root:audio:0660
aload*:root:audio:0660
amidi*:root:audio:0660
dmfm*:root:audio:0660
dmmidi*:root:audio:0660
sndstat:root:audio:0660

# ls -l /dev/dsp /dev/adsp /dev/mixer /dev/sequencer
Code:
lrwxrwxrwx  1 root root 10 May 15 16:36 /dev/adsp -> sound/adsp
lrwxrwxrwx  1 root root  9 May 15 16:36 /dev/dsp -> sound/dsp
lrwxrwxrwx  1 root root 11 May 15 16:36 /dev/mixer -> sound/mixer
lrwxrwxrwx  1 root root 15 May 15 16:36 /dev/sequencer -> sound/sequencer

# ls -l /dev/sound:
Code:
crw-rw----  1 root audio 14, 12 May 15 16:36 adsp
crw-rw----  1 root audio 14,  4 May 15 16:36 audio
crw-rw----  1 root audio 14,  3 May 15 16:36 dsp
crw-rw----  1 root audio 14,  0 May 15 16:36 mixer
crw-rw----  1 root audio 14,  1 May 15 16:36 sequencer
crw-rw----  1 root audio 14,  8 May 15 16:36 sequencer2


Is there anything elsa you need to know? just let me know and ill get it...
and my user is member of the audio group... :
# cat /etc/group | grep audio:
Code:
audio::18:kazaza


Last edited by Kazaza on Sun May 15, 2005 5:14 pm; edited 1 time in total
Back to top
View user's profile Send private message
evoweiss
Veteran
Veteran


Joined: 07 Sep 2003
Posts: 1678
Location: Edinburgh, UK

PostPosted: Sun May 15, 2005 3:48 pm    Post subject: Re: alsamixer isnt restoring settings. Reply with quote

Hi,

I suspect that you haven't saved the settings. After setting things, go into root and type in alsactl store.

That should do it.

Alex
Back to top
View user's profile Send private message
Kazaza
Tux's lil' helper
Tux's lil' helper


Joined: 28 Mar 2004
Posts: 100
Location: Sweden

PostPosted: Sun May 15, 2005 5:12 pm    Post subject: Reply with quote

Well... that didnt solve my problem either, but I found the solution... I have both fvwm and KDE3.4 installed at the moment, and I login with kdm, even though kde hasn't been started for some time, it seems like kdm is starting up kmix, 8O , (just noticed that it was running via top), I didnt even bother to check kmix as I myself dont like kde and always started up fvwm...
All I had to do was start kde, adjust sounds in kmix and restart... I am seriously thinking of unmerging kde at the moment but then I would get decapitated by my girlfriend... KDE is beginning to be very much lika some OS that I really dont like... Ive been working on this the last couple of days, and the only thing that was causing it all was kde :evil:
Back to top
View user's profile Send private message
evoweiss
Veteran
Veteran


Joined: 07 Sep 2003
Posts: 1678
Location: Edinburgh, UK

PostPosted: Sun May 15, 2005 5:17 pm    Post subject: Reply with quote

Hi,

Kazaza wrote:
Well... that didnt solve my problem either, but I found the solution... I have both fvwm and KDE3.4 installed at the moment, and I login with kdm, even though kde hasn't been started for some time, it seems like kdm is starting up kmix, 8O , (just noticed that it was running via top), I didnt even bother to check kmix as I myself dont like kde and always started up fvwm...
All I had to do was start kde, adjust sounds in kmix and restart... I am seriously thinking of unmerging kde at the moment but then I would get decapitated by my girlfriend... KDE is beginning to be very much lika some OS that I really dont like... Ive been working on this the last couple of days, and the only thing that was causing it all was kde :evil:


Ok, glad you figured it out. I personally like KDE, though I am considering looking into enlightenment at some point in the future. The kmix thing can be fixed if you just use properties to tell it not to start automatically (there may be another means of preventing it from doing so, search around...)

Alex
Back to top
View user's profile Send private message
lynxnyl
Apprentice
Apprentice


Joined: 15 Aug 2004
Posts: 253
Location: Ljubljana, Slovenija

PostPosted: Sun May 15, 2005 6:17 pm    Post subject: Reply with quote

I just put an amixer statement into my bashrc to be executed once on a pty - it didn't work in /etc/conf.d/local.start. This explains it. :)

kde 3.3
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum