Re: [SlimDevices: Unix] Running LMS on Raspberry Pi for newbie to the Pi
Man in a van wrote: > I'll likely get a row for this, but try adding :eek: > > -a :::0 > > to the squeezelite line > > ronnie Fingers crossed that seems to have done the trick! Thank you! I looked up the Squeezelite syntax and it seems that your option turns "mmap", or memory mapping, off. So what is going on here? Also I'm a bit puzzled why I didn't need it a month ago, and now I do need it? SB3 -> Quad 909 -> Quad Electrostatic speakers, Quad 405 -> TBI subwoofer 3 x SB3s + SB Radio LMS on Raspbian on a Pi4 Rotel RSP1068 surround processor, Quad 707 -> B surround rbl's Profile: http://forums.slimdevices.com/member.php?userid=4517 View this thread: http://forums.slimdevices.com/showthread.php?t=112025 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] Running LMS on Raspberry Pi for newbie to the Pi
Man in a van wrote: > Try > > plughw:CARD=Headphones,DEV=0 - bcm2835 Headphones, bcm2835 Headphones > - Hardware device with all software conversions > > and reboot I had to roll back to an old boot disk, and now I seem to have got the same problem again but your fix no longer works!?!!? The old boot disk, created May 2020, had "ExecStart=/usr/bin/squeezelite -o plughw:CARD=Headphones,DEV=0 -n Pi_SqueezeliteService -C 5 " I did a full-upgrade, and as expected I had to change the ExecStart line as follows ExecStart=/usr/bin/squeezelite -o plughw:CARD=Headphones,DEV=0 -n Pi_SqueezeliteService -C 5 So now Pi_SqueezeliteService appears in LMS, but no sound comes out of the Pi's headphone jack. I also now get a LOT of rebuffering - every few minutes (on both radio and flac files). Despite all players being wired into the LAN. The available audio devices are: sudo /usr/bin/squeezelite -l Output devices: default- Playback/recording through the PulseAudio sound server null - Discard all samples (playback) or generate zero samples (capture) jack - JACK Audio Connection Kit pulse - PulseAudio Sound Server sysdefault:CARD=b1 - bcm2835 HDMI 1, bcm2835 HDMI 1 - Default Audio Device dmix:CARD=b1,DEV=0 - bcm2835 HDMI 1, bcm2835 HDMI 1 - Direct sample mixing device dsnoop:CARD=b1,DEV=0 - bcm2835 HDMI 1, bcm2835 HDMI 1 - Direct sample snooping device hw:CARD=b1,DEV=0 - bcm2835 HDMI 1, bcm2835 HDMI 1 - Direct hardware device without any conversions plughw:CARD=b1,DEV=0 - bcm2835 HDMI 1, bcm2835 HDMI 1 - Hardware device with all software conversions usbstream:CARD=b1 - bcm2835 HDMI 1 - USB Stream Output sysdefault:CARD=Headphones - bcm2835 Headphones, bcm2835 Headphones - Default Audio Device dmix:CARD=Headphones,DEV=0 - bcm2835 Headphones, bcm2835 Headphones - Direct sample mixing device dsnoop:CARD=Headphones,DEV=0 - bcm2835 Headphones, bcm2835 Headphones - Direct sample snooping device hw:CARD=Headphones,DEV=0 - bcm2835 Headphones, bcm2835 Headphones - Direct hardware device without any conversions plughw:CARD=Headphones,DEV=0 - bcm2835 Headphones, bcm2835 Headphones - Hardware device with all software conversions usbstream:CARD=Headphones - bcm2835 Headphones - USB Stream Output Any idea why no sound is coming out? And the rebuffering? I tried the whole upgrade process twice and I get exactly the same problems. The Pi4 is running LMS 7.9.2 - 1578996832, which was working flawlessly prior to this upgrade. SB3 -> Quad 909 -> Quad Electrostatic speakers, Quad 405 -> TBI subwoofer 3 x SB3s + SB Radio LMS on Raspbian on a Pi4 Rotel RSP1068 surround processor, Quad 707 -> B surround rbl's Profile: http://forums.slimdevices.com/member.php?userid=4517 View this thread: http://forums.slimdevices.com/showthread.php?t=112025 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] How to stop LMS on a Pi / access Control Panel
Man in a van wrote: > which OS is the LMS running on ? > > pCP has a stop button on the LMS Tab page > > If using Rapberry pi os, open a terminal and type > > sudo service logitechmediaserver stop [status, start, restart] > > or > > sudo /etc/init.d/logitechmediaserver stop > > there is one for sytemctl as well, but have never used that :) Raspbian. "sudo service logitechmediaserver stop" did the job perfectly. Thanks very much.. SB3 -> Quad 909 -> Quad Electrostatic speakers, Quad 405 -> TBI subwoofer 3 x SB3s + SB Radio LMS on Raspbian on a Pi4 Rotel RSP1068 surround processor, Quad 707 -> B surround rbl's Profile: http://forums.slimdevices.com/member.php?userid=4517 View this thread: http://forums.slimdevices.com/showthread.php?t=113998 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
[SlimDevices: Unix] How to stop LMS on a Pi / access Control Panel
A dumb question - how do I stop LMS on the Pi? I can't find the control panel that I'd use in Windows to do this, and I'd rather not just terminate the process. I am trying to copy an old copy /var/lib/squeezeboxserver/prefs over and it seems prudent to stop LMS first. SB3 -> Quad 909 -> Quad Electrostatic speakers, Quad 405 -> TBI subwoofer 3 x SB3s + SB Radio LMS on Raspbian on a Pi4 Rotel RSP1068 surround processor, Quad 707 -> B surround rbl's Profile: http://forums.slimdevices.com/member.php?userid=4517 View this thread: http://forums.slimdevices.com/showthread.php?t=113998 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] Running LMS on Raspberry Pi for newbie to the Pi
Man in a van wrote: > Try > > plughw:CARD=Headphones,DEV=0 - bcm2835 Headphones, bcm2835 Headphones > - Hardware device with all software conversions > > and reboot Works perfectly, thank you! Out of intertest, any idea why it was changed? SB3 -> Quad 909 -> Quad Electrostatic speakers, Quad 405 -> TBI subwoofer 3 x SB3s + SB Radio LMS on Raspbian on a Pi4 Rotel RSP1068 surround processor, Quad 707 -> B surround rbl's Profile: http://forums.slimdevices.com/member.php?userid=4517 View this thread: http://forums.slimdevices.com/showthread.php?t=112025 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] Running LMS on Raspberry Pi for newbie to the Pi
bpa wrote: > DEV=1 or 2 often means a digital output such as SPDIF or HDMI and so > nothing will happen on analog. > > "hw:" means only the hardware supported samplerate/sampleformats will be > sent - so LMS will have to resample/trasncode as required. > > "plughw" means ALSA will support all data rate and will process audio > stream into a format suitable for the hardware rather than LMS or > squeezelite. Often "plughw" devices have more successful outcomes > rather than "hw" especially if user disables certain LMS capabilties. Hm - I just did a full_upgrade on my Raspberry and Squeezelite no longer seems to load. I ran squeezelite -l, and the output devices seem to have changed, and ALSA replaced with "b1" Output devices: default- Playback/recording through the PulseAudio sound server null - Discard all samples (playback) or generate zero samples (capture) jack - JACK Audio Connection Kit pulse - PulseAudio Sound Server plugequal equal sysdefault:CARD=b1 - bcm2835 HDMI 1, bcm2835 HDMI 1 - Default Audio Device dmix:CARD=b1,DEV=0 - bcm2835 HDMI 1, bcm2835 HDMI 1 - Direct sample mixing device dsnoop:CARD=b1,DEV=0 - bcm2835 HDMI 1, bcm2835 HDMI 1 - Direct sample snooping device hw:CARD=b1,DEV=0 - bcm2835 HDMI 1, bcm2835 HDMI 1 - Direct hardware device without any conversions plughw:CARD=b1,DEV=0 - bcm2835 HDMI 1, bcm2835 HDMI 1 - Hardware device with all software conversions usbstream:CARD=b1 - bcm2835 HDMI 1 - USB Stream Output sysdefault:CARD=Headphones - bcm2835 Headphones, bcm2835 Headphones - Default Audio Device dmix:CARD=Headphones,DEV=0 - bcm2835 Headphones, bcm2835 Headphones - Direct sample mixing device dsnoop:CARD=Headphones,DEV=0 - bcm2835 Headphones, bcm2835 Headphones - Direct sample snooping device hw:CARD=Headphones,DEV=0 - bcm2835 Headphones, bcm2835 Headphones - Direct hardware device without any conversions plughw:CARD=Headphones,DEV=0 - bcm2835 Headphones, bcm2835 Headphones - Hardware device with all software conversions usbstream:CARD=Headphones - bcm2835 Headphones - USB Stream Output So I edited /etc/systemd/system/squeezelite.service to ExecStart=/usr/bin/squeezelite -o plughw:CARD=b1,DEV=0 -n Pi_SqueezeliteService -C 5 (previously squeezelite -o plughw:CARD=ALSA,DEV=0 -n Pi_SqueezeliteService -C 5 -d) Now the service starts, and I can see Pi_SqueezeliteService in my list of players in LMS. But no sound comes out of the Pi's headphone jack. Any idea why not? I can mess around and see what works, but it would be good to get the correct device as bpa mentioned using the incorrect device can cause strange streaming issues if not careful. SB3 -> Quad 909 -> Quad Electrostatic speakers, Quad 405 -> TBI subwoofer 3 x SB3s + SB Radio LMS on Raspbian on a Pi4 Rotel RSP1068 surround processor, Quad 707 -> B surround rbl's Profile: http://forums.slimdevices.com/member.php?userid=4517 View this thread: http://forums.slimdevices.com/showthread.php?t=112025 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] Equaliser for LMS on Raspberry Pi
Man in a van wrote: > I did not read any of this, it's too early :p > > https://www.hifiberry.com/docs/software/guide-adding-equalization-using-alsaeq/ > > ronnie Your link also has a link for setting up the 10 band EQ with Squeezelite itself. I haven't had the chance to try and make it work yet... am waiting for a rainy day! www.gerrelt.nl/RaspberryPi/wordpress/equalizer/ Wirrunna wrote: > rbl, this looks interesting and may be what you are after - > > https://forums.slimdevices.com/showthread.php?112318-PCP-Parametric-EQ-using-ladspa_dsp > > I use Inguz on my Vortexbox but would like an alternative. SpiderJon wrote: > Looking at steps 6 and 7 of the set-up guide in that post, it only works > because PCP uses Squeezelite as a player, so you can configure what > output it takes. > > > 6. Disable built-in audio (if you use a sound card, which you > probably do). I'd like to simplify things by just having the real audio > device available. > > 7. configure squeezelite to use the dsp output (Squeezelite Settings -> > Output Setting). Looks interesting for a proper parametric EQ although Ill have to see if my very limited unix skills are up to it as only got my Pi a few weeks ago (and love it). But as SpiderJon says, and like Man in a Van's, this seems to work outside LMS so assumes the Pi is used as the actual player rather than just a server. So ideally I'm still looking for something that works more at the server level (like Inguz for LMS on Windows) so I can supply EQ to my various SB3 and don't have to use the audio out of the Pi ... SB3 -> Quad 909 -> Quad Electrostatic speakers, Quad 405 -> TBI subwoofer 3 x SB3s + SB Radio LMS on Raspbian on a Pi4 Rotel RSP1068 surround processor, Quad 99 -> B surround rbl's Profile: http://forums.slimdevices.com/member.php?userid=4517 View this thread: http://forums.slimdevices.com/showthread.php?t=112474 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
[SlimDevices: Unix] Equaliser for LMS on Raspberry Pi
Hi - is there a (hopefully parametric) equaliser that runs on LMS on a Pi4 (running raspbian) that works with SB3 players? There is Inguz for Windows but I can't find anything for the Pi? Failing that, is there a way to get an equaliser going on the LMS/Pi if the Pi is used as a player instead of a SB3? I have searched and found a 10 band equaliser but can't see how to get it to work, or does it only work with piCorePlayer? Ideally I need more than 10 bands if possible... SB3 -> Quad 909 -> Quad Electrostatic speakers, Quad 405 -> TBI subwoofer 3 x SB3s + SB Radio Rotel RSP1068 surround processor, Quad 99 -> B surround rbl's Profile: http://forums.slimdevices.com/member.php?userid=4517 View this thread: http://forums.slimdevices.com/showthread.php?t=112474 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] Running LMS on Raspberry Pi for newbie to the Pi
Man in a van wrote: > > Code: > > sudo chmod -R 775 /media > > > This worked - actually I used 777 in the end. It seems obvious now, have to give access to the parent directories too! Many thanks ... SB3 -> Quad 909 -> Quad Electrostatic speakers, Quad 405 -> TBI subwoofer 3 x SB3s + SB Radio Rotel RSP1068 surround processor, Quad 99 -> B surround rbl's Profile: http://forums.slimdevices.com/member.php?userid=4517 View this thread: http://forums.slimdevices.com/showthread.php?t=112025 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] Running LMS on Raspberry Pi for newbie to the Pi
I am now trying to set the 250GB USB drive up as a NAS drive so it can be seen on the network (Windows 10, Android). Everything works except that I cannot see the USB drive in LMS->Media Folders where I just see /media/usb but not /media/usb/250GB_ext4 as expected. It is accessible from the Pi's File Manager, Windows 10 and Android, but not LMS which seems very odd! The process I went through was: To setup the NAS drive umount /dev/sda1 sudo mkfs -t ext4 /dev/sda1 sudo e2label /dev/sda1 250GB_ext4 sudo apt update sudo apt upgrade sudo apt install samba samba-common sudo nano /etc/samba/smb.conf [250GB_ext4] path = /media/pi/250GB_ext4/ writeable = yes create mask = 0775 directory mask = 0775 public=no sudo chmod 777 /media/pi/250GB_ext4 sudo smbpasswd -a pi sudo systemctl restart smbd The drive is now accessible from Windows 10, Android and the Pi. However, in LMS I can see \media\usb but not 250GB_ext4. I tried mounting the drive but it made no difference to LMS. Get ID (ls -l /dev/disk/by-uuid) sudo mkdir /media/usb sudo chown -R pi:pi /media/usb sudo mount /dev/sda1 /media/usb -o uid=pi,gid=pi sudo nano /etc/fstab UUID=c8d9ae87-87c1-4b12-8f85-52c87229b6a0 /media/usb ext4 auto,nofail,noatime,users,rw,uid=pi,gid=pi 0 0 Any ideas why everything can see the 250GB USB drive except LMS? I guess some permission is wrong somewhere. I am going up quite a learning curve with the Pi! SB3 -> Quad 909 -> Quad Electrostatic speakers, Quad 405 -> TBI subwoofer 3 x SB3s + SB Radio Rotel RSP1068 surround processor, Quad 99 -> B surround rbl's Profile: http://forums.slimdevices.com/member.php?userid=4517 View this thread: http://forums.slimdevices.com/showthread.php?t=112025 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] Running LMS on Raspberry Pi for newbie to the Pi
bpa wrote: > My comments are sort of aimed at other readers of the thread possibly at > some later date. > > I'm on a little crusade trying to make people aware that there are > subtle differences between the different ALSA device selections > > For example, sometimes "default" is the same as "pulse" which means two > processes owned by different users cannot use the "pulse" device as > pulseaudio is normally per user. > > There are other difference which may be masked by LMS and/or > squeezelite's ability to transcodeo r resample unless users disable > features or override them with command line options. > > Another example, recently a PC user was using "front:" which seemed to > work for any stream but for one stream it didn't. User was using a $5 > USB audio adapter which only supports 44.1kHz & 48khz and the stream was > 32kHz. > Both front and plughw allow more data formats to be played through the > USB audio adapter. > > "front" handles > Sampling rate 44100..192000 Hz > Sample formats: S16_LE, S32_LE > > "plughw" handles > Sampling rate 4000..4294967295 Hz > Sample formats: S8, U8, S16_LE, S16_BE, U16_LE, U16_BE, S24_LE, S24_BE, > U24_LE, U24_BE, S32_LE, S32_BE, U32_LE, U32_BE, FLOAT_LE, FLOAT_BE, > FLOAT64_LE, FLOAT64_BE, MU_LAW, A_LAW, IMA_ADPCM, S24_3LE, S24_3BE, > U24_3LE, U24_3BE, S20_3LE, S20_3BE, U20_3LE, U20_3BE, S18_3LE, S18_3BE, > U18_3LE, U18_3BE > > So playing the 32kHz stream on squeezelite did not work through "front" > but did work through "plughw". I have taken your advice and am now using plughw:CARD=ALSA,DEV=0. Everything is coming out the headphone jack as expected. I tried various files from 44KHz to 384KHz, and various radio stations. SB3 -> Quad 909 -> Quad Electrostatic speakers, Quad 405 -> TBI subwoofer 3 x SB3s + SB Radio Rotel RSP1068 surround processor, Quad 99 -> B surround rbl's Profile: http://forums.slimdevices.com/member.php?userid=4517 View this thread: http://forums.slimdevices.com/showthread.php?t=112025 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] Running LMS on Raspberry Pi for newbie to the Pi
bpa wrote: > If it is working you can omit the "-d output=info " - it is there only > for debugging > > To be strictly, it may be better to have a DEV setting on the ALSA > device - otherwise it is default to zero. > > You may also get issues later on with using sysdefault rather than an > explicit device - such as not supporting certain data rates. I have removed the -d parameter. But what then do I set DEV to? Or more to the point, the -o parameter? I am just using the Pi's headphone jack at the moment. squeezelite -l gives the following: default- Playback/recording through the PulseAudio sound server null - Discard all samples (playback) or generate zero samples (capture) jack - JACK Audio Connection Kit pulse - PulseAudio Sound Server sysdefault:CARD=ALSA - bcm2835 ALSA, bcm2835 ALSA - Default Audio Device dmix:CARD=ALSA,DEV=0 - bcm2835 ALSA, bcm2835 ALSA - Direct sample mixing device dmix:CARD=ALSA,DEV=1 - bcm2835 ALSA, bcm2835 IEC958/HDMI - Direct sample mixing device dmix:CARD=ALSA,DEV=2 - bcm2835 ALSA, bcm2835 IEC958/HDMI1 - Direct sample mixing device dsnoop:CARD=ALSA,DEV=0 - bcm2835 ALSA, bcm2835 ALSA - Direct sample snooping device dsnoop:CARD=ALSA,DEV=1 - bcm2835 ALSA, bcm2835 IEC958/HDMI - Direct sample snooping device dsnoop:CARD=ALSA,DEV=2 - bcm2835 ALSA, bcm2835 IEC958/HDMI1 - Direct sample snooping device hw:CARD=ALSA,DEV=0 - bcm2835 ALSA, bcm2835 ALSA - Direct hardware device without any conversions hw:CARD=ALSA,DEV=1 - bcm2835 ALSA, bcm2835 IEC958/HDMI - Direct hardware device without any conversions hw:CARD=ALSA,DEV=2 - bcm2835 ALSA, bcm2835 IEC958/HDMI1 - Direct hardware device without any conversions plughw:CARD=ALSA,DEV=0 - bcm2835 ALSA, bcm2835 ALSA - Hardware device with all software conversions plughw:CARD=ALSA,DEV=1 - bcm2835 ALSA, bcm2835 IEC958/HDMI - Hardware device with all software conversions plughw:CARD=ALSA,DEV=2 - bcm2835 ALSA, bcm2835 IEC958/HDMI1 - Hardware device with all software conversions usbstream:CARD=ALSA- bcm2835 ALSA - USB Stream Output Also is it worth setting the MAC address or anything else to ensure it always works? SB3 -> Quad 909 -> Quad Electrostatic speakers, Quad 405 -> TBI subwoofer 3 x SB3s + SB Radio Rotel RSP1068 surround processor, Quad 99 -> B surround rbl's Profile: http://forums.slimdevices.com/member.php?userid=4517 View this thread: http://forums.slimdevices.com/showthread.php?t=112025 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] Running LMS on Raspberry Pi for newbie to the Pi
hagensieker wrote: > Try this. I made this a year or two ago. Been running LMS on pi's for > years. > > https://www.hagensieker.com/wordpress/2018/06/12/302/ This worked for me but I had to change ExecStart in squeezelite.service file a tiny bit. Now SqueezeLite automatically starts at boot. sudo nano /etc/systemd/system/squeezelite.service [Unit] Description=Squeezelite After=network.target [Service] ExecStart=/usr/bin/squeezelite -o sysdefault:CARD=ALSA -n Pi_SqueezeliteService -C 5 -d output=info [Install] WantedBy=multi-user.target SB3 -> Quad 909 -> Quad Electrostatic speakers, Quad 405 -> TBI subwoofer 3 x SB3s + SB Radio Rotel RSP1068 surround processor, Quad 99 -> B surround rbl's Profile: http://forums.slimdevices.com/member.php?userid=4517 View this thread: http://forums.slimdevices.com/showthread.php?t=112025 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] Running LMS on Raspberry Pi for newbie to the Pi
Man in a van wrote: > I think maybe you were unfortunate with the guide you found > > I started, first with the Local Player Plugin in LMS, then migrated to > Gerrelts garage (Gerrelt is also a member here) > > http://www.gerrelt.nl/RaspberryPi/wordpress/ > > which is still the basis for how I do my installs. > > If you select Analogue from the Speaker icon on the Raspbian Desktop > (right click) and use the Add/Remove Software route or the sudo apt > install route then it just loads at boot. > > I use Gerrelt's method because I can set the Autostart and Autoplay > function (which is also available within piCorePlayer) but is a step to > far for me, as it might need a script alteration I'm not capable off. > > Plus I noticed that you have Jack and PulseAudio installed and I never > bother with, or have experience of those. > > *bpa* is a wiley fox :p don't you think ? and all the other devs :):) > > ronnie > > check your pm Well everything is now running albeit without auto start for squeezelite. I also note that, unlike in Windows where I eventually gave up with Squeezelite, everything is sync'd properly! I'll check through the links and everything on Monday and I'm sure I'll get the auto start to run. Huge thanks to everyone - yes - v smart and helpful, I have seen bpa a couple of times and always seems to sort the problem out! SB3 -> Quad 909 -> Quad Electrostatic speakers, Quad 405 -> TBI subwoofer 3 x SB3s + SB Radio Rotel RSP1068 surround processor, Quad 99 -> B surround rbl's Profile: http://forums.slimdevices.com/member.php?userid=4517 View this thread: http://forums.slimdevices.com/showthread.php?t=112025 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] Running LMS on Raspberry Pi for newbie to the Pi
bpa wrote: > > How do you want it to run ? It would be nice if it just ran automatically at boot, preferably without a window having to be open. Was this the problem all the time, I just had to start squeezelite? I don't think that was mentioned in the installation guides. SB3 -> Quad 909 -> Quad Electrostatic speakers, Quad 405 -> TBI subwoofer 3 x SB3s + SB Radio Rotel RSP1068 surround processor, Quad 99 -> B surround rbl's Profile: http://forums.slimdevices.com/member.php?userid=4517 View this thread: http://forums.slimdevices.com/showthread.php?t=112025 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] Running LMS on Raspberry Pi for newbie to the Pi
bpa wrote: > OK "squeezelite -l " is a command it list all playable devices > > "-o " is the option for the device name to be used > "-n " is the option for the player name > "-C 5" means release the output device if not used withing 5 seconds. > "-d" is the logging output control > > The following will play to device "sysdefault:CARD=ALSA" name the > player "Testplay1" , release theoutput device and enable logging when > trying to use the output device > > Code: > > > squeezelite -o sysdefault:CARD=ALSA -n Testplay1 -C 5 -d output=info > > > Progress! It works and appears in LMS! :) I get the following output - seems odd that there is a memory error (FWIW it's a 4GB Pi 4) [16:47:40.380667] output_init_alsa:817 init output [16:47:40.380858] output_init_alsa:846 requested alsa_buffer: 40 alsa_period: 4 format: any mmap: 1 [16:47:40.417307] output_init_common:410 supported rates: 384000 352800 192000 176400 96000 88200 48000 44100 32000 24000 22500 16000 12000 11025 8000 [16:47:40.417356] output_init_alsa:860 unable to lock memory: Cannot allocate memory [16:47:40.428999] output_flush:423 flush output buffer [16:47:41.526715] output_thread:638 open output device: sysdefault:CARD=ALSA [16:47:41.526871] alsa_open:355 opening device at: 44100 [16:47:41.528253] alsa_open:406 opened device sysdefault:CARD=ALSA using format: S32_LE sample rate: 44100 mmap: 1 [16:47:41.528537] alsa_open:485 buffer: 40 period: 4 -> buffer size: 1776 period size: 444 [16:47:41.656696] _output_frames:146 track start sample rate: 44100 replay_gain: 0 If I close the Terminal window then it stops working.. SB3 -> Quad 909 -> Quad Electrostatic speakers, Quad 405 -> TBI subwoofer 3 x SB3s + SB Radio Rotel RSP1068 surround processor, Quad 99 -> B surround rbl's Profile: http://forums.slimdevices.com/member.php?userid=4517 View this thread: http://forums.slimdevices.com/showthread.php?t=112025 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] Running LMS on Raspberry Pi for newbie to the Pi
bpa wrote: > Ensuring squeezelite is not running as a service. > Can you run squeezelite on a command line like aplay and does it work > with the same audio device. Sorry, not entirely sure what you mean. I can do say "squeezelite -l" and I get the following output Output devices: default- Playback/recording through the PulseAudio sound server null - Discard all samples (playback) or generate zero samples (capture) jack - JACK Audio Connection Kit pulse - PulseAudio Sound Server sysdefault:CARD=ALSA - bcm2835 ALSA, bcm2835 ALSA - Default Audio Device dmix:CARD=ALSA,DEV=0 - bcm2835 ALSA, bcm2835 ALSA - Direct sample mixing device dmix:CARD=ALSA,DEV=1 - bcm2835 ALSA, bcm2835 IEC958/HDMI - Direct sample mixing device dmix:CARD=ALSA,DEV=2 - bcm2835 ALSA, bcm2835 IEC958/HDMI1 - Direct sample mixing device dsnoop:CARD=ALSA,DEV=0 - bcm2835 ALSA, bcm2835 ALSA - Direct sample snooping device dsnoop:CARD=ALSA,DEV=1 - bcm2835 ALSA, bcm2835 IEC958/HDMI - Direct sample snooping device dsnoop:CARD=ALSA,DEV=2 - bcm2835 ALSA, bcm2835 IEC958/HDMI1 - Direct sample snooping device hw:CARD=ALSA,DEV=0 - bcm2835 ALSA, bcm2835 ALSA - Direct hardware device without any conversions hw:CARD=ALSA,DEV=1 - bcm2835 ALSA, bcm2835 IEC958/HDMI - Direct hardware device without any conversions hw:CARD=ALSA,DEV=2 - bcm2835 ALSA, bcm2835 IEC958/HDMI1 - Direct hardware device without any conversions plughw:CARD=ALSA,DEV=0 - bcm2835 ALSA, bcm2835 ALSA - Hardware device with all software conversions plughw:CARD=ALSA,DEV=1 - bcm2835 ALSA, bcm2835 IEC958/HDMI - Hardware device with all software conversions plughw:CARD=ALSA,DEV=2 - bcm2835 ALSA, bcm2835 IEC958/HDMI1 - Hardware device with all software conversions usbstream:CARD=ALSA- bcm2835 ALSA - USB Stream Output SB3 -> Quad 909 -> Quad Electrostatic speakers, Quad 405 -> TBI subwoofer 3 x SB3s + SB Radio Rotel RSP1068 surround processor, Quad 99 -> B surround rbl's Profile: http://forums.slimdevices.com/member.php?userid=4517 View this thread: http://forums.slimdevices.com/showthread.php?t=112025 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] Running LMS on Raspberry Pi for newbie to the Pi
I used aplay to play a .wav file which I could hear through the headphone socket. I uninstalled squeezelite by running "sudo apt-get remove squeezelite". I then reinstalled it with "sudo apt-get install squeezelite". I noticed that when doing "sudo nano /etc/default//squeezelite" the original file that I had edited was still there which seems odd. I didn't reboot after uninstalling, but rebooted after reinstalling. Still doesn't work! Very odd! SB3 -> Quad 909 -> Quad Electrostatic speakers, Quad 405 -> TBI subwoofer 3 x SB3s + SB Radio Rotel RSP1068 surround processor, Quad 99 -> B surround rbl's Profile: http://forums.slimdevices.com/member.php?userid=4517 View this thread: http://forums.slimdevices.com/showthread.php?t=112025 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] Running LMS on Raspberry Pi for newbie to the Pi
I get the following results: ps -A | grep squeeze 449 ?00:00:00 squeezeboxserve 457 ?00:02:26 squeezeboxserve fuser -v /dev/snd/* USERPID ACCESS COMMAND /dev/snd/controlC0: pi 619 F lxpanel pi 646 F pulseaudio I have tried waiting for network and boot, and it made no difference... SB3 -> Quad 909 -> Quad Electrostatic speakers, Quad 405 -> TBI subwoofer 3 x SB3s + SB Radio Rotel RSP1068 surround processor, Quad 99 -> B surround rbl's Profile: http://forums.slimdevices.com/member.php?userid=4517 View this thread: http://forums.slimdevices.com/showthread.php?t=112025 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] Running LMS on Raspberry Pi for newbie to the Pi
bpa wrote: > I think it is about sharing the audio device which can give the error > "unable to open output device" > > Try to use as audio device - plughw:CARD=ALSA,DEV=0 > also in EXTRA_ARGS have "-C 5" Still no joy. Not sure what else would be using the audio device as nothing else has been installed except LMS, and 2 attempts at Squeezelite. SB3 -> Quad 909 -> Quad Electrostatic speakers, Quad 405 -> TBI subwoofer 3 x SB3s + SB Radio Rotel RSP1068 surround processor, Quad 99 -> B surround rbl's Profile: http://forums.slimdevices.com/member.php?userid=4517 View this thread: http://forums.slimdevices.com/showthread.php?t=112025 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] Running LMS on Raspberry Pi for newbie to the Pi
Yes I did a reboot. I also tried your changes (line in red, and commenting out EXTRA) which didn't help. Result of "sudo /etc/init.d/squeezelite status -l" squeezelite.service - Squeezelite Loaded: loaded (/etc/systemd/system/squeezelite.service; enabled; vendor preset: enabled) Active: inactive (dead) since Sat 2020-04-25 11:47:49 BST; 1h 3min ago Process: 449 ExecStart=/usr/bin/squeezelite -o sysdefault:CARD=ALSA,DEV=1 -n calendar -s 192.168.1.129 -a 80:4 -m 00:0a:95:9d:68:16 (code=exited, status=0/SUCCESS) Main PID: 449 (code=exited, status=0/SUCCESS) Apr 25 11:47:48 raspberrypi systemd[1]: Started Squeezelite. Apr 25 11:47:49 raspberrypi squeezelite[449]: [11:47:49.309590] test_open:294 playback open error: No such file or directory Apr 25 11:47:49 raspberrypi squeezelite[449]: [11:47:49.309692] output_init_common:381 unable to open output device Apr 25 11:47:49 raspberrypi systemd[1]: squeezelite.service: Succeeded. pi@raspberrypi:~ $ Are my two attempted installs getting muddled up? The first few lines look like the first attempted install (www.hagensieker.com/wordpress/2018/06/12/302/) which didn't work as I included the MAC address with that. No idea how to get rid of that install. And result of "squeezelite -l" Output devices: default- Playback/recording through the PulseAudio sound server null - Discard all samples (playback) or generate zero samples (capture) jack - JACK Audio Connection Kit pulse - PulseAudio Sound Server sysdefault:CARD=ALSA - bcm2835 ALSA, bcm2835 ALSA - Default Audio Device dmix:CARD=ALSA,DEV=0 - bcm2835 ALSA, bcm2835 ALSA - Direct sample mixing device dmix:CARD=ALSA,DEV=1 - bcm2835 ALSA, bcm2835 IEC958/HDMI - Direct sample mixing device dmix:CARD=ALSA,DEV=2 - bcm2835 ALSA, bcm2835 IEC958/HDMI1 - Direct sample mixing device dsnoop:CARD=ALSA,DEV=0 - bcm2835 ALSA, bcm2835 ALSA - Direct sample snooping device dsnoop:CARD=ALSA,DEV=1 - bcm2835 ALSA, bcm2835 IEC958/HDMI - Direct sample snooping device dsnoop:CARD=ALSA,DEV=2 - bcm2835 ALSA, bcm2835 IEC958/HDMI1 - Direct sample snooping device hw:CARD=ALSA,DEV=0 - bcm2835 ALSA, bcm2835 ALSA - Direct hardware device without any conversions hw:CARD=ALSA,DEV=1 - bcm2835 ALSA, bcm2835 IEC958/HDMI - Direct hardware device without any conversions hw:CARD=ALSA,DEV=2 - bcm2835 ALSA, bcm2835 IEC958/HDMI1 - Direct hardware device without any conversions plughw:CARD=ALSA,DEV=0 - bcm2835 ALSA, bcm2835 ALSA - Hardware device with all software conversions plughw:CARD=ALSA,DEV=1 - bcm2835 ALSA, bcm2835 IEC958/HDMI - Hardware device with all software conversions plughw:CARD=ALSA,DEV=2 - bcm2835 ALSA, bcm2835 IEC958/HDMI1 - Hardware device with all software conversions usbstream:CARD=ALSA- bcm2835 ALSA - USB Stream Output SB3 -> Quad 909 -> Quad Electrostatic speakers, Quad 405 -> TBI subwoofer 3 x SB3s + SB Radio Rotel RSP1068 surround processor, Quad 99 -> B surround rbl's Profile: http://forums.slimdevices.com/member.php?userid=4517 View this thread: http://forums.slimdevices.com/showthread.php?t=112025 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] Running LMS on Raspberry Pi for newbie to the Pi
kidstypike wrote: > if you've no experience with Raspbian, why didn't you use piCorePlayer > as advised? Everything is done for you, the squeezelite player works > straight out of the box. If you want to use a Pi for other stuff get > another one. I have at least 10 of the things. In the longer run I want to get to know about the Pi and use it for other things, so I decided to "be brave" and launch myself straight into it. I was very pleased when it proved so easy to get LMS running reliably. I never actually intended to use the Pi for Squeezelite since my experience on Windows was not good (esp with sync'ing) and I ended up just hooking another SB3 onto my PC to get rid of Squeezelite. So I didn't originally intend to even use Squeezelite on the Pi .. SB3 -> Quad 909 -> Quad Electrostatic speakers, Quad 405 -> TBI subwoofer 3 x SB3s + SB Radio Rotel RSP1068 surround processor, Quad 99 -> B surround rbl's Profile: http://forums.slimdevices.com/member.php?userid=4517 View this thread: http://forums.slimdevices.com/showthread.php?t=112025 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] Running LMS on Raspberry Pi for newbie to the Pi
Well I got the Pi4 and within a couple of hours had LMS running on Raspian and running my 4 sync'd SB3s perfectly with the Pi4 on Wifi. That includes BC iPlayer! So far it seems more reliable and effortless than on Windows which gave me 2 decades of niggles. Fingers crossed!!! Thanks to everyone getting me on this path in the first place. But I am having no luck with Squeezelite. I installed it by one method and then found another simpler method which I did, neither got Squeezelite to appear in LMS. sudo apt-get update sudo apt-get upgrade sudo apt-get install squeezelite sudo apt-get install libflac-dev Then using sudo nano /etc/default/squeezelite I edited the config file to be: SL_NAME="$(hostname -s)" SL_SOUNDCARD="sysdefault:CARD=ALSA" SB_SERVER_IP="192.168.1.129" SB_EXTRA_ARGS="-a 180" I got sysdefault:CARD=ALSA by running "squeezelite -l". I want sound to come out of the headphone jack. Any ideas where I have gone wrong? I have no knowledge of raspian and therefore am stuck how to diagnose the problem. SB3 -> Quad 909 -> Quad Electrostatic speakers, Quad 405 -> TBI subwoofer 3 x SB3s + SB Radio Rotel RSP1068 surround processor, Quad 99 -> B surround rbl's Profile: http://forums.slimdevices.com/member.php?userid=4517 View this thread: http://forums.slimdevices.com/showthread.php?t=112025 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] Running LMS on Raspberry Pi for newbie to the Pi
Man in a van wrote: > let me know which pi you decide on and which OS you want and I can knock > up an image and send you a download link :) > > ronnie > > if you get a couple od sd cards you can then play at leisure :) > > ronnie Thanks very much for the offer, but I'll try doing it from scratch as I have to learn the ropes. If I run into problems then I'll take you up on your offer. Think I'll start with PiCorePlayer for quick proof of concept and then move to Raspian... rbl's Profile: http://forums.slimdevices.com/member.php?userid=4517 View this thread: http://forums.slimdevices.com/showthread.php?t=112025 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] Running LMS on Raspberry Pi for newbie to the Pi
d6jg wrote: > I totally agree but without any Linux skills I think that may be a bit > of a struggle. If the principle purpose is to get a working LMS then Id > stick with piCorePlayer but suggest getting a second Pi - perhaps a 3B - > to learn some Linux. > It sounds like Raspian will give me a fully functional Pi with LMS still working 100% which is its main purpose. I am an oldie - grew up on MS-DOS (and still prefer it to Windows explorer much of the time) and C/C++, but I have never touched Unix. is Raspian going to be a big learning curve as I don't have a lot of time at the moment, in which case Ill go for piCorePlayer? rbl's Profile: http://forums.slimdevices.com/member.php?userid=4517 View this thread: http://forums.slimdevices.com/showthread.php?t=112025 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] Running LMS on Raspberry Pi for newbie to the Pi
kidstypike wrote: > > > Not sure what you mean by temperature sensors? piCorePlayer displays > it's own CPU graph. > > 30088 I mean the various accessories that can be added to the Pi - sensors, motors etc.. It seems that piCorePlayer is a stripped down o/s focusing on audio and I am just wondering if there is any major loss of Pi functionality (over and above LMS) as a result? rbl's Profile: http://forums.slimdevices.com/member.php?userid=4517 View this thread: http://forums.slimdevices.com/showthread.php?t=112025 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] Running LMS on Raspberry Pi for newbie to the Pi
d6jg wrote: > As it is going to be an LMS server then Pi4 with 4GB RAM. You should > definitely wire it. You also need to to add a USB HD to store your > music. The Pi4 benefits from USB3 so look for a 1TB USB3 SSD disk. > As to OS look at piCoreplayer. No Linux skills required and lots of help > here which will explain how to install it, add LMS and generally get it > going. Perfect. From a quick look it seems that piCorePlayer is a very stripped down o/s focused on audio stuff. So a couple of questions: - will I be able to stream radio, esp. using BBC iPlayer (or PlayHLS), via LMS (as I do in Win10)? - will I still be able to use the Pi for all the other sorts of things that it can do. (e.g. use temperature sensors)? rbl's Profile: http://forums.slimdevices.com/member.php?userid=4517 View this thread: http://forums.slimdevices.com/showthread.php?t=112025 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
[SlimDevices: Unix] Running LMS on Raspberry Pi for newbie to the Pi
Hi - I want to run LMS on a Raspberry Pi (rather than Win10) for a bunch of reasons. I have zero experience of the Pi and still need to buy one. Can anyone point me in the right direction? I need it to: - connect to 3 wired SB3s and a wireless SB Radio, all sync'd - play a 200GB FLAC library - stream internet radio - ideally to include BBC iPlayer (or PlayHLS) - the Raspberry Pi can be either wired or wireless (would slightly prefer wired for reliability when syncing) Questions: - which Pi version to buy? The lastest Pi 4? Or a cheaper Pi 3 B+? Or something else? - is there a beginners guide to get me going? I don't even know which operating system to use! I am used to Windows and DOS (! - remember that?) rbl's Profile: http://forums.slimdevices.com/member.php?userid=4517 View this thread: http://forums.slimdevices.com/showthread.php?t=112025 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix