VirtualBox

Changeset 53346 in vbox for trunk


Ignore:
Timestamp:
Nov 18, 2014 10:41:32 AM (10 years ago)
Author:
vboxsync
Message:

Additions/x11/vboxvideo: do not disable the screen on DPMS low power and suppress unneeded events.

File:
1 edited

Legend:

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

    r53345 r53346  
    288288    VBOXPtr pVBox = VBOXGetRec(crtc->scrn);
    289289    unsigned cDisplay = (uintptr_t)crtc->driver_private;
     290    bool fDisabled = (mode == DPMSModeOff);
     291
    290292    TRACE_LOG("cDisplay=%u, mode=%i\n", cDisplay, mode);
    291     pVBox->pScreens[cDisplay].afDisabled = (mode == DPMSModeOff);
     293    if (pVBox->pScreens[cDisplay].afDisabled == fDisabled)
     294        return;
     295    pVBox->pScreens[cDisplay].afDisabled = fDisabled;
    292296    /* Don't fiddle with the hardware if we are switched
    293297     * to a virtual terminal. */
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