| Issue type | Logcat | BTSnoop/HCI | Kernel logs | OTA | PipeWire | Subsystem restart (SSR) logs |
|---|---|---|---|---|---|---|
| General | Required | Required | Not required | Recommended | Not required | Not required |
| Bluetooth controller | Not required | Recommended | Not required | Required | Not required | Required |
| Bluetooth on/off | Required | Not required | Not required | Not required | Not required | Required |
| Crash | Required | Not required | Required | Not required | Not required | Required |
| Audio | Not required | Required | Not required | Required | Required | Not required |
Debug BlueZ stack
Before you enable or collect logs, do the following:- Enable SSH to access your host device. For instructions, see Sign in using SSH.
- Place the DUT and the remote device in the Bluetooth vicinity.
-
Run the SSH in command prompt using the following command:
Example If the IP address of the device is
10.92.160.222, run the following command: -
Connect to the SSH by entering the following password:
Enable BlueZ logs
To enable BlueZ logs, do the following in SSH:-
Enable read and write permissions by running the following command:
-
Open the Bluetooth service file in a text editor.
Example
To open the
bluetooth.servicefile in a VI editor, run the following command: -
Append
-doption to the following line in the file: - Save the file.
-
Reload the Bluetooth daemon by running the following command:
-
Restart Bluetooth by running the following command:
Collect BlueZ logs
-
To collect BlueZ user space logs, run the following command in SSH:
-
To collect all logs, run the following command in SSH:
Collect snoop logs
To collect snoop logs, do the following in SSH:-
Run the
hcidumptool. -
Save the file by running the following command:
Example To save the snoop logs to
snoop.logfile, run the following command:If the device has multiple HCI interfaces, specify the target interface with the-ioption when capturing the snoop log. Runhciconfigfirst to identify the available interfaces. Sample outputTo capture the snoop log onhci1, run the following command:Sample output
Enable PipeWire logs
To enable PipeWire logs, do the following in SSH:-
Open the PipeWire configuration file in a text editor.
Example
To open the
pipewire.conffile in a VI editor, run the following command: -
Uncomment the log level and set it to
4or5. - Save the file.
-
Reload the Bluetooth daemon by running the following command:
-
Restart PipeWire by running the following command:
Enable WirePlumber service logs
To enable WirePlumber service logs, do the following:-
Verify the status of the WirePlumber service by running the following command:
-
Open the WirePlumber service file in a text editor.
Example
To open the
wireplumber.servicefile in a VI editor, run the following command: -
Add the the following debug variable to all the service sections in the file:
- Save the file.
-
Reload the Bluetooth daemon by running the following command:
-
Restart the WirePlumber service by running the following command:
- Validate the status of the service to verify if it’s running with the specified flags.
Enable logs of ofono service
To enable logs of ofono service, do the following in SSH:-
Verify the status of the ofono service by running the following command:
Sample output
-
Open the ofono service file in a text editor.
Example
To open the
ofono.servicefile in a VI editor, run the following command: -
Append
-doption to the following line in the file: - Save the file.
-
Reload the Bluetooth daemon by running the following command:
-
Restart the ofono service by running the following command:
- Validate the status of the service to verify if it’s running with the specified flags.
Collect SSR dump logs
In Qualcomm Linux software, if any Bluetooth subsystem module crashes, the SSR functionality collects the required firmware crash dumps in the Bluetooth driver. It then restarts the Bluetooth subsystem. The crash dump file is at the/var/spool/crash/ directory.
Consider the following points about SSR logging:
-
To verify if SSR logs are enabled or disabled, run the following command:
Return:
-
1: SSR logging is disabled. -
0: SSR logging is enabled.
-
-
To enable SSR logs, run the following command:
-
To collect SSR logs manually, do the following:
To collect the SSR crash dump manually, ensure that the device Bluetooth is on.
-
Run the
hcitooltool. -
Send the crash command to the controller by running the following command:
Sample outputThe crash triggered generates a BIN file at the
/var/spool/crash/directory. Sample output -
Ensure that the BIN file is generated at the
/var/spool/crash/directory.
-
Run the
A userspace dump collection tool isn’t installed by default. Install or configure a tool (for example,
systemd-coredump or kdump-tools) to save the dump to /var/spool/crash/.If you observe any timeout or Bluetooth hardware error, contact Qualcomm and share the BIN file.
