PINE64
Manjaro - HIbernate - brcmfmac clk issue - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: Pinebook Pro (https://forum.pine64.org/forumdisplay.php?fid=111)
+--- Forum: Linux on Pinebook Pro (https://forum.pine64.org/forumdisplay.php?fid=114)
+--- Thread: Manjaro - HIbernate - brcmfmac clk issue (/showthread.php?tid=18591)



Manjaro - HIbernate - brcmfmac clk issue - pompeyPinePro - 08-08-2023

After using towboot & fedora with an nvme drive with dissapointing battery life and no suspend i have decided to have a go at a vanilla manjaro gnome image with u-boot.

I have got Suspend working well, and hibernate also working consistnent sadly without being able to recover the wireless adapter after resuming.

I have worked out from dmesg and journalctl what are normal errors, and have rmmod -f and re added the brcmfmac modules. Sadly though no success.

The relevent error from the device in dmesg and journalctl is 
Code:
brcmfmac: brcmf_sdio_htclk: HT Avail timeout (1000000): clkctl 0x50

No amount of kernel module removal or reloading will get it to play post hibernate.

Hopefully this is enough info for someone more hardware oriented than me.

Code:
#Working sleep.conf
[Sleep]
Code:
AllowSuspend=yes
Code:
AllowHibernation=yes
Code:
AllowSuspendThenHibernate=yes
Code:
#AllowHybridSleep=yes
Code:
SuspendMode=suspend
Code:
SuspendState=freeze mem
Code:
HibernateMode=
Code:
HibernateState=disk
Code:
#HybridSleepMode=suspend platform shutdown
Code:
#HybridSleepState=disk
Code:
HibernateDelaySec=5000
Code:
SuspendEstimationSec=60min



RE: Manjaro - HIbernate - brcmfmac clk issue - juliamenendez - 08-18-2023

I think you should disabling power management for the wireless adapter: Sometimes, power management settings can cause issues with resuming after hibernate. You can try disabling power management for the wireless adapter by creating a configuration file. Run the following command to create the file:


Code:
bash
sudo nano /etc/udev/rules.d/10-wifi-power-management.rules

Add the following line to the file:

Code:
ACTION=="add", SUBSYSTEM=="net", KERNEL=="wlan*", RUN+="/usr/bin/iw dev %k set power_save off"

Save the file (Ctrl+O) and exit (Ctrl+X).