Github messages for voidlinux
 help / color / mirror / Atom feed
* [ISSUE] Spotify + MPRIS not working
@ 2020-10-14  3:12 harrisonthorne
  2020-10-14  3:19 ` harrisonthorne
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: harrisonthorne @ 2020-10-14  3:12 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 3019 bytes --]

New issue by harrisonthorne on void-packages repository

https://github.com/void-linux/void-packages/issues/25587

Description:
<!-- Don't request update of package. We have a script for that. https://alpha.de.repo.voidlinux.org/void-updates/void-updates.txt . However, a quality pull request may help. -->
### System

* xuname:  
  `Void 5.8.13_1 x86_64 AuthenticAMD uptodate rrrmFFFFFFFFFFFFFFFFF`
* package:  
`spotify-1.1.26_2`

### Expected behavior

On my previous install with Arch Linux, I was able to control Spotify playback with `playerctl`. I'm using awesomewm with keybinds to control audio playback, with commands such as `playerctl play-pause`. These commands work for other MPRIS players like Firefox and MPV with the mpv-mpris plugin.

### Actual behavior

`playerctl` doesn't work with Spotify, and playback information doesn't show up in my [muse-status](https://github.com/harrisonthorne/muse-status) bar either.

### Steps to reproduce the behavior

Bonus issue: Currently it seems that spotify-1.1.26_***1*** is unable to be installed correctly/completely from the official nonfree repository:

```
~/D/void-packages $ sudo xbps-install spotify

Name    Action    Version           New version            Download size
spotify install   -                 1.1.26_1               - 

Size required on disk:          229B
Space available on disk:      6123MB

Do you want to continue? [Y/n] 

[*] Verifying package integrity
spotify-1.1.26_1: verifying RSA signature...

[*] Collecting package files
spotify-1.1.26_1: collecting files...

[*] Unpacking packages
spotify-1.1.26_1: unpacking ...

[*] Configuring unpacked packages
spotify-1.1.26_1: configuring ...
looking up repository.spotify.com
connecting to repository.spotify.com:80
connecting to 13.249.200.159
requesting http://repository.spotify.com/pool/non-free/s/spotify-client/spotify-client_1.1.26.501.gbe11e53b-15_amd64.deb
http://repository.spotify.com/pool/non-free/s/spotify-client/spotify-client_1.1.26.501.gbe11e53b-15_amd64.deb: (null)
Failed downloading spotify client
ERROR: spotify-1.1.26_1: [configure] INSTALL script failed to execute the post ACTION: Operation not permitted
Transaction failed! see above for errors.
``` 

So I am using the spotify package from my local repository.

1. Install spotify from a local void-packages repository
2. Make sure `playerctl` is installed too
3. Play a song on Spotify and try to toggle playback with `playerctl play-pause`

Here's an extra little bit of information:

```
~/D/void-packages $ dbus-send --type=method_call --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause
Error org.freedesktop.DBus.Error.ServiceUnknown: The name org.mpris.MediaPlayer2.spotify was not provided by any .service files
```

(Taken from [this issue on the Spotify discussion forums](https://community.spotify.com/t5/Desktop-Linux/Media-Keys-Don-t-Work/td-p/4586503/page/6))

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Spotify + MPRIS not working
  2020-10-14  3:12 [ISSUE] Spotify + MPRIS not working harrisonthorne
@ 2020-10-14  3:19 ` harrisonthorne
  2020-10-14  3:22 ` ericonr
                   ` (8 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: harrisonthorne @ 2020-10-14  3:19 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1177 bytes --]

New comment by harrisonthorne on void-packages repository

https://github.com/void-linux/void-packages/issues/25587#issuecomment-708130748

Comment:
Further information from running `spotify` on the command line:

```
/usr/libexec/spotify/spotify: /usr/lib/libcurl-gnutls.so.4: no version information available (required by /usr/libexec/spotify/spotify)
/usr/libexec/spotify/spotify: /usr/lib/libcurl-gnutls.so.4: no version information available (required by /usr/libexec/spotify/spotify)
/proc/self/exe: /usr/lib/libcurl-gnutls.so.4: no version information available (required by /proc/self/exe)
/proc/self/exe: /usr/lib/libcurl-gnutls.so.4: no version information available (required by /proc/self/exe)
[1013/211704.717838:ERROR:buffer_manager.cc(488)] [.DisplayCompositor]GL ERROR :GL_INVALID_OPERATION : glBufferData: <- error from previous GL command

(spotify:17792): GLib-GIO-CRITICAL **: 21:17:04.939: g_dbus_connection_send_message: assertion 'G_IS_DBUS_CONNECTION (connection)' failed
```

Center of attention is the last line; this `G_IS_DBUS_CONNECTION` assertion failure line is repeated a few times every time the playback status of Spotify changes.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Spotify + MPRIS not working
  2020-10-14  3:12 [ISSUE] Spotify + MPRIS not working harrisonthorne
  2020-10-14  3:19 ` harrisonthorne
@ 2020-10-14  3:22 ` ericonr
  2020-10-14  3:23 ` ericonr
                   ` (7 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: ericonr @ 2020-10-14  3:22 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 199 bytes --]

New comment by ericonr on void-packages repository

https://github.com/void-linux/void-packages/issues/25587#issuecomment-708131684

Comment:
Is your window manager started with `dbus-run-session` ?

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Spotify + MPRIS not working
  2020-10-14  3:12 [ISSUE] Spotify + MPRIS not working harrisonthorne
  2020-10-14  3:19 ` harrisonthorne
  2020-10-14  3:22 ` ericonr
@ 2020-10-14  3:23 ` ericonr
  2020-10-14  3:37 ` harrisonthorne
                   ` (6 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: ericonr @ 2020-10-14  3:23 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 204 bytes --]

New comment by ericonr on void-packages repository

https://github.com/void-linux/void-packages/issues/25587#issuecomment-708131818

Comment:
See https://docs.voidlinux.org/config/session-management.html

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Spotify + MPRIS not working
  2020-10-14  3:12 [ISSUE] Spotify + MPRIS not working harrisonthorne
                   ` (2 preceding siblings ...)
  2020-10-14  3:23 ` ericonr
@ 2020-10-14  3:37 ` harrisonthorne
  2020-10-14  3:40 ` harrisonthorne
                   ` (5 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: harrisonthorne @ 2020-10-14  3:37 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 260 bytes --]

New comment by harrisonthorne on void-packages repository

https://github.com/void-linux/void-packages/issues/25587#issuecomment-708135835

Comment:
I have

- `sddm` for starting awesomewm
- `dbus` system service enabled
- `elogind` system service enabled

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Spotify + MPRIS not working
  2020-10-14  3:12 [ISSUE] Spotify + MPRIS not working harrisonthorne
                   ` (3 preceding siblings ...)
  2020-10-14  3:37 ` harrisonthorne
@ 2020-10-14  3:40 ` harrisonthorne
  2020-10-14 16:00 ` ohlookitsaaron
                   ` (4 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: harrisonthorne @ 2020-10-14  3:40 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 434 bytes --]

New comment by harrisonthorne on void-packages repository

https://github.com/void-linux/void-packages/issues/25587#issuecomment-708136599

Comment:
Side note: I really want to commend you @ericonr for your response time with these issues :) You're incredibly responsive and cooperative and it's so awesome to see you active on every issue I post here.

Let me know if there's a way to tip you or something. You deserve it. Cheers!

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Spotify + MPRIS not working
  2020-10-14  3:12 [ISSUE] Spotify + MPRIS not working harrisonthorne
                   ` (4 preceding siblings ...)
  2020-10-14  3:40 ` harrisonthorne
@ 2020-10-14 16:00 ` ohlookitsaaron
  2020-10-14 22:15 ` harrisonthorne
                   ` (3 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: ohlookitsaaron @ 2020-10-14 16:00 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 712 bytes --]

New comment by ohlookitsaaron on void-packages repository

https://github.com/void-linux/void-packages/issues/25587#issuecomment-708499398

Comment:
I had issues like this for a while on void linux. I've found that if you're using elogind, you do not want it started as a system service. Rather, you'll want to install elogind-dbus replacing the traditional dbus package. After that's installed, when dbus starts as a system service, it will start elogind automatically without needing a service. Check htop or a similar program to make sure elogind is actually running too. Read more here in the [Void Documentation](https://docs.voidlinux.org/config/session-management.html?highlight=elogin). Hope this helps!

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Spotify + MPRIS not working
  2020-10-14  3:12 [ISSUE] Spotify + MPRIS not working harrisonthorne
                   ` (5 preceding siblings ...)
  2020-10-14 16:00 ` ohlookitsaaron
@ 2020-10-14 22:15 ` harrisonthorne
  2020-10-16 18:14 ` harrisonthorne
                   ` (2 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: harrisonthorne @ 2020-10-14 22:15 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 208 bytes --]

New comment by harrisonthorne on void-packages repository

https://github.com/void-linux/void-packages/issues/25587#issuecomment-708689285

Comment:
@ohlookitsaaron It doesn't seem like that worked for me :(

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Spotify + MPRIS not working
  2020-10-14  3:12 [ISSUE] Spotify + MPRIS not working harrisonthorne
                   ` (6 preceding siblings ...)
  2020-10-14 22:15 ` harrisonthorne
@ 2020-10-16 18:14 ` harrisonthorne
  2020-10-16 18:14 ` [ISSUE] [CLOSED] " harrisonthorne
  2020-10-16 18:25 ` harrisonthorne
  9 siblings, 0 replies; 11+ messages in thread
From: harrisonthorne @ 2020-10-16 18:14 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 616 bytes --]

New comment by harrisonthorne on void-packages repository

https://github.com/void-linux/void-packages/issues/25587#issuecomment-710357729

Comment:
This seems to be an issue with how dbus is set up with my AwesomeWM setup. Spotify works correctly with Plasma.

I noticed that Spotify wasn't showing notifications when playing a new song with AwesomeWM AND Slack wasn't showing notifications for new messages. But all of these work with Plasma.

Finna close this issue and I'll figure out how to get dbus working with awesomewm. I expected it to work just by running awesome from SDDM but I guess it doesn't lol

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [ISSUE] [CLOSED] Spotify + MPRIS not working
  2020-10-14  3:12 [ISSUE] Spotify + MPRIS not working harrisonthorne
                   ` (7 preceding siblings ...)
  2020-10-16 18:14 ` harrisonthorne
@ 2020-10-16 18:14 ` harrisonthorne
  2020-10-16 18:25 ` harrisonthorne
  9 siblings, 0 replies; 11+ messages in thread
From: harrisonthorne @ 2020-10-16 18:14 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 3022 bytes --]

Closed issue by harrisonthorne on void-packages repository

https://github.com/void-linux/void-packages/issues/25587

Description:
<!-- Don't request update of package. We have a script for that. https://alpha.de.repo.voidlinux.org/void-updates/void-updates.txt . However, a quality pull request may help. -->
### System

* xuname:  
  `Void 5.8.13_1 x86_64 AuthenticAMD uptodate rrrmFFFFFFFFFFFFFFFFF`
* package:  
`spotify-1.1.26_2`

### Expected behavior

On my previous install with Arch Linux, I was able to control Spotify playback with `playerctl`. I'm using awesomewm with keybinds to control audio playback, with commands such as `playerctl play-pause`. These commands work for other MPRIS players like Firefox and MPV with the mpv-mpris plugin.

### Actual behavior

`playerctl` doesn't work with Spotify, and playback information doesn't show up in my [muse-status](https://github.com/harrisonthorne/muse-status) bar either.

### Steps to reproduce the behavior

Bonus issue: Currently it seems that spotify-1.1.26_***1*** is unable to be installed correctly/completely from the official nonfree repository:

```
~/D/void-packages $ sudo xbps-install spotify

Name    Action    Version           New version            Download size
spotify install   -                 1.1.26_1               - 

Size required on disk:          229B
Space available on disk:      6123MB

Do you want to continue? [Y/n] 

[*] Verifying package integrity
spotify-1.1.26_1: verifying RSA signature...

[*] Collecting package files
spotify-1.1.26_1: collecting files...

[*] Unpacking packages
spotify-1.1.26_1: unpacking ...

[*] Configuring unpacked packages
spotify-1.1.26_1: configuring ...
looking up repository.spotify.com
connecting to repository.spotify.com:80
connecting to 13.249.200.159
requesting http://repository.spotify.com/pool/non-free/s/spotify-client/spotify-client_1.1.26.501.gbe11e53b-15_amd64.deb
http://repository.spotify.com/pool/non-free/s/spotify-client/spotify-client_1.1.26.501.gbe11e53b-15_amd64.deb: (null)
Failed downloading spotify client
ERROR: spotify-1.1.26_1: [configure] INSTALL script failed to execute the post ACTION: Operation not permitted
Transaction failed! see above for errors.
``` 

So I am using the spotify package from my local repository.

1. Install spotify from a local void-packages repository
2. Make sure `playerctl` is installed too
3. Play a song on Spotify and try to toggle playback with `playerctl play-pause`

Here's an extra little bit of information:

```
~/D/void-packages $ dbus-send --type=method_call --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause
Error org.freedesktop.DBus.Error.ServiceUnknown: The name org.mpris.MediaPlayer2.spotify was not provided by any .service files
```

(Taken from [this issue on the Spotify discussion forums](https://community.spotify.com/t5/Desktop-Linux/Media-Keys-Don-t-Work/td-p/4586503/page/6))

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Spotify + MPRIS not working
  2020-10-14  3:12 [ISSUE] Spotify + MPRIS not working harrisonthorne
                   ` (8 preceding siblings ...)
  2020-10-16 18:14 ` [ISSUE] [CLOSED] " harrisonthorne
@ 2020-10-16 18:25 ` harrisonthorne
  9 siblings, 0 replies; 11+ messages in thread
From: harrisonthorne @ 2020-10-16 18:25 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 362 bytes --]

New comment by harrisonthorne on void-packages repository

https://github.com/void-linux/void-packages/issues/25587#issuecomment-710376902

Comment:
Looking at the xsession file for awesomewm, I'm wondering if we should change

1. `Exec` to `dbus-launch --exit-with-session awesome`
2. `Type` to XSession

Just comparing awesome.desktop with plasma.desktop

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2020-10-16 18:25 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-14  3:12 [ISSUE] Spotify + MPRIS not working harrisonthorne
2020-10-14  3:19 ` harrisonthorne
2020-10-14  3:22 ` ericonr
2020-10-14  3:23 ` ericonr
2020-10-14  3:37 ` harrisonthorne
2020-10-14  3:40 ` harrisonthorne
2020-10-14 16:00 ` ohlookitsaaron
2020-10-14 22:15 ` harrisonthorne
2020-10-16 18:14 ` harrisonthorne
2020-10-16 18:14 ` [ISSUE] [CLOSED] " harrisonthorne
2020-10-16 18:25 ` harrisonthorne

Github messages for voidlinux

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://inbox.vuxu.org/voidlinux-github

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V1 voidlinux-github voidlinux-github/ http://inbox.vuxu.org/voidlinux-github \
		voidlinux-github@inbox.vuxu.org
	public-inbox-index voidlinux-github

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.vuxu.org/vuxu.github.voidlinux


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git