-
Adding commands to shutdown and reboot
Im trying to add this command To a shutdown and reboot sequences, I tried a few things but it didn't really work. Anyone know how to?
-
Senior Member
registered user
Greetings jvfc678,
As one suggestion, read up on /etc/rc.local. Then ..
you can probably add aumix setting just before exit 0 to the /etc/rc.local
you already have.
First, cp /etc/rc.local /etc/rc.local.orig , in case you need it sometime later,
then use sudo laumeafpad /etc/rc.local to do the editing,
and save the edited /etc/rc.local, of course.
You may probably also edit .aumixrc directly.
See man aumix.
Last edited by utu; 10-19-2014 at 03:07 PM.
-
Senior Member
registered user
Addendum
There is a simpler way.
Call up aumix from the Main Menu;
Make a few changes (or not) using the GUI;
Save.
This automatically creates & saves .aumixrc.
Otherwise, there is no .aumixrc unless this has been done.
-
Senior Member
registered user
PPS
![Quote](images/misc/quote_icon.png)
Originally Posted by
utu
First, cp /etc/rc.local /etc/rc.local.orig , in case you need it sometime later,
then use sudo laumeafpad /etc/rc.local to do the editing,
and save the edited /etc/rc.local, of course.
I never noticed the second line got screwed up. It should have read:
then use sudo leafpad /etc/rc.local to do the editing,
My bad.
Any way, use the aumix gui approach, it's easier.
-
I actually tried the gui approach but... It didn't work it dosent load the sound volume, i think theres somthing wrong with my .aumixrc file when i have time i take a look at this thanks everyone. Also i liked the Reply where utu said about the rc.local thing thank you man. But you guys did understand where im going with this right? Im trying to save the sound volume everytime i reboot or shutdown the computer
-
Senior Member
registered user
![Quote](images/misc/quote_icon.png)
Originally Posted by
jvfc678
I actually tried the gui approach but... It didn't work it dosent load the sound volume
If you did a save with the gui, and if your persistence is working,
Then that approach should work ok.
For the /etc/rc.local approach, FWIW, Here's the tail end of my /etc/rc.local:
Code:
amixer sset 'PCM' 100%; amixer sset 'Speaker' 100%; amixer sset 'Master' 80%
# Leave with "OK" status
exit 0
-
Isnt that just setting the volume to 100%? Thats not what i want. The things is: lets say i set the volume to 36, then i turn off my computer, next time i turn it back on I want it to be the same volume. Not having to go to aumix and clicking save
But thanks for the replies utu, it really helped me to find the file i wanted
-
Senior Member
registered user
You're welcome.
![Quote](images/misc/quote_icon.png)
Originally Posted by
jvfc678
Isnt that just setting the volume to 100%?
Actually, this setting in /etc/rc.local maxes out the Speaker and PCM,
and only establishes an initial value for Master (on my hardware).
Any subsequent adjustment of the panel volume control gui sets the value
of Master to some lesser or greater value; the changed value of volume
is retained on reboot, whatever it is.
One may use alsamixer on a command line to view all this more clearly.
-
I didn't even do anything and every time i start the system the volume is at a 100% i don't want that i want ALSA to save the volume automatically every time i change the volume, so when i start the system again it will be the same volume
-
Senior Member
registered user
Do you have a persistence file?
Is it working?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
![Vintage Seagate Legacy 41MB Internal 3600RPM 5.25](/store/img/g/dxUAAOSwXpVme3iu/s-l225/Vintage-Seagate-Legacy-41MB-Internal-3600RPM-5-25-.jpg)
Vintage Seagate Legacy 41MB Internal 3600RPM 5.25" ST-251 HDD MFM Hard Disk
$20.00
![Vintage Radeon X700 Pro Just Box picture](/store/img/g/qm0AAOSwHrhme3KI/s-l225/Vintage-Radeon-X700-Pro-Just-Box.jpg)
Vintage Radeon X700 Pro Just Box
$30.00
![NOS VINTAGE COMPAQ PORTABLE III KEYBOARD NEW IN BOX picture](/store/img/g/qsAAAOSwEvRmeuzq/s-l225/NOS-VINTAGE-COMPAQ-PORTABLE-III-KEYBOARD-NEW-IN-BO.jpg)
NOS VINTAGE COMPAQ PORTABLE III KEYBOARD NEW IN BOX
$150.00
![BlueSCSI V2 WiFi (Narrow DB25) - Modern Storage for Vintage Computers picture](/store/img/g/-Q4AAOSwI3hmPnUb/s-l225/BlueSCSI-V2-WiFi-Narrow-DB25-Modern-Storage-for-Vi.jpg)
BlueSCSI V2 WiFi (Narrow DB25) - Modern Storage for Vintage Computers
$51.50
![BlueSCSI V2 WiFi (Desktop) Modern Storage for Vintage Computers Latest Model picture](/store/img/g/GXUAAOSwWZRmPnHK/s-l225/BlueSCSI-V2-WiFi-Desktop-Modern-Storage-for-Vintag.jpg)
BlueSCSI V2 WiFi (Desktop) Modern Storage for Vintage Computers Latest Model
$53.50
![NEW Manufacture OLD STYLE Oval 3 Prong Power Cord HP style 125V 7A 875W Vintage picture](/store/img/g/M1IAAOSwoHlkXVZf/s-l225/NEW-Manufacture-OLD-STYLE-Oval-3-Prong-Power-Cord-.jpg)
NEW Manufacture OLD STYLE Oval 3 Prong Power Cord HP style 125V 7A 875W Vintage
$39.95
![Vintage Compaq 3.5 Floppy Drive 166919-001 Used Good 5.25 Bezel Description picture](/store/img/g/t48AAOSwqGpme3lN/s-l225/Vintage-Compaq-3-5-Floppy-Drive-166919-001-Used-Go.jpg)
Vintage Compaq 3.5 Floppy Drive 166919-001 Used Good 5.25 Bezel Description
$29.99
![Apple Macintosh m0110 keyboard Vintage picture](/store/img/g/4tIAAOSwY0BmeyRY/s-l225/Apple-Macintosh-m0110-keyboard-Vintage.jpg)
Apple Macintosh m0110 keyboard Vintage
$70.00
![Vintage Commodore 64C Computer Matching #'s w/Power Supply TESTED Works C64 C-64 picture](/store/img/g/NhYAAOSwY89meykV/s-l225/Vintage-Commodore-64C-Computer-Matching-s-w-Power-.jpg)
Vintage Commodore 64C Computer Matching #'s w/Power Supply TESTED Works C64 C-64
$169.95
![Vintage HP C3700-26506 700/RX X-terminal motherboard picture](/store/img/g/YfkAAOSwG4dmewKG/s-l225/Vintage-HP-C3700-26506-700-RX-X-terminal-motherboa.jpg)
Vintage HP C3700-26506 700/RX X-terminal motherboard
$40.00