[GH-ISSUE #378] Need to force stop to make app work correctly OP13R + music starts although playback option disabled #179

Open
opened 2026-03-02 12:04:15 +03:00 by kerem · 0 comments
Owner

Originally created by @servalfobe on GitHub (Dec 12, 2025).
Original GitHub issue: https://github.com/kavishdevar/librepods/issues/378

(With airpods pro 2, fully updated)
I'm using the last nightly build #87 on my Oneplus 13R (non-root, OxygenOS 16). When I open my airpods case, they connect but I can only go to the settings page, the main page of the app stays blank (and I can't change anything in the settings). Sometimes the settings are showing but I can't change anything, when I try I get a notification saying "AirPods Connection Issue:
Your AirPods are connected via Blue-tooth, but LibrePods couldn't connect to AirPods using L2CAP. Error: Socket crea-ted, but not connected. Is the Bluetooth process hooked?". I have to force stop the app and then restart, and then I can access all options and they work.
And something else that I noticed and is quite bothering to me, is that my music starts to play when I connect (although the option is disabled in Librepods and in my music app Poweramp). Never had an issue with that before using Librepods. And when sometimes the app works without needing to force stop, the music doesn't start automatically, it happens when there is a problem in the app and I can't access the settings. In that case there is also no notification with the battery showing (also works when I force stop and restart). I gave all authorizations and disabled battery optimization for Librepods.
Here is the log from my music app with Bluetooth commands :

``` 14:44:02.080 BTReceiver headset event connection BT=true am mode=0 AirPods Pro Ben ================== 14:44:03.572 PlayerService onRoutingChanged forcePause=false newDevice=bt oldDevice=speaker ================== 14:44:03.572 PlayerService reloadPipeline allowPlaying=true state after reload=2 cause=onRoutingChanged ================== 14:44:04.838 PlayerService reloadPipeline allowPlaying=true state after reload=2 cause=handleAbsVolChanged ================== 14:44:05.787 PSMediaButtonReceiver MEDIA_BUTTON KEYCODE_MEDIA_PLAY ACTION_DOWN follow_pl_exact 1 deviceName=Virtual deviceSources=0x00000301 virt=true actionTime=13210794 sourcePak=me.kavishdevar.librepods playerState=2 ================== 14:44:05.792 PSMediaButtonReceiver MEDIA_BUTTON KEYCODE_MEDIA_PLAY ACTION_UP follow_pl_exact 1 deviceName=Virtual deviceSources=0x00000301 virt=true actionTime=13210799 sourcePak=me.kavishdevar.librepods playerState=2 ================== 14:44:05.797 PlayerService RESUME handlePowerampAPICommand from PSMediaButtonReceiver ts=13210794 resumePlaying ACTION_API_COMMAND

Can you help ? Do you know what's wrong ?

I force stopped Librepods and restarted the app, the music paused, here are the logs (don't know if it can help)

==================
14:57:00.675 PSAudioFocusHelper AUDIOFOCUS_LOSS
pausePlaying af_permanent

14:57:03.198 PSMediaButtonReceiver MEDIA_BUTTON
KEYCODE_MEDIA_PLAY ACTION_DOWN follow_pl_exact 1 deviceName=Virtual deviceSources=0x00000301 virt=true actionTime=13988203 sourcePak=me.kavishdevar.librepods playerState=2

14:57:03.200 PSMediaButtonReceiver MEDIA_BUTTON
KEYCODE_MEDIA_PLAY ACTION_UP follow_pl_exact 1 deviceName=Virtual deviceSources=0x00000301 virt=true actionTime=13988207 sourcePak=me.kavishdevar.librepods playerState=2

14:57:03.206 PlayerService RESUME
handlePowerampAPICommand from PSMediaButtonReceiver ts=13988203 resumePlaying ACTION_API_COMMAND

14:57:05.181 PSAudioFocusHelper AUDIOFOCUS_LOSS
pausePlaying af_permanent

</details>

I don't have these issues with the stable  LibrePods-v0.1.0-rc.4 version
Originally created by @servalfobe on GitHub (Dec 12, 2025). Original GitHub issue: https://github.com/kavishdevar/librepods/issues/378 (With airpods pro 2, fully updated) I'm using the last nightly build #87 on my Oneplus 13R (non-root, OxygenOS 16). When I open my airpods case, they connect but I can only go to the settings page, the main page of the app stays blank (and I can't change anything in the settings). Sometimes the settings are showing but I can't change anything, when I try I get a notification saying "AirPods Connection Issue: Your AirPods are connected via Blue-tooth, but LibrePods couldn't connect to AirPods using L2CAP. Error: Socket crea-ted, but not connected. Is the Bluetooth process hooked?". I have to force stop the app and then restart, and then I can access all options and they work. And something else that I noticed and is quite bothering to me, is that my music starts to play when I connect (although the option is disabled in Librepods and in my music app Poweramp). Never had an issue with that before using Librepods. And when sometimes the app works without needing to force stop, the music doesn't start automatically, it happens when there is a problem in the app and I can't access the settings. In that case there is also no notification with the battery showing (also works when I force stop and restart). I gave all authorizations and disabled battery optimization for Librepods. Here is the log from my music app with Bluetooth commands : <details> ``` 14:44:02.080 BTReceiver headset event connection BT=true am mode=0 AirPods Pro Ben ================== 14:44:03.572 PlayerService onRoutingChanged forcePause=false newDevice=bt oldDevice=speaker ================== 14:44:03.572 PlayerService reloadPipeline allowPlaying=true state after reload=2 cause=onRoutingChanged ================== 14:44:04.838 PlayerService reloadPipeline allowPlaying=true state after reload=2 cause=handleAbsVolChanged ================== 14:44:05.787 PSMediaButtonReceiver MEDIA_BUTTON KEYCODE_MEDIA_PLAY ACTION_DOWN follow_pl_exact 1 deviceName=Virtual deviceSources=0x00000301 virt=true actionTime=13210794 sourcePak=me.kavishdevar.librepods playerState=2 ================== 14:44:05.792 PSMediaButtonReceiver MEDIA_BUTTON KEYCODE_MEDIA_PLAY ACTION_UP follow_pl_exact 1 deviceName=Virtual deviceSources=0x00000301 virt=true actionTime=13210799 sourcePak=me.kavishdevar.librepods playerState=2 ================== 14:44:05.797 PlayerService RESUME handlePowerampAPICommand from PSMediaButtonReceiver ts=13210794 resumePlaying ACTION_API_COMMAND Can you help ? Do you know what's wrong ? I force stopped Librepods and restarted the app, the music paused, here are the logs (don't know if it can help) ================== 14:57:00.675 PSAudioFocusHelper AUDIOFOCUS_LOSS pausePlaying af_permanent ================== 14:57:03.198 PSMediaButtonReceiver MEDIA_BUTTON KEYCODE_MEDIA_PLAY ACTION_DOWN follow_pl_exact 1 deviceName=Virtual deviceSources=0x00000301 virt=true actionTime=13988203 sourcePak=me.kavishdevar.librepods playerState=2 ================== 14:57:03.200 PSMediaButtonReceiver MEDIA_BUTTON KEYCODE_MEDIA_PLAY ACTION_UP follow_pl_exact 1 deviceName=Virtual deviceSources=0x00000301 virt=true actionTime=13988207 sourcePak=me.kavishdevar.librepods playerState=2 ================== 14:57:03.206 PlayerService RESUME handlePowerampAPICommand from PSMediaButtonReceiver ts=13988203 resumePlaying ACTION_API_COMMAND ================== 14:57:05.181 PSAudioFocusHelper AUDIOFOCUS_LOSS pausePlaying af_permanent ``` </details> I don't have these issues with the stable LibrePods-v0.1.0-rc.4 version
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/librepods#179
No description provided.