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)

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 07:30.

vBulletin® Version 3.8.8