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)

alephito 2008-09-05 23:39

Re: Automatic Muting via cron
 
Quote:

Originally Posted by Laughing Man (Post 221274)
0 10 * * 1,3,5 aumix -w 0

I have been using this syntax and works well.

Laughing Man 2008-09-06 00:27

Re: Automatic Muting via cron
 
Good, that's what I used. :)

Mikma 2008-09-12 22:24

Re: Automatic Muting via cron
 
So here's how I did my cron-scripts. First line changes volume to mute/max, and second line switches Instant Message -led on/off.

Setting stuff OFF.
Code:

gconftool -t int -s /apps/osso/sound/master_volume -- -100
gconftool -t bool -s /system/osso/dsm/leds/PatternCommunicationChat false

Setting stuff ON.
Code:

gconftool -t int -s /apps/osso/sound/master_volume 100
gconftool -t bool -s /system/osso/dsm/leds/PatternCommunicationChat true

To make the screen turn off in case you have charger connected:
Code:

gconftool -t bool -s /system/osso/dsm/display/display_on_with_charger false
Here's the whole crontab. http://mikma.reaktio.net/maemo/crontab.txt

codeMonkey 2008-09-14 22:29

Re: Automatic Muting via cron
 
Much nicer solution. Thanks Mikma

grog 2009-03-13 15:07

Re: Automatic Muting via cron
 
Does anyone know whether gconftool can mute & un-mute the volume, i.e. not set to zero, leave the volume set to whatever level it is, just mute & un-mute? TX


All times are GMT. The time now is 16:29.

vBulletin® Version 3.8.8