Triode wrote: 
> Is squeezelite running as root or able to access real time priority? 
> (try as root to see if this helps, if so then look up how to allow the
> username to use real time priorites - its on this thread somewhere...) 
> Try running squeezelite with -d output=debug to see if you see error
> messages before or after doing this.
I'm not running squeezelite as root but the 'daadmin' user is a member
of the audio group.  Here are my env vars and the portion of the sysv
init.d script where I launch the squeezelite daemon at startup:

/etc/default/squeezelite:

Code:
--------------------
    
  SQLITE_DESC="Squeezelite v1.6.5"
  SQLITE_BIN="/usr/local/bin/squeezelite"
  SQLITE_USER="daadmin"
  SQLITE_AUDIODEV="sysdefault:CARD=VX1"
  SQLITE_OPTIONS=""
  SQLITE_DEBUG="all=debug"
  SQLITE_LOG="/var/log/squeezelite/squeezelite.log"
  SQLITE_MAC="00:04:20:62:61:ae"
  SQLITE_PLAYERNAME="SQUEEZENAS_SqueezeLite"
  SQLITE_LMSIP="127.0.0.1"
  
--------------------


/etc/init.d/squeezelite:

Code:
--------------------
    
  d_check_running() {
        if [ -e $PIDFILE ]; then
                pidofproc -p "$PIDFILE" "$SQLITE_BIN" > /dev/null 2>&1 && 
status=0 || status=$?
                if [ $status = 0 ]; then
                        log_daemon_msg "${SQLITE_DESC} is already running"
                        log_end_msg 0
                        exit 0
                fi
        fi
  }
  
  d_start() {
        d_check_running
        log_daemon_msg "Starting" "$SQLITE_DESC"
  
        if start-stop-daemon --start --quiet \
                --chuid $SQLITE_USER \
                --pidfile $PIDFILE \
                --exec $SQLITE_BIN \
                --background \
                --make-pidfile \
                -- \
                -o $SQLITE_AUDIODEV \
                -d $SQLITE_DEBUG \
                -f $SQLITE_LOG \
                -m $SQLITE_MAC \
  -n $SQLITE_PLAYERNAME \
                -s $SQLITE_LMSIP ; then
                log_end_msg 0
        else
                log_end_msg 1
        fi
  }
  
  
--------------------


I tried messing with the PAM suff as suggested by JackOfAll in this
post:
http://forums.slimdevices.com/showthread.php?97046-Announce-Squeezelite-a-small-headless-squeezeplay-emulator-for-linux-(alsa-only)&p=740990&viewfull=1#post740990

..adding this to /etc/security/limits.d/99-audio.conf:
[ code]
@audio   -  rtprio    50
@audio   -  memlock    unlimited

--------------------


This is what I'm now seeing for:

# ps -Leo uid,cls,pid,rtprio,wchan,cmd

Code:
--------------------

1000  TS  1441      - poll_s /usr/local/bin/squeezelite -o sysdefault:CARD=VX1 
-d all debug -f /var/log/squeezelite/squeezelite.log -m 00:04:20:62:61:ae -n 
SQUEEZENAS_SqueezeLite -s 127.0.0.1
1000  TS  1441      - hrtime /usr/local/bin/squeezelite -o sysdefault:CARD=VX1 
-d all debug -f /var/log/squeezelite/squeezelite.log -m 00:04:20:62:61:ae -n 
SQUEEZENAS_SqueezeLite -s 127.0.0.1
1000  TS  1441      - poll_s /usr/local/bin/squeezelite -o sysdefault:CARD=VX1 
-d all debug -f /var/log/squeezelite/squeezelite.log -m 00:04:20:62:61:ae -n 
SQUEEZENAS_SqueezeLite -s 127.0.0.1
1000  TS  1441      - hrtime /usr/local/bin/squeezelite -o sysdefault:CARD=VX1 
-d all debug -f /var/log/squeezelite/squeezelite.log -m 00:04:20:62:61:ae -n 
SQUEEZENAS_SqueezeLite -s 127.0.0.1

--------------------


I'm in a over my head here and I don't really know how to interpret those
results.  Does that look as it should?  Anyway, the "popping" seems to
have abated.  I don't have much content encoded at higher than redbook. 
The one recording at 96kHz & 24 bit that I've got seems to play OK with no
strange artifacts that I can discern.  I hate to declare success without
really knowing what I've done.


------------------------------------------------------------------------
gharris999's Profile: http://forums.slimdevices.com/member.php?userid=115
View this thread: http://forums.slimdevices.com/showthread.php?t=97046

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

Reply via email to