diff options
author | Micah Dowty <micah@vmware.com> | 2009-05-12 16:44:42 -0700 |
---|---|---|
committer | Philip Langdale <philipl@fido2.homeip.net> | 2009-05-12 16:44:42 -0700 |
commit | b7dbdd28764a8f3883833ab818a7b7314632b0b2 (patch) | |
tree | d4c5f1cb2adfdd757cd0b5cece48e1c57939d500 /vmwarectrl | |
parent | cfe8793180ec633dd7a17d059ad882ef461ed1d9 (diff) |
Fix dynamic mode edge cases
The VMware Xorg driver supports dynamic modelines that can be set from
userspace via an X extension. These are used to implement VM features
which need to automatically change the resolution of the guest OS.
This driver implements the feature using two modelines. The driver
would alternately update one mode then the other, so that in typical
usage one mode is current and the other is available for the next mode
switch.
This usually worked, but there were many edge cases that could cause
this alternating pattern to get 'out of sync', so we'd end up changing
the resolution of the current video mode. This could end up putting
the X server in a state where the screen resolution has been changed,
but the hardware was never reprogrammed for the new resolution.
This patch fixes the problem by explicitly searching for a dynamic
mode that isn't currently in use. We no longer rely on the alternating
pattern.
Diffstat (limited to 'vmwarectrl')
0 files changed, 0 insertions, 0 deletions