VirtualBox

Changeset 60180 in vbox for trunk/src/VBox/Additions/x11


Ignore:
Timestamp:
Mar 24, 2016 11:43:48 AM (9 years ago)
Author:
vboxsync
Message:

bugref:8087:8087: Additions/x11: support non-root X server: revert r99502 which removed our fake EDID handling in the user space X.Org video driver. We provided/again provide a fake, unique EDID for our virtual monitors in order to confuse gnome-settings-daemon. g-s-d tries to remember monitors which have been plugged in to a system in the past in order to force a particular video mode on them, which interferes with our dynamic resizing. By ensuring that g-s-d sees a different monitor every time we resize we prevent this.

Location:
trunk/src/VBox/Additions/x11/vboxvideo
Files:
3 edited
1 copied

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/x11/vboxvideo/Makefile.kmk

    r59194 r60180  
    163163        $(VBOX_PATH_X11_ROOT)/xorg-server-1.3.0.0
    164164vboxvideo_drv_13_INCS += $(PATH_ROOT)/src/VBox/Runtime/include
    165 vboxvideo_drv_13_SOURCES = $(vboxvideo_drv_SOURCES)
     165vboxvideo_drv_13_SOURCES = $(vboxvideo_drv_SOURCES) edid.c
    166166
    167167
  • trunk/src/VBox/Additions/x11/vboxvideo/vboxvideo.c

    r60133 r60180  
    551551    unsigned cIndex = 0;
    552552    DisplayModePtr pModes = NULL;
     553    DisplayModePtr pPreferred = NULL;
    553554    ScrnInfoPtr pScrn = output->scrn;
    554555    VBOXPtr pVBox = VBOXGetRec(pScrn);
     
    556557    TRACE_ENTRY();
    557558    uint32_t iScreen = (uintptr_t)output->driver_private;
    558     vbox_output_add_mode(pVBox, &pModes, NULL,
     559    pPreferred = vbox_output_add_mode(pVBox, &pModes, NULL,
    559560                         RT_CLAMP(pVBox->pScreens[iScreen].aPreferredSize.cx, VBOX_VIDEO_MIN_SIZE, VBOX_VIDEO_MAX_VIRTUAL),
    560561                         RT_CLAMP(pVBox->pScreens[iScreen].aPreferredSize.cy, VBOX_VIDEO_MIN_SIZE, VBOX_VIDEO_MAX_VIRTUAL),
     
    572573    vbox_output_add_mode(pVBox, &pModes, NULL, 800,  600,  FALSE, FALSE);
    573574    vbox_output_add_mode(pVBox, &pModes, NULL, 640,  480,  FALSE, FALSE);
     575    VBOXEDIDSet(output, pPreferred);
    574576    TRACE_EXIT();
    575577    return pModes;
  • trunk/src/VBox/Additions/x11/vboxvideo/vboxvideo.h

    r60133 r60180  
    252252extern void vbvxReadSizesAndCursorIntegrationFromHGSMI(ScrnInfoPtr pScrn, bool *pfNeedUpdate);
    253253
     254/* EDID generation */
     255#ifdef VBOXVIDEO_13
     256extern Bool VBOXEDIDSet(struct _xf86Output *output, DisplayModePtr pmode);
     257#endif
     258
    254259#endif /* _VBOXVIDEO_H_ */
    255260
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette