|
2012-05-22
, 15:53
|
Posts: 55 |
Thanked: 28 times |
Joined on Jan 2010
|
#432
|
I'd like PM to active the auto-lock option (so the security code needs to be entered to unlock the phone) in case I am on the move and lose my phone. Any idea on how to accomplish this?
There's an option to run external commands. What would be the proper syntax to initialise auto-lock say after 10 min of inactivity?
The Following User Says Thank You to achilles333 For This Useful Post: | ||
|
2012-05-22
, 17:46
|
|
Posts: 5,339 |
Thanked: 4,133 times |
Joined on Jan 2010
@ Israel
|
#433
|
~ # /sbin/initctl stop apps/profilematicd apps/profilematicd stop/waiting ~ # exit ~ $ /opt/profilematic/bin/profilematicd Configuration: index 0, ruleId: {705b2102-9a15-4376-9992-6a2b585b393a}, ruleName: Tomy sleeping Configuration: index 1, ruleId: {7c09fdf4-c238-42f6-8efb-6b2532132c34}, ruleName: Power saving Configuration: index 2, ruleId: {2b5d64c4-0f19-46ad-87d7-8520729f0533}, ruleName: BT on Configuration: index 3, ruleId: {7ea70379-39d7-4a66-8ff5-1c1880ac2f0b}, ruleName: BT off Configuration: index 4, ruleId: defaultRule, ruleName: Default rule REFRESH Tue May 22 20:35:51 2012 RulesManager::refresh() ConditionManagerTime::time, considering dayId 0 (1) ConditionManagerTime::from(Tue May 22 20:35:512012), nextStart(Mon May 21 21:00:00 2012), nextEnd(Tue May 22 06:40:00 2012) ConditionManagerTime::time, considering dayId 1 (1) ConditionManagerTime::from(Tue May 22 20:35:512012), nextStart(Tue May 22 21:00:00 2012), nextEnd(Wed May 23 06:40:00 2012) ConditionManagerTime::time, matching next timeStart returning Tue May 22 21:00:00 2012 ConditionManagerTime::refresh match 0 Setting nearest to Tue May 22 21:00:00 2012, was ConditionManagerTime::time, considering dayId 0 (1) ConditionManagerTime::from(Tue May 22 20:35:512012), nextStart(Mon May 21 01:40:00 2012), nextEnd(Mon May 21 06:15:00 2012) ConditionManagerTime::time, considering dayId 1 (1) ConditionManagerTime::from(Tue May 22 20:35:512012), nextStart(Tue May 22 01:40:00 2012), nextEnd(Tue May 22 06:15:00 2012) ConditionManagerTime::time, considering dayId 2 (1) ConditionManagerTime::from(Tue May 22 20:35:512012), nextStart(Wed May 23 01:40:00 2012), nextEnd(Wed May 23 06:15:00 2012) ConditionManagerTime::time, matching next timeStart returning Wed May 23 01:40:00 2012 ConditionManagerTime::refresh match 0 ConditionManagerTime::time, considering dayId 0 (1) ConditionManagerTime::from(Tue May 22 20:35:512012), nextStart(Mon May 21 06:45:00 2012), nextEnd(Mon May 21 23:58:00 2012) ConditionManagerTime::time, considering dayId 1 (1) ConditionManagerTime::from(Tue May 22 20:35:512012), nextStart(Tue May 22 06:45:00 2012), nextEnd(Tue May 22 23:58:00 2012) ConditionManagerTime::time, matching next timeEnd returning Tue May 22 23:58:00 2012 ConditionManagerTime::refresh match 1 ConditionManagerLocationCell::refresh currentCellId 328042 ConditionManagerTime::time, considering dayId 0 (1) ConditionManagerTime::from(Tue May 22 20:35:512012), nextStart(Mon May 21 06:45:00 2012), nextEnd(Mon May 21 23:58:00 2012) ConditionManagerTime::time, considering dayId 1 (1) ConditionManagerTime::from(Tue May 22 20:35:512012), nextStart(Tue May 22 06:45:00 2012), nextEnd(Tue May 22 23:58:00 2012) ConditionManagerTime::time, matching next timeEnd returning Tue May 22 23:58:00 2012 ConditionManagerTime::refresh match 1 ConditionManagerLocationCell::refresh currentCellId 328042 ConditionManagerLocationCell::refresh containscurrentCellId ConditionManagerWlan::refresh wlanNames is empty, matches ConditionManagerIdle not set -1 RulesManager::_activateRule: activatingRule {7ea70379-39d7-4a66-8ff5-1c1880ac2f0b}/BT off ActionProfile::activate profile is empty, not setting ActionFlightMode::activate not setting flight mode ActionPsmState::activate not setting power saving state ActionBlueTooth::activate: 0 ActionCellularMode::activate: -1 HarmattanPlatformUtil::setStandByScreenMode 1 ActionStandByScreenMode::activate StandByScreen enabled ActionCommandLine::runCommandLine() no commandline ActionPresence::activate rule has no presence changes or previous presences RulesManager::_activateRule: activatingRule defaultRule/Default rule ActionProfile::activateRule profile general, volume 100 (previous /-1) Setting profile to general Return value 1 Setting profile general to volume 100 Return value 1 ActionFlightMode::activate not setting flight mode ActionPsmState::activate not setting power saving state ActionCellularMode::activate: -1 ActionCommandLine::runCommandLine() no commandline ActionPresence::activate rule has no presence changes or previous presences Now Tue May 22 20:35:51 2012 Scheduling a timer to Tue May 22 21:00:00 2012, interval 1448s ConditionManagerLocationCell::monitorCellId(1) ConditionManagerWlan::endRefresh, stopping monitoring ConditionManagerIdle not monitorUserActivityIdle rules_version: 2 Starting Tue May 22 20:35:52 2012 ActionPresence::onAccountManagerReady() Tue May 22 20:35:52 2012 ActionPresence::_activatePendingRule() no pending rule ConditionManagerLocationCell::cellIdChanged to328046 ConditionManagerLocationCell::cellIdChanged current rule has this cellId ConditionManagerLocationCell::cellIdChanged to390652 ConditionManagerLocationCell::cellIdChanged watched contains and is not in current Rule's cellIds, requesting refresh REFRESH Tue May 22 20:37:12 2012 RulesManager::refresh() ConditionManagerTime::time, considering dayId 0 (1) ConditionManagerTime::from(Tue May 22 20:37:122012), nextStart(Mon May 21 21:00:00 2012), nextEnd(Tue May 22 06:40:00 2012) ConditionManagerTime::time, considering dayId 1 (1) ConditionManagerTime::from(Tue May 22 20:37:122012), nextStart(Tue May 22 21:00:00 2012), nextEnd(Wed May 23 06:40:00 2012) ConditionManagerTime::time, matching next timeStart returning Tue May 22 21:00:00 2012 ConditionManagerTime::refresh match 0 Setting nearest to Tue May 22 21:00:00 2012, was ConditionManagerTime::time, considering dayId 0 (1) ConditionManagerTime::from(Tue May 22 20:37:122012), nextStart(Mon May 21 01:40:00 2012), nextEnd(Mon May 21 06:15:00 2012) ConditionManagerTime::time, considering dayId 1 (1) ConditionManagerTime::from(Tue May 22 20:37:122012), nextStart(Tue May 22 01:40:00 2012), nextEnd(Tue May 22 06:15:00 2012) ConditionManagerTime::time, considering dayId 2 (1) ConditionManagerTime::from(Tue May 22 20:37:122012), nextStart(Wed May 23 01:40:00 2012), nextEnd(Wed May 23 06:15:00 2012) ConditionManagerTime::time, matching next timeStart returning Wed May 23 01:40:00 2012 ConditionManagerTime::refresh match 0 ConditionManagerTime::time, considering dayId 0 (1) ConditionManagerTime::from(Tue May 22 20:37:122012), nextStart(Mon May 21 06:45:00 2012), nextEnd(Mon May 21 23:58:00 2012) ConditionManagerTime::time, considering dayId 1 (1) ConditionManagerTime::from(Tue May 22 20:37:122012), nextStart(Tue May 22 06:45:00 2012), nextEnd(Tue May 22 23:58:00 2012) ConditionManagerTime::time, matching next timeEnd returning Tue May 22 23:58:00 2012 ConditionManagerTime::refresh match 1 ConditionManagerLocationCell::refresh currentCellId 390652 ConditionManagerLocationCell::refresh containscurrentCellId ConditionManagerWlan::refresh wlanNames is empty, matches ConditionManagerIdle not set -1 RulesManager::_activateRule: activatingRule {2b5d64c4-0f19-46ad-87d7-8520729f0533}/BT on ActionProfile::activate profile is empty, not setting ActionFlightMode::activate not setting flight mode ActionPsmState::activate not setting power saving state ActionBlueTooth::activate: 1 ActionCellularMode::activate: -1 HarmattanPlatformUtil::setStandByScreenMode 1 ActionStandByScreenMode::activate StandByScreen enabled ActionCommandLine::runCommandLine() no commandline ActionPresenceImpl::changeAccountPresence: Changing account presence to "available" for "gabble/jabber/schturman0" ActionPresenceImpl::changeAccountPresence: Changing account presence to "available" for "spirit/skype/schturman0" ConditionManagerTime::time, considering dayId 0 (1) ConditionManagerTime::from(Tue May 22 20:37:122012), nextStart(Mon May 21 06:45:00 2012), nextEnd(Mon May 21 23:58:00 2012) ConditionManagerTime::time, considering dayId 1 (1) ConditionManagerTime::from(Tue May 22 20:37:122012), nextStart(Tue May 22 06:45:00 2012), nextEnd(Tue May 22 23:58:00 2012) ConditionManagerTime::time, matching next timeEnd returning Tue May 22 23:58:00 2012 ConditionManagerTime::refresh match 1 ConditionManagerLocationCell::refresh currentCellId 390652 RulesManager::_activateRule: activatingRule defaultRule/Default rule ActionFlightMode::activate not setting flight mode ActionPsmState::activate not setting power saving state ActionCellularMode::activate: -1 Now Tue May 22 20:37:12 2012 Scheduling a timer to Tue May 22 21:00:00 2012, interval 1367s ConditionManagerLocationCell::monitorCellId(1) ConditionManagerWlan::endRefresh, stopping monitoring ConditionManagerIdle not monitorUserActivityIdle ConditionManagerLocationCell::cellIdChanged to328046 ConditionManagerLocationCell::cellIdChanged watched contains and is not in current Rule's cellIds, requesting refresh REFRESH Tue May 22 20:37:20 2012 RulesManager::refresh() ConditionManagerTime::time, considering dayId 0 (1) ConditionManagerTime::from(Tue May 22 20:37:202012), nextStart(Mon May 21 21:00:00 2012), nextEnd(Tue May 22 06:40:00 2012) ConditionManagerTime::time, considering dayId 1 (1) ConditionManagerTime::from(Tue May 22 20:37:202012), nextStart(Tue May 22 21:00:00 2012), nextEnd(Wed May 23 06:40:00 2012) ConditionManagerTime::time, matching next timeStart returning Tue May 22 21:00:00 2012 ConditionManagerTime::refresh match 0 Setting nearest to Tue May 22 21:00:00 2012, was ConditionManagerTime::time, considering dayId 0 (1) ConditionManagerTime::from(Tue May 22 20:37:202012), nextStart(Mon May 21 01:40:00 2012), nextEnd(Mon May 21 06:15:00 2012) ConditionManagerTime::time, considering dayId 1 (1) ConditionManagerTime::from(Tue May 22 20:37:202012), nextStart(Tue May 22 01:40:00 2012), nextEnd(Tue May 22 06:15:00 2012) ConditionManagerTime::time, considering dayId 2 (1) ConditionManagerTime::from(Tue May 22 20:37:202012), nextStart(Wed May 23 01:40:00 2012), nextEnd(Wed May 23 06:15:00 2012) ConditionManagerTime::time, matching next timeStart returning Wed May 23 01:40:00 2012 ConditionManagerTime::refresh match 0 ConditionManagerTime::time, considering dayId 0 (1) ConditionManagerTime::from(Tue May 22 20:37:202012), nextStart(Mon May 21 06:45:00 2012), nextEnd(Mon May 21 23:58:00 2012) ConditionManagerTime::time, considering dayId 1 (1) ConditionManagerTime::from(Tue May 22 20:37:202012), nextStart(Tue May 22 06:45:00 2012), nextEnd(Tue May 22 23:58:00 2012) ConditionManagerTime::time, matching next timeEnd returning Tue May 22 23:58:00 2012 ConditionManagerTime::refresh match 1 ConditionManagerLocationCell::refresh currentCellId 328046 ConditionManagerTime::time, considering dayId 0 (1) ConditionManagerTime::from(Tue May 22 20:37:202012), nextStart(Mon May 21 06:45:00 2012), nextEnd(Mon May 21 23:58:00 2012) ConditionManagerTime::time, considering dayId 1 (1) ConditionManagerTime::from(Tue May 22 20:37:202012), nextStart(Tue May 22 06:45:00 2012), nextEnd(Tue May 22 23:58:00 2012) ConditionManagerTime::time, matching next timeEnd returning Tue May 22 23:58:00 2012 ConditionManagerTime::refresh match 1 ConditionManagerLocationCell::refresh currentCellId 328046 ConditionManagerLocationCell::refresh containscurrentCellId ConditionManagerWlan::refresh wlanNames is empty, matches ConditionManagerIdle not set -1 RulesManager::_activateRule: activatingRule {7ea70379-39d7-4a66-8ff5-1c1880ac2f0b}/BT off ActionProfile::activate profile is empty, not setting ActionFlightMode::activate not setting flight mode ActionPsmState::activate not setting power saving state ActionBlueTooth::activate: 0 ActionCellularMode::activate: -1 HarmattanPlatformUtil::setStandByScreenMode 1 ActionStandByScreenMode::activate StandByScreen enabled ActionCommandLine::runCommandLine() no commandline ActionPresence::activate rule has no presence changes or previous presences RulesManager::_activateRule: activatingRule defaultRule/Default rule ActionFlightMode::activate not setting flight mode ActionPsmState::activate not setting power saving state ActionCellularMode::activate: -1 ActionPresence::activate rule has no presence changes or previous presences Now Tue May 22 20:37:20 2012 Scheduling a timer to Tue May 22 21:00:00 2012, interval 1359s ConditionManagerLocationCell::monitorCellId(1) ConditionManagerWlan::endRefresh, stopping monitoring ConditionManagerIdle not monitorUserActivityIdle ConditionManagerLocationCell::cellIdChanged to357837 ConditionManagerLocationCell::cellIdChanged current rule has this cellId ConditionManagerLocationCell::cellIdChanged to328046 ConditionManagerLocationCell::cellIdChanged current rule has this cellId ConditionManagerLocationCell::cellIdChanged to328042 ConditionManagerLocationCell::cellIdChanged current rule has this cellId ConditionManagerLocationCell::cellIdChanged to357837 ConditionManagerLocationCell::cellIdChanged current rule has this cellId ConditionManagerLocationCell::cellIdChanged to328046 ConditionManagerLocationCell::cellIdChanged current rule has this cellId ConditionManagerLocationCell::cellIdChanged to328042 ConditionManagerLocationCell::cellIdChanged current rule has this cellId ConditionManagerLocationCell::cellIdChanged to328046 ConditionManagerLocationCell::cellIdChanged current rule has this cellId
|
2012-05-22
, 18:41
|
Posts: 1,313 |
Thanked: 2,977 times |
Joined on Jun 2011
@ Finland
|
#434
|
sorry, this one:
Code:~ # /sbin/initctl stop apps/profilematicd apps/profilematicd stop/waiting ~ # exit ~ $ /opt/profilematic/bin/profilematicd
|
2012-05-22
, 20:06
|
Posts: 1,320 |
Thanked: 915 times |
Joined on Feb 2010
|
#435
|
|
2012-05-22
, 21:23
|
Posts: 1,313 |
Thanked: 2,977 times |
Joined on Jun 2011
@ Finland
|
#436
|
This works great, but when I am on the phone, and in a WiFi weak area in my house, as soon as the WiFi connection drops, ProfileMatic jumps in a switched 3G back on MID PHONECALL.
The same happens after 5 minutes of a phone call where the Idle profile switches to 2G.
Some kind of check if in call function would be nice just to avoid this error, meaning I can tell ProfileMatic to deactivate when I am on the phone.
|
2012-05-22
, 21:31
|
Posts: 1,320 |
Thanked: 915 times |
Joined on Feb 2010
|
#437
|
Have you tried using the WLAN condition's timeout to solve this problem?
Something like this was reported, that Harmattan thinks it's idle while being active in call... are you using bluetooth headset or anything like that, or does it just happen in normal phone call? This is obviously a bad situation, and I'd like to do a workaround if PR1.3 does not fix this.
|
2012-05-22
, 21:49
|
Posts: 1,320 |
Thanked: 915 times |
Joined on Feb 2010
|
#438
|
I can surely understand this use case. I'm not sure if it really has to be an option at all, I think changing mobile mode should be delayed if call is on-going. But I'm not sure when I have time to dig into this, if anyone has pointers how to detect when call is going on, it'll surely help speed-up the implementation.
|
2012-05-22
, 23:42
|
Posts: 256 |
Thanked: 110 times |
Joined on Jan 2012
@ Europe
|
#439
|
If I understood your requirement correctly, the device already has autolock feature after certain time of inactivity. Go to settings->security->device lock. and then configure autolock time there.
|
2012-05-23
, 11:49
|
|
Posts: 5,339 |
Thanked: 4,133 times |
Joined on Jan 2010
@ Israel
|
#440
|
That's the way to do it. But that output did not of course show the situation when the Power saving goes on, and when it goes off (if the rules are the same as you sent me, the power saving goes on 1:40 in the morning, and off 6:15).
But meanwhile, I'd like you to double check that you have in action "Power saving mode" the "restore previous" option on in rule "Power saving".
My N9/N950 projects: