Mouse quits working eventually with macOS Mojave


bland328

Recommended Posts

tl;dr: macOS VM virtual mouse eventually stops responding.

 

I have macOS Mojave 10.14.1 (I haven't quite figured out how to successfully update to 10.14.2 yet) working very smoothly, thanks to the excellent @SpaceInvaderOne guide at: 

 

I'm accessing this VM purely through VNC, and I'm passing through no USB ports, nor even any audio or graphics.

 

My <input>, <graphics> and <video> XML looks like this:

...
<input type='tablet' bus='usb'>
      <address type='usb' bus='0' port='1'/>
    </input>
    <input type='mouse' bus='ps2'/>
    <input type='keyboard' bus='ps2'/>
    <graphics type='vnc' port='-1' autoport='yes' websocket='-1' listen='0.0.0.0' keymap='en-us'>
      <listen type='address' address='0.0.0.0'/>
    </graphics>
    <video>
      <model type='qxl' ram='65536' vram='65536' vgamem='16384' heads='1' primary='yes'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x0'/>
    </video>
...

and my usb-mouse and use-kbd XML looks like this:

...
<qemu:commandline>
    <qemu:arg value='-usb'/>
    <qemu:arg value='-device'/>
    <qemu:arg value='usb-mouse,bus=usb-bus.0'/>
    <qemu:arg value='-device'/>
    <qemu:arg value='usb-kbd,bus=usb-bus.0'/>
    <qemu:arg value='-device'/>
...

After some time, some number of VNC connections/disconnections (I sometimes use RealVNC viewer and sometimes the built-in "noVNC" VNC Remote), or some other factor I haven't considered, the mouse stops responding, but the keyboard continues to work.

 

At this point, I can't figure out any way to get it going again, except to reboot the VM.

 

The mouse always works after a fresh boot.

 

Any thoughts on what I might try, or other information that might be valuable to help others help me? Thanks, all!

Edited by bland328
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.