SMS notification inconsistent and Wifi issue (waking up?)
(01-20-2021, 05:06 AM)as400 Wrote: I'm sure what we could do, about wifi module, is to reload it (with systemd) everytime you wake up the phone and enter Phosh.


Here is a script to automatically reload Realtek wifi / BT driver when coming out of sleep / suspend:

Create an executable file here:
sudo nano /usr/lib/systemd/system-sleep/
sudo chmod +x /usr/lib/systemd/system-sleep/

Content of as an example:

case $1/$2 in
        sudo logger "`date`     Phone going to sleep..."
        sudo echo "`date`       Sleep" >> /home/mobian/reload_realtek_driver.log

        sudo logger "'date'     Reloading Realtek wifi / BT drives as waking up from sleep..."
        sudo echo "`date`       Waking up and reloading Realtek wifi / BT driver" >> /home/mobian/reload_realtek_driver.log
        # reload realtek driver
        sudo rmmod 8723cs
        sudo modprobe 8723cs

Script does nothing on suspend (pre). Not sure where logger is output, if at all.

Systemd journal log can be seen using the following command:
sudo journalctl -b -u systemd-suspend

You can comment out the echos to reload_realtek_driver.log in home directory.
To see its logs:
cat ~/reload_realtek_driver.log

I don't know if there are any undesirable side effects so please let us know.
I don't know if it prevents the intermittent wifi issues but please let us know.
Pinephone v1.2 UBports CE. Adelaide, Australia using Aldimobile SIM with Mobian SD card.
Manjaro Plasma Mobile on EMMC.

Messages In This Thread
RE: SMS notification inconsistent and Wifi issue (waking up?) - by dcinoz - 01-20-2021, 07:21 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Jerky wifi and bluetooth motox6 0 229 06-22-2021, 12:50 AM
Last Post: motox6
  Mobiian Community edition issue after spalsh screen ashley123 14 2,224 03-08-2021, 05:34 AM
Last Post: wibble
  eg25manager always turns on GPS when waking up from sleep dcinoz 5 884 02-21-2021, 05:06 PM
Last Post: dcinoz
  Dismiss notification button or gesture? vandys 5 1,158 02-15-2021, 07:53 PM
Last Post: pagesix1536
  lima driver issue albertz 0 411 02-08-2021, 07:03 AM
Last Post: albertz
  Manjaro convergence edition (3GB) charging/power issue Saliency 1 818 11-24-2020, 11:04 AM
Last Post: Saliency
  Phone call audio issue in Mobian? Hiraghm 1 1,496 08-28-2020, 02:40 PM
Last Post: HLing
  Mobian and WiFi astrogenealogist 3 1,533 08-19-2020, 01:26 PM
Last Post: astrogenealogist
  wifi comes and goes and prompts for password often motox6 2 1,315 08-05-2020, 11:39 PM
Last Post: Boern
  USB OTG issue Ididntknowwhatnametochoose 2 1,307 07-24-2020, 05:57 PM
Last Post: Ididntknowwhatnametochoose

Forum Jump:

Users browsing this thread: 1 Guest(s)