secubox-deb/remote-ui/round/scripts
CyberMind-FR 8f49ec1996 feat(eye-remote): Add intelligent auto-mode OTG switching system
Implement auto-mode controller for Eye Remote that handles:
- Automatic host type detection (U-Boot vs Linux OS)
- Mode priority: network > hid > storage
- Silent storage fallback after 60s disconnected
- Multiple wake-up triggers (serial, magic file, GPIO, scheduled)

New files:
- agent/auto_mode_controller.py: State machine controller
- agent/wakeup_manager.py: Wake-up trigger handlers
- files/etc/secubox/eye-remote/auto-mode.toml: Configuration
- files/etc/systemd/system/secubox-auto-mode.service: Systemd unit
- scripts/setup-hid-gadget.sh: HID keyboard gadget setup

Modified:
- gadget-setup.sh: Add hid, network, silent modes
- gadget_switcher.py: Add HID mode, transfer protection
- failover.py: Add SILENT_STORAGE state
- gadget_status.py: Add storage mode display

Features:
- U-Boot detection (powered >3s without config)
- Network probing with configurable endpoints
- Transfer protection before mode switch
- Silent fallback with wake monitoring
- Storage mount status detection from Pi

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-05-11 12:09:34 +02:00
..
droplet-config.sh docs: update WIP, HISTORY, README for Eye Remote v2.2.1 2026-05-11 10:51:33 +02:00
eye-gadget-switch.sh feat(eye-remote): Implement OTG features 3-5 (gadget control, storage sync, setup wizard) 2026-04-29 06:41:23 +02:00
fix-rfkill-sdcard.sh feat(eye-remote): Add full build pipeline and fix package slipstreaming 2026-04-26 15:47:38 +02:00
setup-hid-gadget.sh feat(eye-remote): Add intelligent auto-mode OTG switching system 2026-05-11 12:09:34 +02:00