Page 1 of 5 123 ... LastLast
Results 1 to 10 of 43

Thread: Adding commands to shutdown and reboot

  1. #1

    Adding commands to shutdown and reboot

    Im trying to add this command
    Code:
    aumix -S
    To a shutdown and reboot sequences, I tried a few things but it didn't really work. Anyone know how to?

  2. #2
    Senior Member registered user
    Join Date
    May 2006
    Location
    Columbia, Maryland USA
    Posts
    1,631
    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.

  3. #3
    Senior Member registered user
    Join Date
    May 2006
    Location
    Columbia, Maryland USA
    Posts
    1,631

    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.

  4. #4
    Senior Member registered user
    Join Date
    May 2006
    Location
    Columbia, Maryland USA
    Posts
    1,631

    PPS

    Quote Originally Posted by utu View Post
    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.

  5. #5
    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

  6. #6
    Senior Member registered user
    Join Date
    May 2006
    Location
    Columbia, Maryland USA
    Posts
    1,631
    Quote Originally Posted by jvfc678 View Post
    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

  7. #7
    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

  8. #8
    Senior Member registered user
    Join Date
    May 2006
    Location
    Columbia, Maryland USA
    Posts
    1,631
    You're welcome.

    Quote Originally Posted by jvfc678 View Post
    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.

  9. #9
    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

  10. #10
    Senior Member registered user
    Join Date
    May 2006
    Location
    Columbia, Maryland USA
    Posts
    1,631
    Do you have a persistence file?
    Is it working?

Page 1 of 5 123 ... LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


A-Tech 256GB 4x 64GB 4Rx4 PC4-19200 ECC Load Reduced LRDIMM Server Memory RAM picture

A-Tech 256GB 4x 64GB 4Rx4 PC4-19200 ECC Load Reduced LRDIMM Server Memory RAM

$287.96



Team T-FORCE VULCAN Z 16GB (2 x 8GB) 288-Pin PC RAM DDR4 3200 (PC4 25600) XMP picture

Team T-FORCE VULCAN Z 16GB (2 x 8GB) 288-Pin PC RAM DDR4 3200 (PC4 25600) XMP

$38.99



A-Tech 8GB DDR3 1600 PC3-12800 Laptop SODIMM 204-Pin Memory RAM PC3L DDR3L 1x 8G picture

A-Tech 8GB DDR3 1600 PC3-12800 Laptop SODIMM 204-Pin Memory RAM PC3L DDR3L 1x 8G

$13.99



Samsung 16GB (2x8GB) DDR4 2400MHz PC4-19200 Desktop RAM Memory M378A1K43CB2-CRC picture

Samsung 16GB (2x8GB) DDR4 2400MHz PC4-19200 Desktop RAM Memory M378A1K43CB2-CRC

$19.95



Crucial 16GB (2x 8GB) Kit DDR3L 1600MHz PC3-12800 UDIMM Desktop 240-Pin CL11 RAM picture

Crucial 16GB (2x 8GB) Kit DDR3L 1600MHz PC3-12800 UDIMM Desktop 240-Pin CL11 RAM

$21.33



CORSAIR Vengeance RGB Pro 32GB (2 x 16GB) 288-Pin PC RAM DDR4 3600 (PC4 28800) picture

CORSAIR Vengeance RGB Pro 32GB (2 x 16GB) 288-Pin PC RAM DDR4 3600 (PC4 28800)

$79.95



HyperX FURY DDR3 8GB 16GB 32GB 1600 MHz PC3-12800 Desktop RAM Memory DIMM 240pin picture

HyperX FURY DDR3 8GB 16GB 32GB 1600 MHz PC3-12800 Desktop RAM Memory DIMM 240pin

$12.90



HyperX FURY RAM DDR4 16GB 8GB 32GB 4GB 3200 2666 2400 2133 Desktop Memory DIMM picture

HyperX FURY RAM DDR4 16GB 8GB 32GB 4GB 3200 2666 2400 2133 Desktop Memory DIMM

$14.85



HyperX FURY DDR4 64GB (4x16GB) 3200MHz PC4-25600 Desktop RAM Memory DIMM 288PIN picture

HyperX FURY DDR4 64GB (4x16GB) 3200MHz PC4-25600 Desktop RAM Memory DIMM 288PIN

$129.95



HyperX FURY DDR4 16GB 32GB 64GB 2666MHz PC4-21300 Desktop RAM Memory DIMM 288Pin picture

HyperX FURY DDR4 16GB 32GB 64GB 2666MHz PC4-21300 Desktop RAM Memory DIMM 288Pin

$119.80