Opened 16 years ago
Closed 16 years ago
#1952 closed defect (fixed)
Starting a VM turns DPMS off in X.
Reported by: | dimitris | Owned by: | |
---|---|---|---|
Component: | GUI | Version: | VirtualBox 1.6.4 |
Keywords: | screen saver | Cc: | |
Guest type: | Windows | Host type: | Linux |
Description
This is in VB-OSE 1.6.2, Debian sid package (1.6.2-dfsg-4).
Before a VM starts, xset q
says:
DPMS (Energy Star): Standby: 0 Suspend: 0 Off: 600 DPMS is Enabled Monitor is On
Once the VM is started:
DPMS (Energy Star): Standby: 0 Suspend: 0 Off: 600 DPMS is Disabled
This is the same whether the VM starts (was last stopped) in seamless mode or not.
Then once the VM is stopped, DPMS comes back. I can also re-enable it manually after the VM starts, so this is only an issue when I forget and the screen stays on without reason.
Attachments (1)
Change History (5)
by , 16 years ago
comment:2 by , 16 years ago
Confirmed. This is a problem of the SDL library we use for our GUI. The SDL subsystem turns the screen saver off as long as it is active. Setting the environment variable SDL_VIDEO_ALLOW_SCREENSAVER
to 1 will fix this problem for Linux (and probably for Windows) hosts. However, there is at least one known bug in the Debian libSDL which prevents this fix from working. Debian patches libSDL to evaluate this variable too late (see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=458813). The result is that the screen saver is stopped but not activated after VirtualBox has finished (a worse behavior).
We will try to workaround this problem in future releases.
comment:3 by , 16 years ago
Looks like this has been fixed, and indeed VB 2.0.4 on my Debian unstable host with libsdl 1.2.13-4 no longer has this problem.
log of a VM being started then switched to seamless mode.