Rtcwake in sierra wp7607

Hi, I’m trying to enter suspend-to-RAM with the following command:
rtcwake -d /dev/rtc0 -m mem -s 300,
but I can’t get it to work. Does anyone know what’s wrong?
root@sierra0:~|1 # dmesg | tail -n 30
[ 1033.830443] usb 1-1: new high-speed USB device number 10 using msm_hsic_host
[ 1033.992223] usb 1-1: New USB device found, idVendor=0424, idProduct=3503
[ 1033.992250] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 1033.997484] hub 1-1:1.0: USB hub found
[ 1033.999123] hub 1-1:1.0: 3 ports detected
[ 1034.121048] msm_hsic_host 7c00000.hsic_host: HSIC-USB in low power mode
[ 1040.671703] PM: PM: suspend entry 2025-10-23 10:53:23.349197059 UTC
[ 1040.671714] PM: suspend entry (deep)
[ 1040.671722] PM: Syncing filesystems … done.
[ 1040.678900] Freezing user space processes … (elapsed 0.003 seconds) done.
[ 1040.682515] OOM killer disabled.
[ 1040.682520] Freezing remaining freezable tasks … (elapsed 0.001 seconds) done.
[ 1040.684302] Suspending console(s) (use no_console_suspend to debug)
[ 1040.686070] msm_hsic_host 7c00000.hsic_host: HSIC-USB exited from low power mode
[ 1040.686645] msm_otg 78d9000.usb: Abort PM suspend!! (USB is outside LPM)
[ 1040.686665] dpm_run_callback(): platform_pm_suspend+0x0/0x48 returns -16
[ 1040.686677] PM: Device 78d9000.usb failed to suspend: error -16
[ 1040.700441] PM: Some devices failed to suspend, or early wake event detected
[ 1040.720306] OOM killer enabled.
[ 1040.720313] Restarting tasks … done.
[ 1040.736575] Resume caused by misconfigured IRQ 58 rpm
[ 1040.736786] PM: PM: suspend exit 2025-10-23 10:53:23.414293986 UTC
[ 1040.736792] PM: suspend exit
[ 1040.740369] usb 1-1: USB disconnect, device number 10
[ 1040.870432] usb 1-1: new high-speed USB device number 11 using msm_hsic_host
[ 1041.032109] usb 1-1: New USB device found, idVendor=0424, idProduct=3503
[ 1041.032135] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 1041.034942] hub 1-1:1.0: USB hub found
[ 1041.035523] hub 1-1:1.0: 3 ports detected
[ 1041.150725] msm_hsic_host 7c00000.hsic_host: HSIC-USB in low power mode

I remember the wp76 module will go to sleep mode automatically after removing usb cable from host PC

I disabled that because I want to control when the system goes to sleep using rtcwake. The idea is to enter suspend-to-RAM and then wake up when an SMS is received.

How did you disable this function?
If you disable this function, didn’t it mean module will keep awake?

i removed the linkmon package. i can go to sleep but after a few seconds (20) i wake up from the IRQ 58 or IRQ 16

Have you checked that what are those irq?
Does module go back to sleep after those irq?

root@sierra0:~|0 # cat /sys/kernel/irq/58/hwirq
200
root@sierra0:~|0 # cat /sys/kernel/irq/58/chip_name
mpm-gic

no it doesnt

Then i don’t think you can remove that function …

What does that mean? I can put the system to sleep for about 20 seconds before one of the IRQs wakes it up. Is there any way to disable them?

You can use the following command to disable usb sleep

echo NO_SLEEP > /sys/power/wake_lock

After using this command, even removing usb cable from host PC, module still keeps awake