Menu

Main Menu
Talk Get Daily Search

Member's Online

    User Name
    Password

    Automatic Muting via cron

    Reply
    Page 5 of 6 | Prev |   3     4   5   6   | Next
    grog | # 41 | 2008-07-04, 17:47 | Report

    Under diablo I've just installed the cron.tar.gz package which works great! I then installed aumix-gtk from the elkins repo, which doesn't work so well. While 'aumix -w 0' run as root doesn't give any errors it also doesn't mute the IT's output. Can anyone confirm that this does work in diablo? TX

    Edit | Forward | Quote | Quick Reply | Thanks

     
    alephito | # 42 | 2008-07-04, 18:29 | Report

    Aumix does work, grog.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    grog | # 43 | 2008-07-04, 20:14 | Report

    Originally Posted by alephito View Post
    Aumix does work, grog.
    Of course it does, and of course it's only after I post here about it do I find out what I did wrong . I was playing with the system volume control, thinking that just because I could hear the chimes as I changed the volume that it wasn't working. But what I didn't realize is that just by accessing that control it was restoring the volume automatically. So every time I shut it off using aumix, I was turning it back on with the volume control .

    Thanks for the quick response.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    allnameswereout | # 44 | 2008-07-05, 23:05 | Report

    Nice concept, but if you are bothered by the light and don't want to hear sounds why not simply hang the device on the power, and put it off? Then put it on when you wake up. Booting the device has very much improved with Diablo.

    Also, what if the device went off while inbetween those 2 cron scripts? The scripts will have to be executed on boot as well.

    Then there are weekend days with perhaps different preferences but thats easily fixed in cron.

    Perhaps a cron frontend a-la Windows Scheduler would be nice for the NIT.

    Have an alarm in the form of an MP3 being your alarm clock.

    Nice concept tho but IMO these scripts should also save the current setting IOW save the setting before it goes into 'night' mode, and then in morning return to this original setting before it went into 'night' mode. Currently. reminds me of ALSA in its early days, hehe.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Laughing Man | # 45 | 2008-09-02, 20:06 | Report

    Originally Posted by cybergypsy View Post
    Thanks maillaxa, thats great!

    For anyone else who would like to get this working , here is what I have done.
    I set all this up via SSH on my desktop rather than the built-in terminal, this allows easy copy & paste as well as file transfers via secure copy (scp)
    1. Installed the aumix-gtk applcation from the repositories.
    2. Installed the cron package from this thread.
    3. As root created a crontab containing :-
      Code:
      30 23 * * * aumix -w 0
      00 7 * * * aumix -w 90
      This mutes the tablet at 11:30pm and un-mutes it at 07:00am
    4. Either reboot or run cron from the command line.

    Good Luck
    cybergypsy
    Can you setup several scripts? For example, I have classes on different days that I'd like it to auto mute on.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    TrueJournals | # 46 | 2008-09-05, 02:55 | Report

    Try using http://www.webmaster-toolkit.com/cron-generator.shtml to generate your crontab lines. You can have as many lines in the crontab file as you want. Just remember that aumix -w 0 will mute, and aumix -w 90 will unmute.

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following 2 Users Say Thank You to TrueJournals For This Useful Post:
    Laughing Man, qwerty12

     
    alephito | # 47 | 2008-09-05, 11:05 | Report

    I unmute with 'aumix -w 93', since 93 is the default volume in a brand new NIT.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Laughing Man | # 48 | 2008-09-05, 20:07 | Report

    Thanks! Though I have a question.. say..

    0 10 * * * aumix -w 0

    That would mean 10 AM on a Sunday it would mute my n800 using aumix.

    Now I can set one up for each day.. but is it possible to say.. create a crontab that does Monday, Wed, and Friday? Or would I need three different crontabs? For example, could I do something like this?

    0 10 * * 1,3,5 aumix -w 0

    Or would I need

    0 10 * * 1 aumix -w 0
    0 10 * * 3 aumix -w 0
    0 10 * * 5 aumix -w 0

    And if so, could I put them all in one textfile instead of having an individual text file for each one?

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Benson | # 49 | 2008-09-05, 20:17 | Report

    http://linux.die.net/man/5/crontab

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to Benson For This Useful Post:
    Laughing Man

     
    Laughing Man | # 50 | 2008-09-05, 21:06 | Report

    Ok, thanks for the help everyone. I've written the file and loaded it with crontab.. so I guess I'll find out Monday *crosses fingers*.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Page 5 of 6 | Prev |   3     4   5   6   | Next
vBulletin® Version 3.8.8
Normal Logout