DebuggingBluetooth

Differences between revisions 3 and 4
Revision 3 as of 2015-08-27 10:11:06
Size: 2303
Editor: faun
Comment:
Revision 4 as of 2015-08-27 10:12:28
Size: 2313
Editor: faun
Comment:
Deletions are marked like this. Additions are marked like this.
Line 15: Line 15:
* Which devices are involved? Exact model numbers if available are helpful.
* Which Bluetooth version do all involved devices support?
* Necessary log files (if possible with debugging information; see below)
** /var/log/syslog
** For Touch based devices: /home/phablet/.cache/upstart/application-legacy-ubuntu-system-settings-.log
 * Which devices are involved? Exact model numbers if available are helpful.
 * Which Bluetooth version do all involved devices support?
 * Necessary log files (if possible with debugging information; see below)
  * /var/log/syslog
  * For Touch based devices: /home/phablet/.cache/upstart/application-legacy-ubuntu-system-settings-.log
Line 23: Line 23:
# Adapter info  * Adapter info
Line 28: Line 28:
# List of paired devices  * List of paired devices
Line 37: Line 37:
# If you're on a Touch based system you have to temporarily mount your system partition read/write.  * If you're on a Touch based system you have to temporarily mount your system partition read/write.
Line 41: Line 41:
# As next step we enable verbose logging for the Bluetooth daemon  * As next step we enable verbose logging for the Bluetooth daemon
Line 45: Line 45:
# For additional logging information we also enable verbose logging of the PulseAudio daemon  * For additional logging information we also enable verbose logging of the PulseAudio daemon

Debugging Central

This page is part of the debugging series — pages with debugging details for a variety of Ubuntu packages.

WARNING

If you're going to attach the log files mentioned below be warned that those might include private information like phone numbers. If you're asked to share such log files you're free to not do this or share them with the asking person on a more private way than through launchpad/irc/..

Debugging procedure

Reporting a bug

When reporting a Bluetooth bug we need to include different things to make it easier for the developers to find a solution for the problem.

Please note/include the following things in your bug report:

  • Which devices are involved? Exact model numbers if available are helpful.
  • Which Bluetooth version do all involved devices support?
  • Necessary log files (if possible with debugging information; see below)
    • /var/log/syslog
    • For Touch based devices: /home/phablet/.cache/upstart/application-legacy-ubuntu-system-settings-.log

List common information about current Bluetooth setup

  • Adapter info

phablet@ubuntu-phablet:~$ hciconfig -a
  • List of paired devices

phablet@ubuntu-phablet:~$ /usr/bin/bluez-list-devices

Generating log files with debugging information

As log files are normally just include warnings and errors it is quite helpful to have log files with additional debugging information. In the std. configuration of a Ubuntu system debugging informations are disabled to not pollute the system with a big log files. For Bluetooth we need to perform the following steps to enable verbose debug logging:

  • If you're on a Touch based system you have to temporarily mount your system partition read/write.

phablet@ubuntu-phablet:~$ sudo mount -o remount,rw /
  • As next step we enable verbose logging for the Bluetooth daemon

phablet@ubuntu-phablet:~$ sudo sed -i 's/exec \/usr\/sbin\/bluetoothd/exec \/usr\/sbin\/bluetoothd -d/g' /etc/init/bluetooth.conf
  • For additional logging information we also enable verbose logging of the PulseAudio daemon

phablet@ubuntu-phablet:~$ sudo sed -i 's/--start/--start --log-level=debug/g' /usr/share/upstart/sessions/pulseaudio.conf

*NOTE:* This is currently pretty specific to Touch and needs additional information for systemd based variants of Ubuntu.

DebuggingBluetooth (last edited 2017-05-08 06:53:59 by kzapalowicz)