google-coral / edgetpu

Coral issue tracker (and legacy Edge TPU API source)
https://coral.ai
Apache License 2.0
413 stars 125 forks source link

Power consumption issue on Google Coral Dev board #374

Open Awasarmol opened 3 years ago

Awasarmol commented 3 years ago

Hello all, i am currently working on the google coral dev board for my thesis project , i am running an inference and putting the board to suspend but the power consumption is still very high i checked the doc for power saving and came across something where we can turn off individual peripherals like ethernet , display , usb etc can someone helpe me do that i have looked all over for any examples for the same but no success

manoj7410 commented 3 years ago

@Awasarmol As informed in the Skyvine, You'll either need to rebuild the kernel or use a device tree overlay. If you have no linux experience - building the kernel is probably easier. You can get the Mendel repo as described here: https://coral.googlesource.com/docs/+/refs/heads/master/GettingStarted.md

You then set status = "disabled" as described in the doc in the items that aren't needed in https://coral.googlesource.com/linux-imx/+/refs/heads/release-day/arch/arm64/boot/dts/freescale/fsl-imx8mq-phanbell.dts and https://coral.googlesource.com/linux-imx/+/refs/heads/release-day/arch/arm64/boot/dts/freescale/fsl-imx8mq-som.dtsi (these will be in the linux-imx folder in your Mendel tree) then run 'm linux-imx' to build and then install the new Debian package.

Also walk through https://github.com/google-coral/edgetpu/issues/314#issuecomment-783770705 and see if it is helpful in your case.

Also sharing the link to the doc which is helpful in suspending the TPU and waking it up : https://github.com/mbrooksx/draft-coral-appnotes/blob/main/PowerSavings.pdf

Awasarmol commented 3 years ago

How can we use the device tree overlay as you suggested .and can we repeatedly disable and enable the peripherals as the application is running. For example I want to inference something then before I got to sleep I want to disable all the peripherals and then enable at wakeup

On Tue, May 11, 2021, 4:49 PM Manoj @.***> wrote:

@Awasarmol https://github.com/Awasarmol As informed in the Skyvine, You'll either need to rebuild the kernel or use a device tree overlay. If you have no linux experience - building the kernel is probably easier. You can get the Mendel repo as described here: https://coral.googlesource.com/docs/+/refs/heads/master/GettingStarted.md

You then set status = "disabled" as described in the doc in the items that aren't needed in https://coral.googlesource.com/linux-imx/+/refs/heads/release-day/arch/arm64/boot/dts/freescale/fsl-imx8mq-phanbell.dts and https://coral.googlesource.com/linux-imx/+/refs/heads/release-day/arch/arm64/boot/dts/freescale/fsl-imx8mq-som.dtsi (these will be in the linux-imx folder in your Mendel tree) then run 'm linux-imx' to build and then install the new Debian package.

Also walk through #314 (comment) https://github.com/google-coral/edgetpu/issues/314#issuecomment-783770705 and see if it is helpful in your case.

Also sharing the link to the doc which is helpful in suspending the TPU and waking it up : https://github.com/mbrooksx/draft-coral-appnotes/blob/main/PowerSavings.pdf

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/google-coral/edgetpu/issues/374#issuecomment-837939247, or unsubscribe https://github.com/notifications/unsubscribe-auth/AI4RJMBXKGMXDIG6MGCWVWDTNDHPNANCNFSM44J2GF5A .

Awasarmol commented 3 years ago

I am using the suspend to ram mode as you suggested and it is working but still I'm at 480mA but I want to go more lower as in the power saving mode PDF it says it can go as low as 0.5 w

On Tue, May 11, 2021, 8:18 PM Tejas Awasarmol @.***> wrote:

How can we use the device tree overlay as you suggested .and can we repeatedly disable and enable the peripherals as the application is running. For example I want to inference something then before I got to sleep I want to disable all the peripherals and then enable at wakeup

On Tue, May 11, 2021, 4:49 PM Manoj @.***> wrote:

@Awasarmol https://github.com/Awasarmol As informed in the Skyvine, You'll either need to rebuild the kernel or use a device tree overlay. If you have no linux experience - building the kernel is probably easier. You can get the Mendel repo as described here: https://coral.googlesource.com/docs/+/refs/heads/master/GettingStarted.md

You then set status = "disabled" as described in the doc in the items that aren't needed in https://coral.googlesource.com/linux-imx/+/refs/heads/release-day/arch/arm64/boot/dts/freescale/fsl-imx8mq-phanbell.dts and https://coral.googlesource.com/linux-imx/+/refs/heads/release-day/arch/arm64/boot/dts/freescale/fsl-imx8mq-som.dtsi (these will be in the linux-imx folder in your Mendel tree) then run 'm linux-imx' to build and then install the new Debian package.

Also walk through #314 (comment) https://github.com/google-coral/edgetpu/issues/314#issuecomment-783770705 and see if it is helpful in your case.

Also sharing the link to the doc which is helpful in suspending the TPU and waking it up : https://github.com/mbrooksx/draft-coral-appnotes/blob/main/PowerSavings.pdf

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/google-coral/edgetpu/issues/374#issuecomment-837939247, or unsubscribe https://github.com/notifications/unsubscribe-auth/AI4RJMBXKGMXDIG6MGCWVWDTNDHPNANCNFSM44J2GF5A .