mirror of
https://github.com/Rigellute/spotify-tui.git
synced 2026-04-27 08:35:58 +03:00
[GH-ISSUE #618] Not detecting spotifyd (works intermittently) #252
Labels
No labels
bug
enhancement
good first issue
help wanted
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/spotify-tui#252
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @IanQS on GitHub (Oct 12, 2020).
Original GitHub issue: https://github.com/Rigellute/spotify-tui/issues/618
Firstly, thank you so so much for making this! On my system (Arch Linux x64) Spotify is a resource hog and this was a godsend.
Do you know why my spotifyd is only detected intermittently? I've done the standard "turn program off and on again" but nothing works. It works every time I start my computer up again but at random points it stops working. I've checked my
spotifydviasystemctl status spotifyd.serviceand receive back
P.S: the logging URL seems to be broken
The "if not check these docs" URL seems to be broken/ doesn't lead me to the logging section
@Utagai commented on GitHub (Oct 13, 2020):
I've ran into this problem, also on Arch. I've found success by restarting
spotifyd, but it's not a solution:This is likely not an
sptproblem though, since restartingsptdoesn't do anything but restartingspotifyddoes. I seem to only get this problem when I wake my laptop up from suspend, I have a feeling thatspotifydis messing something up there, but I haven't looked into it very deeply. It's quite hard to reproduce because, like you said, it's seemingly intermittent.@Utagai commented on GitHub (Oct 13, 2020):
Sorry for the double post, but my best guess at the moment is that software that registers itself as a device to the spotify API must maintain an open connection to the spotify API at all times. This is how Spotify can say things, in real-time, about what's playing and what devices are "online".
My guess is that
spotifydis dropping that connection on suspend, and isn't properly re-establishing a connection to Spotify. I know for example that my laptop takes a solid 15-20 seconds to re-connect to my wifi on wake, so I wonder if we are just exceeding some connection timeout, since I doubtspotifydwould forget something so fundamental as a reconnect.That said, I haven't looked into things yet. I plan to in the future, but it's not one of my main priorities at the moment with my
spt+spotifydset-up.@IanQS commented on GitHub (Oct 13, 2020):
Ahh, thanks, it worked! I'll wait to hear back from @Rigellute to see if I should open an issue on
spotifyd. I'll make sure to tag you in it and link to this URL too.Unfortunately, I'm on a wired connection so maybe that isn't the reason :p
@IanQS commented on GitHub (Oct 14, 2020):
I may or may not have found something? I listened via Spotifyd on my machine then went to another device to listen on there. When I came back it wasn't working / detecting Spotifyd anymore. I'll run a few tests in the morning
Its not a fix but diagnosing it might be helpful
@Utagai commented on GitHub (Oct 14, 2020):
@IanQS Glad that it helped you out! For now, I just restart
spotifydand it's quick enough of a band-aid "fix" that it hasn't gotten on my nerves, yet.Definitely tag me. I'm pretty sure I'll be looking into this eventually. The tip on listening to Spotify on another device seems useful if its a consistent reproduction.
@Rigellute commented on GitHub (Oct 21, 2020):
Thanks everyone. This does sound like an issue with spotifyd rather than spotify-tui. We use a simple call to the
devicesendpoint to find available devices - there's no fancy local discovery going on@Davincible commented on GitHub (Jul 6, 2021):
@Rigellute I also have this discovery issue, but not only with spotifyd, also with local devices. The 'native' electron spotify app detects all devices, including spotifyd and local devices on the network, but spotifytui only detects spotifyd when I restart it, and no network devices