You are not logged in.

#1 2018-01-01 17:43:16

d_fajardo
Member
Registered: 2017-07-28
Posts: 1,689

[Solved] Wi-Fi doesn't reconnect to the same SSID after reboot

I have successfully installed Arch in my computer. I use NetworkManager to access the wifi-network.

I can connect to my home network but everytime I reboot, it doesn't reconnect to the same SSID automatically and wouldn't reconnect as well even if I do it manually. The only way I can reconnect is by deleting the SSID profile in NetworkManager (via GUI) and rebooting. I reboot, click on the desired network and enter password and I'm back online.

What would be the way to fix this? I don't know much about networking.

Last edited by d_fajardo (2018-01-03 12:20:21)

Offline

#2 2018-01-01 17:54:52

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,722

Re: [Solved] Wi-Fi doesn't reconnect to the same SSID after reboot

Please post the output of find /etc/systemd


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#3 2018-01-01 18:03:32

d_fajardo
Member
Registered: 2017-07-28
Posts: 1,689

Re: [Solved] Wi-Fi doesn't reconnect to the same SSID after reboot

I'll get to my laptop.

Last edited by d_fajardo (2018-01-01 18:07:58)

Offline

#4 2018-01-01 18:10:39

d_fajardo
Member
Registered: 2017-07-28
Posts: 1,689

Re: [Solved] Wi-Fi doesn't reconnect to the same SSID after reboot

This is the output when I ran find /etc/systemd:

/etc/systemd
/etc/systemd/network                                                                                                                                                                            
/etc/systemd/user                                                                                                                                                                               
/etc/systemd/user/sockets.target.wants
/etc/systemd/user/sockets.target.wants/dirmngr.socket
/etc/systemd/user/sockets.target.wants/gpg-agent.socket
/etc/systemd/user/sockets.target.wants/gpg-agent-browser.socket
/etc/systemd/user/sockets.target.wants/gpg-agent-extra.socket
/etc/systemd/user/sockets.target.wants/gpg-agent-ssh.socket
/etc/systemd/user/sockets.target.wants/pulseaudio.socket
/etc/systemd/system
/etc/systemd/system/getty.target.wants
/etc/systemd/system/getty.target.wants/getty@tty1.service
/etc/systemd/system/multi-user.target.wants
/etc/systemd/system/multi-user.target.wants/remote-fs.target
/etc/systemd/system/multi-user.target.wants/NetworkManager.service
/etc/systemd/system/multi-user.target.wants/wpa_supplicant.service
/etc/systemd/system/display-manager.service
/etc/systemd/system/dbus-org.freedesktop.NetworkManager.service
/etc/systemd/system/dbus-org.freedesktop.nm-dispatcher.service
/etc/systemd/system/dbus-fi.w1.wpa_supplicant1.service
/etc/systemd/timesyncd.conf
/etc/systemd/resolved.conf
/etc/systemd/coredump.conf
/etc/systemd/journal-remote.conf
/etc/systemd/journal-upload.conf
/etc/systemd/user.conf
/etc/systemd/system.conf
/etc/systemd/logind.conf
/etc/systemd/journald.conf

Offline

#5 2018-01-01 18:22:40

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,722

Re: [Solved] Wi-Fi doesn't reconnect to the same SSID after reboot

If you are going to use NetworkManager, then disable the wpa_supplicant service.  NetworkManager will handle starting wpa_supplicant.  The wpa_supplicant service starts a separate instance of wpa+supplicant that fights with the one NetworkManager starts.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#6 2018-01-01 22:31:13

d_fajardo
Member
Registered: 2017-07-28
Posts: 1,689

Re: [Solved] Wi-Fi doesn't reconnect to the same SSID after reboot

Thanks ewaller. It works but not quite working yet as I would expect. After reboot, NetworkManager automatically tries to login the SSID but it goes to a short loop 'Waiting for authorization...' after which it dies. But when I click on the connection again, then it starts running properly.
Is there some kind of setting I have to look at?

Last edited by d_fajardo (2018-01-01 22:33:58)

Offline

#7 2018-01-01 22:51:10

robg
Member
Registered: 2015-03-05
Posts: 225

Re: [Solved] Wi-Fi doesn't reconnect to the same SSID after reboot

What is your desktop environment? Do you have the appropriate Polkit authentication agent installed?

Offline

#8 2018-01-01 22:55:18

d_fajardo
Member
Registered: 2017-07-28
Posts: 1,689

Re: [Solved] Wi-Fi doesn't reconnect to the same SSID after reboot

KDE with SDDM. Not sure I have Polkit. This is a totally fresh install.

Offline

#9 2018-01-01 23:06:22

robg
Member
Registered: 2015-03-05
Posts: 225

Re: [Solved] Wi-Fi doesn't reconnect to the same SSID after reboot

This might be of interest to you. (Hint: `pacman -Qs`)

Last edited by robg (2018-01-01 23:07:36)

Offline

#10 2018-01-01 23:30:21

d_fajardo
Member
Registered: 2017-07-28
Posts: 1,689

Re: [Solved] Wi-Fi doesn't reconnect to the same SSID after reboot

Yes I don't have polkit. Just installe. Now I'm not sure what to do.

Offline

#11 2018-01-02 11:19:56

d_fajardo
Member
Registered: 2017-07-28
Posts: 1,689

Re: [Solved] Wi-Fi doesn't reconnect to the same SSID after reboot

I created this file:

/etc/polkit-1/rules.d/50-org.freedesktop.NetworkManager.rules
polkit.addRule(function(action, subject) {
  if (action.id.indexOf("org.freedesktop.NetworkManager.") == 0 && subject.isInGroup("network")) {
    return polkit.Result.YES;
  }
});

as suggested in the NetworkManager wiki. Added myself to network group.

Still the same behaviour persist.

dmesg has the following entry:

45.002720] IPv6: ADDRCONF(NETDEV_UP): wlp3s0: link is not ready
[   45.022771] iwlwifi 0000:03:00.0: Radio type=0x1-0x2-0x0
[   45.312685] iwlwifi 0000:03:00.0: Radio type=0x1-0x2-0x0
[   45.396215] IPv6: ADDRCONF(NETDEV_UP): wlp3s0: link is not ready
[   51.741655] iwlwifi 0000:03:00.0: Radio type=0x1-0x2-0x0
[   52.034574] iwlwifi 0000:03:00.0: Radio type=0x1-0x2-0x0
[   52.120507] IPv6: ADDRCONF(NETDEV_UP): wlp3s0: link is not ready
[   55.486294] wlp3s0: authenticate with b0:89:00:78:67:bc
[   55.490015] wlp3s0: send auth to b0:89:00:78:67:bc (try 1/3)
[   55.568764] wlp3s0: authenticated
[   55.569969] wlp3s0: associate with b0:89:00:78:67:bc (try 1/3)
[   55.571224] wlp3s0: RX AssocResp from b0:89:00:78:67:bc (capab=0x411 status=0 aid=2)
[   55.591742] wlp3s0: associated
[   55.600169] IPv6: ADDRCONF(NETDEV_CHANGE): wlp3s0: link becomes ready

Could it be that wlp3s0 is not kicking in early enough?

Offline

#12 2018-01-02 13:13:49

robg
Member
Registered: 2015-03-05
Posts: 225

Re: [Solved] Wi-Fi doesn't reconnect to the same SSID after reboot

d_fajardo wrote:

Yes I don't have polkit. Just installe. Now I'm not sure what to do.

Just to confirm, you do have polkit and polkit-kde-agent installed, and the behavior persists? (Sometimes without the latter package, the connection is established but the GUI is showing symptoms similarly to what you described in your 4th post.)

Offline

#13 2018-01-02 16:50:54

d_fajardo
Member
Registered: 2017-07-28
Posts: 1,689

Re: [Solved] Wi-Fi doesn't reconnect to the same SSID after reboot

Yes I do have polkit and polkit-kde-agent. The behaviour persist. After reboot, the NetworkManager tries to connect to the SSID with the message 'Waiting for authorisation...' then just dies. But when I click on the SSID icon, I can connect immediately.

Do I need to adjust some settings in polkit? Or is this an issue with the wlp3s0 interface?

Offline

#14 2018-01-02 17:20:32

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,722

Re: [Solved] Wi-Fi doesn't reconnect to the same SSID after reboot

Please post tour new output of find /etc/systemd


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#15 2018-01-03 08:03:14

d_fajardo
Member
Registered: 2017-07-28
Posts: 1,689

Re: [Solved] Wi-Fi doesn't reconnect to the same SSID after reboot

find /etc/systemd yields

/etc/systemd
/etc/systemd/network
/etc/systemd/user
/etc/systemd/user/sockets.target.wants
/etc/systemd/user/sockets.target.wants/dirmngr.socket
/etc/systemd/user/sockets.target.wants/gpg-agent.socket
/etc/systemd/user/sockets.target.wants/gpg-agent-browser.socket
/etc/systemd/user/sockets.target.wants/gpg-agent-extra.socket
/etc/systemd/user/sockets.target.wants/gpg-agent-ssh.socket
/etc/systemd/user/sockets.target.wants/pulseaudio.socket
/etc/systemd/system
/etc/systemd/system/getty.target.wants
/etc/systemd/system/getty.target.wants/getty@tty1.service
/etc/systemd/system/multi-user.target.wants
/etc/systemd/system/multi-user.target.wants/remote-fs.target
/etc/systemd/system/multi-user.target.wants/NetworkManager.service
/etc/systemd/system/multi-user.target.wants/dictd.service
/etc/systemd/system/dbus-org.freedesktop.NetworkManager.service
/etc/systemd/system/dbus-org.freedesktop.nm-dispatcher.service
/etc/systemd/system/display-manager.service
/etc/systemd/timesyncd.conf
/etc/systemd/resolved.conf
/etc/systemd/coredump.conf
/etc/systemd/journal-remote.conf
/etc/systemd/journal-upload.conf
/etc/systemd/user.conf
/etc/systemd/system.conf
/etc/systemd/logind.conf
/etc/systemd/journald.conf

I checked NetworkManager.conf as well and the file is completely empty. Just wondered if this is normal.

Offline

#16 2018-01-03 12:21:25

d_fajardo
Member
Registered: 2017-07-28
Posts: 1,689

Re: [Solved] Wi-Fi doesn't reconnect to the same SSID after reboot

Strange but everything works now without further intervention. Thanks for all the help.

Offline

Board footer

Powered by FluxBB