Popular Post franz159 Posted January 10, 2020 Popular Post Share Posted January 10, 2020 Using wi-fi. I started using Gentooplayer on one of my raspberries and I'm very happy about the results, with LMS+ Squeezelite-R2. I also opened a discussion thread on one of the Italian forums I'm following. I have my pi4 wired, but somebody could prefer using wi-fi. I was wondering if the idea of adding a wi-fi configuration tab in the web interface has ever been considered. For example Moode, if the acquisition of an IP address through DHCP fails, switches to Access Point mode, creating an ad-hoc network allowing to access using pre-defined IP/user/password. Once connected, it is possible to enter the access parameters of your wi-fi network, execute a reboot... done! clipper and antonellocaroli 1 1 Link to comment
franz159 Posted January 11, 2020 Share Posted January 11, 2020 On 1/8/2020 at 9:42 PM, antonellocaroli said: if you have squeezelite c-3po resample you don't need... anyway, you can try it yourself if you want... it's pretty simple... gp-update emerge-webrsync (only if you've never done it, it takes a while to sync with the repo gentoo) then USE="flac mad mpg123 resample" emerge --ask squeezelite then add to the squeezelite configuration file (sqc command) values for resample ex. -u hMX http://manpages.ubuntu.com/manpages/trusty/man1/squeezelite.1.html the options file should become something like this: SL_OPTS="-C 1 -W -D :u32be -o hw:CARD=J20,DEV=0 -r 44100-384000 -a 40:3::0 -u hMX -n GentooPlayer -m 00:f0:4c:68:d1:47" or SL_OPTS="-C 1 -W -D :u32be -o hw:CARD=J20,DEV=0 -r 44100-384000 -a 40:3::0 -u vLX -n GentooPlayer -m 00:f0:4c:68:d1:47" or SL_OPTS="-C 1 -W -D :u32be -o hw:CARD=J20,DEV=0 -r 44100-384000 -a 40:3::0 -u vLX:2:6 -n GentooPlayer -m 00:f0:4c:68:d1:47" etc -u <recipe>:<flags>:<attenuation>:<precision>:<passband_end>:<stopband_start>:<phase_response> Hi I have been using squeezelite-R2 so far, but I was intriguesd by this resample things and I wanted to try.... Before recompiling squeezelite, I traied to start it... but it crashes! I0m using the 31/12/2019 Kernel for RPI 3B+. This is what I did after gp-update: GentooPlayerRpi64 ~ # sqr * WARNING: networkaudiod is already stopped * WARNING: mpd is already stopped * WARNING: upmpdcli is already stopped * WARNING: roonbridge is already stopped -bash: /etc/init.d/roonserver: No such file or directory * WARNING: squeezelite-R2 is already stopped * Stopping squeezelite ... * start-stop-daemon: no matching processes found [ ok ] * Starting squeezelite ... [ ok ] GentooPlayerRpi64 ~ # /etc/init.d/squeezelite status * status: crashed GentooPlayerRpi64 ~ # Am I doing something wrong? Something I can do to tray fix? I tried activating the log, but I only a get a zero length files in /var/log: GentooPlayerRpi64 ~ # ls -l /var/log/squeezelite.log -rw-r--r-- 1 squeezelite squeezelite 0 Jan 11 12:23 /var/log/squeezelite.log Link to comment
franz159 Posted January 11, 2020 Share Posted January 11, 2020 4 minutes ago, antonellocaroli said: can you show me the result of the command cat /etc/conf.d/squeezelite GentooPlayerRpi64 ~ # cat /etc/conf.d/squeezelite SL_OPTS="-C -W 1 -o hw:CARD=BossDAC,DEV=0 -r 44100-192000 -a 40:3:32:0 -b 2080:3528 -d all=debug -n GentooPlayer-sq -m 00:f0:4c:68:d1:48" Link to comment
franz159 Posted January 11, 2020 Share Posted January 11, 2020 2 minutes ago, antonellocaroli said: there was an error on the web interface, which I corrected a few days ago, I don't know if you've given gp-update, but if you have, give it back... and then reconfigure squeezelite... he was wrong to put the time... what ahi posted should be SL_OPTS="-C 1 -W -o hw:CARD=BossDAC,DEV=0 -r 44100-192000 -a 40:3:32:0 -b 2080:3528 -d all=debug -n GentooPlayer-sq -m 00:f0:4c:68:d1:48" Thanks for the quick reply! I'm in the middle of emerge-webrsync which is taking some time.... I will try immediately after and report back. franz antonellocaroli 1 Link to comment
franz159 Posted January 11, 2020 Share Posted January 11, 2020 8 minutes ago, antonellocaroli said: there was an error on the web interface, which I corrected a few days ago, I don't know if you've given gp-update, but if you have, give it back... and then reconfigure squeezelite... he was wrong to put the time... what ahi posted should be SL_OPTS="-C 1 -W -o hw:CARD=BossDAC,DEV=0 -r 44100-192000 -a 40:3:32:0 -b 2080:3528 -d all=debug -n GentooPlayer-sq -m 00:f0:4c:68:d1:48" GentooPlayerRpi64 ~ # /etc/init.d/squeezelite status * status: started GentooPlayerRpi64 ~ # ps -ef | grep squeeze squeeze+ 3286 1 0 20:23 ? 00:00:00 /usr/bin/squeezelite -f /var/log/squeezelite.log -C 1 -W -o hw:CARD=BossDAC,DEV=0 -r 44100 192000 -a 40 3 0 -b 2080 3528 -n GentooPlayer -m 00 f0 4c 68 d1 47 ____________________________________________________ This is what I call a "customer service"! A 20 minutes SLA to resolve an issue in "production". Do not blame Italian Software Developers! ____________________________________________________ 😎 😀😐 Link to comment
franz159 Posted January 11, 2020 Share Posted January 11, 2020 I tried to recompile squeezelite to enable upsample, but the process failed as follows: GentooPlayerRpi64 ~ # USE="flac mad mpg123 resample" emerge --ask squeezelite These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild R ] media-sound/squeezelite-1.9.6.1205 USE="flac* mad* mpg123* resample*" Would you like to merge these packages? [Yes/No] Yes >>> Verifying ebuild manifests >>> Emerging (1 of 1) media-sound/squeezelite-1.9.6.1205::antonellocaroli >>> Unpacking source... mkdir: cannot create directory ‘/usr/portage/distfiles/git3-src’: Permission denied * ERROR: media-sound/squeezelite-1.9.6.1205::antonellocaroli failed (unpack phase): * Unable to create /usr/portage/distfiles/git3-src * * Call stack: * ebuild.sh, line 125: Called src_unpack * environment, line 3455: Called git-r3_src_unpack * environment, line 2539: Called git-r3_src_fetch * environment, line 2533: Called git-r3_fetch * environment, line 2301: Called _git-r3_set_gitdir 'https://github.com/ralph-irving/squeezelite.git' * environment, line 433: Called die * The specific snippet of code: * mkdir -p "${EGIT3_STORE_DIR}" ) || die "Unable to create ${EGIT3_STORE_DIR}"; * * If you need support, post the output of `emerge --info '=media-sound/squeezelite-1.9.6.1205::antonellocaroli'`, * the complete build log and the output of `emerge -pqv '=media-sound/squeezelite-1.9.6.1205::antonellocaroli'`. * The complete build log is located at '/var/tmp/portage/media-sound/squeezelite-1.9.6.1205/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/media-sound/squeezelite-1.9.6.1205/temp/environment'. * Working directory: '/var/tmp/portage/media-sound/squeezelite-1.9.6.1205/work' * S: '/var/tmp/portage/media-sound/squeezelite-1.9.6.1205/work/squeezelite-1.9.6.1205' >>> Failed to emerge media-sound/squeezelite-1.9.6.1205, Log file: >>> '/var/tmp/portage/media-sound/squeezelite-1.9.6.1205/temp/build.log' * Messages for package media-sound/squeezelite-1.9.6.1205: * ERROR: media-sound/squeezelite-1.9.6.1205::antonellocaroli failed (unpack phase): * Unable to create /usr/portage/distfiles/git3-src * * Call stack: * ebuild.sh, line 125: Called src_unpack * environment, line 3455: Called git-r3_src_unpack * environment, line 2539: Called git-r3_src_fetch * environment, line 2533: Called git-r3_fetch * environment, line 2301: Called _git-r3_set_gitdir 'https://github.com/ralph-irving/squeezelite.git' * environment, line 433: Called die * The specific snippet of code: * mkdir -p "${EGIT3_STORE_DIR}" ) || die "Unable to create ${EGIT3_STORE_DIR}"; * * If you need support, post the output of `emerge --info '=media-sound/squeezelite-1.9.6.1205::antonellocaroli'`, * the complete build log and the output of `emerge -pqv '=media-sound/squeezelite-1.9.6.1205::antonellocaroli'`. * The complete build log is located at '/var/tmp/portage/media-sound/squeezelite-1.9.6.1205/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/media-sound/squeezelite-1.9.6.1205/temp/environment'. * Working directory: '/var/tmp/portage/media-sound/squeezelite-1.9.6.1205/work' * S: '/var/tmp/portage/media-sound/squeezelite-1.9.6.1205/work/squeezelite-1.9.6.1205' GentooPlayerRpi64 ~ # Link to comment
franz159 Posted January 12, 2020 Share Posted January 12, 2020 10 hours ago, antonellocaroli said: Ciao Franz, chmod -R 755 /usr/portage USE="flac mad mpg123 resample" emerge --ask squeezelite Thanks, with chmod -R 755 I still got the same error of inability to create the folder under /usr/portage/distfiles/. So, even if it's not recommended, I went with chmod -R 777 and the compilation succeeded.... So, to recap, the entire process I followed to recompile squeezelite is this: gp-update emerge-webrsync I had never done it, so I waited for a while for this to complete.... chmod -R 777 /usr/portage USE="flac mad mpg123 resample" emerge --ask squeezelite At this point I was able to set Archimago "Extremus" parameters for resampling adding -R v::3.05:28:99.7:100:45 to squeezelite configuration, using command sqc: This is my resulting squeezelite configuration in file "/etc/conf.d/squeezelite": SL_OPTS="-C 1 -W -o hw:CARD=BossDAC,DEV=0 -r 44100-96000 -a 40:3::0 -b 2080:3528 -R v::3.05:28:99.7:100:45 -n GentooPlayer -m 00:f0:4c:68:d1:47" Note: as a positive side effect, adding the support for flac, Squeezelite is now working nicely with Qobuz. In this way in my LMS interface (LMS Material Skin) I have Squeezelite GentooPlayer for resampled listening and one Squeezelite GentoPlayer-R2 for bitperfect listening. Super cool! Link to comment
franz159 Posted January 12, 2020 Share Posted January 12, 2020 On 1/9/2020 at 3:33 PM, DomieMic65 said: Thank you but I don’t think I’m such an expert user to implement my own upsampling recipies. I understand some things up to a point but no more! When I was using piCore I relied on some ready stuff I found on line in Archimagos blog etc... and I implemented them inside the piCore GUI! If I try such a thing in Gentoo most probably I will make a mess! Regards Michael! Hi DomieMic65, I followed Antonello suggestions to recompile Squeezelite and enable reasmpling. If you want to give it a try, you can see a recap of the procedure in my previous post... Regards DomieMic65 1 Link to comment
franz159 Posted January 12, 2020 Share Posted January 12, 2020 4 hours ago, antonellocaroli said: This is an image test for rpi3, with wifi support. Only with "ST" kernels. At boot time if it doesn't find an online network, create a wifi HotSpot, with IP 192.168.42.1. Reachable from any wifi device. It is displayed among wifi networks with the name gentooplayer, the password is gentooplayer to connect. Once connected you can open any app for ssh (terminus, putty, ssh on linux, etc) to access with user:root pw:raspirrot ip: 192.168.42.1 or a web browser and connect to 192.168.42.1:5000 Then configure wifi with the wificonfig command from the terminal or from the configure Wi-Fi webinterface. I tested with various devices, all of them connected to the HotSpot on the first shot, simply by entering the password, but on one I had to set the ip, i.e. from DHCP to ip static...in this way: if someone can do a test @franz159 @clipper I will test asap and report back! Thanks a lot Link to comment
franz159 Posted January 12, 2020 Share Posted January 12, 2020 6 hours ago, antonellocaroli said: This is an image test for rpi3, with wifi support. Only with "ST" kernels. At boot time if it doesn't find an online network, create a wifi HotSpot, with IP 192.168.42.1. Reachable from any wifi device. It is displayed among wifi networks with the name gentooplayer, the password is gentooplayer to connect. Once connected you can open any app for ssh (terminus, putty, ssh on linux, etc) to access with user:root pw:raspirrot ip: 192.168.42.1 or a web browser and connect to 192.168.42.1:5000 Then configure wifi with the wificonfig command from the terminal or from the configure Wi-Fi webinterface. I tested with various devices, all of them connected to the HotSpot on the first shot, simply by entering the password, but on one I had to set the ip, i.e. from DHCP to ip static...in this way: if someone can do a test @franz159 @clipper It does not work for me on my Macbook. The connection to the hotspot does take place, but it is not functional: And after a minute or so the wifi icon changes to indicate a not working network with an exclamation mark in the middle. Link to comment
franz159 Posted January 12, 2020 Share Posted January 12, 2020 8 minutes ago, DomieMic65 said: Yes I have seen your post thnx for the feedback!!!! I enabled Squeezelite and played with it a little... to try Apart from re/upsampling, it crashes when I try to play native 192Khz files (I use Allo Digione for time beeing... I didn't try with USB). 96KHz it's OK. I had the same problem with Sq.lite R2 but Antonello fixed it! Also I can't play Qobuz (LMS plug-in. With R2 no problem). Strangely Spotty plays just fine!! Didi you recompile squeezeleite as per the process indicated by Antonello that I sumamrized in post #652? I'm asking because alzo for me Qobuz was not working, but it is now OK after recompiling squeezelite. DomieMic65 1 Link to comment
franz159 Posted January 12, 2020 Share Posted January 12, 2020 2 hours ago, antonellocaroli said: Have you tried setting up a fixed IP on your Macbook? and not let it use dhcp for what connection? Have you tried iphone? I tried setting Static IP on the Mac and it worked: selection of the gentooplayer wifi network setting static IP 192.168.42.10 manually on Mac connection to the web interface at IP 192.168.42.1:5000 configuration of the access to actual wifi In this way you potentially have also a portable Gentooplayer, just connect it to your smartphone personal hotspot! @Antonello, can I use this image also on a raspberry pi4, or does the wifi feature need to be compiled separately for it? Link to comment
franz159 Posted January 12, 2020 Share Posted January 12, 2020 5 hours ago, DomieMic65 said: after some trial and error i managed to recompile squeezelite Qobuz works I didn't manage to upsample though and 192KHz still crash For the upsample you need to update the squeezelite configuration under "/etc/conf.d/squeezelite" and add the parameter -R and its values like in SL_OPTS="-C 1 -W -o hw:CARD=BossDAC,DEV=0 -r 44100-96000 -a 40:3::0 -b 2080:3528 -R v::3.05:28:99.7:100:45 -n GentooPlayer -m 00:f0:4c:68:d1:47" You can edit squeezelite configuration using command sqc from terminal/putty. To use 192Khz, you need to increase the Max resolution value, for example as in -r 44100-192000 Link to comment
franz159 Posted January 14, 2020 Share Posted January 14, 2020 On 1/12/2020 at 9:48 PM, antonellocaroli said: No, you can't. But if it's interesting and working, I can implement it on both rpi3 and rpi4 images. From my POV it would be good to have the ST kernel with WiFI support, I would be using that as my "portable" GentooPlayer, since I travel a lot for work.... Link to comment
franz159 Posted January 18, 2020 Share Posted January 18, 2020 On 1/12/2020 at 5:06 AM, antonellocaroli said: Yes, it's actually much nicer Is it difficult to compile myMPD for GentooPlayer? Link to comment
franz159 Posted January 18, 2020 Share Posted January 18, 2020 On 1/17/2020 at 6:23 AM, antonellocaroli said: mpd and upmpdcli enabled should suffice With mpd and upmpdcli I was not able to get any sound.... I had to go through BubbleUPnP to get music from GP Link to comment
franz159 Posted January 25, 2020 Share Posted January 25, 2020 3 hours ago, DomieMic65 said: i get this msg "mkdir: cannot create directory ‘/mnt/samba/GentooNAS_Music’: File exists" I noticed this too when I mounted a network share (in my case I was using cifs, but it is the same). The script attempts to creates the mount point every time using the "mkdir" command and it fails if that folder already exists, since it was created the previous time the script had been launched. In your case the directory "GentooNAS_Music" already exists, it was created the previous time you mounted (or maybe attemted to mount) the disk. You need to connect through ssh, delete the folder "GentooNAS_Music" and retry the mount operation. Link to comment
franz159 Posted January 26, 2020 Share Posted January 26, 2020 Does anybody "registered" the Squeezelite instance running on Gentooplayer in mysqueezebox.com? That is required if you want to activate the Tidal squeezelite application for Tidal streaming. I can do that with all my other squeezelite instances, but not for the ones running into Gentooplayer. The Squeezelite player (named GentooPlayer-R2 in my case) is perfectly working and recognized in LMS setting, but when I go to the "mysqueezebox.com" tab and put credentials for that and click apply, the player is not added to the "myplayers" list in mysqueezebox.com. Everything works fine whe I do the same with Moode Squeezelite instances. Anybody has any clue on what could be going wrong? Thanks Link to comment
franz159 Posted January 26, 2020 Share Posted January 26, 2020 Hi, I was experimenting with Kernel selection and I went to #24. Now I don't remember, which is the "default" one? Also, which of these are the ones supporting wi-fi? Thanks! franz Link to comment
franz159 Posted January 27, 2020 Share Posted January 27, 2020 @antonellocaroli I have been asked if samba service can be made available in Gentooplayer (in order to share for example a local USB disk to other devices in the LAN). I had a quick look but I could not find it. What would be the process to make ite available? Thanks Link to comment
franz159 Posted January 28, 2020 Share Posted January 28, 2020 1 hour ago, antonellocaroli said: news Sorry for the stupid question, but this is my first “major” update since I started using Gentooplayer! Do I need to flash the new version to a microSD or is there an option for an “in place” update? Link to comment
franz159 Posted January 28, 2020 Share Posted January 28, 2020 1 hour ago, antonellocaroli said: no, unfortunately, you'd have to re-flash the SD... Not a problem, just wanted to know. Thanks again for your great work! Link to comment
franz159 Posted January 28, 2020 Share Posted January 28, 2020 I tried to use the new Image supporting WI-FI on my pi4 and the story went more or lesse like his... 1) flashed the microSD and booted 2) connected to the gentooplayer hotspot generated wifi network. DHCP did not work and I had to setup the IP address manually, IP 192.168.42.22 subnet 255.255.255.0 router 192.168.42.1 3) configured the wifi parameters with the SSID of my iPhone Personal Hotspot and its password 4) rebooted and I'm stuck: - no connection to the configured wifi (iPhone personal hotspot) - no gentooplayer hotspot I rebooted but still no joy. Tomorrow I will start all over again by flashing the microSD card again, but I have the impression that the gentooplayer hotspot generation process is failing for some reason,. But unfortunately under the condition I described above I'm afraid it is not really possible to investigate further. Any idea on what could have gone wrong? Link to comment
franz159 Posted January 29, 2020 Share Posted January 29, 2020 16 hours ago, antonellocaroli said: 2) Yes, the hotspot doesn't support DHCP, in fact, I wrote it here . 4) practically when configuring the wifi is "deleted the search function at network startup and if not found starts the hotspot". So if by chance you make a mistake in the wifi configuration anyway the hotspot is not started... This probably wasn't a good choice. I'm going to put the network search back on... gp-update before using wificonfig solves this... But if you don't have internet at startup you can't use gp-update... so I'll have to change the image anyway... but if you can connect it to a lan and do gp-update and then try the wifi configuration...at least let's see if the wifi configuration works...before I change the image...thanks Will test next week-end when back at home and I will have a wired Ethernet... Sorry, but I'm away for work (that's why I was trying to use wifi...). Link to comment
franz159 Posted February 3, 2020 Share Posted February 3, 2020 Hi, I'm having some glitches with the Web interface where the enable option for MyMPD actually appears as YMPD enable on/off in system info, just odd.... Any suggestion on how to manually fix this? Thanks Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now