PasTim wrote: 
> I've already got a systemd way to start squeezelite.   The weird issue
> is that if I run it as an ordinary user (manually, or systemd) it runs
> OK.  If I run it as localplayer (ie as squeezeboxserver) it times out on
> the alsa device every time.  This did not happen without the alsa
> equalizer.  Running as localplayer or at startup I get endless
> timeouts.
> 
> Changing my systemd service to run as an ordinary user, it works, so I
> can bow test it.  After a few brief tests it's useful.  I now need to
> take some time to set it right for my ears and heaphones.
> 
> Localplayer log (lots of this):
> > 
Code:
--------------------
  >   > 
  > Failed to open controls file:/usr/share/squeezeboxserver/.alsaequal.bin.
  > [10:36:33.999059] output_thread:663 waiting for device equal to return
  > [10:36:38.999927] ALSA snd_pcm_hw_open:1602 open '/dev/snd/pcmC1D0p' failed 
(-16)
  > [10:36:39.000054] output_thread:663 waiting for device equal to return
  > [10:36:40.165305] output_flush:424 flush output buffer
  > [10:36:44.000863] ALSA snd_pcm_hw_open:1602 open '/dev/snd/pcmC1D0p' failed 
(-16)
  > 
--------------------
> > 
> 
> Running at startup (systemd) I get lots of:
> > 
Code:
--------------------
  >   > 
  > 12:45:46.574071] output_thread:663 waiting for device equal to return
  > [12:45:51.002260] process:526 strm
  > [12:45:51.002430] process_strm:272 strm command t
  > [12:45:51.002508] sendSTAT:187 STAT: STMt
  > [12:45:51.574835] ALSA snd_pcm_hw_open:1602 open '/dev/snd/pcmC1D0p' failed 
(-16)
  > [12:45:51.574983] output_thread:663 waiting for device equal to return
  > [12:45:55.003294] process:526 strm
  > [12:45:55.003481] process_strm:272 strm command t
  > [12:45:55.003566] sendSTAT:187 STAT: STMt
  > [12:45:56.575701] ALSA snd_pcm_hw_open:1602 open '/dev/snd/pcmC1D0p' failed 
(-16)
  > [12:45:56.575851] output_thread:663 waiting for device equal to return
  > [12:45:59.000763] process:526 strm
  > [12:45:59.000937] process_strm:272 strm command t
  > [12:45:59.001015] sendSTAT:187 STAT: STMt
  > [12:46:01.576564] ALSA snd_pcm_hw_open:1602 open '/dev/snd/pcmC1D0p' failed 
(-16)
  > 
--------------------
> > 
I've now found the source of the problem running squeezelite under user
squeezeboxserver.  It needs the alsa equalization definitions file
.alsaequal.bin to be in /usr/share/squeezeboxserver.  All a bit obvious
really.  I can now create an equalization set-up as a normal user, and
then copy to the squeezeboxserver directory.

This works both for squeezelite as a systemd service, and for
localplayer (using the latest squeezelite), both running under user
squeezeboxserver.

The alsa equalizer does work.  I suspect my ordinary headphones aren't
as good as the ones with a built-in equalizer, so I'll continue normal
listening with the latter connected by USB.  However, I do now have the
option to listen with other devices modified using the alsa equalizer,
which is a relief for me (I like to have backups for everything...). :)



LMS 7.9.2 on VortexBox Midi box, Xubuntu 18.04, FLACs 16->24 bit,
44.1->192kbps.  2 Touchs & EDO.
LMS plugin UPnP/DLNA Bridge to MF M1 CLiC (A308CR amp & ESLs) & Marantz
CR603 UPnP renderers.  
Also Minimserver & Upplay to same & to upmpdcli/mpd PC renderers.  
Squeezelite to Meridian USB Explorer DAC to PC speakers/headphones.  
Wireless Xubuntu 18.04 laptop firefox/upplay or Android 'phone with
Squeeze-Commander/BubbleUPnP controls LMS/Minimserver.
------------------------------------------------------------------------
PasTim's Profile: http://forums.slimdevices.com/member.php?userid=41642
View this thread: http://forums.slimdevices.com/showthread.php?t=105309

_______________________________________________
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter

Reply via email to