Turn display off from VM

Discussions related to using VirtualBox on Linux hosts.
Post Reply
jonathand131
Posts: 6
Joined: 14. May 2009, 20:35
Primary OS: Linux other
VBox Version: OSE other
Guest OSses: Kubuntu, W7

Turn display off from VM

Post by jonathand131 »

Hi everyone,

Is there a way to configure VB to control display power when VM is in fullscreen?

Currently, if I do

Code: Select all

xset dpms force off
on the host, it turns display off. If I do the same command on my Linux guest while in fullscreen mode, I only have a blank screen. Linux guest reports having DPMS enabled when doing

Code: Select all

xset q
baf
Volunteer
Posts: 829
Joined: 27. Sep 2008, 06:18
Primary OS: Mac OS X Leopard
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: linux,xp,win7
Location: Luleå or Skellefteå, Sweden

Re: Turn display off from VM

Post by baf »

jonathand131 wrote:Is there a way to configure VB to control display power when VM is in fullscreen?
I doubt that.

Workaround:

Code: Select all

ssh "host" xset dpms force off
Some say: "You learn as long as you live".
My way: "You live as long as you learn".
jonathand131
Posts: 6
Joined: 14. May 2009, 20:35
Primary OS: Linux other
VBox Version: OSE other
Guest OSses: Kubuntu, W7

Re: Turn display off from VM

Post by jonathand131 »

The aim is not to do it manually but to use guest OS power management capabilities (things like screen saver then turning display off).
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: Turn display off from VM

Post by Sasquatch »

No can do. The Guest can't handle power management for the Host. What you need to do, is set power management on the Host, and disable it all on the Guest. With this, the Guest won't do anything, allowing the Host to act accordingly. Else the Host will see it as an event and delay the power management again.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
Post Reply