You are not logged in.

#1 2017-05-23 18:35:32

DarkShiro
Member
Registered: 2017-05-17
Posts: 4

[SOLVED] Problem with the wireless connection

Hi, everybody.
I installed arch a few days ago, but I can't configure the wireless network. I follow the guide (Wireless Network Configuration) but I have a series of problems.
First I execute

ip link

to see the state of the connections.
This appears:

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: enp7s0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
    link/ether 88:ae:1d:25:c0:7c brd ff:ff:ff:ff:ff:ff
3: wlan0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
    link/ether 78:e4:00:5c:cc:9f brd ff:ff:ff:ff:ff:ff

Then I execute

ip link set dev wlan0 up

And the result is this:

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: enp7s0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
    link/ether 88:ae:1d:25:c0:7c brd ff:ff:ff:ff:ff:ff
3: wlan0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN mode DEFAULT group default qlen 1000
    link/ether 78:e4:00:5c:cc:9f brd ff:ff:ff:ff:ff:ff

Then, following the guide, the next step is to execute:

wpa_supplicant -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf

Well, when I execute this command nothing occurs. The cursor stays blinking eternally.
If I execute the command with -B and then I execute

dhcpcd wlan0

this appears:

wlan0: waiting for carrier
timed out
dhcpcd exited

I had to install the b43-firmware because my network controller is Broadcom Limited BCM4312 802.11b/g LP-PHY (rev01)
But I can't connect to the internet via wifi sad

Thank you

P.D.: Sorry for my bad english, it isn't my native language

Last edited by DarkShiro (2017-05-26 00:41:07)

Offline

#2 2017-05-23 21:48:00

seth
Member
Registered: 2012-09-03
Posts: 50,008

Re: [SOLVED] Problem with the wireless connection

And /etc/wpa_supplicant/wpa_supplicant.conf looks like what?
https://wiki.archlinux.org/index.php/WPA_supplicant

Did you have trouble connecting w/ wifi-menu?

Offline

#3 2017-05-23 22:26:22

DarkShiro
Member
Registered: 2017-05-17
Posts: 4

Re: [SOLVED] Problem with the wireless connection

It looks like this:

network={
       ssid="My SSID"
       #psk="My password"
       psk="a lot of numbers and letters"
}

I generate the file with the command

wpa_passphrase "My-SSID password" > /etc/wpa_supplicant/wpa_supplicant

I got the name of my SSID by executing the command:

iw dev wlan0 scan

This only works after I execute

ip link set dev wlan0 up

Edit: I didn't prove with wifi-menu

Last edited by DarkShiro (2017-05-23 22:58:04)

Offline

#4 2017-05-24 05:57:53

seth
Member
Registered: 2012-09-03
Posts: 50,008

Re: [SOLVED] Problem with the wireless connection

Since you're not reporting any errors when running wpa_supplicant undaemonized and scanning works, try running dhcpcd with a bigger timeout
dhcpcd -d -t 120 # 2 minutes + debug messages

if that doesn't work, kill the wpa_supplicant instance and try non-daemonized with increased debugging:
wpa_supplicant -dd -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf

If that doesn't tell you anything (wrong key, connection refused etc) you may face a bug in dhcpcd - try dhclient instead.

Offline

#5 2017-05-25 18:29:27

DarkShiro
Member
Registered: 2017-05-17
Posts: 4

Re: [SOLVED] Problem with the wireless connection

Thank you very much!
It worked when I ran

wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf

followed by

dhcpcd -d -t 120

Now the problem is that when I reboot, the connection is down and I have to run this commands again. Is there a way for the connection to stay up?

Offline

#6 2017-05-25 19:51:17

seth
Member
Registered: 2012-09-03
Posts: 50,008

Re: [SOLVED] Problem with the wireless connection

https://wiki.archlinux.org/index.php/Ne … k_managers

Pick one. Handcrafting networkmanagement is no good idea.
dhcpcd driven management is documented here: https://wiki.archlinux.org/index.php/Dhcpcd

Offline

#7 2017-05-26 00:40:44

DarkShiro
Member
Registered: 2017-05-17
Posts: 4

Re: [SOLVED] Problem with the wireless connection

Thanks for all your help!
I finally resolved this last problem adding in the .bash_profile this:

ip link set dev wlan0 up
wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf
sleep 1
dhcpcd -d -t 120

Offline

Board footer

Powered by FluxBB