[Bug 1321627] Re: Wrong WWAN value in saved-states if ofono 'Online' toggle fails

2015-03-09 Thread Alfonso Sanchez-Beato
@Patrick, would you mind attaching /var/log/syslog , and possible
urfkill crash files in /var/crash ? Also, could you please describe what
were you doing when this happened?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1321627

Title:
  Wrong WWAN value in saved-states if ofono 'Online' toggle fails

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/urfkill/+bug/1321627/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1321627] Re: Wrong WWAN value in saved-states if ofono 'Online' toggle fails

2015-03-07 Thread Patrick Hetu
Just got this on rtm16 and Alfonso's workaround worked for me. Not sure
if this is a regression.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1321627

Title:
  Wrong WWAN value in saved-states if ofono 'Online' toggle fails

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/urfkill/+bug/1321627/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1321627] Re: Wrong WWAN value in saved-states if ofono 'Online' toggle fails

2014-10-07 Thread Launchpad Bug Tracker
This bug was fixed in the package urfkill -
0.6.0~20141007.235123.f908aff.1-0ubuntu1

---
urfkill (0.6.0~20141007.235123.f908aff.1-0ubuntu1) utopic; urgency=medium

  * New release snapshot:
- Asynchronous support for rfkill operations. (LP: #1321627, #1339794)
- Improvements to state persistence. (LP: #1354716)
- Support for devices driven by libhybris rather than rfkill.
  * debian/patches/ignore_input_monitor_startup.patch: dropped, included
upstream.
  * debian/control:
- bump Build-Depends on libglib2.0-dev to >= 2.36 for GTask.
- add a Build-Depends on libhybris-dev for hybris-driven devices support.
- bump Standards-Version to 3.9.5.
  * debian/scripts/enumerate: handle the new hybris device type.
  * debian/rules: remove SysV init startup links.
 -- Mathieu Trudel-LapierreTue, 07 Oct 2014 23:53:07 
-0400

** Changed in: urfkill (Ubuntu)
   Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1321627

Title:
  Wrong WWAN value in saved-states if ofono 'Online' toggle fails

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/urfkill/+bug/1321627/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1321627] Re: Wrong WWAN value in saved-states if ofono 'Online' toggle fails

2014-10-07 Thread Launchpad Bug Tracker
This bug was fixed in the package urfkill -
0.6.0~20141007.235123.f908aff.1-0ubuntu1

---
urfkill (0.6.0~20141007.235123.f908aff.1-0ubuntu1) utopic; urgency=medium

  * New release snapshot:
- Asynchronous support for rfkill operations. (LP: #1321627, #1339794)
- Improvements to state persistence. (LP: #1354716)
- Support for devices driven by libhybris rather than rfkill.
  * debian/patches/ignore_input_monitor_startup.patch: dropped, included
upstream.
  * debian/control:
- bump Build-Depends on libglib2.0-dev to >= 2.36 for GTask.
- add a Build-Depends on libhybris-dev for hybris-driven devices support.
- bump Standards-Version to 3.9.5.
  * debian/scripts/enumerate: handle the new hybris device type.
  * debian/rules: remove SysV init startup links.
 -- Mathieu Trudel-LapierreTue, 07 Oct 2014 23:53:07 
-0400

** Changed in: urfkill (Ubuntu RTM)
   Status: Fix Committed => Fix Released

** Branch linked: lp:ubuntu/utopic-proposed/urfkill

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1321627

Title:
  Wrong WWAN value in saved-states if ofono 'Online' toggle fails

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/urfkill/+bug/1321627/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1321627] Re: Wrong WWAN value in saved-states if ofono 'Online' toggle fails

2014-09-29 Thread Tony Espy
** Changed in: urfkill (Ubuntu RTM)
 Assignee: (unassigned) => Tony Espy (awe)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1321627

Title:
  Wrong WWAN value in saved-states if ofono 'Online' toggle fails

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/urfkill/+bug/1321627/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1321627] Re: Wrong WWAN value in saved-states if ofono 'Online' toggle fails

2014-09-29 Thread Tony Espy
** Also affects: urfkill (Ubuntu RTM)
   Importance: Undecided
   Status: New

** Changed in: urfkill (Ubuntu)
   Status: In Progress => Fix Committed

** Changed in: urfkill (Ubuntu RTM)
   Status: New => Fix Committed

** Changed in: urfkill (Ubuntu RTM)
   Importance: Undecided => Critical

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1321627

Title:
  Wrong WWAN value in saved-states if ofono 'Online' toggle fails

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/urfkill/+bug/1321627/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1321627] Re: Wrong WWAN value in saved-states if ofono 'Online' toggle fails

2014-09-17 Thread Tony Espy
Updated milestone as landing the required fix requires additional fixes
to indicator-network.

There also have been some krillin-specific timeout issues that have
taken longer to debug than expected.

** Tags removed: touch-2014-09-18
** Tags added: touch-2014-09-25

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1321627

Title:
  Wrong WWAN value in saved-states if ofono 'Online' toggle fails

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/urfkill/+bug/1321627/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1321627] Re: Wrong WWAN value in saved-states if ofono 'Online' toggle fails

2014-09-12 Thread Launchpad Bug Tracker
** Branch linked: lp:~mathieu-tl/+junk/urfkill-debian

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1321627

Title:
  Wrong WWAN value in saved-states if ofono 'Online' toggle fails

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/urfkill/+bug/1321627/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1321627] Re: Wrong WWAN value in saved-states if ofono 'Online' toggle fails

2014-09-09 Thread Tony Espy
** Tags added: touch-2014-09-18

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1321627

Title:
  Wrong WWAN value in saved-states if ofono 'Online' toggle fails

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/urfkill/+bug/1321627/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1321627] Re: Wrong WWAN value in saved-states if ofono 'Online' toggle fails

2014-08-13 Thread Thomas Strehl
** Tags added: rtm14

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1321627

Title:
  Wrong WWAN value in saved-states if ofono 'Online' toggle fails

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/urfkill/+bug/1321627/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1321627] Re: Wrong WWAN value in saved-states if ofono 'Online' toggle fails

2014-08-09 Thread Tony Espy
** Changed in: urfkill (Ubuntu)
   Importance: High => Critical

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1321627

Title:
  Wrong WWAN value in saved-states if ofono 'Online' toggle fails

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/urfkill/+bug/1321627/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1321627] Re: Wrong WWAN value in saved-states if ofono 'Online' toggle fails

2014-08-08 Thread Tony Espy
** Changed in: urfkill (Ubuntu)
 Assignee: Mathieu Trudel-Lapierre (mathieu-tl) => Tony Espy (awe)

** Changed in: urfkill (Ubuntu)
   Status: Triaged => In Progress

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1321627

Title:
  Wrong WWAN value in saved-states if ofono 'Online' toggle fails

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/urfkill/+bug/1321627/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1321627] Re: Wrong WWAN value in saved-states if ofono 'Online' toggle fails

2014-07-30 Thread Sayantan Das
I can reproduce it on Nexus 5 every day even on a clean install..

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1321627

Title:
  Wrong WWAN value in saved-states if ofono 'Online' toggle fails

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/urfkill/+bug/1321627/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1321627] Re: Wrong WWAN value in saved-states if ofono 'Online' toggle fails

2014-07-30 Thread I Ahmad
I have experienced the same issue on krillin when toggled the flight
mode couple of times.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1321627

Title:
  Wrong WWAN value in saved-states if ofono 'Online' toggle fails

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/urfkill/+bug/1321627/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1321627] Re: Wrong WWAN value in saved-states if ofono 'Online' toggle fails

2014-07-29 Thread Ricardo Salveti
Moving to high as one piece already landed and it's way harder to
reproduce the issue with latest image.

** Changed in: urfkill (Ubuntu)
   Importance: Critical => High

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1321627

Title:
  Wrong WWAN value in saved-states if ofono 'Online' toggle fails

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/urfkill/+bug/1321627/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1321627] Re: Wrong WWAN value in saved-states if ofono 'Online' toggle fails

2014-07-18 Thread Ɓukasz Zemczak
** Tags added: lt-category-visible lt-prio-low

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1321627

Title:
  Wrong WWAN value in saved-states if ofono 'Online' toggle fails

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/urfkill/+bug/1321627/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1321627] Re: Wrong WWAN value in saved-states if ofono 'Online' toggle fails

2014-07-16 Thread Tony Espy
** Description changed:

  Sometimes the WWAN value in /var/lib/urfkill/saved-states is incoherent
  with the flight mode status. Note that in this case we have dual SIM (I
  have not tried yet with just one modem, could happen too).
  
  Start with flight mode=0. soft=false in all sections in saved-states.
  /usr/share/urfkill/scripts/flight-mode 1
  # restart to write values in saved-state
  restart urfkill
  /usr/share/urfkill/scripts/flight-mode 0
  # restart to write values in saved-state
  restart urfkill
  
  The modem is not onlined. soft=true for WWAN in saved-states, whilst the
  remaining sections have the right value:
  
  # cat /var/lib/urfkill/saved-states
  [WLAN]
  soft=false
  
  [BLUETOOTH]
  soft=false
  
  [UWB]
  soft=false
  
  [WIMAX]
  soft=false
  
  [WWAN]
  soft=true
  
  [GPS]
  soft=false
  
  [FM]
  soft=false
  
  [NFC]
  soft=false
  
  [ALL]
  soft=false
  
  This bug is triggered by a failure of an ofono SetProperty 'Online'
  failure.  In this case, the MTK modem was involved.
  
  syslog attached. urfkilld executed with -d in upstart script.
+ 
+ Workaround:
+ 
+ It should be possible to restore WWAN state by either:
+ 
+ - deleting the saved-states file and rebooting
+ 
+ OR
+ 
+ - stop urfkill 
+ - edit the file and change the [WWAN] soft=true to soft=false
+ - start urfkill

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1321627

Title:
  Wrong WWAN value in saved-states if ofono 'Online' toggle fails

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/urfkill/+bug/1321627/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1321627] Re: Wrong WWAN value in saved-states if ofono 'Online' toggle fails

2014-07-16 Thread Tony Espy
For reference, the silo mentioned in comment #21 landed on 20140711.
The first image this package was seeded in was #u127:

http://people.canonical.com/~lzemczak/landing-team/127.commitlog

Also, as I'm still able to re-create the bug ( see comment #23 ),
changed Status back to Triaged.

** Changed in: urfkill (Ubuntu)
   Status: Fix Committed => Triaged

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1321627

Title:
  Wrong WWAN value in saved-states if ofono 'Online' toggle fails

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/urfkill/+bug/1321627/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1321627] Re: Wrong WWAN value in saved-states if ofono 'Online' toggle fails

2014-07-09 Thread Tony Espy
So it looks like it's still possible to hit this bug even with the
updated urfkill from silo-0014  ( mentioned in comment #21 ).

Martti reported bug #1339794 while testing the pending Flight Mode UI
which seems to cause the modem to stop responding to Online/Offline
requests if FM is toggled too quickly.  I traced this to urfkill not
handling InProgress DBus errors from ofono.

It also turns out that when this occurs, it can also end up leaving WWAN
soft=true, whereas all the remaining soft switches are false.

That said, the behavior of urfkill is much improved, and the basic FM UI
works.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1321627

Title:
  Wrong WWAN value in saved-states if ofono 'Online' toggle fails

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/urfkill/+bug/1321627/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1321627] Re: Wrong WWAN value in saved-states if ofono 'Online' toggle fails

2014-07-08 Thread Elias K Gardner
Thanks for getting me here Tony. It looks like I'm getting this too.

Yes it has always worked until this weekend possibly when I flashed #113
with 'ubuntu-device-flash --channel=ubuntu-touch/utopic'

$ adb shell cat /var/lib/urfkill/saved-states -> Everything is  is false
except WWAN

$ adb shell /usr/share/ofono/scripts/list-modems
[ /ril_0 ]
Powered = 1
Model = Fake Modem Model
Lockdown = 0
Emergency = 0
Manufacturer = Fake Manufacturer
Features = sim
Revision = M9615A-CEFWMAZM-2.0.1700.48
Interfaces = org.ofono.SimManager
Serial = 355136053322924
Type = hardware
Online = 0
[ org.ofono.SimManager ]
Present = 0

In case it is heplufl I am using a pre-paid SIM from Airvoice Wireless
using the AT&T network the US.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1321627

Title:
  Wrong WWAN value in saved-states if ofono 'Online' toggle fails

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/urfkill/+bug/1321627/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1321627] Re: Wrong WWAN value in saved-states if ofono 'Online' toggle fails

2014-07-08 Thread Tony Espy
A silo has been created today for urfkill.  This includes fixes for this
bug, and some additional changes needed by the pending Flight-Mode
system settings UI.

Here's the silo link, please feel free to download this version of
urkfill and report back your results:

https://launchpad.net/~ci-train-ppa-service/+archive/ubuntu/landing-014

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1321627

Title:
  Wrong WWAN value in saved-states if ofono 'Online' toggle fails

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/urfkill/+bug/1321627/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1321627] Re: Wrong WWAN value in saved-states if ofono 'Online' toggle fails

2014-07-07 Thread Tony Espy
Changed Status to FixCommitted via the following two pull requests:

https://github.com/cyphermox/urfkill/pull/4
https://github.com/cyphermox/urfkill/pull/5

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1321627

Title:
  Wrong WWAN value in saved-states if ofono 'Online' toggle fails

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/urfkill/+bug/1321627/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1321627] Re: Wrong WWAN value in saved-states if ofono 'Online' toggle fails

2014-07-07 Thread Tony Espy
@taiebot65

I think the crucial evidence for this bug is the saved_states file per
the description.

We should be landing a new version of urfkill this week with fixes for
this bug and a separate issue with DBus signals that affected the Touch
Flight Mode UI ( which hopefully will land at the same time ).  Once a
silo is created, we'll add a link to this bug so that you, or others can
help test.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1321627

Title:
  Wrong WWAN value in saved-states if ofono 'Online' toggle fails

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/urfkill/+bug/1321627/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1321627] Re: Wrong WWAN value in saved-states if ofono 'Online' toggle fails

2014-07-07 Thread Tony Espy
** Changed in: urfkill (Ubuntu)
   Status: Triaged => Fix Committed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1321627

Title:
  Wrong WWAN value in saved-states if ofono 'Online' toggle fails

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/urfkill/+bug/1321627/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1321627] Re: Wrong WWAN value in saved-states if ofono 'Online' toggle fails

2014-07-01 Thread Tony Espy
** Summary changed:

- Wrong WWAN value in saved-states
+ Wrong WWAN value in saved-states if ofono 'Online' toggle fails

** Description changed:

  Sometimes the WWAN value in /var/lib/urfkill/saved-states is incoherent
  with the flight mode status. Note that in this case we have dual SIM (I
  have not tried yet with just one modem, could happen too).
  
  Start with flight mode=0. soft=false in all sections in saved-states.
  /usr/share/urfkill/scripts/flight-mode 1
  # restart to write values in saved-state
  restart urfkill
  /usr/share/urfkill/scripts/flight-mode 0
  # restart to write values in saved-state
  restart urfkill
  
  The modem is not onlined. soft=true for WWAN in saved-states, whilst the
  remaining sections have the right value:
  
- # cat /var/lib/urfkill/saved-states 
+ # cat /var/lib/urfkill/saved-states
  [WLAN]
  soft=false
  
  [BLUETOOTH]
  soft=false
  
  [UWB]
  soft=false
  
  [WIMAX]
  soft=false
  
  [WWAN]
  soft=true
  
  [GPS]
  soft=false
  
  [FM]
  soft=false
  
  [NFC]
  soft=false
  
  [ALL]
  soft=false
  
+ This bug is triggered by a failure of an ofono SetProperty 'Online'
+ failure.  In this case, the MTK modem was involved.
  
  syslog attached. urfkilld executed with -d in upstart script.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1321627

Title:
  Wrong WWAN value in saved-states if ofono 'Online' toggle fails

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/urfkill/+bug/1321627/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1321627] Re: Wrong WWAN value in saved-states

2014-07-01 Thread taiebot65
I think i am hitting this bug everyday while i am at work. Because only
a hard reboot gives me back my gsm after leaving work.

Anyway to cut it short i have poor to really bad GSM reception at work.
Almost two to three times a day i completely lose ability to call or
send text and only a hard reboot solves the problem so i think i am hit
bit this issue. I think if you tell me what logs i need to collect i
would be able to give you the logs in order to solve this "annoying"
issue.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1321627

Title:
  Wrong WWAN value in saved-states

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/urfkill/+bug/1321627/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1321627] Re: Wrong WWAN value in saved-states

2014-06-20 Thread Sayantan Das
I had to carry out the following manually to get the GSM signals to work

/usr/share/urfkill/scripts/flight-mode 1
# restart to write values in saved-state
restart urfkill
/usr/share/urfkill/scripts/flight-mode 0
# restart to write values in saved-state
restart urfkill

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1321627

Title:
  Wrong WWAN value in saved-states

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/urfkill/+bug/1321627/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1321627] Re: Wrong WWAN value in saved-states

2014-06-20 Thread Sayantan Das
For me on #87, by default the GSM signals are turned off. I am using the
Android/Ubuntu dual boot app provided by Canonical

Also, following

root@ubuntu-phablet:~# cat /var/lib/urfkill/saved-states
[ALL]
soft=false

[BLUETOOTH]
soft=false

[WLAN]
soft=false

[UWB]
soft=false

[WIMAX]
soft=false

[WWAN]
soft=false

[GPS]
soft=false

[FM]
soft=false

[NFC]
soft=false

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1321627

Title:
  Wrong WWAN value in saved-states

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/urfkill/+bug/1321627/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1321627] Re: Wrong WWAN value in saved-states

2014-06-17 Thread Mathieu Trudel-Lapierre
Without logs, I can't know what happened. Tony, do you still have the
logs for that testing run?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1321627

Title:
  Wrong WWAN value in saved-states

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/urfkill/+bug/1321627/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1321627] Re: Wrong WWAN value in saved-states

2014-06-13 Thread Tony Espy
I was able to reproduce a similar problem on mako following Alfonso's
instructions.  I ended up with the following states:

root@ubuntu-phablet:~# cat /var/lib/urfkill/saved-states 
[ALL]
soft=false

[WLAN]
soft=true

[BLUETOOTH]
soft=true

[UWB]
soft=false

[WIMAX]
soft=false

[WWAN]
soft=false

[GPS]
soft=false

[FM]
soft=false

[NFC]
soft=false

However when I run the kernel rfkill script, neither BT or WLAN are
actually blocked:

root@ubuntu-phablet:~# rfkill list
0: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
1: hci0: Bluetooth
Soft blocked: no
Hard blocked: no

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1321627

Title:
  Wrong WWAN value in saved-states

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/urfkill/+bug/1321627/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1321627] Re: Wrong WWAN value in saved-states

2014-06-13 Thread Alexander Sack
maybe interesting or maybe red herring:


14:25 < asac> cyphermox: grepping through urfkill its odd that there are places 
where there is WLAN, but not WWAN in the switch/case codes
14:26 < asac> cyphermox: i guess thats (one of) the reason for the weird WWAN 
state bugs
14:26 < asac> cyphermox: see http://paste.ubuntu.com/7638647/
14:27 < asac> tests/killswitch-write.c:Iwlan = urf_killswitch_new 
(URF_ENUM_TYPE_WLAN);
14:27 < asac> src/urf-arbitrator.c:IItype = RFKILL_TYPE_WLAN;
14:27 < asac> src/urf-input.c:case KEY_WLAN:
14:27 < asac> src/urf-daemon.c:Icase KEY_WLAN:
14:27 < asac> src/urf-daemon.c:IItype = RFKILL_TYPE_WLAN;
14:28 < asac> those are the ones that only exist on WLAN not WWAN
14:28 < Wellark> asac: one reason for that might be that WWAN on n4 is not an 
actual HW kill switch
14:28 < asac> could be :)
14:28 < asac> just pointing out

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1321627

Title:
  Wrong WWAN value in saved-states

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/urfkill/+bug/1321627/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1321627] Re: Wrong WWAN value in saved-states

2014-06-13 Thread Iain Lane
I filed bug #1329734 as requested

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1321627

Title:
  Wrong WWAN value in saved-states

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/urfkill/+bug/1321627/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1321627] Re: Wrong WWAN value in saved-states

2014-06-13 Thread Alfonso Sanchez-Beato
Please disregard the timeout part here, as that does not affect nexus 4
(I will open a different bug for that). This bug is for the wrong value
for WWAN in saved states.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1321627

Title:
  Wrong WWAN value in saved-states

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/urfkill/+bug/1321627/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1321627] Re: Wrong WWAN value in saved-states

2014-06-13 Thread Vincent Ladeuil
@Mathieu: Not sure what those two bugs are. Should I file a new one with
'ubuntu-bug urfkill' for the part that requires me to run
/usr/share/ofono/scripts/online-modem after every reboot ?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1321627

Title:
  Wrong WWAN value in saved-states

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/urfkill/+bug/1321627/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1321627] Re: Wrong WWAN value in saved-states

2014-06-12 Thread Mathieu Trudel-Lapierre
Timeout indeed could be increased, but it's currently supposed to be set
at 25 seconds (the default for g_dbus_proxy's).

As for saving the states, I'll think about it a bit, try to figure out
why it was set the way it was so far.

Ideally however, there should be two bugs if there are two separate
issues, that makes it easier to track what's done and what isn't. It's
also better to use "ubuntu-bug " to file bugs so we know what
versions are affected, and get extra debugging info (like the syslogs I
almost always ask for) added to the bug directly.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1321627

Title:
  Wrong WWAN value in saved-states

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/urfkill/+bug/1321627/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1321627] Re: Wrong WWAN value in saved-states

2014-06-11 Thread Vincent Ladeuil
Argh, updated to #77 and didn't realize I need to use the script again
:-/ Looks like that will be case for every reboot right ?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1321627

Title:
  Wrong WWAN value in saved-states

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/urfkill/+bug/1321627/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1321627] Re: Wrong WWAN value in saved-states

2014-06-11 Thread Vincent Ladeuil
I ran into this issue during the week end and indeed completely  lost
carrier selection.

abeato pointed me to /usr/share/ofono/scripts/online-modem that restored
the correct carrier.

Thanks for that but this needs a better fix than requiring the user to
run a script ;)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1321627

Title:
  Wrong WWAN value in saved-states

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/urfkill/+bug/1321627/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1321627] Re: Wrong WWAN value in saved-states

2014-06-10 Thread Tony Espy
Bumped this to critical as it can result in someone not having use of
their phone for emergency calls.

** Changed in: urfkill (Ubuntu)
   Importance: High => Critical

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1321627

Title:
  Wrong WWAN value in saved-states

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/urfkill/+bug/1321627/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1321627] Re: Wrong WWAN value in saved-states

2014-06-03 Thread Pat McGowan
My mako was in this state, the save-states file had WWAN  soft=true and
this value was never changed despite bringing the modem up, turning off
flight mode, etc. This happened since the orginal landing of the flight
mode capability, I never ran any commands, it was just defaulted to
having the modem off.

I deleted the file and now I have the modem up at boot

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1321627

Title:
  Wrong WWAN value in saved-states

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/urfkill/+bug/1321627/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1321627] Re: Wrong WWAN value in saved-states

2014-05-21 Thread Alfonso Sanchez-Beato
In fact I did not restart immediately urfkill, I waited for around a
minute and did some checks between each command in the bug description.

The problem is not that the file is written just on shutdown, although I
would argue that it makes sense to write it each time the user modifies
a setting, to have the right values in the file in case urfkill crashes
or the phone is switched off abruptly (say, removing the battery).

The issue is that you say that you write to the file the current state
of the modem, not the *desired* state. IMO this is wrong, as it looks
like urfkill uses the values in the file when it starts to set the state
for the devices: if that is the case, the file should have the values
that the user configured. Otherwise, when there is a problem with one
device, we will not try to move it to the state configured by the user,
but to the state it had when urfkill stopped. This is what is happening.

So I would say that there are 2 issues:

1.- Timeout when onlining the modem. This happens because MTK modems
take more time to power on, and can be fixed easily incrementing this
time. Answering your question, it is not related to having more than one
modem: I tried with one modem and the behavior was the same.

2.- saved-states stores the current state of the devices instead of the
configured state, so we do not get the right behavior when rebooting
after a problem with a device

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1321627

Title:
  Wrong WWAN value in saved-states

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/urfkill/+bug/1321627/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1321627] Re: Wrong WWAN value in saved-states

2014-05-21 Thread Mathieu Trudel-Lapierre
Not necessarily.

The saved-states file is only necessary for persistence across reboots.
That it's not always 100% up to date is irrelevant, because you'll also
should have UI available to toggle this. Writing on shutdown is
sufficient for this purpose. I'm not against writing more often, but it
just isn't critical.

There's always the possibility that it takes time to offline or online
the modem. If you toggle it and immediately stop urfkill, that would
explain the discrepancy. It currently writes the actual, checked and
proven state of the modem(s) to file rather than what urfkill believes
it should be, since things could happen to the modem outside of urfkill.

Could you do the testing and let me know how the number of modems affect
delays?

Setting to triaged, this needs a bit of thought about how we can
accomodate multiple modems and the delays that can ensue.


** Changed in: urfkill (Ubuntu)
   Status: New => Triaged

** Changed in: urfkill (Ubuntu)
 Assignee: (unassigned) => Mathieu Trudel-Lapierre (mathieu-tl)

** Changed in: urfkill (Ubuntu)
   Importance: Undecided => High

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1321627

Title:
  Wrong WWAN value in saved-states

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/urfkill/+bug/1321627/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1321627] Re: Wrong WWAN value in saved-states

2014-05-21 Thread Alfonso Sanchez-Beato
An interesting line in syslog is:

URfkill[3014]:  Could not set Online property in oFono: Timeout
was reached

In the case of MTK modem, onlining the modem after powering it on takes
~8 seconds, so probable the timeout has to be increased (maybe to ~20
seconds to be on the safe side).

However, even if there is a timeout the values written in the file
should reflect what the user wanted, as the only way get back to normal
state is to use /usr/share/urfkill/scripts/block to activate the modem.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1321627

Title:
  Wrong WWAN value in saved-states

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/urfkill/+bug/1321627/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs