Repository navigation
Simulator: iPhone 7, turning the device, keyboard stays on the guest - #186
Merged
Merged
Conversation
- Device menu: iPad 6 or iPhone 7, each with its own realistic frame and panel size (`simulator/vm device`); the VM keeps the choice. - Rotate Left/Right (Ctrl+Cmd+Left/Right) turns the whole device frame. A VM-only IIO accelerometer (orchard-vm-accel) reports the gravity the turned device would feel, so iio-sensor-proxy and the desktop's own rotation path do the rest, as on a tablet. - The frame's buttons send their key without taking the Mac keyboard away from the guest. - The display reconnects after the VM restarts instead of staying black. - ORCHARD_SIMULATOR_BACKGROUND=1 opens the window without activating it. Assisted-by: LLM
…evice only after a clean stop simulator/setup rebuilt the VM modules only when the backlight module was missing, so an existing disk never got orchard-vm-accel.ko and install-linux.sh then refused to run. simulator/vm device wrote the new device before stopping, so a stop that timed out still switched the panel on the next start.
…vice switch - The display bridge tells a guest that stops showing a surface (D-Bus Disable, connection open) apart from a closed connection: only the latter reconnects, so a Disable no longer starts a second connection. A closed connection's loop ends and frees what it held, so a VM restart leaves no thread behind. - When the guest's screen appears again, the window reads the VM's device file: a `simulator/vm device iphone7` from a terminal brings the iPhone's frame (and the Device menu's tick) with it. Assisted-by: LLM
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Makes the Orchard Simulator show what a desktop change looks like on a phone and in landscape, without hardware.
simulator/vm device iphone7): its own realistic frame (Home button, earpiece, side buttons) and its 750×1334 panel; the VM keeps the choice across restarts.orchard-vm-accel) reports the gravity the turned device would feel, so the desktop rotates through iio-sensor-proxy and its own rotation path, the same as on a tablet. Nothing in the product image changes.ORCHARD_SIMULATOR_BACKGROUND=1opens the window without bringing it to the front.Tested by using the simulator all day for the launcher and lock-screen work in OrchardLinux/omarchy-a#80: both devices, all four orientations, and VM restarts.