-
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
![LOT 8x 16GB (128GB) Samsung M393B2G70DB0-CMA PC3-14900R DIMM Server Memory picture](/store/img/g/2eIAAOSwol1mEB20/s-l225/LOT-8x-16GB-128GB-Samsung-M393B2G70DB0-CMA-PC3-149.jpg)
LOT 8x 16GB (128GB) Samsung M393B2G70DB0-CMA PC3-14900R DIMM Server Memory
$35.99
![A-Tech 8GB DDR3 1600 PC3-12800 Laptop SODIMM 204-Pin Memory RAM PC3L DDR3L 1x 8G picture](/store/img/g/RCAAAOSweqdeWaui/s-l225/A-Tech-8GB-DDR3-1600-PC3-12800-Laptop-SODIMM-204-P.jpg)
A-Tech 8GB DDR3 1600 PC3-12800 Laptop SODIMM 204-Pin Memory RAM PC3L DDR3L 1x 8G
$13.99
![EDGE SK Hynix 16GB (2 x 8GB) PC3L-12800S DDR3 SODIMM Laptop RAM NEW picture](/store/img/g/PJMAAOSw8fZmV0-S/s-l225/EDGE-SK-Hynix-16GB-2-x-8GB-PC3L-12800S-DDR3-SODIMM.jpg)
EDGE SK Hynix 16GB (2 x 8GB) PC3L-12800S DDR3 SODIMM Laptop RAM NEW
$16.95
![Micron 8GB DDR4 1Rx16 PC4-3200AA Laptop RAM Memory MTA4ATF1G64HZ-3G2E2 picture](/store/img/g/PxMAAOSw~T1mYfdq/s-l225/Micron-8GB-DDR4-1Rx16-PC4-3200AA-Laptop-RAM-Memory.jpg)
Micron 8GB DDR4 1Rx16 PC4-3200AA Laptop RAM Memory MTA4ATF1G64HZ-3G2E2
$10.00
![Crucial DDR3L 16GB 1600 2x 8GB PC3-12800 Laptop SODIMM Memory RAM PC3 16G DDR3 picture](/store/img/g/mecAAOSw2Vlkv6Ot/s-l225/Crucial-DDR3L-16GB-1600-2x-8GB-PC3-12800-Laptop-SO.jpg)
Crucial DDR3L 16GB 1600 2x 8GB PC3-12800 Laptop SODIMM Memory RAM PC3 16G DDR3
$22.45
![[ BULK LOT OF 20 ] UNITS of 8GB DDR4 Laptop RAM SAMSUNG, HYNIX etc. picture](/store/img/g/3kcAAOSwrmRiECCq/s-l225/-BULK-LOT-OF-20-UNITS-of-8GB-DDR4-Laptop-RAM-SAMSU.jpg)
[ BULK LOT OF 20 ] UNITS of 8GB DDR4 Laptop RAM SAMSUNG, HYNIX etc.
$179.99
![Samsung 8GB 2Rx8 DDR4 PC4-2133P-SE1-11 Laptop RAM M471A1G43EB1-CPB PC4-17000 OEM picture](/store/img/g/nmUAAOSwxGJmbw2w/s-l225/Samsung-8GB-2Rx8-DDR4-PC4-2133P-SE1-11-Laptop-RAM-.jpg)
Samsung 8GB 2Rx8 DDR4 PC4-2133P-SE1-11 Laptop RAM M471A1G43EB1-CPB PC4-17000 OEM
$9.95
![SK Hynix HMAG68EXNUA076N-AD 16GB (2X8) 288-Pin Ram picture](/store/img/g/picAAOSw1ztmbwzi/s-l225/SK-Hynix-HMAG68EXNUA076N-AD-16GB-2X8-288-Pin-Ram.jpg)
SK Hynix HMAG68EXNUA076N-AD 16GB (2X8) 288-Pin Ram
$30.00
![128GB Kit 4x 32GB PC4-17000 LRDIMM DELL POWEREDGE R730xd R730 R630 Memory RAM picture](/store/img/g/I1cAAOSwInxXNRbw/s-l225/128GB-Kit-4x-32GB-PC4-17000-LRDIMM-DELL-POWEREDGE-.jpg)
128GB Kit 4x 32GB PC4-17000 LRDIMM DELL POWEREDGE R730xd R730 R630 Memory RAM
$127.96
![Lot of 50 - 4GB PC3 DDR3 Mixed Speeds Laptop RAM Mix Brand TESTED picture](/store/img/g/7dQAAOSwiPNmPM1a/s-l225/Lot-of-50-4GB-PC3-DDR3-Mixed-Speeds-Laptop-RAM-Mix.jpg)
Lot of 50 - 4GB PC3 DDR3 Mixed Speeds Laptop RAM Mix Brand TESTED
$75.00