We have moved to a new Sailfish OS Forum. Please start new discussions there.

Revision history [back]

click to hide/show revision 1
initial version

posted 2019-07-02 20:19:03 +0200

[XA2] Choppy audio on Android due to memory usage?

This is probably / somewhat likely unrelated to Bluetooth audiostream is choppy when WLAN is on as I only use my LTE data connection to witness.

I have used my XA2 and XA2 Ultra devices (SFOS 3.0.3.10) for a month now, and I noticed that - using Deezer as a test case - XA2 didn't skip a single sound, but my XA2U is very, very choppy using Deezer, no matter if I use Bluetooth speaker, loudspeaker or headset as output. This got me digging the matter deeper; and I think I found something.

XA2U had a lot more Android apps installed, and because most of the apps had background services running all the time, the memory usage was more than 2.5GB constantly, even after Android support restart with no Android apps started. Swap was used up to around 300MB. I uninstalled ten-ish apps I didn't need or use anymore, and restarted Anroid support again. Now my memory usage is around 1.6GB...1.8GB and swap usage dropped to ~30MB after I stopped and restarted Android support.

Yesterday my Deezer was almost useless because the audio chopped every 2-3 seconds. After the above, I just now listened to my favourite music using my Bluetooth speaker for 50 minutes straight, and it didn't chop the audio once.

I just now realized that this is not actually a question, but rather a discovery. I hope this helps others. Discussion welcome - and your RAM findings, too. I simply started htop and grouped by process by typing H.

TL;DR: Uninstall unused Android apps >> less background processes >> more RAM available >> no more choppy audio!

[XA2] Choppy audio on Android due to memory usage?

TL;DR: Uninstall unused Android apps » less background processes » more RAM available » no more choppy audio!

This is probably / somewhat likely unrelated to Bluetooth audiostream is choppy when WLAN is on as I only use my LTE data connection to witness.witness, and because this happens with speaker and headset, too.

I have used my XA2 and XA2 Ultra devices (SFOS 3.0.3.10) for a month now, and I noticed that - using Deezer as a test case - XA2 didn't skip a single sound, but my XA2U is very, very choppy using Deezer, no matter if I use Bluetooth speaker, loudspeaker or headset as output. This got me digging the matter deeper; and I think I found something.

XA2U had a lot more Android apps installed, and because most of the apps had background services running all the time, the memory usage was more than 2.5GB constantly, even after Android support restart with no Android apps started. Swap was used up to around 300MB. I uninstalled ten-ish apps I didn't need or use anymore, and restarted Anroid support again. Now my memory usage is around 1.6GB...1.8GB and swap usage dropped to ~30MB after I stopped and restarted Android support.

Yesterday my Deezer was almost useless because the audio chopped every 2-3 seconds. After the above, I just now listened to my favourite music using my Bluetooth speaker for 50 minutes straight, and it didn't chop the audio once.

I just now realized that this is not actually a question, but rather a discovery. I hope this helps others. Discussion welcome - and your RAM findings, too. I simply started htop and grouped by process by typing H.

TL;DR: Uninstall unused Android apps >> less background processes >> more RAM available >> no more choppy audio!