[Ubuntu Wiki] Update of "DebuggingModemmanager" by bryanquigley
Ubuntu Wiki
noreply at ubuntu.com
Thu Jun 9 14:23:04 UTC 2016
Dear Wiki user,
You have subscribed to a wiki page or wiki category on "Ubuntu Wiki" for change notification.
The "DebuggingModemmanager" page has been changed by bryanquigley:
http://wiki.ubuntu.com/DebuggingModemmanager?action=diff&rev1=17&rev2=18
Comment:
Removed obsolote instructions and link to upstream debug
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
== 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.
- {{{
- # 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
+ #So for example, this
+ sudo /usr/sbin/NetworkManager --debug --log-level=DEBUG
- # 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
}}}
-
- 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
More information about the Ubuntu-bugsquad
mailing list