DebuggingModemmanager

Differences between revisions 1 and 17 (spanning 16 versions)
Revision 1 as of 2009-09-09 10:30:48
Size: 367
Editor: e177161054
Comment:
Revision 17 as of 2014-08-11 00:05:25
Size: 2314
Editor: es20490446e
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
Available languages= [[https://wiki.ubuntu.com/DebuggingModemmanager_it| Italiano]],

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

 upgrade to latest from our daily ppa: https://launchpad.net/~network-manager/+archive/trunk
Line 3: Line 9:
'''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.
Line 4: Line 12:
# stop NetworkManager # stop NetworkManager ( < karmic)
Line 6: Line 14:

# stop NetworkManager ( >= karmic - aka upstart)
sudo stop network-manager
Line 9: Line 20:

# enable PPP debugging too:
export NM_PPP_DEBUG=1
Line 14: Line 28:

== Run mm-test.py ==

{{{
# get the latest mm-test.py from git
wget http://cgit.freedesktop.org/ModemManager/ModemManager/plain/test/mm-test.py

# and run mm-test.py (with modem-manager running)
python ./mm-test.py
}}}

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.

----
CategoryDebugging

Available languages= Italiano,

Test with latest trunk builds (karmic or later)

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.

# 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

# get the latest mm-test.py from git
wget http://cgit.freedesktop.org/ModemManager/ModemManager/plain/test/mm-test.py

# and run mm-test.py (with modem-manager running)
python ./mm-test.py

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.


CategoryDebugging

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