modem-manager writes to log every 2 seconds

Bug #662791 reported by Saddy
30
This bug affects 5 people
Affects Status Importance Assigned to Milestone
modemmanager (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Binary package hint: modemmanager

I've got an UMTS modem. My log:

$ tail /var/log/daemon.log
Oct 18 18:36:22 dsksdy modem-manager: Duration: 38 Up: 2 Kbps Down: 1 Kbps Total: 30 Total: 106
Oct 18 18:36:24 dsksdy modem-manager: Duration: 40 Up: 1 Kbps Down: 0 Kbps Total: 30 Total: 106
Oct 18 18:36:26 dsksdy modem-manager: Duration: 42 Up: 2 Kbps Down: 1 Kbps Total: 31 Total: 107
Oct 18 18:36:28 dsksdy modem-manager: Duration: 44 Up: 3 Kbps Down: 3 Kbps Total: 31 Total: 108
Oct 18 18:36:30 dsksdy modem-manager: Duration: 46 Up: 2 Kbps Down: 3 Kbps Total: 32 Total: 109
Oct 18 18:36:32 dsksdy modem-manager: Duration: 48 Up: 0 Kbps Down: 1 Kbps Total: 32 Total: 109
Oct 18 18:36:34 dsksdy modem-manager: Duration: 50 Up: 0 Kbps Down: 0 Kbps Total: 32 Total: 109
Oct 18 18:36:36 dsksdy modem-manager: Duration: 52 Up: 0 Kbps Down: 0 Kbps Total: 32 Total: 109
Oct 18 18:36:38 dsksdy modem-manager: Duration: 54 Up: 0 Kbps Down: 0 Kbps Total: 32 Total: 109
Oct 18 18:36:40 dsksdy modem-manager: Duration: 56 Up: 0 Kbps Down: 0 Kbps Total: 32 Total: 109

This causes permanent disk access that I want to prevent it from. How?

ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: modemmanager 0.4+git.20100809t153145.be28089-0ubuntu1
ProcVersionSignature: Ubuntu 2.6.35-22.34-generic 2.6.35.4
Uname: Linux 2.6.35-22-generic x86_64
NonfreeKernelModules: nvidia
Architecture: amd64
Date: Mon Oct 18 18:40:09 2010
InstallationMedia: Ubuntu 10.04 "Lucid Lynx" - Beta amd64 (20100317.1)
ProcEnviron:
 LANG=de_DE.utf8
 SHELL=/bin/bash
SourcePackage: modemmanager

Revision history for this message
Saddy (sadmail) wrote :
Revision history for this message
Thomas Novin (thomasn80) wrote :

I created a little workaround for this problem.

To apply:

sudo -s
cat <<_EOF_>/etc/rsyslog.d/49-modemmanager-workaround.conf
# Workaround for bug from modemmanager spamming the logs
# https://bugs.launchpad.net/ubuntu/+source/modemmanager/+bug/662791

:msg, contains, "Duration: " ~

& ~

:msg, contains, "Access Technology: " ~

& ~
_EOF_
service rsyslog restart

This will prevent modemmanager writing these two types of messages to any log. Works for me at least.

Revision history for this message
sonnettie (sonnettie) wrote :

first download the modem-manager 0.4 source files, then in the plugins folder
 open "mm-modem-huawei-gsm.c" and goto line 519

change...

[B][COLOR="MediumTurquoise"] g_debug ("Access Technology: %d", act);
[/COLOR][/B]

to...

[B][COLOR="DarkOrchid"] if (mm_options_debug ()){
        g_debug ("Access Technology: %d", act);}[/COLOR][/B]

then on line 533 change...

[B][COLOR="MediumTurquoise"] g_debug ("Duration: %d Up: %d Kbps Down: %d Kbps Total: %d Total: %d\n",
                 n1, n2 * 8 / 1000, n3 * 8 / 1000, n4 / 1024, n5 / 1024);[/COLOR][/B]

to...

[B][COLOR="DarkOrchid"] if (mm_options_debug()) {
            g_debug ("Duration: %d Up: %d Kbps Down: %d Kbps Total: %d Total: %d\n",
                     n1, n2 * 8 / 1000, n3 * 8 / 1000, n4 / 1024, n5 / 1024);}[/COLOR][/B]

then using Terminal "[B]cd[/B]" to the modem-manager directory (source)
ie: "//home/username/Downloads/modem-manager"

and run

[B]./configure
make
make instal[/B]l

you may need to get some dev dependences using apt-get install or synaptic or whatever u use

this way the problem will be fixed not worked around ;)
and the info will still log if in debug mode

ps the" mm_options_debug()" function is in the "mm-options.c" file in the "src" folder if anyone was looking...

Revision history for this message
sonnettie (sonnettie) wrote :

OH OK NO HTML

first download the modem-manager 0.4 source files, then in the plugins folder
open "mm-modem-huawei-gsm.c" and goto line 519

change...

g_debug ("Access Technology: %d", act);

to...

if (mm_options_debug ()){
g_debug ("Access Technology: %d", act);}

then on line 533 change...

g_debug ("Duration: %d Up: %d Kbps Down: %d Kbps Total: %d Total: %d\n",
n1, n2 * 8 / 1000, n3 * 8 / 1000, n4 / 1024, n5 / 1024);

to...

if (mm_options_debug()) {
g_debug ("Duration: %d Up: %d Kbps Down: %d Kbps Total: %d Total: %d\n",
n1, n2 * 8 / 1000, n3 * 8 / 1000, n4 / 1024, n5 / 1024);}

then using Terminal "cd" to the modem-manager directory (source)
ie: "//home/username/Downloads/modem-manager"

and run

./configure
make
make install

you may need to get some dev dependences using apt-get install or synaptic or whatever u use

this way the problem will be fixed not worked around
and the info will still log if in debug mode

ps the" mm_options_debug()" function is in the "mm-options.c" file in the "src" folder if anyone was looking...

Revision history for this message
sonnettie (sonnettie) wrote :

just thought you will need to look in whatever "*.c" file in the plugins folder that corisponds to your modem vendor mine is huawei but dont know if yours is

Revision history for this message
sonnettie (sonnettie) wrote :

oh also add the following to line 30...

#include "mm-options.h"

Revision history for this message
Saddy (sadmail) wrote :

I chose ThomasNovin's solution because I didn't want to give up my repo.

Thanks!

Revision history for this message
Thomas Novin (thomasn80) wrote :

@sonnettie:

Why not supply your patch to fix it in the Ubuntu packages?

Revision history for this message
Mathieu Trudel-Lapierre (cyphermox) wrote :

I believe we should instead get rid of that logging altogether (or make it optional through some switch or whatnot) and provide this information through the info dialog in nm-applet... Patches are welcome, or I'll get to it eventually :)

Since it's really an upstream issue though, please bring this up on the NetworkManager mailing list (see http://live.gnome.org/NetworkManager) which also hosts the ModemManager stuff; that way there can be some discussion and a decision made on the best way to fix the issue.

Thanks!

Changed in modemmanager (Ubuntu):
status: New → Confirmed
importance: Undecided → Medium
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package modemmanager - 0.4+git.20110124t203624.00b6cce-0ubuntu1

---------------
modemmanager (0.4+git.20110124t203624.00b6cce-0ubuntu1) natty; urgency=low

  * upstream snapshot 2011-01-24 20:36:24 (GMT)
    + 00b6cce4df7d4acbf3e580a03c2f044e18589d2c
    - rules: blacklist some unlikely USB serial dongles
    - gsm: enable unsolicited codes on secondary ports too
    - test: handle cancel and distinguish between initiate and respond
    - gsm: wire up USSD Respond function
    - api: add reply parameter to USSD Respond method
    - linktop: add plugin for Linktop/Teracom LW273
    - gsm: prefer AT+CIND signal quality for modems that support it (LP: #682282)
    - huawei: don't spam syslog with tx/rx stats (LP: #673457, #662791)
    - gsm: query signal strength with +CIND if modem does not support +CSQ
    - gsm: add preliminary USSD support
    - huawei: fix potential double-free on error
    - core: prefer CDMA capabilities over GSM for dual-mode devices
    - gsm: allow use of GSM 03.38 character set
    - polkit: fix for polkit >= 0.97
    - core: work around dbus-glib property access bug (CVE-2010-1172)
  * debian/patches/qdl-blacklist.patch: add a blacklist of Gobi QDL devices so
    that we don't break firmware loading by trying to initialize them before
    the modem is really ready. (LP: #686418)
 -- Mathieu Trudel-Lapierre <email address hidden> Wed, 26 Jan 2011 21:03:12 -0500

Changed in modemmanager (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.