-
Notifications
You must be signed in to change notification settings - Fork 4
/
TODO
75 lines (56 loc) · 1.68 KB
/
TODO
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
1. alsa.conf
$ sudo sed -i 's/#$//g' /usr/share/alsa/alsa.conf.{min,mix,plug}
$ sudo sed -i '0,/^pcm/s/^pcm/!pcm/' /usr/share/alsa/alsa.conf.{min,mix,plug}
2. /etc/rc.local
echo 55698 > /sys/devices/system/cpu/cpufreq/ondemand/sampling_rate || true
echo 4899051 > /sys/kernel/debug/sched/migration_cost_ns || true
3. sysctl.conf
net.ipv4.tcp_rmem = 4637 88319 3345789
net.ipv4.tcp_wmem = 4589 89970 3455761
vm.max_map_count = 672161
4. No asserts for alsa & mpd
./configure ... --disable-debug --with-debug=no
meson ... -Db_ndebug=true
5. mpd.conf
audio_output {
device "hw"
}
input_cache {
#size "465 MB"
size "487453266"
}
database {
plugin "simple"
path "/var/lib/mpd/database"
}
#mixer_type "none"
$ sudo sed -i '/^#/d' /etc/mpd.conf
6. ap2renderer
Preload buffer [108794]
ALSA Period frames [3744]
ALSA Buffer frames [14949]
7. mpv.conf
demuxer-max-bytes=80226785
no-icc-cache
no-gpu-shader-cache
$ sudo sed -i '/^#/d' .config/mpv/mpv.conf
8. rc.local
### usb mount
if [ "$usbmount" = on ]; then
blkid | while read line; do
uuid=$(echo $line | grep -io uuid.* | cut -d\" -f2)
drive=$(echo $line | cut -d: -f1)
if [ -n "$uuid" ] && ! grep -q $uuid /etc/fstab && ! mount | grep -q "$drive"; then
type=$(echo $line | grep -o TYPE.* | cut -d\" -f2)
case $type in
vfat) opt="ro,codepage=949,iocharset=utf8" ;;
ntfs) opt="ro,umask=022" ;;
*) opt="ro" ;;
esac
[ -d "/mnt/$uuid" ] || sudo mkdir -p "/mnt/$uuid"
sudo mount -o "$opt" "$drive" "/mnt/$uuid"
fi
done
fi
9. kr2mpd
cbs) pls "https://m-aac.cbs.co.kr/mweb_cbs939/_definst_/cbs939.stream/playlist.m3u8" ;;