Hi Jussi, On 04/07/2014 06:55 AM, jussi.pakkanen(a)canonical.com wrote: > Hello > > Here's a revised way of changing phonesim modem configurations at > runtime. It works by adding a dbus interface via which you can add new > modems, delete all existing modems or reset modem status to what it > was at startup. This first patch adds the dbus bits and the second one > calls the corresponding ofono functions. > > This patch set is not fully polished yet but should give an idea what > we are aiming for. I'm not fully versed in phonesim's internals so I'm > not sure if I'm poking all the right bits in the dbus functions, so > please verify that with extra care. > > Thanks, > > --- > plugins/phonesim.c | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 58 insertions(+) > As I've said before, this is overkill. It makes the phonesim plugin way more complicated that it needs to be. A .conf parser with over-ridable directories, a control channel with add/remove/reset? Seriously? UI should be designed to ignore non-powered modems, and only look for interfaces that it handles specifically. So for a properly designed UI, none of these changes are required. If you want to handle DualSim cleanly, then feel free to propose a mechanism / hint that makes applications aware of the fact that two modems belong to a group. If the above cannot be done, then please write a plugin to address your specific use case. Regards, -Denis