Tag Archives: Linux

Alsa sinewave generator

AUDIODEV=hw:1 play -r 96000 -n synth 60.0 sine 1000 gain 0

CPU Speedstep/Throttling vs Sound Quality

Am vazut ca uneori incercarile de a face un computer dedicat ca sursa, pt un lant audio mai acatarii, au esuat, oamenii preferand a se intoarce catre vechile computere care sunau mai bine.

Din punct de vedere logic suna oarecum ciudat, computerele noi au mai multa putere de calcul, mai multa memorie, un sistem de operare mai bun (de cele mai multe ori pe 64 de biti pt a beneficia de mai mult de 4 GB de memorie), versiuni mai noi ale playerelor etc … Read More →

Bufallo III based streamer

1. BBB + Volumio – Debian updated to Jessie, MPD git 0.19.2

2. I2SoverUSB

3. Bufallo III – stereo config

4. IVY Line stage

 

Power source

1. DAC – Placid HD

2. line stage – Placid HD bipolar

3. BBB – linear power supply 5V

 

Case

Cutie metalica

 

 

volumio bbb – update

install latest volumio release

1. update to jessie

# cp /etc/apt/sources.list{,.bak}
# sed -i -e 's/ \(stable\|wheezy\)/ testing/ig' /etc/apt/sources.list
# apt-get update
# apt-get --download-only dist-upgrade
# apt-get dist-upgrade

2. update to latest kernel – am33x-v3.17 – best use a virtual machine to save time

http://www.eewiki.net/display/linuxonarm/BeagleBone+Black

3. compile mpd from git

http://mpd.wikia.com/wiki/Repositories

http://mpd.wikia.com/wiki/BuildingMPD

4. install missing libraries

apt-get install smbclient libnfs4 libicu52

5. rename old mpd and create symlink to the new one

6. change vim /lib/systemd/system/mpd.service with actual conf path

7. HWCLOCKACCESS=no

vim /etc/default/hwclock

8. monitor – disable?

9. set cpu frequency

cp /usr/share/doc/cpufrequtils/examples/cpufrequtils.sample /etc/default/cpufrequtils

governor performance

10. install i2c

apt-get install i2c-tools

apt-get install python-smbus

i2cdetect -r 2 – check device (48)

 

 

 

ARM – pops dsd play solution

edit

/etc/sysctl.conf

and add to the end of the file

vm.min_free_kbytes=25000

verify

 sysctl -a | grep vm.min_free_kbytes

Kill brutefir

Pt ca brutefir ramane “agatat”, mpd-ul se blocheaza.

Cheap and dirty trick:

1. script pt kill zombie process (nu imi aduc aminte de unde l-am luat)

ps -eo pid,ppid,state,user,comm | awk 'BEGIN { count=0 } $3 ~ /Z/ { count++; system ("kill -9 " $2) } END { print "\n" count " Zombie(s) were slayed" }'

2. adaptat pt rc.local de aici https://coderwall.com/p/x0fqmw

#!/bin/bash
#This script run every 1 seconds

while (sleep 5 && ps -eo pid,ppid,state,user,comm | awk 'BEGIN { count=0 } $3 ~ /Z/ { count++; system ("kill -9 " $2) } END { }' ) &
do
        wait $!
done

3. adauga script in /etc/rc.local