Page 1 of 1

How to enable "Print Screen" in the VM

Posted: 19. Nov 2008, 11:41
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??

Posted: 19. Nov 2008, 22:09
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.

Posted: 26. Nov 2008, 10:07
by Sloppie
Thanx Sasquatch!

It worked (^_^)

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

Posted: 21. Mar 2011, 18:27
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

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

Posted: 21. Mar 2011, 19:07
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?

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

Posted: 21. Mar 2011, 19:11
by dsjstc
My suggestion disables Magic Sysrq, a kernel debugging feature of the linux host.