Gathering logs related to audio, Bluetooth and phonecalls from a Sailfish OS device

Jolla Care -

When a device does not work properly and the symptoms are not clear it is useful to collect some data and logs from the device. It may be possible to conclude the culprit by investigating those logs.

This help article has scripts (command files) attached, helping the collection of logs greatly. The script does everything for you - it knows where to get the data and how to handle it. The end result is one file, a container.

 

Preparations

1) Enable the developer mode on your phone. Follow these instructions. You need to do this only to get the Terminal app and to set up the password for "SSH and root access".

2) Download the file (right-click it and take "save link as")

gather-logs.zip              [ this version is from 2021-08-27 ]

to your computer and unzip it.  Next, copy the resulting file "gather-logs.sh" to your phone, to the "Mass storage".  It is good to place the file either into the folder /home/nemo or to  /home/defaultuser (depending on the configuration of your phone).

3) Open the Terminal app on your phone.

4) Set the file permissions with the following command:

chmod 744 gather-logs.sh

 

Using the script

Round #1

Open the Terminal app again (if not open anymore).

Run the script the 1st time with the command:

 bash gather-logs.sh

Type your SSH/root password when requested.

In this 1st round, the script prepares your device for gathering some data. After this, you must restart the device, or else the script would not work in the 2nd round.

 

Reproducing the issue

As soon as you have restarted your phone, please try to reproduce the issue we are to investigate.

 

Round #2

Once you have observed the problem, you should open the Terminal app and run the script the 2nd time.

 bash gather-logs.sh

The script collects the data and compresses it into one single file. The file is saved in the home storage area of your phone. The script prints the name and location of this file to the display.

 

The result

Copy the log file sailfish_logs_<date>-<time>.tar.bz2
(for instance: sailfish_logs_2021.08.27-16.00.05.tar.bz2)

from your phone to your computer.

If you are in contact with Jolla customer care, send this file to them, please.

 

 

Have more questions? Submit a request
Powered by Zendesk