Linux - General This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
04-07-2004, 03:39 AM
|
#1
|
Member
Registered: Dec 2003
Location: Petaling Jaya
Distribution: Ubuntu
Posts: 475
Rep:
|
How can I save mixer settings?
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:
amixer sset Master 20 unmute >/dev/null
amixer sset PCM 20 unmute >/dev/null
But unfortunatelly add these two lines:
amixer sset Line 20 unmute >/dev/null
amixer sset CD 20 unmute >/dev/null
doesn't work.
$ amixer sset Line1 20 unmute >/dev/null
amixer: Unable to find simple control 'Line1',0
So, anyone know how to solve this problem?
|
|
|
04-07-2004, 04:21 AM
|
#2
|
Member
Registered: Sep 2003
Location: chikyuu (E103N6)
Distribution: Redhat 8.0 (2.4.25-custom), Fedora Core 1 (2.4.30-custom)
Posts: 357
Rep:
|
Do you have alsasound script in /etc/rc.d/init.d ? You must have it in the directory and also in the directory corresponding to your runlevel.
|
|
|
04-07-2004, 05:50 AM
|
#3
|
Member
Registered: Dec 2003
Location: Petaling Jaya
Distribution: Ubuntu
Posts: 475
Original Poster
Rep:
|
No one told me about that. I don't have one. So could you tell me how to make one?
|
|
|
04-07-2004, 10:57 PM
|
#4
|
Member
Registered: Sep 2003
Location: chikyuu (E103N6)
Distribution: Redhat 8.0 (2.4.25-custom), Fedora Core 1 (2.4.30-custom)
Posts: 357
Rep:
|
As far as I can remember (I'm not at linux computer right now), download alsa-driver.xxx.tar.gz from www.alsa-project.org and then compile. Then check inside utils/. There will be alsasound script inside there. Or you could try this one:
http://www.alsa-project.org/alsa/dri...s/alsasound.in
Just rename it to alsasound then put inside the /etc/rc.d/init.d/ then softlink it to your runlevel.
|
|
|
04-08-2004, 01:36 AM
|
#5
|
Member
Registered: Dec 2003
Location: Petaling Jaya
Distribution: Ubuntu
Posts: 475
Original Poster
Rep:
|
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 ).
Any idea????
|
|
|
04-08-2004, 04:59 AM
|
#6
|
Member
Registered: Sep 2003
Location: chikyuu (E103N6)
Distribution: Redhat 8.0 (2.4.25-custom), Fedora Core 1 (2.4.30-custom)
Posts: 357
Rep:
|
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?
|
|
|
04-08-2004, 06:36 AM
|
#7
|
Member
Registered: Dec 2003
Location: Petaling Jaya
Distribution: Ubuntu
Posts: 475
Original Poster
Rep:
|
# which alsactl
/usr/sbin/alsactl
#echo $PATH
/usr/local/sbin:/usr/local/bin:/sbin:/usr/sbin:/bin:/usr/bin:/root/bin:/usr/sbin/
# alsactl
alsactl: Specify command...
I installed by sources.
|
|
|
04-08-2004, 09:22 PM
|
#8
|
Member
Registered: Sep 2003
Location: chikyuu (E103N6)
Distribution: Redhat 8.0 (2.4.25-custom), Fedora Core 1 (2.4.30-custom)
Posts: 357
Rep:
|
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.
|
|
|
04-09-2004, 12:03 AM
|
#9
|
Member
Registered: Dec 2003
Location: Petaling Jaya
Distribution: Ubuntu
Posts: 475
Original Poster
Rep:
|
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.
|
|
|
04-09-2004, 01:45 AM
|
#10
|
LQ Guru
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852
|
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.
|
|
|
04-09-2004, 02:26 AM
|
#11
|
Member
Registered: Dec 2003
Location: Petaling Jaya
Distribution: Ubuntu
Posts: 475
Original Poster
Rep:
|
Quote:
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
Thank you, chiichan and MS3FGX.
|
|
|
All times are GMT -5. The time now is 02:28 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|