Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (2) </ [1] 2 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Alsa needs manual setup after every boot, How do you make it automatic?< Next Oldest | Next Newest >
davea0511 Offline





Group: Members
Posts: 22
Joined: Jan. 2006
Posted: Jan. 18 2006,16:55 QUOTE

I'm using Alsa.dsl - works great, but I have to run the setup after every boot to make it work.  Isn't there some files I can add to .filetool.lst, or copy using bootlocal.sh to make it automatic?
Back to top
Profile PM 
clacker Offline





Group: Members
Posts: 570
Joined: June 2004
Posted: Jan. 18 2006,17:44 QUOTE

davea0511, I am going to assume that you have a hard drive install, and that when you say you need to run the setup each time, you mean that you need to choose myDSL -> Alsa Setup from the menu.  I don't think there is an easy answer if you have a frugal install or a liveCD besides rematering.

If you want alsa to start each time, you should place these two commands in you bootlocal.sh file:

sudo /etc/init.d/alsasound start
/usr/bin/amixer set Master 20 unmute


You should change the 20 number.  I would recomend using alsamixer from an xterminal and playing around with the level until you get what you want.  Then run amixer | more to read the number you see for front left and front right playback for the master channel.  The maximimum values are also shown.  Remember, it's not 20%, it's 20/some maximum = % volume.  You may need to umute other channels as well depending on your particular card, and I've read that some cards use different capitalization for the word "Master", but again, check it out in alsamixer right after you set alsa using the menu option.
Back to top
Profile PM 
davea0511 Offline





Group: Members
Posts: 22
Joined: Jan. 2006
Posted: Jan. 18 2006,18:12 QUOTE

Thanks for the prompt response.  Bummer though... I'm running frugal off a Flash card.  I tried it anyway (in bootlocal.sh and in .xinitrc) to no avail.

Okay, so what changes do I need to make to the master to do this on frugal?  You wouldn't perchance have already done so have you?  It sure would be nice to make something like that available since frugal is become the preferred way over HD install in so many instances.
Back to top
Profile PM 
clacker Offline





Group: Members
Posts: 570
Joined: June 2004
Posted: Jan. 18 2006,19:00 QUOTE

It would involve remastering dsl.  You can look at other posts for the nuts and bolts of it, but it does require some work and can get involved.

Basically, you would need to chroot into your remaster and install both gnu-utils and alsa.  Then you would run the alsa-setup script in the /opt/alsa directory, and finally set up those two lines in bootlocal.sh (all from the chroot environment).

If you were running the liveCD, I'd say put gnu-utils.dsl and alsa.dsl in the root directory so they get loaded on startup, and then put /opt/alsa/alsasetup in the bootlocal.sh.  At least that way the packages get loaded and it runs the script automatically on startup (although you still need to hit OK and choose your card).
Back to top
Profile PM 
davea0511 Offline





Group: Members
Posts: 22
Joined: Jan. 2006
Posted: Jan. 18 2006,21:31 QUOTE

Unfortunately this is going on a touchscreen system that doesn't have a keyboard, and since the alsasetup won't accept mouse clicks I'm dead in the water until I remaster DSL to include alsa.  Ughh.

There used to be a program for DOS called BufferStuffer, and it was a commandline that stuffed whatever you wanted in the keyboard buffer prior to running a program that required keyboard input.

Boy I sure wish I had that right now.
Back to top
Profile PM 
8 replies since Jan. 18 2006,16:55 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (2) </ [1] 2 >/
reply to topic new topic new poll
Quick Reply: Alsa needs manual setup after every boot

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code