After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 665877 - Ericsson F3507g WWAN: network-manager can't power it off
Ericsson F3507g WWAN: network-manager can't power it off
Status: RESOLVED FIXED
Product: NetworkManager
Classification: Platform
Component: ModemManager
0.9.x
Other Linux
: Normal normal
: ---
Assigned To: Dan Williams
Dan Williams
Depends on:
Blocks:
 
 
Reported: 2011-12-09 16:51 UTC by Jan Simon
Modified: 2012-08-13 09:38 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
network-manager debug log (12.51 KB, text/plain)
2011-12-26 20:05 UTC, Conrad Kostecki
  Details
modem-manager debug log (32.50 KB, text/plain)
2011-12-26 20:06 UTC, Conrad Kostecki
  Details
lsusb log (87.08 KB, text/plain)
2011-12-26 20:06 UTC, Conrad Kostecki
  Details
Proposed untested patch to solve this bug (2.75 KB, patch)
2012-08-08 16:27 UTC, Marius Kotsbak
needs-work Details | Review
Patch for MM_05 and MM_06 (1.77 KB, patch)
2012-08-08 20:58 UTC, Marius Kotsbak
committed Details | Review

Description Jan Simon 2011-12-09 16:51:08 UTC
I filed this bug on Launchpad ass well (https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/816400)

Like in https://bugs.launchpad.net/bugs/756553 described: On a Thinkpad X200 Tablet network-manager can power on the f3507g but is not able to power it off. This is only possible with the hardware flight mode switch.

This ist still a problem in network-manager 0.9.1.90, when i uncheck the mobile broadband, it only says "Not activated" (I guess, as i use the german l10n), but i can still find it in the "lsusb" list.
Comment 1 Conrad Kostecki 2011-12-26 20:05:04 UTC
Hi!
I can confirm this.

OS: Gentoo Linux
Kernel: 3.1.5-gentoo
Card: Ericsson Business Mobile Networks BV F3507g Mobile Broadband Module
Card Firmware: R1D06
Notebook: Thinkpad X200 Tablet
Notebook Bios: 3.19 (newest)

I am attaching debug log of modemmanager, networkmanager and lsusb.
The problem is, that after disabling the f3507g via networkmanager, its still enabled. rfkill confirms this.
Comment 2 Conrad Kostecki 2011-12-26 20:05:47 UTC
Created attachment 204228 [details]
network-manager debug log
Comment 3 Conrad Kostecki 2011-12-26 20:06:10 UTC
Created attachment 204229 [details]
modem-manager debug log
Comment 4 Conrad Kostecki 2011-12-26 20:06:50 UTC
Created attachment 204230 [details]
lsusb log
Comment 5 Conrad Kostecki 2011-12-26 20:08:02 UTC
root@Serenity / $ rfkill list
0: phy0: Wireless LAN
	Soft blocked: yes
	Hard blocked: no
1: tpacpi_bluetooth_sw: Bluetooth
	Soft blocked: no
	Hard blocked: no
2: tpacpi_wwan_sw: Wireless WAN
	Soft blocked: no
	Hard blocked: no
4: hci0: Bluetooth
	Soft blocked: no
	Hard blocked: no
Comment 6 Conrad Kostecki 2012-02-19 02:38:58 UTC
Any news on this? :(
Comment 7 Dan Williams 2012-02-26 02:35:36 UTC
NM does not toggle rfkill for modems because there's often better ways of putting them to into low-power mode rather than full rfkill.  Obviously rfkill can still be used to power the modem off completely in situations that require it.  This gets implemented on a modem-by-modem basis and isn't active for many modems yet because often it causes them to drop off the bus entirely without being rfkilled, and for phones often powers down the phone.  For Ericsson devices though, we should likely be sending CFUN=4 to put the device into low-power state, and leave full power down to user-initiated rfkill.
Comment 8 Conrad Kostecki 2012-02-26 11:55:27 UTC
CFUN=4 sounds very good, whould be nice, if this could be implemented :)
Comment 9 Marius Kotsbak 2012-08-08 16:27:23 UTC
Created attachment 220702 [details] [review]
Proposed untested patch to solve this bug
Comment 10 Aleksander Morgado 2012-08-08 16:47:56 UTC
The Ericsson plugin is not yet ported to the new codebase; the code you modified will not actually even get compiled as that plugin is disabled in the Makefile.am :-)

You really want to get the MM_05 or MM_06 branch and hack the change there, possibly overriding MM_GENERIC_GSM_PROP_POWER_DOWN_CMD as done in the ZTE plugin.

Whenever that gets done, I'll include the fix in git master when the Ericsson plugin gets ported.
Comment 11 Aleksander Morgado 2012-08-08 16:48:57 UTC
Review of attachment 220702 [details] [review]:

Needs to be hacked for MM_05 or MM_06
Comment 12 Aleksander Morgado 2012-08-08 16:51:35 UTC
Needless to say, I'm the culprit of the confusion for having the plugins/ directory with old & new plugins; just a hint: if the plugin has its own directory under plugins/ then it's ported, otherwise it's not. Sorry for that :-)
Comment 13 Marius Kotsbak 2012-08-08 17:56:15 UTC
Ah,that explains why the other plugins implemented other interfaces. I assumed it was right since it built ok. Will try to do it in those branches.
Comment 14 Marius Kotsbak 2012-08-08 20:58:11 UTC
Created attachment 220734 [details] [review]
Patch for MM_05 and MM_06
Comment 15 Aleksander Morgado 2012-08-09 05:53:22 UTC
Review of attachment 220734 [details] [review]:

This one looks good now; pushed to MM_05 and MM_06.
Comment 16 Aleksander Morgado 2012-08-09 05:53:52 UTC
This problem has been fixed in our software repository. The fix will go into the next software release. Thank you for your bug report.
Comment 17 Marius Kotsbak 2012-08-13 09:38:49 UTC
Fixed in commits:

850d78b938e895e3a1628f8ce45a67c7d5cfd2ca (MM_05)
36ef5fa278a932913db77771540c28a1f3296a1d (MM_06)