nanogui: VTSWITCH vs. Timers vs. Sleep Mode
Subject:
VTSWITCH vs. Timers vs. Sleep Mode
From:
"Gil Glass" ####@####.####
Date:
30 Nov 2006 20:12:01 +0000
Message-Id: <6ECE57DF49376146B91A92A3C37EFC0E026A72BF@SJEXCH03.ds.jdsu.net>
Hello,
I'd written a while back saying that I was unable to get
GrGetNextEventTimeout() to work correctly. Greg suggested that I check
whether VTSWITCH was set to 'Y' in my config file and it turned out that
it was. Not remembering why I'd set it to 'Y', I changed it to 'N' and,
all of a sudden, GrGetNextEventTimeout() began working correctly.
HOWEVER, I've come to realize that the reason I had VTSWITCH set to 'Y'
is because if it is not, then I cannot place my hardware into sleep mode
using the power manager, i.e. writing "mem" to /sys/power/state. I
don't understand how VTSWITCH and the power state are connected but if I
have VTSWITCH set to 'N', then the unit just hangs up and does not enter
the sleep state.
I'm hoping someone can help. Both the hardware sleep and the
GrGetNextEventTimeout() are quite critical to my project.
Thanks.
Gil Glass
Senior Software Engineer
Telecom Field Services Division
JDSU
Germantown, MD, USA
+1 (240) 404-2551