-
Notifications
You must be signed in to change notification settings - Fork 2
/
01_99_Sambilight.init
59 lines (49 loc) · 2.8 KB
/
01_99_Sambilight.init
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
#!/bin/sh
#
# (c) Copyright 1996 - 2022, SamyGO
#
#
. /dtv/SGO.env
##############################################################################################################################################
# Required Parameters
H_LEDS=35; # Horizontal leds count (Top Side)
V_LEDS=19; # Vertical leds count (Left/Right Side)
BOTTOM_GAP=7; # Bottom side gap (Top Size - Bottom Size)
START_OFFSET=68; # Index of first led (Top Left is zero) (H_LEDS + V_LEDS + (H_LEDS - BOTTOM_GAP / 2))
# Optional Parameters
#CLOCKWISE=1; # Led order (Set to 0 for anti-clockwise)
#BLACK_BORDER=1; # Black border detection for automatic profile switching (16:9, 21:9, 4:3, 3:2)
#TV_REMOTE=1; # Enable control with TV remote buttons (Red, Green, Yellow, Blue)
#EXTERNAL=0; # On/Off support for remotely connected leds (Handled on USB device)
#BAUDRATE=921600; # USB Serial baudrate (High baudrate is recommended)
#GFX_LIB=1; # Capture directly from graphics driver resulting +50 FPS and prevents UI from lagging during capture (Experimental! Tested on F, not required/available on H)
#CAPTURE_FREQ=30; # Capture frequency in ms, increase this value if your TV having performance issues (Higher the value, lower the refresh rate. Smooting must be handled on USB device)
#CAPTURE_SIZE=5; # Higher capture size resulting less flickering and more accurate blacks but it affects overall FPS (1=96x54 2=160x90 3=240x135 4=320x180 5=480x270 6=960x540)
#OSD_CAPTURE=1; # Capture with OSD (Only works with GFX_LIB=1)
#FORCE_UPDATE=0; # Force leds to update even colors are not changed (Required for WLED)
# For Testing
#TEST_FRAMES=30; # For configuration and performance testing (Set to 1 for single-shot mode)
#TEST_PROFILE=0; # Profile index for testing (Only for single-shot mode)
#TEST_PATTERN=0; # Display test pattern for selected profile (Only for single-shot mode)
#TEST_SAVE_CAPTURE=0; # Save capture as BMP to /dtv/Sambilight.bmp (Only for single-shot mode)
##############################################################################################################################################
PID=A
if [ $TV_REMOTE -eq 0 ]
then
PID=T
fi
START_SAMBILIGHT="samyGOso -$PID -B -r -l /mnt/opt/privateer/usr/libso/libSambilight.so H_LEDS:$H_LEDS V_LEDS:$V_LEDS BOTTOM_GAP:$BOTTOM_GAP START_OFFSET:$START_OFFSET BAUDRATE:$BAUDRATE CLOCKWISE:$CLOCKWISE COLOR_ORDER:$COLOR_ORDER CAPTURE_POS:$CAPTURE_POS BLACK_BORDER:$BLACK_BORDER CAPTURE_FREQ:$CAPTURE_FREQ TV_REMOTE:$TV_REMOTE EXTERNAL:$EXTERNAL CAPTURE_SIZE:$CAPTURE_SIZE OSD_CAPTURE:$OSD_CAPTURE GFX_LIB:$GFX_LIB TEST_FRAMES:$TEST_FRAMES TEST_PROFILE:$TEST_PROFILE TEST_PATTERN:$TEST_PATTERN TEST_SAVE_CAPTURE:$TEST_SAVE_CAPTURE";
case $1 in
start)
$START_SAMBILIGHT
;;
stop)
;;
status)
echo "No status info"
;;
*)
echo "Usage: $0 {start|stop|status}" 1>&2
exit 0
;;
esac