![]() |
Re: Automatic Muting via cron
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
|
Re: Automatic Muting via cron
Aumix does work, grog.
|
Re: Automatic Muting via cron
Quote:
Thanks for the quick response. |
Re: Automatic Muting via cron
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. |
Re: Automatic Muting via cron
Quote:
|
Re: Automatic Muting via cron
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.
|
Re: Automatic Muting via cron
I unmute with 'aumix -w 93', since 93 is the default volume in a brand new NIT.
|
Re: Automatic Muting via cron
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? |
Re: Automatic Muting via cron
|
Re: Automatic Muting via cron
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*.
|
Re: Automatic Muting via cron
Quote:
|
Re: Automatic Muting via cron
Good, that's what I used. :)
|
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 Code:
gconftool -t int -s /apps/osso/sound/master_volume 100 Code:
gconftool -t bool -s /system/osso/dsm/display/display_on_with_charger false |
Re: Automatic Muting via cron
Much nicer solution. Thanks Mikma
|
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 19:31. |
vBulletin® Version 3.8.8