Repository navigation
Replies: 3 comments
|
Hi - in what context does a virtual screen is being used? Is this a BetterDisplay virtual screen? Or is the virtual screen about the macOS provided default virtual screen when no display is connected? Can you describe the exact setup and display configuration so I may try to reproduce something similar? Additionally, could you please provide the logs generated by BetterDisplay (Tools > Show Console + Enable logging)? Thank you! |
|
@waydabber Virtual screen: It is not a BetterDisplay virtual screen. I have no BetterDisplay virtual screens configured. It's the macOS-provided default virtual display: WindowServer enables it on wake, when no real display is active for a moment, and removes it about 0.9 s later. Setup
Steps
Interestingly, even though the external display was never unplugged, macOS reports it as removed and re-added (hotplug out → in) during this wake. That makes the system briefly fall back to its own virtual display. Timeline of the attached occurrence (BetterDisplay log + macOS unified log)
Since the cursor is rendered on the external display but the lock screen is not, my guess is that loginwindow placed the lock UI on the temporary macOS virtual display (ID 49), which was briefly the main display, and didn't move it to the external display after 49 was removed. The BetterDisplay log is attached (display serials and UUIDs redacted). I'm happy to provide more logs or test a pre-release build. Thank you! # |
|
Thanks for the detailed logs! A few things worth trying separately:
The log shows that the external display is considered connected, so the automatic reconnection safeguard doesn't kick in. The missing lock screen might be related to how macOS handles the temporary virtual display during wake, but I can't confirm that from the logs alone. Unfortunately I can't currently reproduce this, so I can't turn it into a concrete fix yet. I'll mark it as "can't reproduce" for now and leave it open for a while to see whether similar reports come in. I may close it eventually if nothing else turns up, but we can always reopen it if it comes up again or we find a reliable way to reproduce it. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Description
When the built-in display is disconnected with BetterDisplay and an external monitor is attached through a USB-C hub, opening the lid after sleep often leaves the built-in screen completely black. The lock screen is not visible and the Mac cannot be unlocked. Closing and reopening the lid, or putting the Mac back to sleep and waking it again, usually fixes it.
It happens almost daily and is intermittent, so it looks like a race condition between lid-open wake, external display re-enumeration and BetterDisplay's virtual display handling.
Environment
appDisconnected@Display:<builtin> = 1)Steps to reproduce
Expected behavior
The built-in display wakes and shows the lock screen, or BetterDisplay reconnects the built-in display before the lock screen is presented.
Actual behavior
Log analysis (single failed wake, unified log)
Timestamps are relative to lid open (t = 0). The log was filtered to
WindowServer,loginwindowandBetterDisplay. In this log, display 1 is the built-in panel, display 3 is the external monitor, and 38 and 39 are virtual displays.Invalid new timing data reported for display 0x00000026(= 38), followed by 16 more in loginwindowDisplayServicesCanChangeBrightness returned NO for main display(lock UI goes to the external main display)Invalid display 0x00000002Invalid display 0x00000002,Invalid display 0x00000003BetterDisplay logged 700+ lines in this 20-second window.
On other days, WindowServer also repeatedly logged
Display:Hotplug Deferring hotplug processing; display reconfig in progressin the same situation. The same pattern (virtual display toggle, external display hotplug, lock UI on the external main display, black built-in panel) appears in about 8 failed wakes over the last month.Filtered log excerpt
Notes
Questions
I can provide a longer unfiltered log excerpt if needed.
Related
This looks related to #5854 but is a different scenario: in my case the external display stays connected during sleep, the issue still occurs on 5.1.1 (where #5854 is fixed), and the built-in display recovers by itself after about 5 seconds.
All reactions