wfaulk / scream

prevent VMware console from grabbing mouse
2 stars 1 forks source link

If X is running, scream does not work for the text console (in RHEL7.1 VM on vSphere 6) #1

Open johncagle opened 8 years ago

johncagle commented 8 years ago

I just built this and tried it on a RHEL7.1 VM running on vSphere 6, and connected remotely with VMware Remote Console version 7.1.0. My workstation is a Mac, running OS X El Capitan v10.11.1.

It does not report any errors or output when run. But it doesn't change the behavior of the mouse -- the mouse is still held captive inside the remote console window until pressing Ctrl-Command.

My VM virtual hardware version is 11.

johncagle commented 8 years ago

Nevermind! I found out why it was not working for me -- I had an X server already running on the machine which probably supercedes any other mouse control.

When I tried on a VM that did not have X-Windows running it worked fine. As long as X Windows has not been initialized once since booting, it works.

BTW, The presence of open-vm-tools does not affect the functioning of this utility.

wfaulk commented 8 years ago

Do you mean that you had an X Server running and then you switched to a text console? If so, I would expect that if you ran scream again after you'd switched to the text console that it would work.

johncagle commented 8 years ago

Yes, that is correct. I was in runlevel 5 (RHEL7.1) and switched to a text console, and then ran scream. It had no effect. The mouse was still captive. I had to set linux into runlevel 3, and then reboot, and finally scream would was effective.