mirror of
https://github.com/YuleBest/LuminPro.git
synced 2026-12-04 00:54:42 +08:00
feat: HDR 休眠阈值可自定义,新增进入/退出双阈值迟滞机制
- up.sh: 比率 ≥ 进入阈值(默认 1.15)进入休眠,≤ 退出阈值(默认 1.05)恢复, hdr.flag 由时间冷却改为休眠状态标记,迟滞区间内不抖动 - WebUI: 开启 HDR 休眠后展开进入/退出阈值输入,随主配置保存 - customize.sh/config.json/README 同步新字段 hdr_enter_ratio / hdr_exit_ratio
This commit is contained in:
1 parent
7ebbfaf24b
commit
f9dd4c40d6
8 files changed
+80
-20
No files matched your search
@@ -67,6 +67,8 @@ write_config_json() {
|
||||
--arg log_max_size "${cfg_log_max_size:-512}" \
|
||||
--arg auto_bri_sleep "${cfg_auto_bri_sleep:-1}" \
|
||||
--arg display_hdr_sleep "${cfg_display_hdr_sleep:-0}" \
|
||||
--arg hdr_enter_ratio "${cfg_hdr_enter_ratio:-1.15}" \
|
||||
--arg hdr_exit_ratio "${cfg_hdr_exit_ratio:-1.05}" \
|
||||
--arg compatibility_mode "${cfg_compatibility_mode:-0}" \
|
||||
--arg sleep_time "${cfg_sleep_time:-}" \
|
||||
--arg inotify_events "${cfg_inotify_events:-c}" \
|
||||
@@ -81,6 +83,8 @@ write_config_json() {
|
||||
log_max_size: ($log_max_size | tonumber),
|
||||
auto_bri_sleep: ($auto_bri_sleep | tonumber),
|
||||
display_hdr_sleep: ($display_hdr_sleep | tonumber),
|
||||
hdr_enter_ratio: ($hdr_enter_ratio | tonumber),
|
||||
hdr_exit_ratio: ($hdr_exit_ratio | tonumber),
|
||||
compatibility_mode:($compatibility_mode | tonumber),
|
||||
sleep_time: $sleep_time,
|
||||
inotify_events: $inotify_events,
|
||||
@@ -297,6 +301,8 @@ INIT_CONFIG() {
|
||||
cfg_log_max_size=512
|
||||
cfg_auto_bri_sleep=1
|
||||
cfg_display_hdr_sleep=0
|
||||
cfg_hdr_enter_ratio=1.15
|
||||
cfg_hdr_exit_ratio=1.05
|
||||
cfg_compatibility_mode=0
|
||||
cfg_sleep_time=""
|
||||
cfg_inotify_events="c"
|
||||
@@ -315,6 +321,8 @@ ENSURE_DEFAULTS() {
|
||||
.log_max_size = (.log_max_size // 512) |
|
||||
.auto_bri_sleep = (.auto_bri_sleep // 1) |
|
||||
.display_hdr_sleep = (.display_hdr_sleep // 0) |
|
||||
.hdr_enter_ratio = (.hdr_enter_ratio // 1.15) |
|
||||
.hdr_exit_ratio = (.hdr_exit_ratio // 1.05) |
|
||||
.compatibility_mode= (.compatibility_mode // 0) |
|
||||
.sleep_time = (.sleep_time // "") |
|
||||
.inotify_events = (.inotify_events // "c") |
|
||||
|
||||
Reference in new issue
Block a user