You are not logged in.

#1 2013-05-20 15:36:38

Archdove
Member
Registered: 2011-09-23
Posts: 118

netctl-auto not working

Hi

I switched from network manager to netctl and i am still happy. But when i suspend my computer and resume later on i don't have any connection anymore. Netctl thinks it is still connected though.

I don't really know where to start debugging. It seems that there is nothing more i can do except starting and stoping the services withy systemctl.

Regards, Archdove

Offline

#2 2013-05-20 17:02:23

firecat53
Member
From: Lake Stevens, WA, USA
Registered: 2007-05-14
Posts: 1,542
Website

Re: netctl-auto not working

Well, FWIW netctl-auto works fine here post-resume. You should probably post exactly how you are enabling/running netctl, your netctl profile and what type of wireless card/driver you have, for starters. Have you looked through journalctl for clues?

Scott

Offline

#3 2013-05-20 17:22:22

Archdove
Member
Registered: 2011-09-23
Posts: 118

Re: netctl-auto not working

I have enabled netctl like this:

 systemctl enable netctl-auto@wlan0.service
systemctl enable netctl-sleep.service

Maybe i shuld somehow handle suspend/sleep with systemd and not with pm-utils like i did before systemd?

edit:

I seems that the problem only occurs if i suspend for a longer time. When i just suspend/resume for testing it works...

Last edited by Archdove (2013-05-20 17:28:16)

Offline

#4 2013-05-20 20:02:07

firecat53
Member
From: Lake Stevens, WA, USA
Registered: 2007-05-14
Posts: 1,542
Website

Re: netctl-auto not working

I don't believe you need to use the netctl-sleep.service. I don't, and mine resumes just fine. Try disabling that and see what happens...

Scott

Offline

#5 2013-05-21 10:46:05

10PinkPanther
Member
From: Croatia
Registered: 2012-11-10
Posts: 374

Re: netctl-auto not working

Same here.I'm not using netctl sleep.service and after suspend everything works just fine.

Offline

#6 2013-05-22 20:47:51

Archdove
Member
Registered: 2011-09-23
Posts: 118

Re: netctl-auto not working

I disabled it for now. Tomorrow i will see if it is of any use.

EDIT:

It is of no use. Exact same behaviour as before:
- Wlan connection ok
- sleep for a few minutes (>15)
- open lid
- connection seems to be ok in awesome wm widget
- but connection is not really up


I did look into journalcfg but i could not find anything.

Last edited by Archdove (2013-05-23 11:07:00)

Offline

#7 2013-05-24 13:22:20

Archdove
Member
Registered: 2011-09-23
Posts: 118

Re: netctl-auto not working

I don't know which update changed it but reconnecting works now. ... Thing is, my awesome widget is not so awesome anymore... it only shows N/A.
Closed but not solved.

Offline

#8 2013-05-25 00:01:47

thesystematic
Member
Registered: 2013-02-08
Posts: 44

Re: netctl-auto not working

If you run iwconfig after resume, does it show the network is connected, even though you have no internet?

I think pm-utils is not turning your connection off on suspend, so netctl doesn't know to reconnect on resume...if you're not using pm-utils for a specific reason systemd's suspend functions are just as good. Otherwise, add a 'sudo ip link set wlan0 down' pre resume and that might help?

Not too sure about that, but could be worth a try

Offline

#9 2013-05-27 15:49:42

Archdove
Member
Registered: 2011-09-23
Posts: 118

Re: netctl-auto not working

I did uninstall pm-utils and i didn't notice any problems so far. I will wait until the end of the Week before marking this thread as solved.

Systemd brings many features and i lack a bit the overview about what to do whith it and what not.

Offline

#10 2013-09-27 16:24:35

A.J.Rouvoet
Member
From: Naaldwijk, The Netherlands
Registered: 2012-06-30
Posts: 37
Website

Re: netctl-auto not working

I had the same problem.
Creating and enabling the following service was an easy solution that seems to have done the trick:

[Unit]
Description=netctl sleep hook
Before=sleep.target
StopWhenUnneeded=yes

[Service]
Type=oneshot
RemainAfterExit=yes
ExecStop=/usr/bin/systemctl restart netctl-auto@wlp1s0.service

[Install]
WantedBy=sleep.target

Make sure to replace wlp1s0 with your wireless interface name.

Offline

Board footer

Powered by FluxBB