BosseJ wrote: 
> > Thorden wrote: 
> > ?? Didn't change anything, still no output devices available for user
> > admin. 
> > 
> > A drastic way to fix this would be to change the permissions under
> > /dev/snd: execute > > 
Code:
--------------------
  > >   > > sudo chmod g+rw /dev/snd/*
--------------------
> > > > 
> > Test if the user you're logged in to can see the audio devices with
> > "./squeezelite-x86-64 -l".
> > 
> > Sorry if the text was a bit wordy ... hope it helps somewhat though.> > 
> 
> Thanks, Bosse!
> 
> Yes, that made it work! I can now start Squeezelite when logged in as
> admin, no sudo. 
> :)
> 
> But still, Local Player plugin can not start it, which I find very
> odd. 
> 
> Here is the log from Local Player trying:
> 
> > 
Code:
--------------------
  >   > Starting Squeezelite: 
/volume1/@appstore/SqueezeCenter/Cache/InstalledPlugins/Plugins/LocalPlayer/Bin/squeezelite-x86-64
 -d all=debug -f /volume1/@appstore/SqueezeCenter/Logs/localplayer.log
  > 
  > 
/volume1/@appstore/SqueezeCenter/Cache/InstalledPlugins/Plugins/LocalPlayer/Bin/squeezelite-x86-64
 -d all=debug -f /volume1/@appstore/SqueezeCenter/Logs/localplayer.log 
  > [10:45:16.882610] stream_init:294 init stream
  > [10:45:16.882825] stream_init:295 streambuf size: 2097152
  > [10:45:16.884517] output_init_alsa:939 init output
  > [10:45:16.884605] output_init_alsa:979 requested alsa_buffer: 40 
alsa_period: 4 format: any mmap: 1
  > [10:45:16.884632] output_init_common:350 outputbuf size: 3528000
  > [10:45:16.884704] output_init_common:374 idle timeout: 0
  > [10:45:16.906002] ALSA snd_pcm_dmix_open:985 unable to create IPC semaphore
  > [10:45:16.906083] test_open:281 playback open error: Permission denied
  > [10:45:16.906103] output_init_common:384 unable to open output device: 
default
  > 
--------------------
> > 
> 
> And here is the log when admin executes the exact same command from
> command line:
> 
> > 
Code:
--------------------
  >   > 
/volume1/@appstore/SqueezeCenter/Cache/InstalledPlugins/Plugins/LocalPlayer/Bin/squeezelite-x86-64
 -d all=debug -f /volume1/@appstore/SqueezeCenter/Logs/localplayer.log 
  > [10:46:34.936102] stream_init:294 init stream
  > [10:46:34.936296] stream_init:295 streambuf size: 2097152
  > [10:46:34.938050] output_init_alsa:939 init output
  > [10:46:34.938140] output_init_alsa:979 requested alsa_buffer: 40 
alsa_period: 4 format: any mmap: 1
  > [10:46:34.938168] output_init_common:350 outputbuf size: 3528000
  > [10:46:34.938234] output_init_common:374 idle timeout: 0
  > [10:46:34.949219] output_init_common:414 supported rates: 768000 705600 
384000 352800 192000 176400 96000 88200 48000 44100 32000 24000 22500 16000 
12000 11025 8000 
  > [10:46:34.949343] output_init_alsa:1003 unable to lock memory: Cannot 
allocate memory
  > [10:46:34.952234] output_thread:687 open output device: default
  > [10:46:34.952245] output_init_alsa:1026 unable to set output sched fifo: 
Operation not permitted
  > [10:46:34.952361] alsa_open:351 opening device at: 44100
  > [10:46:34.955067] alsa_open:422 opened device default using format: S32_LE 
sample rate: 44100 mmap: 1
  > [10:46:34.955183] alsa_open:513 buffer: 40 period: 4 -> buffer size: 3763 
period size: 940
  > [10:46:34.961514] decode_init:153 init decode
  > [10:46:34.961669] register_dsd:908 using dsd to decode dsf,dff
  > [10:46:34.962199] register_ff:795 using ffmpeg to decode alc
  > [10:46:34.962240] register_ff:779 using ffmpeg to decode wma,wmap,wmal
  > [10:46:34.962259] register_faad:641 using faad to decode aac
  > [10:46:34.962279] register_vorbis:334 using vorbis to decode ogg
  > [10:46:34.962297] register_flac:294 using flac to decode flc
  > [10:46:34.962316] register_pcm:433 using pcm to decode aif,pcm
  > [10:46:34.962340] register_mad:414 using mad to decode mp3
  > [10:46:34.962382] decode_init:187 include codecs:  exclude codecs: 
  > [10:46:34.962490] discover_server:784 sending discovery
  > [10:46:34.962832] discover_server:795 got response from: 10.0.0.15:3483
  > [10:46:34.962895] slimproto:883 connecting to 10.0.0.15:3483
  > [10:46:34.963043] slimproto:922 connected
  > [10:46:34.963065] slimproto:933 local player
  > [10:46:34.963082] sendHELO:130 mac: 00:11:32:61:0e:11
  > [10:46:34.963100] sendHELO:132 cap: 
Model=squeezelite,AccuratePlayPoints=1,HasDigitalOut=1,HasPolarityInversion=1,Firmware=v1.9.0-1119,ModelName=SqueezeLite,MaxSampleRate=768000,dsf,dff,alc,wma,wmap,wmal,aac,ogg,flc,aif,pcm,mp3,loc
  > [10:46:35.117085] process:514 strm
  > [10:46:35.117155] process_strm:264 strm command q
  > [10:46:35.117174] decode_flush:229 decode flush
  > [10:46:35.117190] output_flush:427 flush output buffer
  > [10:46:35.117207] sendSTAT:179 STAT: STMf
  > [10:46:35.117406] process:514 strm
  > [10:46:35.117432] process_strm:264 strm command q
  > [10:46:35.117449] decode_flush:229 decode flush
  > [10:46:35.117465] output_flush:427 flush output buffer
  > [10:46:35.117483] sendSTAT:179 STAT: STMf
  > [10:46:35.117603] process:514 setd
  > [10:46:35.117677] process:514 setd
  > [10:46:35.117783] process:514 aude
  > [10:46:35.117804] process_aude:408 enable spdif: 1 dac: 1
  > [10:46:35.118017] process:514 audg
  > [10:46:35.118042] process_audg:426 audg gainL: 2560 gainR: 2560 adjust: 1
  > [10:46:35.118059] set_volume:233 setting internal gain left: 2560 right: 
2560
  > 
--------------------
> > 
> 
> The only process I can find is this:
> 15149 ?        Ss     0:59 /usr/bin/perl
> /volume1/@appstore/SqueezeCenter/slimserver.pl --daemon --pidfile
> /volume1/@appstore/SqueezeCenter/Cache/slimserver.pid --cached
> 
> Which corresponds to the NAS GUI:
> 
> 26832
> 
> And as far as I can tell, this process is runned by user admin. 
> 
> > 
Code:
--------------------
  >   > admin@Akela2:~$ sudo ps -u -p 15149
  > USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
  > admin    15149  0.0  4.2 293024 83480 ?        Ss   Feb26   1:06 
/usr/bin/perl /volume1/@appstore/SqueezeCenter/slimserver.pl --daemon --pidfile 
/volume1/@appstore/SqueezeCenter/Cache/slimserver.pid --cachedir 
/volume1/@appstore/SqueezeCenter/Cache --logdir 
/volume1/@appstore/SqueezeCenter/Logs --prefsdir
--------------------
> > 
> 
> So why doesn't Local Player start squeezelite as admin?


+-------------------------------------------------------------------+
|Filename: Skjermbilde.PNG                                          |
|Download: http://forums.slimdevices.com/attachment.php?attachmentid=26832|
+-------------------------------------------------------------------+

------------------------------------------------------------------------
Thorden's Profile: http://forums.slimdevices.com/member.php?userid=66927
View this thread: http://forums.slimdevices.com/showthread.php?t=97766

_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins

Reply via email to