Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
To hear the sound CD playing with alsa driver and kernel 2.6.x, you have to increase the value of Line1 with Volume Control, or aumix. But after reboot, the setting is gone. That means I have to do manually. Anyone know how to save this setting?
The same problem apply with my normal sound. So it mute by default. So I have to add two lines in my startup script to solve this problem:
I downloaded the script and run it in console.
# alsasound restart
Shutting down sound driver: !!!alsactl not found!!! done
Starting sound driver: snd-emu10k1 done
ERROR: alsactl not found
But that does not increase the value of Line1 ( the others are Vol, Bass, Trebl, Synth, Pcm, Apkr, Mic, CD, Video ).
How did you install the alsa? Did you follow the instaruction on the alsa-project website? Because alsactl should be present if you installed them correctly. Did you install alsa-driver, alsa-utils and alsa-lib correctly?
It is the correct location. Try looking into your source file for alsasound. Maybe it was compiled to fit your system. I mean in the alsa-driver. But for me, when I installed from source, it will copy the 'alsasound' file to the correct runlevel. I think this part of script is correct:
function stop() {
#
# store driver settings
#
if [ -x $alsactl ]; then
$alsactl -f $asoundcfg store
else
echo -n -e "${rc_warning}!!!alsactl not found!!!${rc_reset} "
fi
Did you run the script in root account? Exactly what I did were:
1. Put the script in /etc/rc.d/init.d/.
2. Add softlink in /etc/rc.d/rc3.d/ and /etc/rc.d/rc5.d/ to alsaound script.
3. Run alsaconf.
4. Reboot.
5. I see that the alsasound is loaded.
6. Then I see that the mixer setting was set to default.
Yeah I forgot something. Is there alsactl script in the /etc/rc.d/init.d directory. Maybe the alsasound script was refering to the script, not the /usr/sbin/alsactl.
I did that with root account. I don't have rc3.d and rc5.d directory. I use Slackware. So I make them. Put the alsasound script into them. I copy alsactl script from /usr/sbin/alsactl to /etc/rc.d/init.d directory. Run alsaconf. Reboot. Got no luck. I still have to increase the value of Line1 with aumix, or kmix, or Gnome Volume Control if I want to hear the sound of CD music.
On my Slackware machine, I added these lines to my rc.local file:
rexima vol 90
rexima pcm 90
I find moving them much higher than 90% makes everything sound like crap, but that might just be my hardware, it might work differently on your system.
Originally posted by MS3FGX On my Slackware machine, I added these lines to my rc.local file:
rexima vol 90
rexima pcm 90
Damn, that's the solution So I add this line in my startup script (rc.local):
rexima line1 50
That's all. My vol and pcm is already increased by this command in startup script:
amixer sset Master 20 unmute >/dev/null
amixer sset PCM 20 unmute >/dev/null
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.