f0cal / google-coral

Community gathering point for Google Coral dev board and dongle knowledge.
107 stars 14 forks source link

Power Management and Interrupt Driven Wakes #94

Open murreletinnovation opened 3 years ago

murreletinnovation commented 3 years ago

Is there a way to put the Dev Board into a deep sleep mode (hibernation) that can be awakened on a USB event? I come from a bare-metal/RTOS background so I'm not sure if there are ways to set up USB wakeups in a Linux Mendel environment.

"cat /sys/power/state" shows me freeze and mem as the two options. I don't see any functionality for putting the system into hibernate, is this not possible on the Coral?

And if I try "echo freeze | sudo tee /sys/power/state" or "echo mem | sudo tee /sys/power/state" I'm able to put the system into a lower power state but am unable to wake it up with keyboard presses or mouse clicks. I'm also seeing the the Red/Yellow LEDs are still on. I'd really like to be able to go into a "deeper" sleep if possible.

Thanks for the help

murreletinnovation commented 3 years ago

@Namburger Hi Nam, could you provide any advice on this topic?

murreletinnovation commented 3 years ago

@Namburger Bumping this again to see if there's any help I can receive. I'm trying to set up this device in a remote outdoor location and will need it to be low-power so service techs will not have to replace the battery as often.

I essentially want the platform to enter a sleep or "low-power" mode until it receives an event from an external USB device (asynchronous). I'd like to understand how I would go about putting the device into this state and how to measure the power consumption.