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

Thread: Adding commands to shutdown and reboot

Hybrid View

  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
    Do you have a persistence file?
    Is it working?

  9. #9
    i actually installed it on my pen-drive(no persistence i really installed it) and it saves my files and changes on exit

  10. #10
    Senior Member registered user
    Join Date
    May 2006
    Location
    Columbia, Maryland USA
    Posts
    1,631
    .
    Greetings again, jvfc678.

    It's not clear to me what you have for a system.

    From another thread it seems you didn't set up via a flash-knoppix approach,
    and beyond that it's not clear just how you set up Knoppix.
    Whatever your system is, it does appear NOT to save changed audio settings.
    This is hard to understand if indeed other changes are saved.

    I think the experts (I'm not one) might start with asking you to tell us
    what you get with the command
    Code:
    df -kTh
    so the main elements of your install become apparent.

    If your 'install' is one like a poor-man's install, these begin with a
    wholesale resurrection of the LiveDVD image, which will overwrite anything
    in its memory space. It takes a persistence file to re-create any changes
    in this instance. This case would behave exactly the same as operating with
    a LivedVD; that is, no changes get saved (or they are wiped out on re-boot).

    My system is a LiveUSB on an SDHC card, set up with reiserfs persistence
    using flash Knoppix. I don't have your problem. I can't help thinking you
    might find it easier just to go back and make a flash-knoppix LiveUSB with
    persistence rather than try to get to the bottom of the current symptoms you describe.

Page 1 of 4 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
  •  


AMD Ryzen 7 5800X Processor (4.7GHz, 8 Cores, Socket AM4) picture

AMD Ryzen 7 5800X Processor (4.7GHz, 8 Cores, Socket AM4)

$150.00



Intel - Core i9-14900K 14th Gen 24-Core 32-Thread - 4.4GHz (6.0GHz Turbo) Soc... picture

Intel - Core i9-14900K 14th Gen 24-Core 32-Thread - 4.4GHz (6.0GHz Turbo) Soc...

$549.99



Intel - Core i5-14600K 14th Gen 14-Core 20-Thread - 4.0GHz (5.3GHz Turbo) Soc... picture

Intel - Core i5-14600K 14th Gen 14-Core 20-Thread - 4.0GHz (5.3GHz Turbo) Soc...

$306.99



AMD Ryzen 9 7900x Processor (5.6 GHz, 12 Cores) picture

AMD Ryzen 9 7900x Processor (5.6 GHz, 12 Cores)

$225.00



AMD Ryzen 9 7900X3D Gaming Processor - 12 Core And 24 Threads - 5.60 GHz Max Boo picture

AMD Ryzen 9 7900X3D Gaming Processor - 12 Core And 24 Threads - 5.60 GHz Max Boo

$349.00



AMD Ryzen 5 4500 6-Core 3.6GHz Socket AM4 65W CPU Desktop Processor picture

AMD Ryzen 5 4500 6-Core 3.6GHz Socket AM4 65W CPU Desktop Processor

$79.00



Intel Core i3-8100T 3.1 GHz Socket LGA 1151 Quad Core Processor... picture

Intel Core i3-8100T 3.1 GHz Socket LGA 1151 Quad Core Processor...

$12.45



Intel Core i5-12600K 2.80GHz 10-Core Processor LGA 1700 BX8071512600K picture

Intel Core i5-12600K 2.80GHz 10-Core Processor LGA 1700 BX8071512600K

$164.99



Intel Core i9-9900 SRG18 3.10GHz 16MB 8-Core LGA1151 CPU Processor picture

Intel Core i9-9900 SRG18 3.10GHz 16MB 8-Core LGA1151 CPU Processor

$262.49



**SEALED** Intel Core i9-12900K Processor (5.2 GHz, 16 Cores, FCLGA1700) picture

**SEALED** Intel Core i9-12900K Processor (5.2 GHz, 16 Cores, FCLGA1700)

$309.99