Cause:
If screen rotation is changed inside a vm in VMWare 11, the pointer movement remains as-before. This only happens when the xorg-x11-drv-vmware driver is used which initializes an absolute-axes device rather than a relative-axes device.
Consequence:
The pointer movement does not follow the expected path because the driver is still mapping to the original coordinate system, e.g. a right movement may now be a down movement, depending on the rotation.
Workaround (if any):
The device needs to be manually rotated by the user, for example with the following command:
xinput set-prop "ImPS/2 Generic Wheel Mouse" "Coordinate Transformation Matrix" 0 -1 1 1 0 0 0 0 1
Note that is only one example for a rotation, depending on the rotation angle this matrix needs to be adjusted.
Result:
Once the matrix is applied, pointer movement matches the rotation of the screen.
Created attachment 1137081[details]
screenshot.jpg
Description of problem:
After changing screen rotation in vm, the mouse movement is still acting like no rotation was done.
Version-Release number of selected component (if applicable):
kernel 2.6.32-625
xorg-x11-drv-vmmouse-13.1.0-1
How reproducible:
always
Steps to Reproduce:
1. Run vmware 11 player
2. Run rhel 6.8 as vm
3. In panel click System->vmware->Display
4. Choose any rotation from menu (Left in my case)
5. Click apply
6. Try right click on desktop
Actual results:
Screen content is successfully rotated left, but mouse movement is still behaving as it was behaving before, left rotation was toggled on. So the menu after right click is showed in different part of screen.
Expected results:
Should open the menu (after right click), exactly where the mouse pointer is.
Mouse movement should be like(Left rotation):
mouse move up = move left on display
mouse move down = move right on display etc.
Additional info:
Same behaviour could be examined with panning.
xrandr --output LVDS --panning 2560x1440
The position of mouse after toggling panning on is also incorrect.
Created attachment 1137081 [details] screenshot.jpg Description of problem: After changing screen rotation in vm, the mouse movement is still acting like no rotation was done. Version-Release number of selected component (if applicable): kernel 2.6.32-625 xorg-x11-drv-vmmouse-13.1.0-1 How reproducible: always Steps to Reproduce: 1. Run vmware 11 player 2. Run rhel 6.8 as vm 3. In panel click System->vmware->Display 4. Choose any rotation from menu (Left in my case) 5. Click apply 6. Try right click on desktop Actual results: Screen content is successfully rotated left, but mouse movement is still behaving as it was behaving before, left rotation was toggled on. So the menu after right click is showed in different part of screen. Expected results: Should open the menu (after right click), exactly where the mouse pointer is. Mouse movement should be like(Left rotation): mouse move up = move left on display mouse move down = move right on display etc. Additional info: Same behaviour could be examined with panning. xrandr --output LVDS --panning 2560x1440 The position of mouse after toggling panning on is also incorrect.