The alsasound script included with recent alsa-utils packages has been fixed so as not to give the error messages w/ 2.6 kernels.phunni wrote:I have seen this mentioned several times, but not found an answer - if I've missed something, I apologise - please direct me to the appropriate thread
Whenever I reboot, I lose my alsa settings. I used to have alsasound enabled for when I was running a 2.4 kernel, but with 2.6 I would just get errors as the modules were loaded twice.
I have not at any point specified that I want the alsa modues loaded (although I do) so I can't simply remove that from some config file.
How can I get my sound settings persist beyond a reboot in an automatic way? (i.e. not manually saving and restoring the settings)
alsa-utils, although it's only in the more recent versions you get the updated script. What version do you get when you do an emerge -p alsa-utils?phunni wrote:I did it as modules.
Which package must I re-emerge to get the updated script?

Code: Select all
#alsactl store He'll want to run alsamixer first to unmute the relevant outputs and set levels.mvr_rennes wrote:Hi,
try erasing your /etc/asound.state, adjusting your controls and doing anafterwardsCode: Select all
#alsactl store
Cheers,
M
Does this not require manually runningmvr_rennes wrote:Hi,
try erasing your /etc/asound.state, adjusting your controls and doing anafterwardsCode: Select all
#alsactl store
Cheers,
M
Code: Select all
alsactl restoreYou only need to do this once, after which the alsa init script will take care of it when you startup/shutdown.phunni wrote:Does this not require manually runningmvr_rennes wrote:Hi,
try erasing your /etc/asound.state, adjusting your controls and doing anafterwardsCode: Select all
#alsactl store
Cheers,
M? I was hoping to find an "automatic" solutionCode: Select all
alsactl restore
Code: Select all
rc-update add alsasound boot
You've answered your own question there. The reason you have to put it in 'boot' and not 'default' is because the Gentoo docs tell you to do that. It won't work properly if you don't.ett_gramse_nap wrote:I'm so totally confused about these runlevels... why should I want to add alsa to runlevel 'boot' and not to 'default'? (Besides that the gentoo doc wants me to add it to 'boot', obviously...)
I'm attempting to run 2.4.2 and 2.6.1 side by side. Having some problems with my video drivers and can't even get into x to test the sound in 2.6.1. Lately tho I've had the above happening in the 2.4.2 kernel. I have to reset the amixer levels on reboot among a few other things.I get error messages on boot that may be related. You can view those in this post. It's in the last paragraph on the second post.link97381 wrote:I just updated to kernel 2.6 with alsa compiled in and it works fine with out any run level scripts but I have to unmute it after every reboot.....is that what the run level scripts do? Because I get an error message with the script.
Yes. If you don't use the script in boot runlevel, it won't save and restore your mixer settings, so that is why you have to unmute at each boot. Depending on the alsa version you have, the error messages can be ignored. If it loads/saves your mixer settings and your sound works, you can chalk it down in the 'minor irritant' category.link97381 wrote:I just updated to kernel 2.6 with alsa compiled in and it works fine with out any run level scripts but I have to unmute it after every reboot.....is that what the run level scripts do? Because I get an error message with the script.
I've not looked at your other post, but running 2.4 and 2.6 kernels side-by-side is a major headache if you use ALSA and (I'm making an assumption here) the nvidia-kernel driver.GentooNub wrote:I'm attempting to run 2.4.2 and 2.6.1 side by side. Having some problems with my video drivers and can't even get into x to test the sound in 2.6.1. Lately tho I've had the above happening in the 2.4.2 kernel. I have to reset the amixer levels on reboot among a few other things.I get error messages on boot that may be related. You can view those in this post. It's in the last paragraph on the second post.link97381 wrote:I just updated to kernel 2.6 with alsa compiled in and it works fine with out any run level scripts but I have to unmute it after every reboot.....is that what the run level scripts do? Because I get an error message with the script.
What kernel are you using? Maybe one with downlevel drivers. I always try and make sure that the ALSA drivers in the kernel I'm using correspond w.r.t. version numbers as the alsa-lib and alsa-utils ebuilds I have installed. You can check the ALSA driver version by running cat /proc/asound/versionphunni wrote:re-instating the alsasound script has returned me to the same modules errors (although my settings do now persist)
I realise these aren't a serious problem - but I would be happier without them
Using alsa-utils 1.0.2
No assumptions made you hit it all on the head. The only reason I'm running a 2.4 beside a 2.6 kernel is so I have a working system. Everything so far seams to be easily worked out with ALOT of research. But I can handle researching. Not finding answers is what drives me insane. Figuring out whats installed where hasn't been a problem since I learned how to properly symlink /usr/src/linuxagent_jdh wrote:I've not looked at your other post, but running 2.4 and 2.6 kernels side-by-side is a major headache if you use ALSA and (I'm making an assumption here) the nvidia-kernel driver.GentooNub wrote:I'm attempting to run 2.4.2 and 2.6.1 side by side. Having some problems with my video drivers and can't even get into x to test the sound in 2.6.1. Lately tho I've had the above happening in the 2.4.2 kernel. I have to reset the amixer levels on reboot among a few other things.I get error messages on boot that may be related. You can view those in this post. It's in the last paragraph on the second post.link97381 wrote:I just updated to kernel 2.6 with alsa compiled in and it works fine with out any run level scripts but I have to unmute it after every reboot.....is that what the run level scripts do? Because I get an error message with the script.
It'll melt yer heid trying to work out what's been installed where under what kernel and how it's supposed to work.
I think the simplest solution for you is to find a 2.6 kernel that just works, be it development-sources, gentoo-dev-sources, or mm-sources, and stick with it for a bit until things settle down. You could create symlinks in /boot for bzImage and edit your -bootloader of choice- to include entries for your 'latest kernel' and 'last known kernel where everything worked'. Compiling the 2.6 ALSA stuff as modules, and editing /etc/make.conf to leave the nvidia-kernel source unpacked then copying it to a different location and installing by hand has worked for me. The nvidia bit isn't straightforward though, you need to manually create a symlink Makefile pointing to Makefile.nvidia iirc.GentooNub wrote:No assumptions made you hit it all on the head. The only reason I'm running a 2.4 beside a 2.6 kernel is so I have a working system. Everything so far seams to be easily worked out with ALOT of research. But I can handle researching. Not finding answers is what drives me insane. Figuring out whats installed where hasn't been a problem since I learned how to properly symlink /usr/src/linuxagent_jdh wrote:I've not looked at your other post, but running 2.4 and 2.6 kernels side-by-side is a major headache if you use ALSA and (I'm making an assumption here) the nvidia-kernel driver.GentooNub wrote:I'm attempting to run 2.4.2 and 2.6.1 side by side. Having some problems with my video drivers and can't even get into x to test the sound in 2.6.1. Lately tho I've had the above happening in the 2.4.2 kernel. I have to reset the amixer levels on reboot among a few other things.I get error messages on boot that may be related. You can view those in this post. It's in the last paragraph on the second post.link97381 wrote:I just updated to kernel 2.6 with alsa compiled in and it works fine with out any run level scripts but I have to unmute it after every reboot.....is that what the run level scripts do? Because I get an error message with the script.
It'll melt yer heid trying to work out what's been installed where under what kernel and how it's supposed to work.![]()
. One thing that is still bugging me tho is I have the alsa drivers built into the 2.6 kernel because that seams to be a new feature both stated in the install page and just within the kernel config file. So I'm not quite sure why the alsa install is even buggin out on the 2.4 kernel. Makes no sense to me maybe someone can explain it? Because if it's built into the kernel doesn't it get everything it needs from the kernel therefore leaving the install in 2.4 that I'm using an a module, alone?