This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Troubles with power management

Guru 20755 points
Other Parts Discussed in Thread: OMAP3530

Hello,

We are trying to use power management features with OMAP3530, and we get into troubles.

1. suspend/resume: works if time between suspens and resume is less than 30 seconds. Otherwise - stuck

~ #
~ #
~ # echo mem > /sys/power/state
[ 102.075225] PM: Syncing filesystems ... done.
[ 102.083099] Freezing user space processes ... (elapsed 0.01 seconds) done.
[ 102.108062] Freezing remaining freezable tasks ... (elapsed 0.04 seconds) done.
[ 102.163818] Suspending console(s) (use no_console_suspend to debug)
[ 102.307373] PM: suspend of devices complete after 129.513 msecs
[ 102.313903] PM: late suspend of devices complete after 6.498 msecs
[ 128.404266] Successfully put all powerdomains to target state
[ 128.408355] PM: early resume of devices complete after 3.478 msecs
[ 128.516876] PM: resume of devices complete after 108.270 msecs
[ 128.557403] Restarting tasks ... done.

<-- less then 30 seconds, it can wakeup on pressing in uart of console.


~ # echo mem > /sys/power/state
[ 131.368682] PM: Syncing filesystems ... done.
[ 131.376556] Freezing user space processes ... (elapsed 0.01 seconds) done.
[ 131.401519] Freezing remaining freezable tasks ... (elapsed 0.04 seconds) done.
[ 131.457305] Suspending console(s) (use no_console_suspend to debug)

<-- after 30 seconds I press enter in console it get to next line then get stuck and nother happens (freeze)

2. when we get into suspend (before the magic 30 seconds elapsed) and try to do a ping from remote host to target, the target does not wakeup.
The driver is smsc911 which is supposed to wakeup on lan.

Any idea will help.

Regards,

Ran

  • Hi Ran,

    If I am right you are using DVSDK but could you specify Linux kernel version?

    Apart of which Linux version you are using I suggest you to check whether the wakeup feature for the tty used as console is enabled and if it is disable enable it by the following command:

    # echo enabled > /sys/devices/platform/serial8250.0/tty/ttyS0/power/wakeup

    This will solve a known problem with some devices as it is described at:


    Also check in the kernel config file whether the CONFIG_SUSPEND_FREEZER is set to "y".

    Are follow the steps described at:


    for configuring the system to sleep?

    BR

    Tsvetolin Shulev