LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Mandriva (https://www.linuxquestions.org/questions/mandriva-30/)
-   -   Setting volume in a startup script (https://www.linuxquestions.org/questions/mandriva-30/setting-volume-in-a-startup-script-84461/)

Twigathy 08-22-2003 04:07 AM

Setting volume in a startup script
 
Mandrake 9.1 starts up with the volume on all channels and outputs set to 0, and I want to know how to change this automatically on startup to be, for example, 25%. How do i write a Linux startup script, what language is required and where do i put the scripts I wish to run at startup?

LordOfAtlantis 08-22-2003 08:16 AM

did you install alsa?

In that case you can try using alsamixer instead of a startup script.

Open a terminal.
Run as root 'alsamixer', adjust volumes as you like and then do (also as root) 'alsactl store' which stores the volumes you just adjusted.

Maybe you need to install alsa-utils before you can do this.

Hope this helps. On my computer it works, only KMix (docking applet in KDE) can't remember the right volume.

Twigathy 08-22-2003 02:03 PM

Where can i get these alsa-utils you speak of? Im a n00b to linux (4 days and counting from install)

LordOfAtlantis 08-25-2003 07:25 AM

In KDE or Gnome or ..., you go to the menu -> Configuration -> Packaging -> Install Software

You have to type the root passwd. Then you get a window where you have a search bar. Type in this bar: 'alsa'. The computer searches for all the available packages with alsa in the name. So alsa-utils-... should be there. Mark it for installation and click 'Install'. You probably will be asked for a couple of installation CDs but this is obvious.

Now get along the instructions of my previous reply and everything should be fine.

Please check if you have installed alsa, otherwise all these replies are useless.


All times are GMT -5. The time now is 10:55 PM.