snapshot msg 2s duration, funkey_gpio_mapping.conf with 0.1 timeout for sched_shutdown

This commit is contained in:
Vincent-FK 2021-01-04 18:33:30 +01:00
parent e07f2428b4
commit 7dc82e3635
3 changed files with 13 additions and 18 deletions

View File

@ -1,6 +1,6 @@
################################## ####################################
# Funkey GPIO keymap config file # # Funkey GPIO keymap config file #
################################## ####################################
# Format: # Format:
# #
# - First all GPIO Pin numbers must be declared (integers separated by commas) # - First all GPIO Pin numbers must be declared (integers separated by commas)
@ -21,19 +21,20 @@
################################### ########################
# Pins declaration: # Pins declaration #
########################
0,1,2,3,4,6,7,10*,11,12,13,14,15 0,1,2,3,4,6,7,10*,11,12,13,14,15
################################### ###############
# Mapping: # Mapping #
###############
#7, KEYBOARD, KEY_F, KEY_F, Fn #7, KEYBOARD, KEY_F, KEY_F, Fn
#7+6, KEYBOARD, KEY_K, KEY_K, Select #7+6, KEYBOARD, KEY_K, KEY_K, Select
7, KEYBOARD, KEY_K, KEY_K, Select 7, KEYBOARD, KEY_K, KEY_K, Select
6, KEYBOARD, KEY_S, KEY_S, Start 6, KEYBOARD, KEY_S, KEY_S, Start
3, KEYBOARD, KEY_U, KEY_U, Up 3, KEYBOARD, KEY_U, KEY_U, Up
7+3, KEYBOARD, KEY_P, KEY_P, Quick Save
4, KEYBOARD, KEY_L, KEY_L, Left 4, KEYBOARD, KEY_L, KEY_L, Left
7+4, KEYBOARD, KEY_J, KEY_J, Aspect ratio factor -- 7+4, KEYBOARD, KEY_J, KEY_J, Aspect ratio factor --
1, KEYBOARD, KEY_D, KEY_D, Down 1, KEYBOARD, KEY_D, KEY_D, Down
@ -49,19 +50,13 @@
13, KEYBOARD, KEY_Y, KEY_Y, Y 13, KEYBOARD, KEY_Y, KEY_Y, Y
11, KEYBOARD, KEY_X, KEY_X, X 11, KEYBOARD, KEY_X, KEY_X, X
7+6, SHELL_COMMAND, snap, Fn+Start, Snapshot 7+3, SHELL_COMMAND, snapshot, Fn+Start, Snapshot
7+12, SHELL_COMMAND, quick_action_volume_up, Fn+Y, Volume++ 7+12, SHELL_COMMAND, quick_action_volume_up, Fn+Y, Volume++
7+13, SHELL_COMMAND, quick_action_volume_down, Fn+A, Volume-- 7+13, SHELL_COMMAND, quick_action_volume_down, Fn+A, Volume--
7+11, SHELL_COMMAND, quick_action_bright_up, Fn+B, Brightness++ 7+11, SHELL_COMMAND, quick_action_bright_up, Fn+B, Brightness++
7+14, SHELL_COMMAND, quick_action_bright_down, Fn+X, Brightness-- 7+14, SHELL_COMMAND, quick_action_bright_down, Fn+X, Brightness--
10, SHELL_COMMAND, sched_shutdown 1, N_OE, Instant Play save and Poweroff because of N_OE 10, SHELL_COMMAND, sched_shutdown 0.1, N_OE, Instant Play save and Poweroff because of N_OE
7+15+2, SHELL_COMMAND, display_notif_system_stats, Fn+L1+L2, display system cpu and ram usage 7+15+2, SHELL_COMMAND, display_notif_system_stats, Fn+L1+L2, display system cpu and ram usage
#7+12, KEYBOARD, KEY_G, KEY_G, Brightness++
#7+14, KEYBOARD, KEY_E, KEY_E, Volume--
#7+13, KEYBOARD, KEY_W, KEY_W, Brightness--
#7+11, KEYBOARD, KEY_C, KEY_C, Volume++
#10, KEYBOARD, KEY_T, KEY_T, Should Poweroff because N_OE_received
#7+15, KEYBOARD, KEY_Q, 7+11, Launch menu

View File

@ -32,7 +32,7 @@ stop_loop=false
proc_uid=$($GET_PROC_UID) proc_uid=$($GET_PROC_UID)
## Defines ## Defines
VERSION="1.00" VERSION="1.01"
LOG_FILE="/root/logs/assembly_tests/assy_tests_${proc_uid}.log" LOG_FILE="/root/logs/assembly_tests/assy_tests_${proc_uid}.log"
[ -d $(dirname $LOG_FILE) ] || mkdir -p $(dirname $LOG_FILE) [ -d $(dirname $LOG_FILE) ] || mkdir -p $(dirname $LOG_FILE)
MAGNET_DETECTED_FILE="/root/.assembly_tests_magnet_detected" MAGNET_DETECTED_FILE="/root/.assembly_tests_magnet_detected"

View File

@ -14,5 +14,5 @@ else
fi fi
snapshot_file=$(printf "IMG_%04d.PNG" $last) snapshot_file=$(printf "IMG_%04d.PNG" $last)
fbgrab "${SNAPSHOT_DIR}/${snapshot_file}" fbgrab "${SNAPSHOT_DIR}/${snapshot_file}"
notif_disp 1 " CAPTURE TO ${snapshot_file}" notif_disp 2 " CAPTURE TO ${snapshot_file}"
exit 0 exit 0