![]() |
[Request] Custom profile depending of the time of day
Hi!
I was thinking in create some tasks on crontab to customize the way my N900 behaves during the day, like: Code:
|
Re: [Request] Custom profile depending of the time of day
Well I really only wanted to automate the profile setting from general to silent. Built and installed fcron(because it sleeps between events) and set it all up so I actually have that :)
For the rest I haven't looked into it really. But generally you should be able to do it with dbus-send(that's how the profile setting works). |
Re: [Request] Custom profile depending of the time of day
Thanks for you comments @ruskie.
Maybe these examples can be a good start: http://wiki.maemo.org/Phone_control#DBUS Regards, Javi |
Re: [Request] Custom profile depending of the time of day
your life is so samey,, i cannot believe u would really need or want to do this-- but running macro type could be usefull i suppose..
|
Re: [Request] Custom profile depending of the time of day
the fact taht you want things tunred on and off at times means that the nokia fails in the battery stakes-
which it certainly doies for me.. i carry two batterys |
Re: [Request] Custom profile depending of the time of day
Ooh I am looking for something like this.
*pir followes this thread |
Re: [Request] Custom profile depending of the time of day
This would be an awesome feature for the N900.
I will be following this as well :) |
Re: [Request] Custom profile depending of the time of day
crontab can schedule things to do at specific times.
it will be easy enough for you to create a script to set different profiles at different times of the day, assuming you are able to get access to it from the command line, closest command i've seen has been profiled however it does not seem to respond to the --help parameter. |
Re: [Request] Custom profile depending of the time of day
thanks for that dbus link - I'll be able to cook something up quite easily.
|
Re: [Request] Custom profile depending of the time of day
Quote:
Maybe that is useful too :) -edit- Also, here: http://talk.maemo.org/showpost.php?p=375763&postcount=5 |
Re: [Request] Custom profile depending of the time of day
This is certainly a development I could get behind. It's something I would find particularly useful. If you know how to create it, then Yes Please from me. :)
|
Re: [Request] Custom profile depending of the time of day
heres what i get when i launch dbus monitor and change profiles:
Quote:
|
Re: [Request] Custom profile depending of the time of day
solved!!!!
Heres the command to change profies: Quote:
|
Re: [Request] Custom profile depending of the time of day
Quote:
|
Re: [Request] Custom profile depending of the time of day
Quote:
http://www.gossamer-threads.com/lists/maemo/users/35685 This here also seems promising, specifically ALARM_ACTION_TYPE_DBUS : http://maemo.org/api_refs/5.0/5.0-fi...947313667686b2 |
Re: [Request] Custom profile depending of the time of day
Will it change profile based on key words in the calendar? E.g. "meeting" will send it into silent, and end of meeting back into normal profile?
|
Re: [Request] Custom profile depending of the time of day
I think that would require too much parsing of data, perhaps a little too much for a script. but in place of crontab I think it may do just fine.
|
Re: [Request] Custom profile depending of the time of day
I found some applications for Android that could be implemented in Maemo:
Locale for Android SweetDreams (nformation in Spanish) Regards, Javi |
Re: [Request] Custom profile depending of the time of day
This sounds similar to the app for symbian called best profiles.
It would be great for start if someone could create a GUI for auto profile switching from general to silent and back at predefinied time. |
Re: [Request] Custom profile depending of the time of day
I'd like to suggest another feature as part of this request: toggle vibrate on/off for the profile that is set at a specific time. For example, at night, set the phone to "silent" profile and also disable vibrate.
|
Re: [Request] Custom profile depending of the time of day
sounds cool. I always used to think it would have been cool to switch to '' profile based on Bluetooth or WIFI connection. i.e when detected at my work computer, silent profile activate automatically, when home computer detected, 'general' profile activated....but doing it to times would also be a good/better option.
something that triggers due to 'actual activity' i'e Bluetooth found, wifi detected etc etc would ensure you could be flexible with your time. *subscribed* |
Re: [Request] Custom profile depending of the time of day
I've put together the tips in this thread and some others from here (with thanks to ruskie) and I came up with this not-exactly-easy guide to setup timed profiles.
I've made two scripts, profile_general.sh and profile_silent.sh, to set the profile to general or silent, then setup fcron to run these scripts at specific times. And this is how I did it: Quote:
The "export EDITOR=vim" is needed because fcrontab -e will look for vi in /scratchbox/tools/bin/vi and I don't have it there. *maybe* you can use an editor other than vim. maybe also one with a GUI. |
Re: [Request] Custom profile depending of the time of day
You sir, are my hero. I was threatening to write an application last night when I turned my phone off before bed.
Here are some additional calls others may find handy. Someone adding bluetooth would make this complete I think. Turn off cellular: dbus-send --system --type=method_call --dest=com.nokia.phone.SSC /com/nokia/phone/SSC com.nokia.phone.SSC.set_radio boolean:false Turn on cellular: dbus-send --system --type=method_call --dest=com.nokia.phone.SSC /com/nokia/phone/SSC com.nokia.phone.SSC.set_radio boolean:true Turn off WiFi: dbus-send --system --dest=com.nokia.icd /com/nokia/icd_ui com.nokia.icd_ui.disconnect boolean:true Flight mode: dbus-send --system --type=signal /com/nokia/mce/signal com.nokia.mce.signal.sig_device_mode_ind string:"flight" Normal mode: dbus-send --system --type=signal /com/nokia/mce/signal com.nokia.mce.signal.sig_device_mode_ind string:"normal" Frank |
Re: [Request] Custom profile depending of the time of day
There is already an app for this - http://maemo.org/packages/view/ses/
|
Re: [Request] Custom profile depending of the time of day
Quote:
|
Re: [Request] Custom profile depending of the time of day
But ses has LOTS of bugs. First its portrait UI. It's a bug not a feature, because it's not consistent with current Maemo and doesn't work properly. For example when you tap the dashboard button too much is highlighted and so on. Also sometimes when you add an entry it displays wrong hour in the list. For example I added an entry with 8.00 and ses added it to list as 7.26. And it doesn't even uninstall properly. For me it was still switching profiles after the uninstall so I had to delete it manually.
I'll use fcron as it also doesn't limit me. I can schedule just about anything... |
Re: [Request] Custom profile depending of the time of day
The cron solution works well!
|
Re: [Request] Custom profile depending of the time of day
I'm using fcron too and I have a question. fcron needs user "fcron" to be run. However, when I added fcron user with "adduser fcron" its home directory was created. My question is if I can safely remove /home/fcron/ or is it needed by fcron/Maemo?
|
Re: [Request] Custom profile depending of the time of day
You should be safe to remove it. Or point it to /var/run/fcron that's where it usually goes.
|
Re: [Request] Custom profile depending of the time of day
I have another question. Why did you use "adduser", which had to be downloaded and installed instead of already-present "useradd"?
|
Re: [Request] Custom profile depending of the time of day
I just mentioned one... hell the first time I added it by hand nothing really hard there. You can use whichever you want.
|
Re: [Request] Custom profile depending of the time of day
|
Re: [Request] Custom profile depending of the time of day
i know that alarmed is mentioned in the wiki linked to in the previous post, but as of the next build (one little bug to be fixed once the autobuilder is working) it should support profile switching built in. With the GUI it is a great option for thos leary of the command line.
|
All times are GMT. The time now is 16:17. |
vBulletin® Version 3.8.8