tests/pm_pc8: add "stay" mode
authorPaulo Zanoni <paulo.r.zanoni@intel.com>
Wed, 26 Feb 2014 14:12:28 +0000 (11:12 -0300)
committerPaulo Zanoni <paulo.r.zanoni@intel.com>
Wed, 26 Feb 2014 22:14:56 +0000 (19:14 -0300)
commit6a6b8a213813de80a86d281ee9111aaca8ed5b36
treef70dae01024470b2c33f60b84ba89f1f159fdbd2
parent8c475e0ba69c585bc11062edd1f7fc4bbded811c
tests/pm_pc8: add "stay" mode

I used to have a binary that would just disable all the screens - so
we can enter PC8/runtime PM - and then sleep forever. I used this
binary many times while debugging PC8 and runtime PM, and I also sent
the binary to many people so they would be able to test these things
without X running.

Since pm_pc8 already implements everything that the separate binary
needs, and it even has some additional code to try to configure the
environment to actually reach PC8, it's easier to just ask people to
run "sudo ./pm_pc8 --stay" instead of sending them a file, asking them
to compile it, setup the environment, and then run it.

Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
tests/pm_pc8.c