You are not logged in.

#1 2015-06-30 16:32:33

shield_of_hope
Member
Registered: 2015-06-30
Posts: 15

[SOLVED] wifi-menu: 'Connection failed'

I tried to install latest Arch Linux into my Lenovo Thinkpad X201i, but ran into problems with wifi. When I try to connect into some network using wifi-menu, the screen goes black for about 15 seconds and after that it shows an error message: 'Connection failed'. I tried

ip link set down wls1

where wls1 is the name of my wireless network adapter, and

systemctl stop dhcpcd

but they did nothing.

Previously, I was running Lubuntu 14.04 on X201i without any problems but I wanted to switch using a distro that is more customizable and doesn't have discrete version upgrades. The weirdest thing is that I installed Arch into Thinkpad T400 just for testing purposes and wifi-menu worked flawlessly in it. Unfortunately I sold the laptop soon after that. Both X201i and T400 should have very similar hardware.

I have no particular reason to use wifi during installation but the real problem is that it didn't work after installation either. I installed Arch by following these instructions: http://lifehacker.com/5680453/build-a-k … he-process Do I really have to stick with using Arch in a desktop only?

Last edited by shield_of_hope (2015-08-10 21:27:10)

Offline

#2 2015-06-30 16:51:00

respiranto
Member
Registered: 2015-05-15
Posts: 479
Website

Re: [SOLVED] wifi-menu: 'Connection failed'

That article is from 2012, which is too long ago, especially  regarding Arch's rolling release nature.

In general it is not recommended to use any other guide than the one provided by the wiki:
https://wiki.archlinux.org/index.php/Beginners%27_Guide

However, welcome at Arch.

Btw, why do you want to set your interface down and disable dhcp?

Offline

#3 2015-06-30 17:03:40

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

Re: [SOLVED] wifi-menu: 'Connection failed'

.... Everything respiranto said with special emphasis on this bit.  Especially the bits about firmware and packages that must be installed.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#4 2015-06-30 20:47:32

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 8,272
Website

Re: [SOLVED] wifi-menu: 'Connection failed'

shield_of_hope wrote:

When I try to connect into some network using wifi-menu, the screen goes black for about 15 seconds and after that it shows an error message: 'Connection failed'

I'm pretty sure it says more than that: please post the full error message and related `journalctl` output.

Also, why do so many people use that awful lifehacker guide?

It advises `pacman` usage that will b0rk your system.


Para todos todo, para nosotros nada

Offline

#5 2015-07-02 23:13:28

shield_of_hope
Member
Registered: 2015-06-30
Posts: 15

Re: [SOLVED] wifi-menu: 'Connection failed'

respiranto wrote:

In general it is not recommended to use any other guide than the one provided by the wiki:
https://wiki.archlinux.org/index.php/Beginners%27_Guide

Head_on_a_Stick wrote:

Also, why do so many people use that awful lifehacker guide?

There are both Beginner's Guide and Install Guide existing. Both share some of the same information but are still somewhat different. I had difficulties to choose which one to follow so I chose that Lifehacker Guide because it was so clear and easy to follow, and it seems that many others have thought the same.

However, the real problem in my case was the network I was trying to connect. I had no other network available for testing at home except the one created with my phone using a software called Joikuspot. Until now, I hadn't noticed that it is actually an Ad-Hoc-type network. That had worked without any issues on any other operating systems.

Now I can connect to any other networks except my phone. I would need to connect my phone always when there are no other open networks available, for example when I am travelling. How can I do that? I tried:

iw dev wls1 set type ibss

and

iw dev wls1 connect $my-ssid

but that didn't seem doing anything. Adding a line "AdHoc=yes" into netctl profile file created by wifi-menu didn't work either.

How can I do that? I have found too many different advice using different tools including netctl, wireless_tools, iw, wpa_supplicant, NetworkManager etc.

Offline

#6 2015-07-03 02:44:03

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

Re: [SOLVED] wifi-menu: 'Connection failed'

shield_of_hope wrote:

There are both Beginner's Guide and Install Guide existing. Both share some of the same information but are still somewhat different. I had difficulties to choose which one to follow so I chose that Lifehacker Guide because it was so clear and easy to follow.

I have both chicken and beef in my freezer.  Both share some of the same nutritional value but are still somewhat different.  I had difficulties to choose which one to eat, so I chose the bottle of draino from under the sink as it was clear and easy to swallow.

Wait.  No.  I didn't.

I've never used this sort of network,  but have you tried following this page:
https://wiki.archlinux.org/index.php/Ad-hoc_networking


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

Offline

#7 2015-07-03 21:27:40

shield_of_hope
Member
Registered: 2015-06-30
Posts: 15

Re: [SOLVED] wifi-menu: 'Connection failed'

Trilby wrote:

I've never used this sort of network,  but have you tried following this page:
https://wiki.archlinux.org/index.php/Ad-hoc_networking

I did but that page tells how to create a wireless network with your computer. That is not what I want because I already have a network existing but I can't connect to it.

My phone is set to create WLAN-network using channel 6 which is 2437 MHz. When I tried connecting to it:

iw dev wls1 connect $SSID 2437

I got an error message: 'command failed: Operation not supported (-95)'. When trying to connect via wifi-menu, it printed an error message with red fonts on the terminal: 'WPA association/authentication failed for interface 'wls1''. This is very strange because the network didn't have any security features and it doesn't even support anything but WEP.

Last edited by shield_of_hope (2015-07-04 07:16:57)

Offline

#8 2015-07-04 09:09:17

respiranto
Member
Registered: 2015-05-15
Posts: 479
Website

Re: [SOLVED] wifi-menu: 'Connection failed'

As far as I understand, you have to create a wireless network, because the Ad-hoc network is a peer-to-peer network without somebody being the dedicated router.
Have a look at:
- https://wiki.archlinux.org/index.php/Ad … link_layer
- https://en.wikipedia.org/wiki/Wireless_ad_hoc_network

Offline

Board footer

Powered by FluxBB