This wikis intention is a work-in-progress to provide a handy and up-to-date list on how to collect debugging information (mainly logs). Everyones contributions are welcome!
This is maybe better placed in the sfos docs.
If something like this already exists, please let me know.
The official wiki page is sometimes more up to date: Testing Advice | Sailfish OS Documentation
Basics:
- Enable developer mode
- Show failed services:
systemctl list-units --failed
- Collect logs for a specific systemd unit
journalctl -u <unitname>
- Follow actions of out of memory killer:
dmesg -w | egrep "lowmemorykiller|oom_reaper|^ {19}.*|Out of memory"
-
collect-logs.zip
from Collect Basic Logs - Edit journalctl logging settings with
devel-su nano /etc/systemd/journald.conf
.- You can set
Storage=Persistent
to persist logs accross reboots and write them everySyncIntervalSec
to flash storage. -
RuntimeMaxUse
how much to keep in memory before discarding it, or writing it to disc - further config settings documented at
man journald.conf
- You can set
- Make journal logs (more) persistent.
- Take a snapshot of the latest logs (e.g. for later investigation while you are outside):
devel-su journalctl > log-filename.log
Audio
-
systemctl status pulseaudio
andjournalctl -u pulseaudio
bluetooth
-
systemctl status mpris
mpris is responsible for actions (play,pause,…) -
systemctl status bluetooth
andjournalctl -u bluetooth
- is audio device registered in pulseaudio?
pactl list sinks
Android
-
systemctl status aliendalvik
andjournalctl -u aliendalvik
Android apps
devel-su lxc-attach -n aliendalvik /system/bin/logcat
-
devel-su appsupport-attach /system/bin/logcat
on Sailfish OS 4.5.0 onwards
Android Base system
/system/bin/logcat
note that this gives the logs of the base system layer, not Android Support.
Mobile Data / Calling / sms
the logs may contain your personal data!
- logs
devel-su journalctl -u ofono
- sms
devel-su journalctl --system -f | grep jolla-messages
- more call related logs
journalctl -b | grep -iE '(ofono|voicecall|telepathy)'
Packages
- get installed package version
pkcon get-details <packagename>
(without the<>
)
Sandboxing/Booster
- list active boosters:
systemctl --user list-units | grep -E 'booster-.*@.*\.service'