![]() |
2013-01-09
, 10:09
|
Posts: 277 |
Thanked: 319 times |
Joined on Jan 2010
|
#1021
|
![]() |
2013-01-09
, 19:53
|
Posts: 1,313 |
Thanked: 2,978 times |
Joined on Jun 2011
@ Finland
|
#1022
|
![]() |
2013-01-14
, 15:28
|
Posts: 277 |
Thanked: 319 times |
Joined on Jan 2010
|
#1023
|
The Following User Says Thank You to slarti For This Useful Post: | ||
![]() |
2013-01-18
, 23:56
|
Posts: 1,313 |
Thanked: 2,978 times |
Joined on Jun 2011
@ Finland
|
#1024
|
I may have found a bug. I have a rule set up as described here. Today, for some reason it didn't fire off the script when I locked the screen. A reboot cured this but I got some logs before doing that. The name of the rule is "UpdateBB".
ma tammikuuta 14 08:06:35 2013 RulesManager::refresh() ma tammikuuta 14 08:07:45 2013 RulesManager::refresh() ma tammikuuta 14 08:09:44 2013 RulesManager::refresh() ma tammikuuta 14 08:09:59 2013 RulesManager::refresh()
The Following User Says Thank You to ajalkane For This Useful Post: | ||
![]() |
2013-01-19
, 07:42
|
Posts: 277 |
Thanked: 319 times |
Joined on Jan 2010
|
#1025
|
![]() |
2013-01-19
, 09:16
|
Posts: 1,313 |
Thanked: 2,978 times |
Joined on Jun 2011
@ Finland
|
#1026
|
It was like that all morning. I waited a while for the script to fire before unlocking but nothing happened. Like I said, a reboot cured it and I haven't seen this behaviour after that. If I see it again, do you have any suggestions what information to collect?
I started writing a simple dbus listener in python which listens to dbus messages from the timed daemon and updates a profilematic rule's activation time or active status according to the message.
I wanted to know if using the updateRule method this way would have any adverse effects?
![]() |
2013-01-19
, 14:59
|
Posts: 277 |
Thanked: 319 times |
Joined on Jan 2010
|
#1027
|
Logs as now are useful. But as I said in the logs it was clear that the script was launched, so it's probably something that the script does that doesn't work. If that happens again try running the script manually and see if it does anything: First run it through ProfileMatic's UI with Test button in custom action. If that doesn't work, run it from terminal. See if there's any output.
That's safe, but I'm surprised that you can use it. It takes as parameter a serialized C++ object. I don't even know how it looks like building that from python or using dbus-send. Out of curiosity do you have some working sample?
The only caveat is that the object usually changes between each ProfileMatic release. But of course if you take an existing rule and only modify the parts you want, then that's pretty future proof also.
The Following User Says Thank You to slarti For This Useful Post: | ||
![]() |
2013-01-23
, 07:30
|
Posts: 277 |
Thanked: 319 times |
Joined on Jan 2010
|
#1028
|
![]() |
2013-01-23
, 21:26
|
Posts: 1,313 |
Thanked: 2,978 times |
Joined on Jun 2011
@ Finland
|
#1029
|
The basic idea is to set a special profilematic 'alarm rule' which executes its actions when an alarm with a certain title goes off. The rule gets deactivated when the next active alarm is not one with the set title or there are no alarms. The alarm title is set in the script as the passwd variable. By default, it's Test.
Now, how to make it run as a daemon on startup?
The Following User Says Thank You to ajalkane For This Useful Post: | ||
![]() |
2013-01-24
, 07:13
|
Posts: 277 |
Thanked: 319 times |
Joined on Jan 2010
|
#1030
|