Home of the Squeezebox™ & Transporter® network music players.
Page 5 of 5 FirstFirst ... 345
Results 41 to 42 of 42
  1. #41
    Junior Member
    Join Date
    May 2019
    Posts
    27
    Quote Originally Posted by paul- View Post
    It should be and the soundcard control page. Button right by the soundcard selection drop down on the squeezelite page.
    Thanks, I did't think to check card control, I've disabled onboard sound now.

    Also, I may have a solution to the whole log file filling up memory problem.

    This shellscript monitors the size of the logfile then truncates it if it gets too large:

    Code:
    # Log Monitor - Used to monitor the size of a logfile
    # Will truncate log file if it gets too large
    # Start of script
    
    # Set max size of logfile here, in bytes. Default = 1 Megabyte
    MAXSIZE="1048576"
    
    # Delete this file if you want script to stop running
    RUNFILE="/tmp/log_monitor"
    touch "$RUNFILE"
    
    # Log file to monitor
    LOGFILE="/var/log/pcp_squeezelite.log"
    
    while [ -f "$RUNFILE" ]; do
        # Get filesize in bytes
        LOGSIZE=$(ls "$LOGFILE" -l | awk '{print $5}')
    
        # Compare
        if [ "$LOGSIZE" -gt "$MAXSIZE" ]; then
            echo "Filesize $LOGSIZE is too large, truncating at $(date)" | tee "$LOGFILE"
        else
            echo "Filesize $LOGSIZE is OK"
        fi
    
        # Wait 1 min
        sleep 60
    done
    exit 0
    # End of script
    I've added it to my $HOME dir, called it 'log_monitor.sh' and load it on boot using the User command setting:

    /home/tc/log_monitor.sh

    Adjust MAXSIZE to however large you want to log file to get before it gets truncated.

  2. #42
    Senior Member
    Join Date
    May 2017
    Posts
    551
    Quote Originally Posted by paul- View Post
    It should be and the soundcard control page. Button right by the soundcard selection drop down on the squeezelite page.
    All still running without any change or reboot.
    Internal soundcard seems to be disabled by default
    Name:  Audio disabled by default.jpg
Views: 19
Size:  40.1 KB
    Did not manually remove the marker.
    SqueezeBoxes: 1x Transporter (Living room) 1x SB2 (shed), 1x Radio (Kitchen), 1x Boom (Dining room), 1x piCorePlayer (jacuzzi), 1x piCorePlayer (Garden) 1x OSMC + Squeezelite (Movie room), 1x Touch (Study 2), few spare unit's
    Server: LMS on Pi3 7.9.1. on PcP 3.21
    Network: AVM Fritzbox, Netgear Smart Switch 24p, 3x Ubiquity

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •