You are not logged in.
I started this topic some time ago. I no longer have access to the WPA network I was troubleshooting on, but now I have access to an unencrypted wireless network at a library and I still can't get wireless to work. This time it's not dropping my connection, but not connecting period. I'm having to switch between posting here using a library computer and troubleshooting on my laptop, so there is no way I can post long output (unless someone has an idea). It is very important that I get wireless working soon, as I no longer have access to a wired network on my laptop, and I have a few thousand dollars worth of bitcoin sitting in my wallet on my laptop that I can't access because of this wireless problem (and I'm running out of money fast.) So if someone here would be so kind as to try to help me, it's much appreciated.
I will try to post as much relevant information here as possible. I am working as root. The output of
ip linkshows that my wireless interface, named wlp2s0, is up, but just to be sure, I run
iw dev set wlp2s0 upand the output of ip link doesn't change. So the interface is obviously up. So I run
iw dev wlp2s0 scan | lesswhich confirms what I already know, which is that there is an unencrypted network named "central-library-comcast" with a decent signal. So I run
iw dev wlp2s0 connect "central-library-comcast"(I have tried both with and without the double quotes) This command runs without output. Then I run
dhcpcd wlp2s0which outputs
dhcpcd[509]: sending commands to master dhcpcd processand try
ping google.comwhich outputs
ping: unknown host google.comI also try obtaining an ip address using
dhclient wlp2s0which works for a while, then exits without output. Pinging google.com again fails. I confirm that I do not have a connection by running
ip dev wlp2s0 linkwhich outputs
Not connected.So basically, I know that there is an unencrypted network named "central-library-comcast" with a fair signal, and I have followed the wireless configuration article to the dot (as far as I can tell...), and I'm just not getting a connection. I have tried on another unencrypted network at a coffee shop with the same result. Can anyone help me? Again, I regret that I have no way of posting long output. But if anyone has any suggestions, they are greatly appreciated.
Last edited by vdrachtseq (2013-12-25 05:40:05)
Offline
Update: I'm going to have access to a wired connection on this laptop for a few days, as well as a wireless network to troubleshoot on. It would be super awesome if I could get this problem solved within that time frame, before I once again lose access to a wired network. This also means I will be able to post long output during this timeframe.
It may or may not be relevant that dhcpcd starts at boot (i.e. I do not have to configure anything in order to access a wired network.) Could there be some sort of conflict here? I could try running 'killall dhcpcd' before attempting to configure the wireless network, and if that works, disable dhcpcd from running at boot (I forget exactly how but I can look it up). Before I try that though, I would like someone's opinion on whether or not that would be worth trying.
Last edited by vdrachtseq (2013-12-16 08:42:30)
Offline
i would use netctl to ease wireless connection.
install netctl
copy from the netctl example
cp /etc/netctl/examples/wireless-open /etc/netctl/librarymodify /etc/netctl/library correctly, something like :
Description='A simple open wireless connection'
Interface=wlp2s0
Connection=wireless
Security=none
ESSID='central-library-comcast'
IP=dhcp
# Uncomment this if your ssid is hidden
#Hidden=yesthen
sudo netctl start libraryIf it works, it's all good, if not, you will have more detailed debug information in journalctl -xn.
Offline
EDIT: Ignore this post and see below, please.
Last edited by vdrachtseq (2013-12-16 10:48:52)
Offline
Okay, netctl doesn't work. The network I am currently testing on is called 'hhonors'. It is unencrypted. My /etc/netctl/hhonors file is
Description='A simple open wireless connection'
Interface=wlp2s0
Connection=wireless
Security=none
ESSID='hhonors'
IP=dhcp
# Uncomment this if your ssid is hidden
#Hidden=yesDoing
sudo netctl start hhonorsoutputs
Job for netctl@hhonors.service failed. See 'systemctl status netctl@hhonors.service' and 'journalctl -xn' for details.and immediately after running the command, the output of
sudo journalctl -xnis
-- Logs begin at Tue 2013-11-19 14:28:23 MST, end at Mon 2013-12-16 03:47:08 MST. --
Dec 16 03:46:37 nakamoto systemd[1]: Created slice system-netctl.slice.
-- Subject: Unit system-netctl.slice has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit system-netctl.slice has finished starting up.
--
-- The start-up result is done.
Dec 16 03:46:37 nakamoto systemd[1]: Starting Networking for netctl profile hhonors...
-- Subject: Unit netctl@hhonors.service has begun with start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit netctl@hhonors.service has begun starting up.
Dec 16 03:46:37 nakamoto network[505]: Starting network profile 'hhonors'...
Dec 16 03:46:37 nakamoto network[505]: The interface of network profile 'hhonors' is already up
Dec 16 03:46:37 nakamoto systemd[1]: netctl@hhonors.service: main process exited, code=exited, status=1/FAILURE
Dec 16 03:46:37 nakamoto systemd[1]: Failed to start Networking for netctl profile hhonors.
-- Subject: Unit netctl@hhonors.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- Documentation: http://www.freedesktop.org/wiki/Software/systemd/catalog/be02cf6855d2428ba40df7e9d022f03d
--
-- Unit netctl@hhonors.service has failed.
--
-- The result is failed.
Dec 16 03:46:37 nakamoto systemd[1]: Unit netctl@hhonors.service entered failed state.
Dec 16 03:46:37 nakamoto sudo[499]: pam_unix(sudo:session): session closed for user root
Dec 16 03:47:08 nakamoto sudo[514]: crypticstorm : TTY=pts/2 ; PWD=/home/crypticstorm ; USER=root ; COMMAND=/usr/bin/journalctl -xn
Dec 16 03:47:08 nakamoto sudo[514]: pam_unix(sudo:session): session opened for user root by crypticstorm(uid=0)There are multiple listings for 'hhonors' when scanning for networks. Could this be the problem? I can test netctl on the library's network tomorrow.
Edit: just to prove that the hhonors network does indeed exist and I have a fair signal, here is the relevant output of 'sudo iw dev wlp2s0 scan':
BSS 00:1f:9e:80:f1:a1(on wlp2s0)
TSF: 2266958892383 usec (26d, 05:42:38)
freq: 2412
beacon interval: 100 TUs
capability: ESS ShortPreamble ShortSlotTime (0x0421)
signal: -58.00 dBm
last seen: 990 ms ago
Information elements from Probe Response frame:
SSID: hhonors
Supported rates: 5.5* 6.0 9.0 11.0* 12.0 18.0 24.0 36.0
DS Parameter set: channel 1
ERP: <no flags>
Extended supported rates: 48.0 54.0
WMM: * Parameter version 1
* u-APSD
* BE: CW 15-1023, AIFSN 3
* BK: CW 15-1023, AIFSN 7
* VI: CW 7-15, AIFSN 2, TXOP 3008 usec
* VO: CW 3-7, AIFSN 2, TXOP 1504 usecBut as I said, this is only one of multiple 'hhonors' entries.
Last edited by vdrachtseq (2013-12-16 11:03:38)
Offline
There are multiple listings for 'hhonors' when scanning for networks. Could this be the problem?
No.
I suspect the problem may be that a web-based log in is required. Many university netwoks use such a system. Have you tried opening a browser after running dhcpcd? Try going to "google.com" which seems to be the most commonly redirected site for such networks.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
first i think Trilby may be right.
anyway if you want to use netctl :
netctl fail because wlp1s0 is already up,
ip link set wlp1s0 down
netctl start libraryOffline
first i think Trilby may be right.
anyway if you want to use netctl :
netctl fail because wlp1s0 is already up,ip link set wlp1s0 down netctl start library
Okay, I tried that. Failed again. This time the output of 'sudo journalctl -xn' is
-- Logs begin at Tue 2013-11-19 14:28:23 MST, end at Mon 2013-12-16 07:22:42 MST. --
Dec 16 07:22:18 nakamoto network[576]: WPA association/authentication failed for interface 'wlp2s0'
Dec 16 07:22:18 nakamoto kernel: wlp2s0: deauthenticating from 00:1f:9e:80:f4:c1 by local choice (reason=3)
Dec 16 07:22:18 nakamoto kernel: cfg80211: Calling CRDA to update world regulatory domain
Dec 16 07:22:19 nakamoto network[576]: Failed to bring the network up for profile 'hhonors'
Dec 16 07:22:19 nakamoto systemd[1]: netctl@hhonors.service: main process exited, code=exited, status=1/FAILURE
Dec 16 07:22:19 nakamoto systemd[1]: Failed to start Networking for netctl profile hhonors.
-- Subject: Unit netctl@hhonors.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- Documentation: http://www.freedesktop.org/wiki/Software/systemd/catalog/be02cf6855d2428ba40df7e9d022f03d
--
-- Unit netctl@hhonors.service has failed.
--
-- The result is failed.
Dec 16 07:22:19 nakamoto systemd[1]: Unit netctl@hhonors.service entered failed state.
Dec 16 07:22:19 nakamoto sudo[570]: pam_unix(sudo:session): session closed for user root
Dec 16 07:22:42 nakamoto sudo[1760]: crypticstorm : TTY=pts/2 ; PWD=/home/crypticstorm ; USER=root ; COMMAND=/usr/bin/journalctl -xn
Dec 16 07:22:42 nakamoto sudo[1760]: pam_unix(sudo:session): session opened for user root by crypticstorm(uid=0)It mentions WPA authentication failing...but it is clearly an unencrypted network. So I'm confused (yet again). By the way, GloW_on_dub, it doesn't seem to me that the interface already being up is the reason it is failing. The output makes it sound like it is simply informing that the interface is already up therefore doesn't need to be taken up.
@ Tribly: I will try connecting at the library again today to see if this is the case, though I doubt it is, judging by what is happenning on this network.
Last edited by vdrachtseq (2013-12-16 14:35:33)
Offline
Do you have another device to check the hhonors network?
In my experience (that's Hilton Hotel's SSID, right) those networks are not very well maintained, and quite likely to be broken on their end.
Offline
Do you have another device to check the hhonors network?
In my experience (that's Hilton Hotel's SSID, right) those networks are not very well maintained, and quite likely to be broken on their end.
I may be able to ask my dad to test it on his laptop in a bit. Still, I really doubt this is the problem. This is the fourth wireless network I've tried to connect to. If you'll refer to the thread I linked to in my original post, I was able to connect but my connection kept getting dropped after a minute or less. And now check this out: I tried connecting to hhonors using wifi-menu, and here is the output of 'sudo journalctl -xn' immediately following that:
-- Logs begin at Tue 2013-11-19 14:28:23 MST, end at Tue 2013-12-17 10:23:11 MST. --
Dec 17 10:23:09 nakamoto kernel: wlp2s0: send auth to 00:1f:9e:41:fd:01 (try 1/3)
Dec 17 10:23:09 nakamoto kernel: wlp2s0: authenticated
Dec 17 10:23:10 nakamoto kernel: wlp2s0: associate with 00:1f:9e:41:fd:01 (try 1/3)
Dec 17 10:23:09 nakamoto dhcpcd[248]: wlp2s0: carrier acquired
Dec 17 10:23:10 nakamoto kernel: wlp2s0: RX AssocResp from 00:1f:9e:41:fd:01 (capab=0x421 status=0 aid=6)
Dec 17 10:23:10 nakamoto kernel: wlp2s0: associated
Dec 17 10:23:10 nakamoto kernel: wlp2s0: deauthenticating from 00:1f:9e:41:fd:01 by local choice (reason=3)
Dec 17 10:23:10 nakamoto kernel: cfg80211: Calling CRDA to update world regulatory domain
Dec 17 10:23:10 nakamoto dhcpcd[248]: wlp2s0: carrier lost
Dec 17 10:23:10 nakamoto dhcpcd[248]: wlp2s0: waiting for carrierSo it looks like it associated successfully but then unassociated immediately afterwards, which is somewhat consistent with what was happening to me in the other thread.
Could there be some kind of deamon running that's causing this? Does anyone have the slightest idea?
Offline
What does lspci have to say regarding the interface you're using? There's always the possibility of a driver bug. Which brings up another point: have other operating systems suffered the same sort of problem on the system? If another Linux distribution could connect, the problem could be narrowed significantly to a missing kernel module or some Arch idiosyncracy. If Windows works, NDISWrapper can give the hardware a second chance to not fail miserably.
As far as some networking service ruining your config, systemctl will tell you what is running.
Offline
Hey, new guy here, too, so you may or may not want to take what I say as genuine advice or help, but as more of a 'where to look,' sort of thing. First off, dhcpcd and netctl might be conflicting. To turn them of you would need the systemctl commands, and telling them to stop . Then through your terminal,
# ip link set wlp2s0 up
3: wlp3s0: <BROADCAST,MULTICAST,UP,LOWER_[b]UP[/b]> mtu 1500 qdisc mq state DOWN mode DORMANT group default qlen 1000
link/ether 00:11:22:33:44:55 brd ff:ff:ff:ff:ff:ff
# wifi-menu wlp2s0
# ping www.google.com if it continues to fail, then use systemctl by itself to see what is wrong. You'll get a long list of what you've done, and see errors in red. That'll tell should give you some more info on what is happening.
https://wiki.archlinux.org/index.php/Be … uide#Wired
https://wiki.archlinux.org/index.php/Wifi
https://wiki.archlinux.org/index.php/Sy … sing_units
https://wiki.archlinux.org/index.php/Daemons_List
I'd help more, but I've been knee deep in the wiki for days on my own situations. Hope some of this can help you, though.
Offline
NOTE: I fixed the link in the original post
What does lspci have to say regarding the interface you're using? There's always the possibility of a driver bug.
'lspci -k' lists my wireless card such:
02:00.0 Network controller: Qualcomm Atheros AR9485 Wireless Network Adapter (rev 01)
Subsystem: AzureWave Device 2c97
Kernel driver in use: ath9k
Kernel modules: ath9kThis tells me that the ath9k modules are loaded properly, correct?
have other operating systems suffered the same sort of problem on the system? If another Linux distribution could connect, the problem could be narrowed significantly to a missing kernel module or some Arch idiosyncracy.
I was using Debian before I switch to Arch and was able to connect to wireless networks without issues. I'd rather not switch back to Debian because apart from this insane wireless issue, I'm rather liking Arch.
As far as some networking service ruining your config, systemctl will tell you what is running.
Okay, I get a big list of services. Can you tell me what I should be looking for? Or should I post every service that sounds relevant?
First off, dhcpcd and netctl might be conflicting. To turn them of you would need the systemctl commands, and telling them to stop . Then through your terminal,
I have not used netctl to try to connect since last boot, and the only netctl entries when I run 'systemctl' are
netctl-ifplugd@enp3s0f2.service
system-netctl\x2difplugd.sliceAlso, why would your output say that you have a carrier BEFORE running 'wifi-menu'? I was under the impression that it says "NO-CARRIER" (like my output) until you associate it with an AP.
if it continues to fail, then use systemctl by itself to see what is wrong. You'll get a long list of what you've done, and see errors in red. That'll tell should give you some more info on what is happening.
Are you sure you mean 'systemctl'? That gives me a list of loaded services, as amvakar said.
Last edited by vdrachtseq (2013-12-18 03:54:35)
Offline
The main issue with modules and wireless at this point seems to mostly relate to the BIOS deciding to claim that wireless is disabled regardless of the actual state of the wireless switch. Posting the output of lsmod, uname -a, and the computer's model number would allow a more thorough search for any bugs and a possible workaround. Also 'rfkill list', but even if it doesn't say there's a block the former would be useful in verifying that the setup should work.
Offline
As requested, output of lsmod:
Module Size Used by
nls_cp437 5961 1
vfat 10063 1
fat 51827 1 vfat
kvm_amd 52575 0
kvm 389125 1 kvm_amd
crct10dif_pclmul 4754 0
crct10dif_common 1380 1 crct10dif_pclmul
crc32_pclmul 3027 0
crc32c_intel 14257 0
ghash_clmulni_intel 4509 0
aesni_intel 46132 0
aes_x86_64 7407 1 aesni_intel
lrw 3573 1 aesni_intel
gf128mul 5866 1 lrw
glue_helper 4617 1 aesni_intel
ablk_helper 1980 1 aesni_intel
cryptd 8481 3 ghash_clmulni_intel,aesni_intel,ablk_helper
joydev 9671 0
asus_nb_wmi 7376 0
ath3k 7629 0
asus_wmi 16314 1 asus_nb_wmi
hid_generic 1161 0
btusb 18632 0
sparse_keymap 3154 1 asus_wmi
microcode 15216 0
uvcvideo 72900 0
bluetooth 309116 3 ath3k,btusb
usbhid 40577 0
videobuf2_vmalloc 3280 1 uvcvideo
videobuf2_memops 2343 1 videobuf2_vmalloc
videobuf2_core 28027 1 uvcvideo
hid 90774 2 hid_generic,usbhid
videodev 111172 2 uvcvideo,videobuf2_core
radeon 1285475 0
media 11751 2 uvcvideo,videodev
snd_hda_codec_realtek 41263 1
psmouse 85428 0
snd_hda_codec_hdmi 30162 1
k10temp 3058 0
arc4 2008 2
evdev 11085 17
ath9k 93305 0
ath9k_common 2095 1 ath9k
ttm 63507 1 radeon
pcspkr 2035 0
serio_raw 5049 0
ath9k_hw 393593 2 ath9k_common,ath9k
ath 15817 3 ath9k_common,ath9k,ath9k_hw
snd_hda_intel 36904 0
mac80211 468154 1 ath9k
r8169 58463 0
drm_kms_helper 36286 1 radeon
drm 238206 3 ttm,drm_kms_helper,radeon
cfg80211 412854 3 ath,ath9k,mac80211
rfkill 15651 4 cfg80211,bluetooth,asus_wmi
i2c_piix4 10592 0
i2c_algo_bit 5399 1 radeon
mii 4035 1 r8169
snd_hda_codec 149953 3 snd_hda_codec_realtek,snd_hda_codec_hdmi,snd_hda_intel
snd_hwdep 6340 1 snd_hda_codec
snd_pcm 77709 3 snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel
snd_page_alloc 7242 2 snd_pcm,snd_hda_intel
snd_timer 18726 1 snd_pcm
snd 59173 7 snd_hda_codec_realtek,snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_pcm,snd_hda_codec,snd_hda_intel
rtsx_pci_ms 7266 0
i2c_core 24164 6 drm,i2c_piix4,drm_kms_helper,i2c_algo_bit,radeon,videodev
memstick 7472 1 rtsx_pci_ms
soundcore 5450 1 snd
wmi 8419 1 asus_wmi
shpchp 25465 0
video 11228 1 asus_wmi
thermal 8532 0
battery 6837 0
ac 3332 0
acpi_cpufreq 10779 0
processor 24935 5 acpi_cpufreq
fglrx 7364642 82
amd_iommu_v2 7196 1 fglrx
button 4677 1 fglrx
ext4 474251 1
crc16 1367 2 ext4,bluetooth
mbcache 6082 1 ext4
jbd2 83504 1 ext4
sr_mod 14898 0
cdrom 34848 1 sr_mod
sd_mod 30821 3
rtsx_pci_sdmmc 14332 0
mmc_core 95691 1 rtsx_pci_sdmmc
ohci_pci 4072 0
ahci 23056 2
ohci_hcd 23937 1 ohci_pci
ehci_pci 4000 0
libahci 21674 1 ahci
xhci_hcd 144993 0
ehci_hcd 59220 1 ehci_pci
libata 170856 2 ahci,libahci
usbcore 180136 9 ath3k,btusb,uvcvideo,ohci_hcd,ohci_pci,ehci_hcd,ehci_pci,usbhid,xhci_hcd
scsi_mod 130701 3 libata,sd_mod,sr_mod
usb_common 1656 1 usbcore
rtsx_pci 32209 2 rtsx_pci_ms,rtsx_pci_sdmmcoutput of 'uname -a':
Linux nakamoto 3.12.5-1-ARCH #1 SMP PREEMPT Thu Dec 12 12:57:31 CET 2013 x86_64 GNU/Linux'rfkill list' shows that nothing is hard or soft blocked.
Edit: my laptop model is Asus N56DP
Edit2: Would it be worthwhile to buy a USB wireless adapter known to work with Linux and try it instead?
Last edited by vdrachtseq (2013-12-18 14:04:34)
Offline
One thing to try is
echo "options asus_nb_wmi wapf=4" > /etc/modprobe.d/asus.confwhich seems to be necessary for proper enable/disable support on some Asus systems. There have been reports elsewhere (and indeed within the source of the driver itself) that Asus firmware triggers the wrong events for rfkill, leading to a weird cycling behavior. Which would obviously explain the initial connection success followed by disconnection before dhcp even happens.
If this fails, try blacklisting asus_nb_wmi and asus_wmi. I'll see if there are any relevant Debian patches in the meantime.
Offline
One thing to try is
echo "options asus_nb_wmi wapf=4" > /etc/modprobe.d/asus.confwhich seems to be necessary for proper enable/disable support on some Asus systems. There have been reports elsewhere (and indeed within the source of the driver itself) that Asus firmware triggers the wrong events for rfkill, leading to a weird cycling behavior. Which would obviously explain the initial connection success followed by disconnection before dhcp even happens.
If this fails, try blacklisting asus_nb_wmi and asus_wmi.
Tried everything you said, no help. I also tried
iwconfig wlp2s0 power offas suggested here, with no luck.
Offline
I'm also somewhat new and not 100% sure but I think Achrine was on the right track. I had the same solution for my wifi problem.
You may need to stop the dhcpcd service and then start the netctl service using systemctl. You're going to want to use netctl-auto instead of netctl for wifi switching, in which case you need to enable the service through netctl-auto@your_interface (rather than netctl@your_profile), in this case wlp2s0.
(assuming root) Try this maybe?
systemctl stop dhcpcd.service
#systemctl stop any_other_services_you_may_have_for_networking
systemctl start netctl-auto@wlp2s0.serviceafterwards, enable your wireless profile and switch to it:
netctl-auto enable your_profile
netctl-auto switch-to your_profile
netctl-auto current #to make sure it happenedIf that works you may want to keep it for reboots with
systemctl disable dhcpcd.service
systemctl enable netctl-auto@wlp2s0.serviceI don't know if that'll work, but you seem to be having the same issue I was having and that fixed the problem for me.
If not, this article might help: https://wiki.archlinux.org/index.php/netctl
Offline
@ian.simonson: Okay here's the deal. I can't try what you suggested because I'm missing the wpa_actiond package. I am currently accessing the internet with wireless on a Knoppix Live CD, and I have no wired internet access. I tried downloading the latest wpa_actiond tarball directly to my hard drive from Knoppix, then booting into Arch and using 'pacman -U' to install. It complained about a missing metadata file in the package. How should I proceed?
EDIT: Nevermind; I was unaware that I had to create a package file from the tarball first. I'll get back with the results of your commands.
Last edited by vdrachtseq (2013-12-25 02:33:16)
Offline
Okay, my problem is solved. ian.simonson, I couldn't get your exact method to work per se, but basically disabling dhcpcd.service and using netctl works. The netctl-auto commands are failing. To switch networks, I'm having to stop the service for one profile and start eh service for another. In any case, I can actually connect to wireless networks now so I am satisfied. Thanks everyone for the replies.
Offline
Just a little input for other users.
I had as well proplems with the wifi on an Asus UX21A.
Switching from dhcpcd to netctl worked for me as well.
Offline