How to enable "Print Screen" in the VM

Discussions about using Windows guests in VirtualBox.
Post Reply
Sloppie
Posts: 2
Joined: 19. Nov 2008, 11:33

How to enable "Print Screen" in the VM

Post by Sloppie »

Hi there!

Does anybody know how to enable the Print Screen key in a VM.
The setup is VirtualBox 2.0.4 installed on Solaris 10 with XP SP3 installed in the VMs and the VMs gets accessed from a Sunray.

I've tried "/usr/openwin/bin/xmodmap -e 'keycode 77 = 0xff62" but that just enables it withing Solaris and not in the VM.

Any ideas??
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

Post by Sasquatch »

You could open the OnScreen Keyboard from Programs > Accessories > Accessibility and click on the Print Scrn key on that and paste the image in paint. See how that works.
It is currently seen as a special key, or the Host captures it before VB has a chance to pass it through to the VM.
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.
Sloppie
Posts: 2
Joined: 19. Nov 2008, 11:33

Post by Sloppie »

Thanx Sasquatch!

It worked (^_^)
dsjstc
Posts: 20
Joined: 13. Sep 2010, 21:11
Primary OS: Ubuntu other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: windows

Re: How to enable "Print Screen" in the VM

Post by dsjstc »

That's a good workaround, but not optimal. I had a similar issue that turned out to be that the prtscn key was trapped by the host's (Ubuntu 10.10) magic sysrq. It can be disabled with:

sudo sysctl -w kernel.sysrq=0
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: How to enable "Print Screen" in the VM

Post by mpack »

dsjstc wrote:It can be disabled with:
On a Linux host you mean. Does your suggestion only disable SysRq, i.e. does it disable Print Screen as well?
dsjstc
Posts: 20
Joined: 13. Sep 2010, 21:11
Primary OS: Ubuntu other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: windows

Re: How to enable "Print Screen" in the VM

Post by dsjstc »

My suggestion disables Magic Sysrq, a kernel debugging feature of the linux host.
Post Reply