maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   OS2008 / Maemo 4 / Chinook - Diablo (https://talk.maemo.org/forumdisplay.php?f=29)
-   -   Automatic Muting via cron (https://talk.maemo.org/showthread.php?t=20966)

cybergypsy 2008-06-13 20:31

Automatic Muting via cron
 
I'd like to use cron to automatically mute the volume of my OS2008 N800 every night and unmute it again in the morning , is this possible ?

thanks

maillaxa 2008-06-13 21:22

Re: Automatic Muting via cron
 
In short: yes :)

cybergypsy 2008-06-14 08:12

Re: Automatic Muting via cron
 
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

maillaxa 2008-06-14 15:31

Re: Automatic Muting via cron
 
You should put this onto the wiki, I guess.

Bravo !

alephito 2008-06-20 12:23

Re: Automatic Muting via cron
 
Thanks, Cybergypsy.

My first contact with Linux was with my N810 and managing to set a crontab to mute and un-mute the device was really entertaining.

What other uses you have for cron?

aNoble 2008-06-20 12:50

Re: Automatic Muting via cron
 
I wonder if it would be possible to do something similar to this for the indicator light. I sometimes wake up to an annoying flashing blue light in the middle of the night when I receive an email.

cybergypsy 2008-06-20 12:53

Re: Automatic Muting via cron
 
I have turned off the LED notifications :-

Settings > Control Panel > Display > LEDs

....and sleep easy.

alephito 2008-06-20 13:22

Re: Automatic Muting via cron
 
Quote:

Originally Posted by aNoble (Post 193788)
I wonder if it would be possible to do something similar to this for the indicator light. I sometimes wake up to an annoying flashing blue light in the middle of the night when I receive an email.

Yes! That would be great.

BoxOfSnoo 2008-06-20 14:38

Re: Automatic Muting via cron
 
I already clicked it, but THANK YOU! (the automated ones are a little cheap)

I was envisioning that this would be an ideal task for a linux handheld, just never got to test it and list it out so directly.

I have also set it to mute for regularly scheduled meetings I have.

qwerty12 2008-06-20 15:06

Re: Automatic Muting via cron
 
Quote:

Originally Posted by aNoble (Post 193788)
I wonder if it would be possible to do something similar to this for the indicator light. I sometimes wake up to an annoying flashing blue light in the middle of the night when I receive an email.

Well, yes it can be done.

Make cron run gconftool which turns off the LED value (not sure on specifics but I know for SURE that the LED's are controlled via gconf)


All times are GMT. The time now is 13:51.

vBulletin® Version 3.8.8