“Settings” on my phone It is a symbol with three symbols like dip switches above another
I have it too. The name is Mobile Settings
. And there the feature Eable suspend via the system menu
is not enabled, but it works in Settings
. Maybe this here in Mobile Settings
is just outdated.
Better to allow it also there I think
Do you know the detailed reason, or is it just guessing? As I said, it works perfectly.
There is nothing really documented in this suspend issue
I just enabled suspend in system menu. It does not help. System tries to suspend and comes back on. For me it WAS working a month ago very nicely. I do not remember doing anything strange on my system other than updating. Actually I had put it away for about 10 days and used a Nokia since I had a problem with the twin sim card and was trying to see if the twin sim was working after extending use of its twin in Nokia.
The only thing I know it changed is that I swapped the sim with Nokia, since there was a problem with the primary sim in L5 as described here
But this can not be the problem since it fails to suspend even with all HKS in off position.
Is there a way to have verbose output with
systemctl suspend
on the terminal?
Is there anything interesting in dmesg
output when you try to suspend?
The reason it is in phosh-mobile-settings
is so that the suspend option appears in the power menu in the top right corner of the pulldown.
[ 168.356987] PM: suspend entry (deep)
[ 168.395685] Filesystems sync: 0.038 seconds
[ 168.396430] Freezing user space processes
[ 168.401890] Freezing user space processes completed (elapsed 0.005 seconds)
[ 168.401917] OOM killer disabled.
[ 168.401920] Freezing remaining freezable tasks
[ 168.405845] Freezing remaining freezable tasks completed (elapsed 0.003 seconds)
[ 168.405856] printk: Suspending console(s) (use no_console_suspend to debug)
[ 168.453324] Disabling non-boot CPUs …
[ 168.453336] Wakeup pending. Abort CPU freeze
[ 168.453338] Non-boot CPUs are not disabled
[ 168.464574] caam 30900000.crypto: registering rng-caam
[ 168.603995] OOM killer enabled.
[ 168.604005] Restarting tasks … done.
[ 168.608954] random: crng reseeded on system resumption
[ 168.653197] thermal thermal_zone3: failed to read out thermal zone (-61)
[ 168.653951] PM: suspend exit
[ 168.654116] PM: suspend entry (s2idle)
[ 168.699597] Filesystems sync: 0.045 seconds
[ 168.700170] Freezing user space processes
[ 168.847922] Freezing user space processes completed (elapsed 0.148 seconds)
[ 168.847946] OOM killer disabled.
[ 168.847951] Freezing remaining freezable tasks
[ 168.849623] Freezing remaining freezable tasks completed (elapsed 0.001 seconds)
[ 168.849632] printk: Suspending console(s) (use no_console_suspend to debug)
[ 168.900092] caam 30900000.crypto: registering rng-caam
[ 169.038931] OOM killer enabled.
[ 169.038940] Restarting tasks … done.
[ 169.045505] random: crng reseeded on system resumption
[ 169.062767] thermal thermal_zone3: failed to read out thermal zone (-61)
[ 169.063482] PM: suspend exit
The above is dmesg output and looks suspicious. Why the CPU freeze does not work?
Moreover
Why this failure? Could it be this? The kernel is 6.6.0-1-librem5
(uname -r)
As suspend works here I was looking at any diff reported in dmesg.
Kernel is also (uname -r) 6.6.0-1-librem5
dmesg give the same from
[ 123.845270] PM: suspend entry (deep)
to
[ 123.892602] printk: Suspending console(s) (use no_console_suspend to debug)
then I have this line
[ 124.967094] brcmfmac_cyw: brcmf_cyw_detach: executing
and then
[ 125.022982] Disabling non-boot CPUs ...
[ 125.024847] psci: CPU1 killed (polled 0 ms)
[ 125.027441] psci: CPU2 killed (polled 0 ms)
[ 125.029958] psci: CPU3 killed (polled 0 ms)
brcmfmac is the Broadcom brcmfmac driver
Hope it could help…
I found also this line in dmesg but suspend works here.
Thanks for checking your dmessages. Does anyone know what this, about brcmfmac, could mean ?
It’s the WiFi card driver for the new SparkLAN WiFi card, as distinct from the old Redpine Systems card.
If you have the Redpine Systems card then you won’t have messages from or about “brcmfmac”.
I have the sparklan card which I installed removing the Redpine which came as default. Could this be the issue?
But it was working a month ago.
I also have SparkLAN card, which I swapped in instead of Redpine, and suspend is working for me.
I have two L5 devices, one with SparkLAN and the other with Redpine. In both suspend is working fine. With one observation and one exception.
Observation: When I wakeup the L5 from suspend with the power button, I can see if the L5 was really in suspend (and not only display off): For a second or so in the upper status bar there is an icon with the two arrows showing that no network is available. This goes away when WLAN or WWAN comes up. The icon looks like this: ⇆
Exception: When I do the wake up not with the power button, but plug-in the USB-C for power or for tethering with my laptops, the L5 sometimes, not always, freezes.
It was working for me too for a long period of time. I do not know what happened recently and does not work anymore.
So currently we’re suspicious that brcmfmac
module is the problem.
Try to turn off SparkLAN card with killswitch, and then execute this:
sudo rmmod brcmfmac_cyw
sudo rmmod brcmfmac
These commands will unload the module from kernel.
Try to suspend then, and see if it works.