Skip to content

Merge v4.5-dev into main#1883

Draft
Aemiii91 wants to merge 4 commits intomainfrom
v4.5-dev
Draft

Merge v4.5-dev into main#1883
Aemiii91 wants to merge 4 commits intomainfrom
v4.5-dev

Conversation

@Aemiii91
Copy link
Member

Do not squash this.

Modify and display miyoo285 according to miyoo354
@Aemiii91 Aemiii91 self-assigned this Jan 20, 2026
Aemiii91 and others added 3 commits January 20, 2026 23:34
…close events, lid close settings options (#1860)

This PR introduces initial compatibility for the Miyoo Mini Flip handheld device, bringing hardware detection, lid close event handling, and user-configurable lid behavior options to Onion OS.

Features
Hardware Detection

Adds new device ID (MODEL_MMF) for Miyoo Mini Flip identification
Implements runtime hardware detection to differentiate between Mini Plus and Mini Flip
Lid Close Event Handling

Detects lid open/close events via the device's Hall sensor
Implements suspend/wake functionality triggered by lid state changes
Prevents sleep timer conflicts with lid open wake events
Lid Close Settings (Tweaks Menu)

Sleep: Closes the lid to put the device to sleep (wake on lid open)
Shutdown: Gracefully shuts down the device when the lid is closed (with savestate support)
Disabled: Lid events are ignored
Respects the existing "sleep to shutdown" timer setting for consistent behavior
USB-C Headphone Detection

Implements audio output switching between speaker and USB-C headphones (tenlevels implementation)
WiFi Support

Enables WiFi functionality on the Mini Flip hardware
MainUI Compatibility

Uses MainUI 354 binaries (Clean/Expert) to maintain proper 640x480 resolution compatibility with existing Onion themes
Technical Details
23 commits, +324/-34 lines changed
Based on implementation work from Allium project
Tested and validated on actual Mini Flip hardware
Credits
Initial implementation by @xXJSONDeruloXx
Headphone detection based on tenlevels' work
Testing and review by @Dark98,@Sichroteph, @Aemiii91, and community members
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants