Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Volume gets set to zero after unlocking the session on GNOME #15

Closed
guihkx opened this issue Nov 16, 2020 · 8 comments
Closed

Volume gets set to zero after unlocking the session on GNOME #15

guihkx opened this issue Nov 16, 2020 · 8 comments
Assignees
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@guihkx
Copy link
Contributor

guihkx commented Nov 16, 2020

My session locks automatically after 10 minutes, and I noticed that after unlocking it, mpd always gets muted.

How to reproduce (tested on GNOME 3.18.1):

  1. Leave any song playing on mpd
  2. Hit Super+L to lock the session
  3. Type your password and unlock the session

After that, mpd-mpris will set mpd's volume to zero:

$ journalctl -b
[...]
nov 16 18:28:08 arch gdm-password][11530]: gkr-pam: unlocked login keyring
nov 16 18:28:10 arch mpd-mpris[4020]: 2020/11/16 18:28:10 Shuffle changed to true
nov 16 18:28:10 arch mpd-mpris[4020]: 2020/11/16 18:28:10 Volume changed to 56
nov 16 18:28:10 arch mpd-mpris[4020]: 2020/11/16 18:28:10 Shuffle changed to false
nov 16 18:28:10 arch mpd-mpris[4020]: 2020/11/16 18:28:10 LoopStatus changed to Track
nov 16 18:28:10 arch mpd-mpris[4020]: 2020/11/16 18:28:10 LoopStatus changed to Playlist
nov 16 18:28:10 arch mpd-mpris[4020]: 2020/11/16 18:28:10 Volume changed to 0
[...]
@natsukagami
Copy link
Owner

Very interesting. Does it happen on other MPRIS-supported players? (try Rhythmbox for example)

@natsukagami natsukagami self-assigned this Nov 16, 2020
@natsukagami natsukagami added bug Something isn't working help wanted Extra attention is needed labels Nov 16, 2020
@guihkx
Copy link
Contributor Author

guihkx commented Nov 17, 2020

Does it happen on other MPRIS-supported players

Nope...

FWIW, I was using mpDris2 for a long time and this doesn't happen there either. I gave up on it for other reasons though and now I'm giving mpd-mpris a try. :P

@natsukagami
Copy link
Owner

That log looks very chaotic! I'll take a look at GNOME to see if I can reproduce

@guihkx
Copy link
Contributor Author

guihkx commented Nov 17, 2020

Thanks! There's this other odd behavior with playback flags too, I think. But I'm not sure if it's somewhat intentional, so please let me know if you want me to open a new issue:

Basically, I mostly use ncmpcpp to control mpd, and I don't like to leave any of these playback flags enabled:

image

However, if I keep restarting the mpd-mpris service, those flags seem to randomly enable/disable themselves. I recorded a video of this behavior as well, just in case:

https://streamable.com/ndrrjq

@natsukagami
Copy link
Owner

Sorry, I could not reproduce it either on GNOME or with ncmpcpp... I really wonder what's going on there. Maybe a player add-on for GNOME? Does it happen on other desktop environments?

@guihkx
Copy link
Contributor Author

guihkx commented Nov 17, 2020

Maybe a player add-on for GNOME?

Sh*t, I should've tested with all my extensions disabled before opening a new issue. I do indeed use this extension called Mpris indicator button. After disabling it, mpv-mpris doesn't mute mpd after unlocking the session.

I wonder why this doesn't happen with mpDris2 though. :(

Regardless, as this doesn't seem to be mpd-mpris' fault, I think I can close this one.

Sorry!

@guihkx guihkx closed this as completed Nov 17, 2020
@natsukagami
Copy link
Owner

@guihkx, if you ever wanted to open an issue on their side (https://github.com/JasonLG1979/gnome-shell-extension-mpris-indicator-button), feel free to ping me. This might really be something related to mpd-mpris, and I would be willing to co-operate for a fix.

@guihkx
Copy link
Contributor Author

guihkx commented Nov 17, 2020

Will do it later, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants