Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display Not Toggling Since Updating to Mojave 10.14 #62

Open
mjfagioli opened this issue Oct 16, 2018 · 11 comments
Open

Display Not Toggling Since Updating to Mojave 10.14 #62

mjfagioli opened this issue Oct 16, 2018 · 11 comments

Comments

@mjfagioli
Copy link

Is anyone else having issues since upgrading to Mojave?

I started to see problems after upgrading. Then, found I needed to update VirtualKVM which I did. I think it worked once when I unchecked Prevent Display Sleep and hasn't worked since with a combination of turning settings on and off.

I have an 2012 iMac running Mojave and a 2016 Macbook Pro running Mojave. Thanks for your help and input on the issue!

@mjfagioli
Copy link
Author

I forgot to mention that bluetooth toggling is intermittent. It always disconnects from the iMac but the Macbook Pro isn't always turning bluetooth on to grab the peripherals. Thanks!

@hytgbn
Copy link

hytgbn commented Oct 18, 2018

I am experiencing the same issue.
My case, bluetooth seems to be toggling always, but display doesn't.

Some copy/paste of logs from Console app. (searched with 'VirtualKVM')


default	21:02:50.798903 -0700	loginwindow	-[ApplicationManager checkInAppContext:refCon:eventData:] |      checked in app : VirtualKVM
default	21:02:50.847236 -0700	launchservicesd	CHECKIN:0x0-0x1c91c9 50136 com.fastwombat.VirtualKVM
default	21:02:50.848087 -0700	loginwindow	-[ApplicationManager checkInAppContext:refCon:eventData:] |      checked in app : VirtualKVM
default	21:02:50.863139 -0700	tccd	-[TCCDAccessIdentity staticCode]: static code for: identifier com.fastwombat.VirtualKVM, type: 0: 0x7f92c2621450 at /Applications/VirtualKVM.app
default	21:02:50.883185 -0700	VirtualKVM	Current system appearance, (HLTB: 2), (SLS: 1)
default	21:02:50.887126 -0700	VirtualKVM	Post-registration system appearance: (HLTB: 2)
error	21:02:50.887902 -0700	VirtualKVM	Unable to load Info.plist exceptions (eGPUOverrides)
default	21:02:50.897497 -0700	VirtualKVM	NSApp cache appearance:
-NSRequiresAquaSystemAppearance: 1
-appearance: (null)
-effectiveAppearance: <NSCompositeAppearance: 0x600003acdae0
 (
    "<NSAquaAppearance: 0x600000ccd180>",
    "<NSSystemAppearance: 0x600000ccd040>"
)>
default	21:02:51.031263 -0700	tccd	-[TCCDAccessIdentity staticCode]: static code for: identifier com.fastwombat.VirtualKVM, type: 0: 0x7f92c260cdb0 at /Applications/VirtualKVM.app
default	21:02:51.153172 -0700	tccd	-[TCCDAccessIdentity staticCode]: static code for: identifier com.fastwombat.VirtualKVM, type: 0: 0x7f92c252b9a0 at /Applications/VirtualKVM.app
default	21:02:51.625441 -0700	tccd	-[TCCDAccessIdentity staticCode]: static code for: identifier com.fastwombat.VirtualKVM, type: 0: 0x7f92c2521630 at /Applications/VirtualKVM.app
default	21:02:51.927033 -0700	tccd	-[TCCDAccessIdentity staticCode]: static code for: identifier com.fastwombat.VirtualKVM, type: 0: 0x7f92c2459250 at /Applications/VirtualKVM.app
default	21:03:00.939756 -0700	VirtualKVM	LSExceptions shared instance invalidated for timeout.
default	21:03:14.213539 -0700	tccd	-[TCCDAccessIdentity staticCode]: static code for: identifier com.fastwombat.VirtualKVM, type: 0: 0x7f92c2720300 at /Applications/VirtualKVM.app
default	21:03:14.828603 -0700	VirtualKVM	Disabling Bluetooth.
default	21:03:14.829349 -0700	VirtualKVM	(IOBluetoothDeviceConfigUserLib - 0x600001bc0340) establishing new XPC Connection for process VirtualKVM
default	21:03:14.829889 -0700	bluetoothd	Adding (<BTDClient: 0x7ffd2c74bde0>) for process VirtualKVM (50136)
default	21:03:14.830722 -0700	VirtualKVM	Disabling Bluetooth.

@mjfagioli
Copy link
Author

@hytgbn Thank you! I'll try to grab some logs later today, too. I'm curious what machines you are using, just to see if there is slightly different behavior on a different set.

@hytgbn
Copy link

hytgbn commented Oct 18, 2018

target is iMac (27-inch, Late 2013) , source is MacBook Pro (early 2015).

One thing to note is that it sometimes works if iMac reboots.

@hytgbn
Copy link

hytgbn commented Oct 23, 2018

I did a little bit dive deep.

When Display is not toggling, KVMThunderboltObserver.isInTargetDisplayMode returns true even though it's not in TDM. This causes enableTargetDisplayMode do nothing.

As workaround, I could make VirtualKVM work after killing dpd process.

This is snapshot of Power Assertion, when it's not in TDM. Somehow Virtual KVM couldn't clean up resources when it exits TDM?

Listed by owning process:
   pid 8784(VirtualKVM): [0x000082fa00018df3] 00:01:39 PreventUserIdleSystemSleep named: "Checking for connections" 
   pid 180(dpd): [0x0000071500018155] 35:34:41 PreventUserIdleSystemSleep named: "com.apple.dpd" 
   pid 180(dpd): [0x0000071500058154] 35:34:41 PreventUserIdleDisplaySleep named: "com.apple.dpd" 
   pid 97(hidd): [0x00007cf300098caa] 00:00:00 UserIsActive named: "com.apple.iohideventsystem.queue.tickle.4294968182.17" 
    Timeout will fire in 600 secs Action=TimeoutActionRelease

@rspilhaus
Copy link

Having the same issue. Disconnects from the iMac but MacBook Pro doesn't pick it up.

It seems that restarting the iMac every time works. But if I try to do it after disconnecting without restarting the iMac it does not work.

@hytgbn
Copy link

hytgbn commented Nov 2, 2018

sudo killall -9 dpd seems to reset the state. not sure how safe it is.

@markjeffreymiller
Copy link

markjeffreymiller commented Nov 26, 2018

@hytgbn's suggestion of sudo killall -9 dpd does not work for me, nor does rebooting, FWIW. I can't get the display to switch at all.

@AvivWn
Copy link

AvivWn commented Dec 22, 2018

Same issue here.
I am using MacBook Pro 2018 and iMac 2013 (both OS X 10.14). When auto bluetooth toggling is on, then the bluetooth devices are disconnected from the iMac, but the display does not toggle.
When is it going to be solved?

@AdventureJon
Copy link

I have the same issue. MacBook Pro 2018 and iMac late 2013 on OSX 10.14.2. The iMac will not toggle into TDM. I have not tried on previous OS releases.

Repository owner locked as too heated and limited conversation to collaborators Jan 8, 2019
@SoneeJohn
Copy link
Collaborator

I am working on a fix in an upcoming version.

SoneeJohn added a commit that referenced this issue Apr 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants