Page 1 of 1

[Solved] List of WiFi stations disappears with LM18.x

Posted: Sat Jun 23, 2018 6:06 pm
by Laugh2
I help with several computers running Linux Mint, all are on LM 18.x MATE 64-bit and several have wireless connections. The problem is that the list of WiFi stations disappears after a while making it impossible to change WiFi stations via the GUI. (Or at least I haven't found another way?) Even though the list is gone, the wireless connection continues to function properly and connection speeds remain unchanged.

How can I get the list of available WiFi stations to reappear when I right click with the mouse on the network connection icon i.e. those 4 short vertical bars in a triangular shape where Connection Information can also be found?

Some details for one of the old laptops concerned:
inxi -nn replies
  • Network: Card-1: Broadcom BCM4312 802.11b/g LP-PHY driver: wl
    IF: wlp2s0 state: up mac: xx:xx:xx:xx:xx:xx
    Card-2: Qualcomm Atheros AR8132 Fast Ethernet driver: atl1c
    IF: enp5s0 state: down mac: xx:xx:xx:xx:xx:xx
iwconfig replies:
  • enp5s0 no wireless extensions.

    wlp2s0 IEEE 802.11 ESSID:"homeagain"
    Mode:Managed Frequency:2.462 GHz Access Point: xx:xx:xx:xx:xx:xx
    Bit Rate=54 Mb/s Tx-Power=200 dBm
    Retry short limit:7 RTS thr:off Fragment thr:off
    Encryption key:off
    Power Management:off
    Link Quality=60/70 Signal level=-50 dBm
    Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
    Tx excessive retries:0 Invalid misc:0 Missed beacon:0

    lo no wireless extensions.
I turned off power management since last rebooting but it hasn't made any difference. Can anyone make suggestions? This seems to be a characteristic of LM18.x as this problem is not new to me and effects several machines. And yes, the list does appear as expected after rebooting but then disappears again sometime.

Re: List of WiFi stations disappears with LM18.x

Posted: Mon Jun 25, 2018 3:16 pm
by kc1di
Try this command

Code: Select all

systemctl restart NetworkManager

Re: List of WiFi stations disappears with LM18.x

Posted: Tue Jun 26, 2018 4:53 am
by Laugh2
That worked perfectly. That's, excellent! :D

Re: [Solved] List of WiFi stations disappears with LM18.x

Posted: Tue Jun 26, 2018 5:35 am
by kc1di
Glad it worked for you. :)
you can automate the process if you want by creating a file with the following data.

Code: Select all

[Unit]

Description=Restart networkmanager at resume

After=suspend.target

After=hibernate.target

After=hybrid-sleep.target


[Service]

Type=oneshot

ExecStart=/bin/systemctl restart network-manager.service


[Install]

WantedBy=suspend.target

WantedBy=hibernate.target

WantedBy=hybrid-sleep.target
Create it with your favorite text editor then save it in

Code: Select all

/etc/systemd
name it

Code: Select all

wifi-resume.service
(note you have to be have root privileges to do it. (so use gksudo xed /or other favorite text editor/ to create the file and save it.)

Then issue this command in a terminal

Code: Select all

systemctl enable wifi-resume.service

That will cause systemd to run the service automatically each time you come out of suspend or hibernations.
good luck.

Re: [Solved] List of WiFi stations disappears with LM18.x

Posted: Fri Jun 29, 2018 3:25 am
by tgwilt
kc1di wrote:
Tue Jun 26, 2018 5:35 am
Glad it worked for you. :)
you can automate the process if you want by creating a file with the following data.

Code: Select all

[Unit]

Description=Restart networkmanager at resume

After=suspend.target

After=hibernate.target

After=hybrid-sleep.target


[Service]

Type=oneshot

ExecStart=/bin/systemctl restart network-manager.service


[Install]

WantedBy=suspend.target

WantedBy=hibernate.target

WantedBy=hybrid-sleep.target
Create it with your favorite text editor then save it in

Code: Select all

/etc/systemd
name it

Code: Select all

wifi-resume.service
(note you have to be have root privileges to do it. (so use gksudo xed /or other favorite text editor/ to create the file and save it.)

Then issue this command in a terminal

Code: Select all

systemctl enable wifi-resume.service

That will cause systemd to run the service automatically each time you come out of suspend or hibernations.
good luck.
This command (sudo systemctl restart network-manager.service) never works for me. I usually have to use WICD to reconnect to the wireless network as network-manager claims that there are no wireless networks available. Sigh...it's not a big deal to me, though. I don't mind using WICD or rebooting the computer I'm using.

Re: [Solved] List of WiFi stations disappears with LM18.x

Posted: Fri Jun 29, 2018 5:20 am
by kc1di
tgwilt wrote:
Fri Jun 29, 2018 3:25 am


This command (sudo systemctl restart network-manager.service) never works for me. I usually have to use WICD to reconnect to the wireless network as network-manager claims that there are no wireless networks available. Sigh...it's not a big deal to me, though. I don't mind using WICD or rebooting the computer I'm using.
Which version of Mint are you using?

You should start a new thread if you want to explore why the command does not work for you.

Re: [Solved] List of WiFi stations disappears with LM18.x

Posted: Mon Oct 08, 2018 1:52 am
by farkas
I had a similar problem with Mint 19
viewtopic.php?f=47&t=279102
I followed the steps in this post, most of it worked.
The final solution needed a little tweak.

Re: How do you open Xed in administrator mode?

Post by smurphos » Sun Oct 07, 2018 9:39 pm
I don't think the instructions you followed specified the correct location. Try moving /etc/systemd/wifi-resume.service to /etc/systemd/system/wifi-resume.service

To move the service file via the terminal - sudo mv etc/systemd/wifi-resume.service /etc/systemd/system/wifi-resume.service

Or you can use nemo with root privileges.