You are not logged in.

#1 2016-07-02 18:15:18

thebonaestest
Member
Registered: 2016-03-20
Posts: 7

Can't connect to wifi with HP Spectre

So a couple months ago I bought a new laptop, an HP Spectre. For about two weeks, I was using wicd, and the wifi was working perfectly. One day, wicd spontaneously stopped working. When I try to connect to my network (Doyle-WiFi), wicd gives me all the log messages it would if it were connecting, tells me it's authenticating and getting an IP and everything, but the doesn't actually connect. I made a forum post about this problem, but I didn't get any replies. I also did some googling around, and as far as I can tell, nobody else has had this problem.
So I gave up and just started using wifi-menu to connect. And that also worked fine for a while (excluding a weird message about not being able to read the p2p-dev-wlo1 interface), but that eventually stopped working too. Now when I try to use wifi-menu it tells me:

Scanning for networks... failed
No networks found

This is the same if I set the interface up and try it, set the interface down and try it, etc.. So I started trying to just use wpa_supplicant. I made the config file and all that, but it did the same thing - it worked like once, and then never again. My most recent attempt:

sudo wpa_supplicant -c/home/sean/doyle-wifi.conf -iwlo1
Successfully initialized wpa_supplicant
Could not read interface p2p-dev-wlo1 flags: No such device
nl80211: Could not set interface 'p2p-dev-wlo1' UP
nl80211: deinit ifname=p2p-dev-wlo1 disabled_11b_rates=0
p2p-dev-wlo1: Failed to initialize driver interface
P2P: Failed to enable P2P Device interface
wlo1: CTRL-EVENT-SCAN-FAILED ret=-16 retry=1
wlo1: CTRL-EVENT-SCAN-FAILED ret=-16 retry=1
wlo1: CTRL-EVENT-SCAN-FAILED ret=-16 retry=1
wlo1: SME: Trying to authenticate with 10:05:b1:5a:89:60 (SSID='Doyle-WiFi' freq=2462 MHz)
wlo1: Trying to associate with 10:05:b1:5a:89:60 (SSID='Doyle-WiFi' freq=2462 MHz)
wlo1: Associated with 10:05:b1:5a:89:60
wlo1: WPA: Key negotiation completed with 10:05:b1:5a:89:60 [PTK=CCMP GTK=TKIP]
wlo1: CTRL-EVENT-CONNECTED - Connection to 10:05:b1:5a:89:60 completed [id=0 id_str=]
wlo1: CTRL-EVENT-DISCONNECTED bssid=10:05:b1:5a:89:60 reason=3 locally_generated=1
wlo1: SME: Trying to authenticate with 10:05:b1:5a:89:60 (SSID='Doyle-WiFi' freq=2462 MHz)
wlo1: Trying to associate with 10:05:b1:5a:89:60 (SSID='Doyle-WiFi' freq=2462 MHz)
wlo1: Associated with 10:05:b1:5a:89:60
wlo1: CTRL-EVENT-DISCONNECTED bssid=10:05:b1:5a:89:60 reason=3 locally_generated=1
wlo1: SME: Trying to authenticate with 10:05:b1:5a:89:60 (SSID='Doyle-WiFi' freq=2462 MHz)
wlo1: Trying to associate with 10:05:b1:5a:89:60 (SSID='Doyle-WiFi' freq=2462 MHz)
wlo1: Associated with 10:05:b1:5a:89:60
wlo1: CTRL-EVENT-DISCONNECTED bssid=10:05:b1:5a:89:60 reason=3 locally_generated=1
wlo1: SME: Trying to authenticate with 10:05:b1:5a:89:60 (SSID='Doyle-WiFi' freq=2462 MHz)
wlo1: Trying to associate with 10:05:b1:5a:89:60 (SSID='Doyle-WiFi' freq=2462 MHz)
wlo1: Associated with 10:05:b1:5a:89:60
wlo1: CTRL-EVENT-DISCONNECTED bssid=10:05:b1:5a:89:60 reason=3 locally_generated=1
wlo1: WPA: 4-Way Handshake failed - pre-shared key may be incorrect
wlo1: CTRL-EVENT-SSID-TEMP-DISABLED id=0 ssid="Doyle-WiFi" auth_failures=1 duration=10 reason=WRONG_KEY
wlo1: CTRL-EVENT-SSID-TEMP-DISABLED id=0 ssid="Doyle-WiFi" auth_failures=2 duration=23 reason=CONN_FAILED
wlo1: CTRL-EVENT-SCAN-FAILED ret=-16 retry=1
wlo1: CTRL-EVENT-DISCONNECTED bssid=10:05:b1:5a:89:60 reason=3 locally_generated=1
wlo1: CTRL-EVENT-SCAN-FAILED ret=-16 retry=1
wlo1: CTRL-EVENT-SCAN-FAILED ret=-16 retry=1
wlo1: CTRL-EVENT-SSID-REENABLED id=0 ssid="Doyle-WiFi"
wlo1: SME: Trying to authenticate with 10:05:b1:5a:89:60 (SSID='Doyle-WiFi' freq=2462 MHz)
wlo1: Trying to associate with 10:05:b1:5a:89:60 (SSID='Doyle-WiFi' freq=2462 MHz)
wlo1: Associated with 10:05:b1:5a:89:60
wlo1: CTRL-EVENT-DISCONNECTED bssid=10:05:b1:5a:89:60 reason=3 locally_generated=1
wlo1: CTRL-EVENT-SSID-TEMP-DISABLED id=0 ssid="Doyle-WiFi" auth_failures=3 duration=46 reason=CONN_FAILED
wlo1: CTRL-EVENT-DISCONNECTED bssid=10:05:b1:5a:89:60 reason=3 locally_generated=1
wlo1: CTRL-EVENT-SCAN-FAILED ret=-16 retry=1
^Cnl80211: deinit ifname=wlo1 disabled_11b_rates=0
wlo1: CTRL-EVENT-TERMINATING 

The next thing I tried was googling the error message in the netctl log generated by wifi-menu, which said something about not being able to connect if the device was already up. I found the same advice several places, so I tried manually setting the interface down and then connecting with netctl:

sudo ip link set wlo1 down
netctl start wlo1-Doyle-WiFi

And I bet you can guess what happened next - it connected successfully, but after disconnecting and trying again it fails. Like wicd, it doesn't give me any errors or any output at all - it just doesn't connect. At one point running ip addr showed that my computer actually had an ip on the wlo1 interface, but it still didn't have network service (I have been unable to reproduce that).

Something to note - I am currently dual booting Windows 10 and Arch, and I haven't noticed any wifi problems at all when using Windows. This seems to be an Arch specific problem.

So what the hell is going on with my computer? Why would the wifi be working perfectly fine and suddenly just die? I have a couple of ideas, but no clue how to go about fixing the problem. Is it maybe a driver problem? That's what this line:

nl80211: Could not set interface 'p2p-dev-wlo1' UP

suggests to me, but I don't even know what the p2p device interface is, much less how to fix it.

I don't know if this is related, but I first started noticing problems after I accidentally installed gnome-control-center. On my old laptop I experienced wifi problems when I switched from gnome to i3 because networkmanager and wicd were both enabled and were conflicting, causing both to be unreliable. I believe networkmanager is a dependency for gnome-control-center, but I have uninstalled it and all of it's components (as far as I can tell) and I don't have any network related services at all enabled (as far as I can tell)... but is it possible that installing gnome-control-center, running it once, realizing it wasn't the program I wanted, and uninstalling it somehow broke my wifi?

Please, please help! If you even have the remotest idea of what I could try, what logs I could look at, anything, please contribute!

Thanks in advance

Last edited by thebonaestest (2016-07-02 19:56:09)

Offline

#2 2016-07-02 18:46:41

thebonaestest
Member
Registered: 2016-03-20
Posts: 7

Re: Can't connect to wifi with HP Spectre

Just a little more info:

At the moment, this is the behavior of the different ways I have tried to connect:
wifi-menu and netctl both fail, and this is the contents of the systemctl log:

Jul 02 13:38:43 Glamdring systemd[1]: Starting Networking for netctl profile wlo1-Doyle-WiFi...
Jul 02 13:38:43 Glamdring network[17406]: Starting network profile 'wlo1-Doyle-WiFi'...
Jul 02 13:38:43 Glamdring network[17406]: Could not read interface p2p-dev-wlo1 flags: No such device
Jul 02 13:38:59 Glamdring network[17406]: WPA association/authentication failed for interface 'wlo1'
Jul 02 13:38:59 Glamdring network[17406]: Failed to bring the network up for profile 'wlo1-Doyle-WiFi'
Jul 02 13:38:59 Glamdring systemd[1]: netctl@wlo1\x2dDoyle\x2dWiFi.service: Main process exited, code=exited, status=1/FAILURE
Jul 02 13:38:59 Glamdring systemd[1]: Failed to start Networking for netctl profile wlo1-Doyle-WiFi.
Jul 02 13:38:59 Glamdring systemd[1]: netctl@wlo1\x2dDoyle\x2dWiFi.service: Unit entered failed state.
Jul 02 13:38:59 Glamdring systemd[1]: netctl@wlo1\x2dDoyle\x2dWiFi.service: Failed with result 'exit-code'.

wpa_supplicant fails as discussed above.

Wicd, on my most recent try, actually didn't do what it has been, and instead hung while it was trying to authenticate. Here's a little bit of output, which is more than I got before:

/usr/share/wicd/gtk/gui.py:583: Warning: Source ID 54 was not found when attempting to remove it
  gobject.source_remove(self.update_cb)
ERROR:dbus.connection:Exception in handler for D-Bus signal:
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/dbus/connection.py", line 230, in maybe_handle_message
    self._handler(*args, **kwargs)
  File "/usr/share/wicd/gtk/gui.py", line 281, in handle_connection_results
    error(self.window, language[results], block=False)
KeyError: dbus.String(u'bad_pass')
/usr/share/wicd/gtk/gui.py:583: Warning: Source ID 2512 was not found when attempting to remove it
  gobject.source_remove(self.update_cb)
/usr/share/wicd/gtk/gui.py:583: Warning: Source ID 3720 was not found when attempting to remove it
  gobject.source_remove(self.update_cb)

It seems to be related to gtk more than the actual internet connection, though, so I don't know if it is relevant.

Also to note: wicd is still handling wired connections just fine. I have tethered my smartphone over usb, and wicd can connect with no problem. However, I'm sucking my data up this way, so once again I implore the community for help!

Thanks

Offline

#3 2016-07-02 19:39:10

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Can't connect to wifi with HP Spectre

Please paste the output of:

systemctl list-unit-files --state enabled 

And please edit your first post and change your title to one that actually refelcts your issue (mention your card, for example): https://wiki.archlinux.org/index.php/Co … ow_to_post


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#4 2016-07-02 20:03:28

thebonaestest
Member
Registered: 2016-03-20
Posts: 7

Re: Can't connect to wifi with HP Spectre

Here it is:

autovt@.service           enabled
getty@.service            enabled
systemd-timesyncd.service enabled
remote-fs.target          enabled

4 unit files listed.

Also, just to be clear, all my hardware is just stock whatever came with the computer. which I think for the HP Spectre is an Intel AC 7265 wireless adapter.

Thanks for the reply!

Offline

#5 2016-07-02 20:06:36

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Can't connect to wifi with HP Spectre

Connect manually, and determine at which step it is failing. Only then use one of the management tools.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#6 2016-07-02 20:40:00

thebonaestest
Member
Registered: 2016-03-20
Posts: 7

Re: Can't connect to wifi with HP Spectre

So I followed the Arch Wiki guide: https://wiki.archlinux.org/index.php/Wi … nual_setup
Here's what I did:

[sean@Glamdring ~]$ iw dev
phy#0
	Unnamed/non-netdev interface
		wdev 0xe
		addr 94:65:9c:61:43:48
		type P2P-device
	Interface wlo1
		ifindex 2
		wdev 0x1
		addr 94:65:9c:61:43:47
		type managed

[sean@Glamdring ~]$ sudo ip link set wlo1 up

[sean@Glamdring ~]$ ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: wlo1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN mode DEFAULT group default qlen 1000
    link/ether 94:65:9c:61:43:47 brd ff:ff:ff:ff:ff:ff

Everything seemed to work fine up to this point, although I'm not sure why iw dev shows two wireless interfaces. Is that maybe significant?

iw dev wlo1 scan showed what I would expect it to, and verifies that my network uses WPA.

So I then tried to connect with wpa_supplicant, using a configuration file generated by wpa_passphrase:

sudo wpa_supplicant -D nl80211,wext -i wlo1 -c doyle-wifi.conf
Successfully initialized wpa_supplicant
Could not read interface p2p-dev-wlo1 flags: No such device
wlo1: SME: Trying to authenticate with 10:05:b1:5a:89:60 (SSID='Doyle-WiFi' freq=2462 MHz)
wlo1: CTRL-EVENT-DISCONNECTED bssid=10:05:b1:5a:89:60 reason=2 locally_generated=1
wlo1: Trying to associate with 10:05:b1:5a:89:60 (SSID='Doyle-WiFi' freq=2462 MHz)
wlo1: Associated with 10:05:b1:5a:89:60
wlo1: WPA: Invalid EAPOL-Key MIC when using TPTK - ignoring TPTK
wlo1: WPA: Could not verify EAPOL-Key MIC - dropping packet
wlo1: Authentication with 10:05:b1:5a:89:60 timed out.
wlo1: CTRL-EVENT-DISCONNECTED bssid=10:05:b1:5a:89:60 reason=3 locally_generated=1
wlo1: CTRL-EVENT-SCAN-FAILED ret=-16 retry=1
wlo1: SME: Trying to authenticate with 10:05:b1:5a:89:60 (SSID='Doyle-WiFi' freq=2462 MHz)
wlo1: SME: Authentication request to the driver failed
wlo1: CTRL-EVENT-SSID-TEMP-DISABLED id=0 ssid="Doyle-WiFi" auth_failures=1 duration=10 reason=CONN_FAILED

Running iw dev wlo1 link in another window informed me that it had not associated.

It occurred to me after this that maybe I should kill dhcpcd and try again, which I did with no change. However, something strange happened. I restarted dhcpcd with

sudo dhcpcd

in order to reconnect to my smartphone tether, and it informed me it had acquired an ip on wlo1. So now I'm connected to the wifi again, and I have no idea how or why:

[sean@Glamdring ~]$ iw dev wlo1 link
Connected to 10:05:b1:5a:89:60 (on wlo1)
	SSID: Doyle-WiFi
	freq: 2462
	RX: 1466131 bytes (6466 packets)
	TX: 751568 bytes (5351 packets)
	signal: -61 dBm
	tx bitrate: 130.0 MBit/s MCS 14 short GI

	bss flags:	short-slot-time
	dtim period:	3
	beacon int:	100

What is going on? Am I missing something obvious?

Offline

#7 2016-07-02 20:49:48

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Can't connect to wifi with HP Spectre

No, it looks like dhcpcd was already running. That was why I asked to see what services you had enabled; multiple networking services will result in conflicts. Make sure everything is disabled/stopped and then only enable the management tool that you intend to use, reboot and see what happens.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB