maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [Announce] ProfilesX (more profiles) (https://talk.maemo.org/showthread.php?t=50266)

iscio 2011-02-20 22:14

Re: [Announce] ProfilesX (more profiles)
 
Quote:

Originally Posted by x61 (Post 951098)
This is something I would love to see on this app...seem like my N95 apps are coming to life in my N900.

One more thing will be the ability to put passcode on texts, pictures, contact, etc...

with alarmed you could schedule profilesx with a simple gui

x61 2011-02-22 19:50

Re: [Announce] ProfilesX (more profiles)
 
Quote:

Originally Posted by iscio (Post 951302)
with alarmed you could schedule profilesx with a simple gui

Thanks but what is the point of installing another application of about 6MB when a simple code change in this one can do the same?

iscio 2011-02-22 20:40

Re: [Announce] ProfilesX (more profiles)
 
Quote:

Originally Posted by iscio (Post 935614)

so, now I have a new problem. I set an icon for my profile and it works very well but after a reboot there is no icon, I have to change the profile e reselect it to see the icon. I upload two image, before and after the reboot

have you solved this problem? every day I lost my icon.....
thank you

nicolai 2011-02-22 23:32

Re: [Announce] ProfilesX (more profiles)
 
No, not yet, but I think I know how to solve this.

Nicolai

iscio 2011-02-23 07:09

Re: [Announce] ProfilesX (more profiles)
 
ah ok, thank you I'll wait your news ;-)

figaro 2011-02-24 10:07

Re: [Announce] ProfilesX (more profiles)
 
I realized that the profile switcher from power button won't work when not in default profiles, but when I look at /etc/systemui/systemui.xml I found those entries/menuitem ie. powerup_memainmenu_silent have attributes visible="general", which means it only shows up on general profile. vv with powerup_memainmenu_general have visible="silent"

can we tweak these values to always visibile in all profiles ie. visible="all"? so we can make another new menuitems for each profiles created by profilex and show them on the power menu (though this would make the power menu fully occupied with all those profiles, since it would make 1 button for each profile)

or better, get rid the original profile menuitem from systemui.xml and replace it with a new one. the one that would trigger a dialog with profile choices?

BTW is messing with systemui.xml safe? unlike mce.ini where if you screw up, you'd render your device unbootable?

iscio 2011-02-24 14:56

Re: [Announce] ProfilesX (more profiles)
 
it could be a beautiful idea

iscio 2011-03-04 19:00

Re: [Announce] ProfilesX (more profiles)
 
hello nicolai, any news about these last post?

iscio 2011-03-11 11:17

Re: [Announce] ProfilesX (more profiles)
 
new update 1.3

nicolai 2011-03-11 11:30

Re: [Announce] ProfilesX (more profiles)
 
Yes, the custom statusarea icons are working even after reboot.
But sadly I introduced a new bug, you cannot change the icon
to one of the builtin icons :-)
Work in progress!
nicolai

iscio 2011-03-11 12:31

Re: [Announce] ProfilesX (more profiles)
 
sorry but I don't understand, could you explain the bug and I'll test it? thanks

nicolai 2011-03-11 12:34

Re: [Announce] ProfilesX (more profiles)
 
Wait for the next version.

iscio 2011-03-11 12:35

Re: [Announce] ProfilesX (more profiles)
 
ah ok, thanks

x61 2011-03-12 13:34

Re: [Announce] ProfilesX (more profiles)
 
Quote:

Originally Posted by nicolai (Post 965707)
Wait for the next version.

While at it, could you make it to be auto-profile select suitable?

nicolai 2011-03-12 14:32

Re: [Announce] ProfilesX (more profiles)
 
@iscio
Version 1.4 should work now.

@x61
What do you mean with "auto-profile"?

Nicolai

x61 2011-03-12 17:30

Re: [Announce] ProfilesX (more profiles)
 
Quote:

Originally Posted by nicolai (Post 966320)
What do you mean with "auto-profile"?

Nicolai

Profile Switcher: capabilities to switch to a different profile at a certain time.

iscio 2011-03-12 18:17

Re: [Announce] ProfilesX (more profiles)
 
ok nicolai I'll test it. thank you very much

iscio 2011-03-13 07:18

Re: [Announce] ProfilesX (more profiles)
 
nicolai I have the same problem...I use a custom icon with a profile. reboot my phone and there is no icon :-(

edit: I solved, I choose again the icons and now seems to work correctly



I see also that if I open profilesx settings my icon is not proposal like choosen...

and now a last request: is it possible to implement also custom profile in power menu?

thank you

NightShift79 2011-03-13 11:13

Re: [Announce] ProfilesX (more profiles)
 
Quote:

Originally Posted by x61 (Post 966404)
Profile Switcher: capabilities to switch to a different profile at a certain time.

...can we get profile switching when entering a predefined GPS Cell ?

F2thaK 2011-03-13 11:24

Re: [Announce] ProfilesX (more profiles)
 
i cant seem to set my own ringtone since i changed to this from Tweakr............ always plays nokia default tone

figaro 2011-03-13 13:39

Re: [Announce] ProfilesX (more profiles)
 
Quote:

Originally Posted by f2thak (Post 966768)
i cant seem to set my own ringtone since i changed to this from Tweakr............ always plays nokia default tone

could you try this? and see whether it results on expected ringtone

dbus-send --session --dest=com.nokia.profiled --type=method_call --print-reply /com/nokia/profiled com.nokia.profiled.get_value string:"general" string:"ringing.alert.tone"

happened to me once, and apparently caused by profilex not saving my assigned tone properly

or you can manually assign it using

dbus-send --session --dest=com.nokia.profiled --type=method_call --print-reply /com/nokia/profiled com.nokia.profiled.set_value string:"general" string:"ringing.alert.tone" string:"/home/user/MyDocs/.sounds/myringtone.mp3"

Bratag 2011-03-15 15:36

Re: [Announce] ProfilesX (more profiles)
 
App seems to work very well for me. One request however. Would you be able to add the ability to turn on bluetooth and perhaps turn off/on wifi.

When I jump in my car I like to have BT switch on when I change my profile in order to sync up with the handsfree etc but there is no need for wifi.

jhwan 2011-03-19 07:49

Re: [Announce] ProfilesX (more profiles)
 
5 Attachment(s)
Thanks nicolai for such a great program! I modified some icons I found online for use with different profile settings. There are two icons for a "Vibration" profile and two for an "Outdoor" profile (trees and a picnic table). I thought I'd share them here if anyone wanted to use them.

F2thaK 2011-03-20 02:37

Re: [Announce] ProfilesX (more profiles)
 
Quote:

Originally Posted by figaro (Post 966835)
could you try this? and see whether it results on expected ringtone......


id made 3 custom profiles. just tested them and one worked.
deleted the 2 that didnt work, re-created them, now they seem to work.

iscio 2011-03-26 20:35

Re: [Announce] ProfilesX (more profiles)
 
Quote:

Originally Posted by iscio (Post 966675)
and now a last request: is it possible to implement also custom profile in power menu?

thank you

any news about this request?

nicolai 2011-03-26 23:38

Re: [Announce] ProfilesX (more profiles)
 
No, and the power menu is a totally different thing.
The profile buttons are controlled by the /etc/systemui/systemui.xml
file and it works as follows.
This entry controls the "silent" profile button:

<menuitem priority="300" name="powerup_memainmenu_silent" visible="general">
<keyfile>/home/user/.profiled/current</keyfile> <icon>statusarea_silent</icon> <return>8</return>
<po>osso-powerup-shutdown</po>
<callback service="com.nokia.profiled" path="/com/nokia/profiled" interface="com.nokia.profiled" method="set_profile" bus="session" autostart="true">
<argument type="string">silent</argument>
</callback>

</menuitem>

This button is visible, when the "visible" condition holds.
The value for this visible condition is read from the keyfile
/home/user/.profiled/current. When you change your profile,
the name of the new profile is written in this file.
The action for this button is the dbus call which changes to
silent profile.
So, that means, the "silent" profile button is visible when the
contents of your /home/user/.profiled/current is:
general
And the dbus-command is send when you press this button.
A similiar entry exists for the general profile button.

You can add extra entries for your own profiles,
but this is impractical if you use many profiles.

For example, you have a third profile "home" and you want to
have this in your power menu when the current profile is "silent",
then you need to add this entry:

<menuitem priority="200" name="home" visible="silent">
<keyfile>/home/user/.profiled/current</keyfile>
<icon>general_profile</icon>
<return>9</return>
<po>osso-powerup-shutdown</po>
<callback service="com.nokia.profiled" path="/com/nokia/profiled" interface="com.nokia.profiled" method="set_profile" bus="session" autostart="true">
<argument type="string">home</argument>
</callback>
</menuitem>

And if you want to have a button for your home profile when
the current profile is "general", you need to add another one:

<menuitem priority="200" name="home" visible="general">
<keyfile>/home/user/.profiled/current</keyfile>
<icon>general_profile</icon>
<return>9</return>
<po>osso-powerup-shutdown</po>
<callback service="com.nokia.profiled" path="/com/nokia/profiled" interface="com.nokia.profiled" method="set_profile" bus="session" autostart="true">
<argument type="string">home</argument>
</callback>
</menuitem>

And if you want to have the "silent" profile button when the
current one is "home":
<menuitem priority="200" name="powerup_memainmenu_silent" visible="home">
<keyfile>/home/user/.profiled/current</keyfile>
<icon>statusarea_silent</icon>
<return>9</return>
<po>osso-powerup-shutdown</po>
<callback service="com.nokia.profiled" path="/com/nokia/profiled" interface="com.nokia.profiled" method="set_profile" bus="session" autostart="true">
<argument type="string">silent</argument>
</callback>
</menuitem>

And for the "general" profile button.
<menuitem priority="200" name="powerup_memainmenu_general" visible="home">
<keyfile>/home/user/.profiled/current</keyfile>
<icon>general_profile</icon>
<return>9</return>
<po>osso-powerup-shutdown</po>
<callback service="com.nokia.profiled" path="/com/nokia/profiled" interface="com.nokia.profiled" method="set_profile" bus="session" autostart="true">
<argument type="string">general</argument>
</callback>
</menuitem>

And of course for every additional profile you have to
even more entries, this grows quadratic.
n*(n-1) entries, where n is the number of profiles :-)

Nicolai

Bratag 2011-03-26 23:47

Re: [Announce] ProfilesX (more profiles)
 
Oh one more request and. Would it be possible perhaps to make a profiles widget which would show say 4 selected profiles. My dropdown is very crowded and its sometimes a pain to try find the profiles entry. Having something I could put on my desktop and quick change between profiles would be awesome.

nicolai 2011-03-27 00:01

Re: [Announce] ProfilesX (more profiles)
 
Maybe there are already "queen beecon" or "desktop execution command"
scripts.

Bratag 2011-03-28 02:21

Re: [Announce] ProfilesX (more profiles)
 
Quote:

Originally Posted by nicolai (Post 976283)
Maybe there are already "queen beecon" or "desktop execution command"
scripts.

I would be happy to write up some quickwidget qml for it. Does the app respond to dbus signals?

x61 2011-03-28 02:45

Re: [Announce] ProfilesX (more profiles)
 
Quote:

Originally Posted by jhwan (Post 970794)
Thanks nicolai for such a great program! I modified some icons I found online for use with different profile settings. There are two icons for a "Vibration" profile and two for an "Outdoor" profile (trees and a picnic table). I thought I'd share them here if anyone wanted to use them.

How did you get your desktop to look like that...icons all orderly aligned vertically... oh is the bottom bar a battery life indicator? and what calendar are you using?

nicolai 2011-03-28 17:18

Re: [Announce] ProfilesX (more profiles)
 
Quote:

Originally Posted by Bratag (Post 976869)
I would be happy to write up some quickwidget qml for it. Does the app respond to dbus signals?

The status bar icon listen for profiles changes.
But if you want to control the profiles settings from your
app or widget, you can use dbus-commands to
control profiled (the systems profile daemon):

get the list of available profiles:
dbus-send --session --dest=com.nokia.profiled --type=method_call --print-reply /com/nokia/profiled com.nokia.profiled.get_profiles

get the current active profile:
dbus-send --session --dest=com.nokia.profiled --type=method_call --print-reply /com/nokia/profiled com.nokia.profiled.get_profile

activate the "general" profile:
dbus-send --session --dest=com.nokia.profiled --type=method_call --print-reply /com/nokia/profiled com.nokia.profiled.set_profile string:"general"

sting04 2011-03-30 18:59

Re: [Announce] ProfilesX (more profiles)
 
Hi Nicolai

Would it be possible to add a feature to auto change the profile based on the location (either from GPS or GSM cell tower id)?

Another request is to be able to switch wifi and bluetooth on/off for profiles.

Thanks.

nicolai 2011-03-30 19:45

Re: [Announce] ProfilesX (more profiles)
 
I think it would be better to have another application for
this. ProfilesX is already quite complex.

Nicolai

jhwan 2011-03-31 03:31

Re: [Announce] ProfilesX (more profiles)
 
Quote:

Originally Posted by x61 (Post 976872)
How did you get your desktop to look like that...icons all orderly aligned vertically... oh is the bottom bar a battery life indicator? and what calendar are you using?

They're actually custom wallpapers overlaid with nicolai's desktop switcher, so they're not actually icons. Any time I tap on one of the "icons", it'll take me to the appropriate homescreen (the blue indicates which homescreen is currently selected) using the desktop switcher. The bottom battery indicator is a Queen Beecon widget with a custom battery icon that indicates the % battery remaining. I'm also using nicolai's calendar home desktop widget as my calendar. :)

travla 2011-05-02 00:04

Re: [Announce] ProfilesX (more profiles)
 
Hi Nicolai, any chance ProfilesX will be promoted to testing? I noted that MAG is wanting to do something similar in CSSU, would be nice to have ProfilesX functionality as not part of the system (i.e. Keep it in Extras and let user decide).

Anyway, just thought I'd ask for an update.

fuel__2001 2011-05-12 22:11

Re: [Announce] ProfilesX (more profiles)
 
been thinking about another way to activate a profile which relies on the 3.5mm jack detecting the difference between a headset (earphones with a microphone) and headphones (no microphone).

So if the phones 3.5mm jack is able to recognise a headset when its inserted (or possibly bluetooth), could this action call profilesx and then profilesx change to a predetermined profile?

iscio 2011-06-01 06:32

Re: [Announce] ProfilesX (more profiles)
 
Quote:

Originally Posted by NightShift79 (Post 966762)
...can we get profile switching when entering a predefined GPS Cell ?

is it possible to have this features? for example in n9profile. I used with symbian so much.
thanks

oved_etzot 2011-06-04 22:08

Re: [Announce] ProfilesX (more profiles)
 
Hi Nicolai, Thanks for the great app.
Problem is I also lost the "volume" in the statusmenu and pressing the volume button does not invoke the yellow volume slider onscreen. Any idea how to solve this?

knarf 2011-06-06 04:45

Re: [Announce] ProfilesX (more profiles)
 
Quote:

Originally Posted by nicolai (Post 976275)
No, and the power menu is a totally different thing.
The profile buttons are controlled by the /etc/systemui/systemui.xml
file and it works as follows.
This entry controls the "silent" profile button:

<menuitem priority="300" name="powerup_memainmenu_silent" visible="general">
<keyfile>/home/user/.profiled/current</keyfile> <icon>statusarea_silent</icon> <return>8</return>
<po>osso-powerup-shutdown</po>
<callback service="com.nokia.profiled" path="/com/nokia/profiled" interface="com.nokia.profiled" method="set_profile" bus="session" autostart="true">
<argument type="string">silent</argument>
</callback>

</menuitem>

This button is visible, when the "visible" condition holds.
The value for this visible condition is read from the keyfile
/home/user/.profiled/current. When you change your profile,
the name of the new profile is written in this file.
The action for this button is the dbus call which changes to
silent profile.
So, that means, the "silent" profile button is visible when the
contents of your /home/user/.profiled/current is:
general
And the dbus-command is send when you press this button.
A similiar entry exists for the general profile button.

You can add extra entries for your own profiles,
but this is impractical if you use many profiles.

For example, you have a third profile "home" and you want to
have this in your power menu when the current profile is "silent",
then you need to add this entry:

<menuitem priority="200" name="home" visible="silent">
<keyfile>/home/user/.profiled/current</keyfile>
<icon>general_profile</icon>
<return>9</return>
<po>osso-powerup-shutdown</po>
<callback service="com.nokia.profiled" path="/com/nokia/profiled" interface="com.nokia.profiled" method="set_profile" bus="session" autostart="true">
<argument type="string">home</argument>
</callback>
</menuitem>

And if you want to have a button for your home profile when
the current profile is "general", you need to add another one:

<menuitem priority="200" name="home" visible="general">
<keyfile>/home/user/.profiled/current</keyfile>
<icon>general_profile</icon>
<return>9</return>
<po>osso-powerup-shutdown</po>
<callback service="com.nokia.profiled" path="/com/nokia/profiled" interface="com.nokia.profiled" method="set_profile" bus="session" autostart="true">
<argument type="string">home</argument>
</callback>
</menuitem>

And if you want to have the "silent" profile button when the
current one is "home":
<menuitem priority="200" name="powerup_memainmenu_silent" visible="home">
<keyfile>/home/user/.profiled/current</keyfile>
<icon>statusarea_silent</icon>
<return>9</return>
<po>osso-powerup-shutdown</po>
<callback service="com.nokia.profiled" path="/com/nokia/profiled" interface="com.nokia.profiled" method="set_profile" bus="session" autostart="true">
<argument type="string">silent</argument>
</callback>
</menuitem>

And for the "general" profile button.
<menuitem priority="200" name="powerup_memainmenu_general" visible="home">
<keyfile>/home/user/.profiled/current</keyfile>
<icon>general_profile</icon>
<return>9</return>
<po>osso-powerup-shutdown</po>
<callback service="com.nokia.profiled" path="/com/nokia/profiled" interface="com.nokia.profiled" method="set_profile" bus="session" autostart="true">
<argument type="string">general</argument>
</callback>
</menuitem>

And of course for every additional profile you have to
even more entries, this grows quadratic.
n*(n-1) entries, where n is the number of profiles :-)

Nicolai

Thanks for a great app

Would it be possible to replace the General/Silent power key menu button with one that calls the profile selector instead?
somewhat like when you hit profiles in the status menu

bjv 2011-07-16 23:14

Re: [Announce] ProfilesX (more profiles)
 
yes, a single button launcher that opens profile selection dialogue seems like the right way to go on that vs. monkeying with a multitude of entries.

a sister application to be deployed alongside profilesx.

also, seconding the call to get this in extras-testing.


and what about a facility to run an arbitrary command + 'run as root' checkbox?

doesnt address the people who want to change profile off cell ID/gps (they can use their own daemon to listen for that/change with dbus).. but ability to run a script would offload some of the implementation details responsibility to other people that want to eg: turn wifi/BT on/off, etc. for different profiles.

just my 2cent


All times are GMT. The time now is 08:11.

vBulletin® Version 3.8.8