Notices


Reply
Thread Tools
nicolai's Avatar
Posts: 1,637 | Thanked: 4,424 times | Joined on Apr 2009 @ Germany
#191
Originally Posted by Bratag View Post
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"
 

The Following 2 Users Say Thank You to nicolai For This Useful Post:
Posts: 47 | Thanked: 3 times | Joined on May 2010 @ Johannesburg, South Africa
#192
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's Avatar
Posts: 1,637 | Thanked: 4,424 times | Joined on Apr 2009 @ Germany
#193
I think it would be better to have another application for
this. ProfilesX is already quite complex.

Nicolai
 

The Following User Says Thank You to nicolai For This Useful Post:
Posts: 24 | Thanked: 27 times | Joined on Nov 2010 @ Berkeley, CA
#194
Originally Posted by x61 View Post
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.

Last edited by jhwan; 2011-03-31 at 03:34.
 
travla's Avatar
Posts: 397 | Thanked: 241 times | Joined on Mar 2010 @ Melbourne, Australia
#195
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.
 
Posts: 44 | Thanked: 34 times | Joined on May 2010
#196
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?
 
Posts: 270 | Thanked: 37 times | Joined on Sep 2010
#197
Originally Posted by NightShift79 View Post
...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

Last edited by iscio; 2011-06-01 at 11:33.
 
Posts: 89 | Thanked: 31 times | Joined on Mar 2010
#198
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?
 
Posts: 64 | Thanked: 74 times | Joined on Mar 2011 @ Bim
#199
Originally Posted by nicolai View Post
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
 
Posts: 35 | Thanked: 33 times | Joined on Feb 2010 @ North America
#200
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
 
Reply


 
Forum Jump


All times are GMT. The time now is 03:03.