Can't get wifi autoconnect working

This forum is for topics specific to the Raspberry Pi and Arch Linux ARM

Can't get wifi autoconnect working

Postby jbarba76 » Mon Sep 30, 2013 2:24 pm

Hi all,

First, forgive for my poor english, I hope I can explain my problem accurately. I have a raspberry pi, running Ach linux with latest updates (before run pacman -Syu). Im trying to correctly set wifi auto connect on boot using wiki and netctl-auto service for wlan0. It's a USB dongle, D-Link DWA-131 802.11n Wireless N Nano Adapter(rev.A1) [Realtek RTL8192SU]. Im using this profile:

Description='A wireless connection using a custom network block configuration'
Interface=wlan0
Connection=wireless
Security=wpa-configsection
IP=static
Address='192.168.1.247/24'
Gateway='192.168.1.1'
DNS=('8.8.8.8')
WPAConfigSection=(
'ssid="myssid"'
'psk="mypassword"'
)

I've tested this profile activating it with:

netctl start test

And I can surf the web without problems. When I activate this profile on netctl-auto with:

netctl-auto@wlan0.service

All goes well, but when I reboot the pi, it can't connect to router. I see this on log:

Jan 01 01:00:09 alarmpi crond[115]: (CRON) INFO (running with inotify support)
Jan 01 01:00:09 alarmpi kernel: r8712u: MAC Address from efuse = xxxxxxxxxxx
Jan 01 01:00:09 alarmpi systemd[1]: Found device SMSC9512/9514 Fast Ethernet Adapter.
Jan 01 01:00:09 alarmpi systemd[1]: Starting dhcpcd on eth0...
Jan 01 01:00:09 alarmpi systemd[1]: Found device DWA-131 802.11n Wireless N Nano Adapter(rev.A1) [Realtek RTL8192SU].
Jan 01 01:00:09 alarmpi systemd[1]: Starting Automatic wireless network connection using netctl profiles...
Jan 01 01:00:09 alarmpi dhcpcd[122]: version 6.0.5 starting
Jan 01 01:00:09 alarmpi dbus[119]: [system] Successfully activated service 'org.freedesktop.systemd1'
Jan 01 01:00:09 alarmpi kernel: r8712u: Loading firmware from "rtlwifi/rtl8712u.bin"
Jan 01 01:00:09 alarmpi systemd-logind[116]: New seat seat0.
Jan 01 01:00:09 alarmpi systemd[1]: Started Login Service.
Jan 01 01:00:09 alarmpi kernel: usbcore: registered new interface driver r8712u
Jan 01 01:00:09 alarmpi dbus-daemon[119]: dbus[119]: [system] Successfully activated service 'org.freedesktop.systemd1'
Jan 01 01:00:10 alarmpi netctl-auto[123]: Included profile 'test'
Jan 01 01:00:10 alarmpi dhcpcd[122]: eth0: waiting for carrier
Jan 01 01:00:11 alarmpi kernel: r8712u: 1 RCR=0x153f00e
Jan 01 01:00:11 alarmpi kernel: r8712u: 2 RCR=0x553f00e
Jan 01 01:00:11 alarmpi wpa_actiond[176]: Starting wpa_actiond session for interface 'wlan0'
Jan 01 01:00:11 alarmpi systemd[1]: Started Automatic wireless network connection using netctl profiles.
Jan 01 01:00:16 alarmpi wpa_actiond[176]: Terminating wpa_actiond session for interface 'wlan0'

I'm sure that wlan0 interface exists, the profile is correct (tested and working out of boot and netctl-auto) and profile is NOT enabled. Can anyone help me?

Thanks in advance!
jbarba76
 
Posts: 1
Joined: Mon Sep 30, 2013 12:32 pm

Re: Can't get wifi autoconnect working

Postby andras » Thu Oct 03, 2013 12:48 pm

i have a similar setup to yours. I'm however not using netctl-auto@wlan0.service.
I used

netctl enable my_profile_name

to enable the wifi profile and wifi works after reboots.
andras
 
Posts: 1
Joined: Thu Oct 03, 2013 12:38 pm

Re: Can't get wifi autoconnect working

Postby pepedog » Fri Oct 04, 2013 12:35 am

Or use wifi-menu to create profile, and systemctl enable netctl-auto@wlan0.service to activate on boot
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK


Return to Raspberry Pi

Who is online

Users browsing this forum: No registered users and 32 guests