feat: add TrimUI PyUI media and fn settings - #1565
Conversation
Expose fn_editor for Smart Pro family devices and mirror Smart Pro display color settings with safe sysfs fallbacks on Smart Pro S.
Launch the firmware TinaPlayer via /usr/trimui/apps/player from PyUI Apps, and drop the mistaken display calibration changes on Smart Pro S.
Replace stock firmware app launches with themed PyUI menus: video browser plus ffplay playback, and Smart Pro Fn or switch toggles. Hide the legacy VideoPlayer wrapper and keep stock fneditor on Brick only.
Lazy-import Video Player and Fn settings in app_menu, and defer MiyooTrimCommon import until playback.
| brightness_up | ||
| fi | ||
| ;; | ||
| *"key $B_L3 1"*) # Left Fn key down |
There was a problem hiding this comment.
Does the fn-key have the same keycode as L3/R3?
Even if it does this should be slightly refactored to
- Have a new export for fn-key instead of reusing l3/r3
- Make a call to fn_key_down/fn_key_up
- in device.sh just make empty fn_key_down/up methods like all the others in there
- move the run_fn_config into SmartProS.sh and this call into fn_key_down/up methods from (3)
| return ControllerInput.R1 | ||
|
|
||
|
|
||
|
|
There was a problem hiding this comment.
Are most of the line changes just line ending?
| ".mp4", ".mkv", ".avi", ".mov", ".flv", ".ts", ".webm", | ||
| ".m4v", ".wmv", ".mpeg", ".mpg", ".3gp", | ||
| } | ||
| VIDEO_ROOT = "/mnt/SDCARD/Roms/MEDIA" |
There was a problem hiding this comment.
Please update these to go through py-ui-config.json (located in App/PyUI/py-ui-config.json) and loaded through PyUiConfig.py
…ui-stock-settings # Conflicts: # App/PyUI/lang/English.json # App/PyUI/lang/Vietnamese.json # App/PyUI/main-ui/menus/app/app_menu.py
|
Updated branch Changes addressed:
Validation run:
Note: |
|
Created duplicate PyUI-only PR for MainPyUI: |
Resolve conflicts by keeping videoRootPath config, adopting upstream spruce-native backlight Fn script, and retaining Brick/BrickPro fn_editor device list.
|
Updated Merge
Review feedback status (still in place)
Validation
|
Why
TrimUI Smart Pro/S users need PyUI-native access to stock-like video playback and Fn/DIP switch settings without falling back to the stock TrimUI UI. The stock CPU scene scripts also fail under spruceOS because CPU sysfs controls are locked and some stock frequencies are invalid on Smart Pro S, so Fn slider CPU performance mode does not apply reliably.
What Changed
/mnt/UDISK/system.json.buttons_watchdog.shto poll GPIO363 for Fn slider/DIP changes, run scene scripts, and stop prior scene script instances before starting new ones.Verification
git diff --checksuccessfully.python -m py_compilefortrimui_fn_settings_app.py,video_player_app.py, andapp_menu.pysuccessfully./tmp/buttons_watchdog_dip.logrecordedstate 1andstate 0transitions.performance 1992000 1992000for performance state and returns toondemand 1008000 1992000for normal state.