Bug 427209 - Music pauses on Android phone when Linux laptop is closed
Summary: Music pauses on Android phone when Linux laptop is closed
Status: RESOLVED FIXED
Alias: None
Product: kdeconnect
Classification: Applications
Component: common (show other bugs)
Version: unspecified
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Albert Vaca Cintora
URL:
Keywords:
: 422446 426011 (view as bug list)
Depends on:
Blocks:
 
Reported: 2020-10-01 15:42 UTC by Kristian Polso
Modified: 2022-01-12 11:37 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.20.2


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kristian Polso 2020-10-01 15:42:40 UTC
SUMMARY

This is kinda funny bug, but it has been happening for me for over 6 months now. When I close the lid on my (Arch linux) laptop with KDE Connect installed, it pauses the music that I am playing in my Android phone (also with KDE Connect installed).

My guess the problem has something to do with suspending the laptop, which sends a signal to Android phone? 

STEPS TO REPRODUCE
1. Play music on Android phone (any music / podcast app really)
2. Close the lid on laptop (suspend?)

OBSERVED RESULT
Music on phone pauses

EXPECTED RESULT
Phone should be unaffected

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 5.19.5
KDE Frameworks Version: 5.74.0
Qt Version: 5.15.1

ADDITIONAL INFORMATION
Android app version is 1.14.2
Comment 1 Riccardo Robecchi 2020-10-12 13:21:17 UTC
This also applies to computers. It is meant as a feature, as the laptop stops media playback when it is suspended. The issue here is that the playback being paused is on another device, which is an unintended consequence.
Comment 3 Nicolas Fella 2020-10-17 13:25:57 UTC
Git commit 766159b67ebfb68721df25f8bf8ee52667b70d89 by Nicolas Fella.
Committed on 17/10/2020 at 13:13.
Pushed by nicolasfella into branch 'master'.

Ignore player's from KDE Connect when suspending

KDE Connect exposes remote players as local MPRIS players.
When suspeding this can result in music on another device being paused which is usually undesirable.

M  +7    -0    daemon/powerdevilcore.cpp

https://invent.kde.org/plasma/powerdevil/commit/766159b67ebfb68721df25f8bf8ee52667b70d89
Comment 4 Nicolas Fella 2020-10-17 13:27:28 UTC
Git commit 4ac78e7118238414d3f2d603c21975413eea8bb0 by Nicolas Fella.
Committed on 17/10/2020 at 13:26.
Pushed by nicolasfella into branch 'Plasma/5.20'.

Ignore player's from KDE Connect when suspending

KDE Connect exposes remote players as local MPRIS players.
When suspeding this can result in music on another device being paused which is usually undesirable.
(cherry picked from commit 766159b67ebfb68721df25f8bf8ee52667b70d89)

M  +7    -0    daemon/powerdevilcore.cpp

https://invent.kde.org/plasma/powerdevil/commit/4ac78e7118238414d3f2d603c21975413eea8bb0
Comment 5 Méven Car 2020-10-21 07:23:18 UTC
Thank you for fixing this Nicolas !
Comment 6 Nicolas Fella 2020-10-27 10:47:55 UTC
*** Bug 426011 has been marked as a duplicate of this bug. ***
Comment 7 Riccardo Robecchi 2022-01-12 11:37:48 UTC
*** Bug 422446 has been marked as a duplicate of this bug. ***