Activate host screensaver from within guest?

Discussions related to using VirtualBox on Mac OS X hosts.
Post Reply
reidpr
Posts: 13
Joined: 16. Dec 2010, 22:00
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Linux

Activate host screensaver from within guest?

Post by reidpr »

Hi,

Is there some way that I can activate the host's screensaver from within the guest? My hot corners don't work when in the guest (unsurprisingly).

The host screensaver does activate after the specified timeout, but I want to be able to activate it immediately too.

Host = Mac OS X 10.7, guest = Debian Squeeze.

Thanks!

Reid
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: Activate host screensaver from within guest?

Post by mpack »

VMs cannot affect the host, except via standard networking protocols enabled and configured by you. If you can find a network protocol which can do what you want, then you'd be off to a good start. VBoxManage provides the means to affect a guest from the host. Providing an API that works in the opposite direction would be an unacceptable malware risk IMHO.

Anyway, I must confess that I don't know of any way to manually invoke the screensaver on XP host from my host, never mind from a VM! Of course one could configure the timeout to something very short... I can imagine that would be quite annoying.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Activate host screensaver from within guest?

Post by Perryg »

AFAIK there are no direct sockets available to the host from the guest as this would be a huge security risk.
reidpr
Posts: 13
Joined: 16. Dec 2010, 22:00
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Linux

Re: Activate host screensaver from within guest?

Post by reidpr »

OK, I looked a little more and it turns out you can configure the Keychain Access utility to put a "lock screen" menu item in the menu bar; that's good enough for me, since it's easy to get to the host menu bar from inside the guest, even when it's full screen.

Link: http://thinkingnectar.com/2012/add-a-lo ... -mac-os-x/

Reid

p.s. I think you guys read more than I intended with "within the host". I just want some way to make it happen while I'm *using* the guest. Worrying about direct sockets and security holes is way out of scope. I just wondered if there was some hook like passing hot corner mousing back to the host. And there is, via the host menu bar.

p.p.s. "VMs cannot affect the host" is a bit overstated, no? For example, if I put files in a shared folder, they appear on the host, which certainly affects the host.
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: Activate host screensaver from within guest?

Post by mpack »

reidpr wrote:p.p.s. "VMs cannot affect the host" is a bit overstated?
You only quoted half that sentence. I wonder why? If you remove the modifier then yes, it's quite possible that the residue is overstated. You realize, I hope, that "Shared folders" is a network protocol, and only available if configured by you?
reidpr wrote:p.s. I think you guys read more than I intended with "within the host"
Your first post - and indeed the topic title - said "from within guest" not "within the host", and as far as I can tell we only read into it what you wrote. Controlling the host from the guest is precisely what you asked about, so I'm at a bit of a loss to understand your objection to the answers - or the relevance of your solution!
Post Reply