Re: DM3730 Suspend-Resume with 5.11-rc6

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



* Adam Ford <aford173@xxxxxxxxx> [210206 22:22]:
> On Sat, Feb 6, 2021 at 3:57 PM Adam Ford <aford173@xxxxxxxxx> wrote:
> >
> > I am having issues with suspend on a DM3730 running 5.11-rc6, and it
> > seems like core_pwrdm may be the issue.

That probably just means you did not configure off mode for idle.

Suspend and resume still works for me based on a quick try with -rc7.
I use the following test script to enable idle FYI, then suspend,
and wake-up the system to a key press on serial console.

Also modprobe rtc-twl and rtcwake -m mem -s 5 worked.

Regards,

Tony

8< -------------
#!/bin/bash

# Detach kernel serial console
consoles=$(find /sys/bus/platform/devices/4*.serial/ -name console)
for console in ${consoles}; do
	echo -n N > ${console}
done

# Configure PM runtime autosuspend
uarts=$(find /sys/bus/platform/devices/4*.serial/power/ -type d)
for uart in $uarts; do
	echo -n 3000 > $uart/autosuspend_delay_ms
	echo -n enabled > $uart/wakeup
	echo -n auto > $uart/control
done

# Configure wake-up from suspend
uarts=$(find /sys/class/tty/tty[SO]*/power/ -type d 2>/dev/null)
for uart in $uarts; do
	echo -n enabled > $uart/wakeup
done

echo -n 1 > /sys/kernel/debug/pm_debug/enable_off_mode



[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux