Reply
Thread Tools
Posts: 200 | Thanked: 300 times | Joined on Nov 2009 @ The Netherlands
#1
Hi,

Is there a dbus command (or other methode) to query the current selected phone profile (standard 'general' or 'silent'). I need this for a Python script...
 
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#2
Hi,

Code:
dbus-send --print-reply --type=method_call --dest=com.nokia.profiled /com/nokia/profiled com.nokia.profiled.get_profile
 

The Following 4 Users Say Thank You to qwerty12 For This Useful Post:
Posts: 247 | Thanked: 91 times | Joined on Jan 2008 @ London/M4 Corridor
#3
With qwerty12's start, I was also able to list what profiles were defined, and put this into the wiki at http://wiki.maemo.org/Phone_control#Profiles.

I am wondering what happens if I add a profile to the list somehow. The current combination of Tweakr manipulating one menu and a quick press of the power button showing another menu isn't working well for me, and I would love to have all my Tweakr profiles given as a pop-up option when I select the "Silent"/"General" toggle that currently controls the phone rings...
__________________
--
If you don't know who the Eletronic Frontier
Foundation are, you should. Check out
http://www.eff.org.
 

The Following 2 Users Say Thank You to Alan_Peery For This Useful Post:
Posts: 247 | Thanked: 91 times | Joined on Jan 2008 @ London/M4 Corridor
#4
After a bit of poking around, it appears that the profiled is reading the data in /etc/profiled, but the UI aspect around the power button is missing.

I copied /etc/profiled/90.nokia.ini to /etc/profile/91.alan.ini, made an obvious edit, and rebooted. After this, the get_profiles call then listed my "quiet" profile in addition to the standard "General" and "Silent". It seems that a bit of GUI hacking may turn this into appropriate configuration.

Anyone have any idea why Tweakr didn't store the new profiles that you create with it in /etc/profiled? It seems the place...
__________________
--
If you don't know who the Eletronic Frontier
Foundation are, you should. Check out
http://www.eff.org.
 
nicolai's Avatar
Posts: 1,637 | Thanked: 4,424 times | Joined on Apr 2009 @ Germany
#5
I am working on that (the GUI).

I made a control-panel and a status-panel plugin to add
and manage multiple proflies.

There are two problems at the moment.

1. It doesnt work.
To add new profiles I need to create and modify a file
in /etc/profiled from within the control-panel plugin.
This works in scratchbox but not on the device.
In scratchbox this directory is writable by the user,
on the device it is a system file and only wirteable by
the superuser. I dont know exactly what to do.

2. sound preview http://talk.maemo.org/showthread.php...611#post608611


regards nicolai
 
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#6
Originally Posted by nicolai View Post
1. It doesnt work.
To add new profiles I need to create and modify a file
in /etc/profiled from within the control-panel plugin.
This works in scratchbox but not on the device.
In scratchbox this directory is writable by the user,
on the device it is a system file and only wirteable by
the superuser. I dont know exactly what to do.
Generally, a "helper program" is made and an exception added to /etc/sudoers.d. Look at pH5's LED Patterns applet (it's in Vala, though).

That said, would /home/user/.profiled work?

Best Regards,
Faheem
 

The Following 2 Users Say Thank You to qwerty12 For This Useful Post:
nicolai's Avatar
Posts: 1,637 | Thanked: 4,424 times | Joined on Apr 2009 @ Germany
#7
Originally Posted by qwerty12 View Post
Generally, a "helper program" is made and an exception added to /etc/sudoers.d. Look at pH5's LED Patterns applet (it's in Vala, though).
Yes, something like that I had thought of.

Originally Posted by qwerty12 View Post
That said, would /home/user/.profiled work?
No, already tried.

nicolai
 

The Following User Says Thank You to nicolai For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 15:45.