Spotify on Hakai? (wired; headless)
Moderator: Staff
Spotify on Hakai? (wired; headless)
(running headless Hakai on Debian, no desktop; connected over LAN)
Has anyone installed any Spotify client on their Hakai, and found a way to control it remotely, from WiFi to LAN?
I got mopidy-spotify installed and it connects to Spotify, as I can see my playlist, but I can't figure a way to control it remotely. I was expecting Spotify Connect to work, but mopidy/Hakai doesn't show up as an available device. From what I found via Spotify, Connect only connects over WiFi; apparently Spotify exclude LAN connections from Connect :(
Spotify do offer Spotify for Linux but that appears to expect/require a desktop, and I was looking to keep Hakai as headless, with as little OS footprint as possible. I'm not interested in Snakeoil as I want control over the config & system, but would like to know if / how anyone has got Spotify working over Ethernet, and what you use as a control point. Thanks.
Has anyone installed any Spotify client on their Hakai, and found a way to control it remotely, from WiFi to LAN?
I got mopidy-spotify installed and it connects to Spotify, as I can see my playlist, but I can't figure a way to control it remotely. I was expecting Spotify Connect to work, but mopidy/Hakai doesn't show up as an available device. From what I found via Spotify, Connect only connects over WiFi; apparently Spotify exclude LAN connections from Connect :(
Spotify do offer Spotify for Linux but that appears to expect/require a desktop, and I was looking to keep Hakai as headless, with as little OS footprint as possible. I'm not interested in Snakeoil as I want control over the config & system, but would like to know if / how anyone has got Spotify working over Ethernet, and what you use as a control point. Thanks.
Re: Spotify on Hakai? (wired; headless)
Yes and no...
The Snakeoil OS Spotify Connect player works perfect. The streamer is cabled to the network and controlled via Spotify app on any mobile device.
The ‘no’ is that I never managed to get it to work on the actual Hakai. The gigabyte motherboards don’t allow onboard audio to be disabled in the BIOS, which at least in my case has resulted in the sound being sent to the headphone out.
I’m now using a dedicated Spotify streamer using an Intel DM2800MT motherboard which does let you disable onboard audio.
The Snakeoil OS Spotify Connect player works perfect. The streamer is cabled to the network and controlled via Spotify app on any mobile device.
The ‘no’ is that I never managed to get it to work on the actual Hakai. The gigabyte motherboards don’t allow onboard audio to be disabled in the BIOS, which at least in my case has resulted in the sound being sent to the headphone out.
I’m now using a dedicated Spotify streamer using an Intel DM2800MT motherboard which does let you disable onboard audio.
Re: Spotify on Hakai? (wired; headless)
You can alter the default audio device to be the Gigaport. I've done it before, but can't remember how. I did a google search to find how to.
Re: Spotify on Hakai? (wired; headless)
I had wrongly stated Mopidy in another thread but it should be 'spotifyd'.
https://github.com/Spotifyd/spotifyd
I have it setup so that HAKAI appears as a source/player in the Spotify app. Works perfectly!
https://github.com/Spotifyd/spotifyd
I have it setup so that HAKAI appears as a source/player in the Spotify app. Works perfectly!
Re: Spotify on Hakai? (wired; headless)
Many thanks jewa - just wrapping up removal of mopidy & mopidy-spotify (the autoremove --purge isn't as complete & clean as I would have preferred)jewa wrote: ↑2020-03-22 22:19 I had wrongly stated Mopidy in another thread but it should be 'spotifyd'.
https://github.com/Spotifyd/spotifyd
I have it setup so that HAKAI appears as a source/player in the Spotify app. Works perfectly!
I will try spotifyd tomorrow, and report back
Re: Spotify on Hakai? (wired; headless)
Well, there are 2 options for spotifyd - guess who chose the 'wrong' one. Do not bother with snapcraft.io; snapd/spotifyd :/
Third time is a charm! If you want Spotify on Hakai (Debian) go to https://github.com/Spotifyd/spotifyd and work through the steps*... All I've done so far is unpack the slim tar.gz into a folder under $home, and start spotifyd as needed, but it works, and can be controlled from the Spotify Connect app on the phone - that was all I wanted, really :)
Later I'll work out how to register as a service & start at boot, if I choose to have it running all the time. For now, I will enjoy the rest of the 30 day free trial. Cheers.
* I loosely followed the Installing on a Raspberry Pi instructions under the Wiki tab
Third time is a charm! If you want Spotify on Hakai (Debian) go to https://github.com/Spotifyd/spotifyd and work through the steps*... All I've done so far is unpack the slim tar.gz into a folder under $home, and start spotifyd as needed, but it works, and can be controlled from the Spotify Connect app on the phone - that was all I wanted, really :)
Later I'll work out how to register as a service & start at boot, if I choose to have it running all the time. For now, I will enjoy the rest of the 30 day free trial. Cheers.
* I loosely followed the Installing on a Raspberry Pi instructions under the Wiki tab
Re: Spotify on Hakai? (wired; headless)
Hi,
Thanks for valuable information, I'm almost there...
Long ago I tried to install mopidy but without success and leave it. Then later I installed MPD 21.11 and wow this is something! Big grin in my face and foot tapping like never before with my Hakai.
Lately I tried to install spotifyd to Debian 9 stretch but some version error occurs > didn't work, so I upgraded to Debian Buster and now I can see Spotifyd in my android and can start to play but no sound...
I have tried in spotifyd.conf various device settings but no success so far. What could be wrong?
This is what I have currently (in mpd.conf there is hw:1,0)
[global]
username = x
password = x
backend = alsa
device = hw:1 # Given by `aplay -L`
mixer = PCM
volume-controller = alsa # or alsa_linear, or softvol
#onevent = command_run_on_playback_event
device_name = x
bitrate = 320
cache_path = cache_directory
volume-normalisation = true
normalisation-pregain = -10
-e-
Thanks for valuable information, I'm almost there...
Long ago I tried to install mopidy but without success and leave it. Then later I installed MPD 21.11 and wow this is something! Big grin in my face and foot tapping like never before with my Hakai.
Lately I tried to install spotifyd to Debian 9 stretch but some version error occurs > didn't work, so I upgraded to Debian Buster and now I can see Spotifyd in my android and can start to play but no sound...
I have tried in spotifyd.conf various device settings but no success so far. What could be wrong?
This is what I have currently (in mpd.conf there is hw:1,0)
[global]
username = x
password = x
backend = alsa
device = hw:1 # Given by `aplay -L`
mixer = PCM
volume-controller = alsa # or alsa_linear, or softvol
#onevent = command_run_on_playback_event
device_name = x
bitrate = 320
cache_path = cache_directory
volume-normalisation = true
normalisation-pregain = -10
-e-
Re: Spotify on Hakai? (wired; headless)
While my Linux skills are decidedly limited I suspect the hw1 audio output could be the issue. When trying to get Spotify to work on
my Snakeoil HAKAI, agent_kith (ie the man behind snakeoil OS) did some investigating and it seems Spotify defaults to hw0.
Do you get sound via headphone out ?
my Snakeoil HAKAI, agent_kith (ie the man behind snakeoil OS) did some investigating and it seems Spotify defaults to hw0.
Do you get sound via headphone out ?
Re: Spotify on Hakai? (wired; headless)
Thanks! now I found the correct one for device.
device = default:1
Spotify now playing through Hakai :)
- e-
device = default:1
Spotify now playing through Hakai :)
- e-
Spotifyd keeps skipping to next song
Note to Hakai - Spotifyd users:
Just lately spotifyd started to keep skipping to next song without playing anything
There is info about the error/change in Spotify:
https://github.com/Spotifyd/spotifyd/issues/1299
No fix yet as far as I know...
-e-
Just lately spotifyd started to keep skipping to next song without playing anything
There is info about the error/change in Spotify:
https://github.com/Spotifyd/spotifyd/issues/1299
No fix yet as far as I know...
-e-
Re: Spotifyd keeps skipping to next song
Can you revert Spotifyd, or associated lib, to a previous version that works?Errol wrote: ↑2024-09-04 06:28 Note to Hakai - Spotifyd users:
Just lately spotifyd started to keep skipping to next song without playing anything
There is info about the error/change in Spotify:
https://github.com/Spotifyd/spotifyd/issues/1299
No fix yet as far as I know...
-e-
Re: Spotifyd keeps skipping to next song
I doubt previous versions work (don't know if these even exists..). I got it working now - dev version of librespot 0.5.0 was needed. I tried steps mentioned in these threads but what worked for me was only these two steps (hope to remember correctly):
Installed rust & cargo:
then:
Spotifyd.conf has no username & password (= commented)
-e-
Installed rust & cargo:
Code: Select all
curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain stable --profile default --no-modify-path -y
Code: Select all
cargo install --git https://github.com/librespot-org/librespot.git --branch dev --no-default-features --features alsa-backend
-e-
Re: Spotify on Hakai? (wired; headless)
Good that you got it sorted - it's frustrating when it doesn't work, but so rewarding when it does: nice that the Hakai project is still delivering :)