I tried your scenario and can't reproduce. Some additional comments: 1. Does set-3g-slot produce any kind of useful error message? It hasn't yet failed for me. Does ofono log any errors to syslog?
2. Is the reboot solely because set-3g-slot failed, or is it a required step ( I tried with and without... )? 3. Your bug description is a bit misleading as setting a one or both modems to offline doesn't enable FlightMode, it merely offlines the modems. So I assume you mean the modem associated with the empty slot cannot be offlined? 4. Does offline-modem produce any kind of error message? If not, have you tried to see what error is returned from ofono to the SetProperty call? Any log messges? If there's a race involved, a test script that uses urfkill's flight- mode script directly might be a good idea. My testing was done on a Krillin with one T-Mobile SIM in the second slot. Image-details: current build number: 255 device name: krillin channel: ubuntu-touch/ubuntu-rtm/14.09-proposed last update: 2015-03-11 17:26:34 version version: 255 version ubuntu: 20150311 version device: 20150310-3201c0a version custom: 20150216-561-29-186 -- You received this bug notification because you are a member of Ubuntu Phonedations bugs, which is subscribed to ofono in Ubuntu. https://bugs.launchpad.net/bugs/1430700 Title: Cannot set flight mode if the second slot is 3G and we have just one SIM in that slot Status in ofono package in Ubuntu: Incomplete Bug description: Flight mode fails to be set if we have the 3G capabilities set for the second slot and we have just one SIM, which is inserted in the that slot. To reproduce using scripts: cd /usr/share/ofono/scripts ./set-3g-slot /ril_1 * Reboot the phone (set 3G is failing in this case too, maybe it is related) cd /usr/share/ofono/scripts ./offline-modem /ril_0 (slot with no SIM) This happens for: $ system-image-cli -i current build number: 253 device name: krillin channel: ubuntu-touch/ubuntu-rtm/14.09-proposed last update: 2015-03-10 11:36:16 version version: 253 version ubuntu: 20150310 version device: 20150225-b67e0b6 version custom: 20150216-561-29-186 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ofono/+bug/1430700/+subscriptions -- Mailing list: https://launchpad.net/~ubuntu-phonedations-bugs Post to : ubuntu-phonedations-bugs@lists.launchpad.net Unsubscribe : https://launchpad.net/~ubuntu-phonedations-bugs More help : https://help.launchpad.net/ListHelp