SMS notification inconsistent and Wifi issue (waking up?)
#9
(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.

@as400

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

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

Content of reload_realtek_driver.sh as an example:
Code:
#!/bin/sh

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

  post/*)
        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
        ;;
esac

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:
Code:
sudo journalctl -b -u systemd-suspend

You can comment out the echos to reload_realtek_driver.log in home directory.
To see its logs:
Code:
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 Amaysim SIM (Optus network, VoLTE enabled) with Mobian SD card. VoLTE working also with Felix / Vodafone AU and Aldimobile / Telstra AU.
Manjaro Plasma Mobile on EMMC.
  Reply


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
  Pinephone seems tobe using 4G data instead of Wifi data grump_fiddle_reinstall 1 796 06-25-2024, 10:38 AM
Last Post: mikehenson
  New keyboard issue sandspur 29 16,818 10-05-2023, 02:27 AM
Last Post: grump_fiddle_reinstall
  System won't suspend due to suspention notification user641 6 2,587 09-24-2023, 05:47 AM
Last Post: user641
  reset wifi hardware/driver when it dies through console on pp? tuxcall 4 2,599 07-18-2023, 08:54 AM
Last Post: junelung
  GStreamer Camera Issue (Unsupported pixformat: 0x56595559 with mbus code: 0x3001) sog8b 1 1,547 07-17-2023, 01:49 AM
Last Post: junelung
  Wifi doesn't work after update nickolas 2 1,769 04-14-2023, 10:07 AM
Last Post: nickolas
  Recent install, no wifi user641 3 2,077 01-12-2023, 03:06 PM
Last Post: user641
  Possible solutions to the battery draining issue? 3x5co 5 3,325 11-28-2022, 10:58 AM
Last Post: 3x5co
  Wifi issue since last update and held back updates goku499 11 7,257 09-21-2022, 02:39 PM
Last Post: Katsujinken
  Pinephone incoming call / SMS notification no ringing / notification volume dcinoz 3 3,508 06-02-2022, 07:16 AM
Last Post: arkadione

Forum Jump:


Users browsing this thread: 1 Guest(s)