LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 04-02-2014, 06:09 AM   #1
anindyameister
Member
 
Registered: Oct 2012
Posts: 47

Rep: Reputation: Disabled
How to prevent screen going blank in a virtual machine runnign RHEL6 ?


I have a vmware esxi virtual machine running RHEL6.3 which acts as a hudson ci server. I am trying to setup the box so that it can run my selenium testcases initiated from hudson. The application to test requires browser authentication and using the format
Code:
"http://username:password@URL"
does not work, so as a workaround, for each test case I spawn a thread right after opening the URL in firefox, which uses robot from awt to perform the simple sequence- "type username -> press tab -> type password -> press enter". This is a quick and dirty hack but it works. My problem is that this sequence does not work unless I open the virtual monitor in vsphere client. My guess is that unless the virtual monitor is open, the screen is going blank and that is throwing the robot sequence off-track. Now before initiating each test from hudson, i have to open the virtual monitor in my workstation and keep it open. I have tried disabling sleep from power management and setting kernel parameters "apm=off acpi=off" but to no avail. I have a hunch it would have worked if the box was a physical machine with a physical monitor, but currently I don't have any spare boxes to test the theory. Can anyone help me with this peculiar problem of mine ?

Last edited by anindyameister; 04-02-2014 at 06:10 AM. Reason: Formatting URL
 
Old 05-01-2014, 09:20 AM   #2
blueh2o
Member
 
Registered: Jul 2011
Distribution: CentOS, Ubuntu, Fedora, Solaris, RHEL, Debian
Posts: 100

Rep: Reputation: 3
This is what I use to prevent my VMs from blanking the screen. As root:

gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory --set /apps/gnome-screensaver/idle_activation_enabled false --type bool

I'm not sure if this will have the desired effect for your particular application.
 
  


Reply

Tags
java, linux



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to mount USB device on to RHEL6.1 virtual machine krishnakishorerhce Linux - Hardware 1 07-16-2013 11:37 PM
Is base memory of virtual machine used when virtual machine is not running? ravisingh1 Linux - Virtualization and Cloud 3 04-09-2013 03:41 AM
Slackware under Virtual PC blank screen leaving GUI earnest Linux - Newbie 13 02-18-2010 10:29 PM
Blank screen switching back to X from virtual terminal ruhler Linux - General 8 11-09-2006 06:44 AM
howto prevent the blank screen afetr 10 minutes mr_wanna_know Linux - Software 2 11-08-2006 12:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 02:38 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration