maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   MeeGo / Harmattan (https://talk.maemo.org/forumdisplay.php?f=45)
-   -   [Announce] ProfileMatic for Harmattan (https://talk.maemo.org/showthread.php?t=79642)

edgar2 2012-05-14 05:28

Re: [Announce/WIP] ProfileMatic for Harmattan
 
I've had to reinstall twice in a few days due to the credentials warning, is it expected behaviour that a reinstall only fixes the problem temporarily? (uninstalled - reboot - reinstalled).

ajalkane 2012-05-14 06:00

Re: [Announce/WIP] ProfileMatic for Harmattan
 
Quote:

Originally Posted by achilles333 (Post 1206218)
I wonder how "Toggle PSM" app working. It toggles Power saving mode. May be I need to execute command to execute this app in custom rule. What do you think?

Power saving mode seems to work without the credential, even though API docs claim otherwise. But since it seems to work anyway, I will put out an update that gives the warning only about flight mode.

ajalkane 2012-05-14 06:06

Re: [Announce/WIP] ProfileMatic for Harmattan
 
Quote:

Originally Posted by edgar2 (Post 1206324)
I've had to reinstall twice in a few days due to the credentials warning, is it expected behaviour that a reinstall only fixes the problem temporarily? (uninstalled - reboot - reinstalled).

There's actually no expectation how it will work. As said, to get flight mode working at all, a bug in the security platform is used (exploit, if one could use such a naughty term for a benevolent feature). But in certain conditions the platform fixes the credentials. I do not know what these conditions are, but I suspect installing/uninstalling some other software may cause it.

So the short answer is, yes, reinstall may be only a temporary fix. Real fix is using inception or open mode kernel. And that's probably the only way forward after PR1.3.

UnlimiteD3k 2012-05-14 06:24

Re: [Announce/WIP] ProfileMatic for Harmattan
 
I just received my NFC tags. could you kindly include NFC conditions to ProfileMatic, it would be really helpful
A daemon won't be needed with NFC I guess

ajalkane 2012-05-14 09:21

Re: [Announce/WIP] ProfileMatic for Harmattan
 
Quote:

Originally Posted by UnlimiteD3k (Post 1206342)
I just received my NFC tags. could you kindly include NFC conditions to ProfileMatic, it would be really helpful
A daemon won't be needed with NFC I guess

NFC condition will be in 1.7.0. You're right that daemon is not needed necessarily with NFC, but since ProfileMatic is anyway a daemon for its other features it makes sense to build the NFC support into the daemon as well.

Muzimak 2012-05-14 11:16

Re: [Announce/WIP] ProfileMatic for Harmattan
 
Quote:

Originally Posted by ajalkane (Post 1206331)
There's actually no expectation how it will work. As said, to get flight mode working at all, a bug in the security platform is used (exploit, if one could use such a naughty term for a benevolent feature). But in certain conditions the platform fixes the credentials. I do not know what these conditions are, but I suspect installing/uninstalling some other software may cause it.

So the short answer is, yes, reinstall may be only a temporary fix. Real fix is using inception or open mode kernel. And that's probably the only way forward after PR1.3.

So in not so many words I still won't have internet on/off as previously requested?

ajalkane 2012-05-14 12:16

Re: [Announce/WIP] ProfileMatic for Harmattan
 
Quote:

Originally Posted by Muzimak (Post 1206460)
So in not so many words I still won't have internet on/off as previously requested?

You have understood correctly.

Loginin 2012-05-14 12:51

Re: [Announce/WIP] ProfileMatic for Harmattan
 
Ajalkane
Thank you for direct and extended reply and your great app. Just very short comment in last hope to reverse your judgement.

Actually your proposed model is much more powerful and complicated than proposed by me. My suggestion is based on common approach to building rule-based interfaces like mail filtering. And it in fact either doesn't affect at all or affect positively your goals:

Quote:

Originally Posted by ajalkane (Post 1205431)
- ProfileMatic is always in the background running. Therefore I must strive for it to be light-weight. I should strive to minimize memory and CPU usage.

The less rules you process the less power is eaten, so ability to stop applying rules improves battery life.

Quote:

Originally Posted by ajalkane (Post 1205431)
- Power of expression for user so that he can make rules that do what he wants

Better again: default mode remains unchanged and expressiveness improves.

Quote:

Originally Posted by ajalkane (Post 1205431)
- Easy for new users. The UI should be as simple as possible, while allowing creating rules that do what's necessary to make life easier.

Default mode remains and adding <Don't apply rules below> action doesn't either complicates UI much nor adds any confusion. This concept in fact present in many UIs for rules definition like mail filtering in mail clients or packet filteing in routers setup.

Quote:

Originally Posted by ajalkane (Post 1205431)
- Convenient to create different kind of rules.

Don't see this changed. You may define everything as before + a little more

ajalkane 2012-05-14 17:45

Re: [Announce/WIP] ProfileMatic for Harmattan
 
Quote:

Originally Posted by Loginin (Post 1206511)
Ajalkane
Thank you for direct and extended reply and your great app. Just very short comment in last hope to reverse your judgement.

You make fine points. But mail-filtering, while a good example, is not exactly something that an average user knows how to do.

My point is, that I try to keep the application expressive but not intimidate newbies with bunch of options that are hard to understand.

That said, your proposal in my estimation would be very easy to implement. So I may make it in the future. Putting it away into some sub-page like "Advanced" or something. I'll at least write your suggestion down, but can't promise when I'd do it. Too much work already, too little time.

UnlimiteD3k 2012-05-16 08:34

Re: [Announce/WIP] ProfileMatic for Harmattan
 
Quote:

Originally Posted by ajalkane (Post 1206425)
NFC condition will be in 1.7.0. You're right that daemon is not needed necessarily with NFC, but since ProfileMatic is anyway a daemon for its other features it makes sense to build the NFC support into the daemon as well.

Some apps allow you to control the daemon, as in make it run in the background or not.

What you can do is, if there are conditions requiring the daemon, you run it automatically and if the condition is NFC only, it stops the daemon.
Thats just a suggestion for you to look into if possible.

having said that, if I installed the app but did not define any rules/conditions, will the daemon still be running in the background?


All times are GMT. The time now is 22:02.

vBulletin® Version 3.8.8