Same.problem with latest Leia. Also 2 HDMI outputs. Does anyone have a hint ?
It seems to me the proper way is to do normal DHCP (RENEW etc.) but asking for an "infinite" (0xFFFFFFFF) duration.
Cf 2.2 and 3.3 in the RFC.
Yes I had already done that as a temp fix, but I think the base behavior is wrong and wish it would be fixed in LE.
How can the DHCP server know if an IP address is still in use if the client doesn't RENEW when the lease expires ? I'd like to know where it's an expected behavior, because that looks more like a DHCP protocol violation to me.
Ok thanks, so this is obviously a bug in the merge request.
Is there a workaround ?
I've got a homemade router running dnsmasq, and the box running Libreelec is on a wired connection. Up until before 9.2.1 everything worked well, but after that last upgrade I observed:
- no DHCP identifier has been sent to dnsmasq, I had to force associating the name to the MAC address in dnsmasq's config
- even then sometimes after a while I see no RENEW, the box still works but dnsmasq has lost its name, so if I want to access it from elsewhere on the network I have to restart it
If you look at dnsmasq's log:Code
[[email protected]:~]$ journalctl -u dnsmasq|grep 00:01:2e:4d:bc:09 mars 18 08:14:19 awak dnsmasq-dhcp: DHCPDISCOVER(eno2) 00:01:2e:4d:bc:09 mars 18 08:14:19 awak dnsmasq-dhcp: DHCPOFFER(eno2) 10.2.62.203 00:01:2e:4d:bc:09 mars 18 08:14:59 awak dnsmasq-dhcp: DHCPDISCOVER(eno2) 00:01:2e:4d:bc:09 mars 18 08:14:59 awak dnsmasq-dhcp: DHCPOFFER(eno2) 10.2.62.203 00:01:2e:4d:bc:09 mars 18 08:15:04 awak dnsmasq-dhcp: DHCPREQUEST(eno2) 10.2.62.203 00:01:2e:4d:bc:09 mars 18 08:15:04 awak dnsmasq-dhcp: DHCPACK(eno2) 10.2.62.203 00:01:2e:4d:bc:09 zbox mars 18 08:15:31 awak dnsmasq-dhcp: DHCPDISCOVER(eno2) 00:01:2e:4d:bc:09 mars 18 08:15:31 awak dnsmasq-dhcp: DHCPOFFER(eno2) 10.2.62.203 00:01:2e:4d:bc:09 mars 18 08:15:31 awak dnsmasq-dhcp: DHCPREQUEST(eno2) 10.2.62.203 00:01:2e:4d:bc:09 mars 18 08:15:31 awak dnsmasq-dhcp: DHCPACK(eno2) 10.2.62.203 00:01:2e:4d:bc:09 zbox
You see a first REQUEST from the box's bios (I guess, because I boot the box via PXE), a second one from LibreElec, and then nothing - since 5 hours, whereas my lease period is 2 hours. Clearly LibreElec's dhcp client doesn't send RENEW when it should, which means it "disappears" from the network.
It looks like since 9.2.1, LibreElec does a DHCP request at startup and then never renews the lease.
This is problematic because it means its name is lost (on my network at least) after the lease expires, which means I can't find it on the network with a mobile phone or trying to use the Chorus web interface.
Any hint on what could have gone wrong, and how to fix this ?
avahi is not routed, as mentioned here: linux - Could I use avahi to publish service across subnetworks? - Stack Overflow
Note that this is an answer from 2014.
I'm using avahi with this snippet in the config file:
And it works quite well for me, at least for Kore.
Why use login/password? Use discovery mode.
If you want to use Kodi volume, use Kodi mode (set mode in addon settings)
The name of the currently playing song is displayed on the screen in both modes, not in OSD though.
TL;DR: discovery mode doesn't work.
Long answer: Because my LibreElec box is on a wired network which is routed to the Wi-Fi network, but apparently this is not sufficient for LibreSpot. I even configured Avahi in router mode on the router (necessary for Kore to find Kodi) but that's not enough for Spotify's discovery mode (I haven't investigated which kind of protocol it speaks).
After using it a bit, I have 3 remarks:
- there's no indication if the login/passwd is wrong
- the volume control doesn't use the main Kodi volume
- the name of the currently playing song isn't displayed
Is there a bugtracker somewhere for these ?
Mmkaye, so I wiped my Libreelec install afresh, reinstalled the Librespot addon, configured an email/passwd and now it works fine. Go figure.
Anyway sorry for wasting your time and thanks a lot for that great plugin !
Yes I understood. It's just that I tried and it didn't work. So I connected a web browser to spotify and tried to find it with my phone: it worked, I can find the browser in the spotify app's list of available devices, and control the web browser's music from my phone.
But I can't find my Kodi device from my phone.
Strange ... I configured the addon with my username and password, rebooted my Libreelec box and now I have a black screen with just the pointer following the mouse. Like if Librespot was hanging on connection.
I just tried with a premium account, I can access my web browser from my phone but not my Kodi device.
Am I supposed to see something even if I still don't have a premium account (I'd like to see if it might work before paying) ? The android Spotify app doesn't show any available TV/PC/HiFi to listen music.
My Kodi device has no WiFi but it's on the same network, is visible, the Kore android app sees it fine.
I'm trying to use the addon, but the 'execute' button stays greyed wether I use the default settings or when I enter some login/pass in the config; I see nothing in the journal. Is there something I'm missing ?
OK, I removed autostart.sh, rebooted, paired my phone (and launched some music streamed to BT), and then:Code
zbox:~ # systemctl stop kodi zbox:~ # pactl load-module module-udev-detect 18 zbox:~ # pactl list short sinks 1 alsa_output.pci-0000_00_1b.0.analog-stereo module-alsa-card.c s16le 2ch 44100Hz RUNNING zbox:~ # pactl list short sources 1 bluez_source.88_07_4B_73_B9_9A module-bluez5-device.c s16le 2ch 44100Hz RUNNING 2 alsa_output.pci-0000_00_1b.0.analog-stereo.monitor module-alsa-card.c s16le 2ch 44100Hz IDLE 3 alsa_input.pci-0000_00_1b.0.analog-stereo module-alsa-card.c s16le 2ch 44100Hz SUSPENDED
Still no HDMI ...