From: Dave H. <dhy...@gm...> - 2007-12-19 17:54:23
|
Hi Adam, On Dec 19, 2007 7:36 AM, Adam Salamon <asa...@at...> wrote: > I tried adding set -x and I can see each of the lines executing and I > added a 5 second sleep along with some more echoing of text to try and > add more delay, but still no luck. > > >> That's what I'm guessing too, but I can't figure out why. > >> > >> >From the command line: > >> > >> pxaregs PWER_WE0 1 > >> pxaregs GPDR0_0 0 > >> pxaregs PRER_RE0 1 > >> pxaregs PFER_FE0 0 > >> echo "standby" > /sys/power/state > >> > >> Touch the pin and it wakes up no problem. > >> > >> The exact same thing doesn't seem to work in a shell script run from the > >> command line. Baffling. Maybe the state of the pin is being changed? What if add the approriate pxaregs to configure pin 0 as a GPIO pin. How is your switch wired up? -- Dave Hylands Vancouver, BC, Canada http://www.DaveHylands.com/ |