DebuggingModemmanager

Differences between revisions 16 and 18 (spanning 2 versions)
Revision 16 as of 2014-08-10 23:55:16
Size: 2313
Editor: es20490446e
Comment:
Revision 18 as of 2016-06-09 14:23:02
Size: 715
Editor: bryanquigley
Comment: Removed obsolote instructions and link to upstream debug
Deletions are marked like this. Additions are marked like this.
Line 2: Line 2:

== Test with latest trunk builds (karmic or later) ==

 upgrade to latest from our daily ppa: https://launchpad.net/~network-manager/+archive/trunk
Line 11: Line 7:
{{{
# stop NetworkManager ( < karmic)
sudo killall NetworkManager

# stop NetworkManager ( >= karmic - aka upstart)
sudo stop network-manager

# restart modemmanager with --debug and put output in /tmp/modem.log.txt
sudo killall modem-manager; sudo modem-manager --debug 2>&1 | tee /tmp/modem.log.txt

# enable PPP debugging too:
export NM_PPP_DEBUG=1

# start networkmanager and put log in /tmp/nm.log.txt
sudo NetworkManager --no-daemon 2>&1 | tee /tmp/nm.log.txt

}}}

== Run mm-test.py ==
Follow the upstream instuctions [[https://www.freedesktop.org/wiki/Software/ModemManager/Debugging/]] except
redirect the logs to files with 2>&1 | tee /tmp/unique-name.log.txt.
Line 32: Line 11:
# get the latest mm-test.py from git
https://raw.githubusercontent.com/openshine/ModemManager/master/test/mm-test.py
#So for example, this
sudo /usr/sbin/NetworkManager --debug --log-level=DEBUG
Line 35: Line 14:
# and run mm-test.py (with modem-manager running)
python ./mm-test.py
#Becomes
sudo /usr/sbin/NetworkManager --debug --log-level=DEBUG 2>&1 | tee /tmp/nm.log.txt
Line 38: Line 17:

attach the output a bug.

== Testing a patch ==

Sometimes a developer might ask you to test a quick patch he came up with. Below an example how to do that for modemmanager. If your bug is for some other package, just replace the package name

{{{
# get build dependencies
sudo apt-get install build-essential fakeroot devscripts
sudo apt-get build-dep modemmanager

# get sources
sudo apt-get source modemmanager

# cd into the source directory
cd modemmanager-*/

# apply the patch (note that -p1 could also be -p0 if the patch was created without an extra prefix in the diff path)
patch -p1 < /tmp/yourdownloadedpatch.diff

# build binaries only without signing
debuild -b -uc

# packages are produced in parent directory
cd ../

# install all nm packages
sudo dpkg -i modemmanager*.deb
}}}

Note that you didnt change the version of the package. so to get back to the "official" current version you need to do something like:
{{{
  sudo apt-get install --reinstall modemmanager
}}}

if you installed other packages from the build, do the same for them.

Available languages= Italiano,

Get Debug Logs

Important: please do not pack (tar, zip, etc.) or compress the log files before uploading to launchpad. Just attach them as they are produced - this makes it easier for developers and triagers.

Follow the upstream instuctions https://www.freedesktop.org/wiki/Software/ModemManager/Debugging/ except redirect the logs to files with 2>&1 | tee /tmp/unique-name.log.txt.

#So for example, this
sudo /usr/sbin/NetworkManager --debug --log-level=DEBUG

#Becomes
sudo /usr/sbin/NetworkManager --debug --log-level=DEBUG 2>&1 | tee /tmp/nm.log.txt


CategoryDebugging

DebuggingModemmanager (last edited 2016-06-09 14:23:02 by bryanquigley)