You are not logged in.

#1 2018-08-07 02:23:34

tim123
Member
Registered: 2018-08-07
Posts: 2

[SOLVED] Wireless interface defaults to "down" upon reboot.

After a recent installation, I haven't been able to get the wireless internet to work automatically by default. Here's what I find after powering on the laptop (acer aspire):

"ip link show" states the wireless interface is down. "ip link set wlp3s0 up" is used to switch it on.

The "wpa_passphrase" command was used to store the SSID and password in a file at /etc/wpa_supplicant/wpa_supplicant.conf during the initial installation.

Next, I use "wpa_supplicant -B -c /etc/wpa_supplicant/wpa_supplicant.conf -i wlp3s0".

Finally dhcpcd wlp3s0 to acquire an ip address.

"ping archlinux.org". Success!

The problem is, upon reboot, there is no connection. "ip link show" once again states that the wireless interface is "down". My mental model of networking is fairly poor, and I suspect there is a simple solution to this. Unsure what information is pertinent. Let me know, and I will post it. Any advice is appreciated!

Last edited by tim123 (2018-08-07 03:50:15)

Offline

#2 2018-08-07 02:49:14

circleface
Member
Registered: 2012-05-26
Posts: 639

Re: [SOLVED] Wireless interface defaults to "down" upon reboot.

You have to use some sort of network manager if you want this stuff to be done automatically on boot.  NetworkManager, systemd-networkd, and netctl can all automate this and are pretty easy to set up.  Just check the wiki page for whichever you choose to use.

Offline

#3 2018-08-07 03:29:03

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,541
Website

Re: [SOLVED] Wireless interface defaults to "down" upon reboot.

I agree with the diagnosis above, but none of those treatments seem "easy" to me.

Just enable dhdpcd's wpa_supplicant hook once, then enable dhcpcd@wlp3s0 once, and from then on it will 'just work'.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Online

#4 2018-08-07 03:48:22

tim123
Member
Registered: 2018-08-07
Posts: 2

Re: [SOLVED] Wireless interface defaults to "down" upon reboot.

Thanks to both Circleface and Trilby for replying. I didn't see the latter's reply until after I applied circleface's solution, which solved the problem. I chose the netctl network manager and found it straightforward enough.

Offline

#5 2018-08-07 03:50:39

circleface
Member
Registered: 2012-05-26
Posts: 639

Re: [SOLVED] Wireless interface defaults to "down" upon reboot.

Good point Trilby, I sort of forgot about using plain old dhcpcd wink  (I personally use systemd-networkd on my network, but before that I used netctl)

Offline

#6 2018-08-07 04:21:37

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,541
Website

Re: [SOLVED] Wireless interface defaults to "down" upon reboot.

They're all good options.  I regularly advocate for my proposal simply because it does seem to be often neglected when much more complicated management tools are recommended when they may not be needed.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Online

Board footer

Powered by FluxBB