Lost wireless connection

Questions about WIFI networks and devices
Forum rules
Before you post please read how to get help
Post Reply
fredand44
Level 1
Level 1
Posts: 24
Joined: Thu Nov 09, 2017 2:38 am

Lost wireless connection

Post by fredand44 » Wed Jun 20, 2018 7:35 am

Hello guys!

I got a laptop Compaq 6910p with Sylvia 18.3 (Cinnamon-32)
From time to time when I just close the laptop and open up it a couple of hours later I have lost the wireless connection to my home Wifi.
The list of wireless networks is empty and I can not click the "Rescan for wireless networks" how ever nothing happens.

Do you guys see any solution to this problem?

My only solution is to restart the computer then it is automatically connected to the Wifi again.

Best regards
Fredrik

User avatar
Sir Charles
Level 7
Level 7
Posts: 1832
Joined: Thu Jan 04, 2018 1:00 pm

Re: Lost wireless connection

Post by Sir Charles » Wed Jun 20, 2018 8:15 am

If your machine goes to sleep/suspension when you close the lid, you could try to create a service for restarting the Network Manager after suspension.

Follow these steps:

1) Open a terminal and run the following command:

Code: Select all

gksudo xed /etc/systemd/system/wifi-resume.service
2) Copy and paste the following content in the file that opens:

Code: Select all

[Unit]
Description=Local system resume actions
After=suspend.target

[Service]
Type=oneshot
ExecStart=/bin/systemctl restart network-manager.service

[Install]
WantedBy=suspend.target
(If your machine goes into hibernation when you close the lid, changesuspend.targettohibernate.target)
Save and close the file.


3) Make the file executable:

Code: Select all

sudo chmod +x  /etc/systemd/system/wifi-resume.service
4) Enable the new service:

Code: Select all

sudo systemctl enable wifi-resume.service
Reboot your machine.

Hope this helps to resolve the issue.

Good luck!
I suppose that's one of the ironies of life, doing the wrong thing at the right moment -C.C.

fredand44
Level 1
Level 1
Posts: 24
Joined: Thu Nov 09, 2017 2:38 am

Re: Lost wireless connection

Post by fredand44 » Thu Jun 21, 2018 12:56 am

Hello!
Thank you for these excellent instructions!
I will now reboot the machine an try it out.

I just mention that after the second step when the file was saved and xed was closed I got:

Code: Select all

** (xed:3080): WARNING **: Set document metadata failed: Setting attribute metadata::xed-position not supported
Is it something I should notice?

Best regards
Fredrik

User avatar
Sir Charles
Level 7
Level 7
Posts: 1832
Joined: Thu Jan 04, 2018 1:00 pm

Re: Lost wireless connection

Post by Sir Charles » Thu Jun 21, 2018 2:59 am

fredand44 wrote:
Thu Jun 21, 2018 12:56 am
I just mention that after the second step when the file was saved and xed was closed I got:

Code: Select all

** (xed:3080): WARNING **: Set document metadata failed: Setting attribute metadata::xed-position not supported
Is it something I should notice?
Honestly, it is the first time I come across such a message but I found the following post in another thread in the forums:
JosephM wrote:
Sun Feb 11, 2018 8:14 pm
These types of warnings are typical when running Gtk applications as root. It shouldn't be preventing Xed from working but simply warning you that certain functionality isn't. For example, xed-position is the bit of info in the metadata that xed uses for it's "Restore cursor position" functionality. It's just letting you know that it wasn't able to write that part of the metadata so your cursor won't be restored to the same position as it was when you last worked on the file.

You could also just use

Code: Select all

SUDO_EDITOR=xed sudoedit /etc/auto.sambashares
That creates a temporary version of the file you can edit as your own user and only overwrites the original once the editor is closed.
But I don't know why you would get this message if you used gksudo xed for editing the file as root. Though there is one poster in that thread saying that he/she is getting the same even when using gksudo.
I suppose that's one of the ironies of life, doing the wrong thing at the right moment -C.C.

fredand44
Level 1
Level 1
Posts: 24
Joined: Thu Nov 09, 2017 2:38 am

Re: Lost wireless connection

Post by fredand44 » Fri Jul 06, 2018 12:50 am

Hello Marziano!

Thank's a lot for for your excellent help and instructions, works perfect!

Best regards
Fredrik

User avatar
Sir Charles
Level 7
Level 7
Posts: 1832
Joined: Thu Jan 04, 2018 1:00 pm

Re: Lost wireless connection

Post by Sir Charles » Fri Jul 06, 2018 2:36 am

You are welcome!
I am glad to hear that it worked out for you.

cheers
I suppose that's one of the ironies of life, doing the wrong thing at the right moment -C.C.

Post Reply

Return to “Wireless”