Forum
  • Search
  • Member List
  • Calendar
Hello There, Guest! Login Register — Login with Facebook

wifi is gone after reboot
Thank you for your donation

Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
wifi is gone after reboot
5th Apr, 2013, 11:55 PM
Post: #1
tina Offline
Registered
Posts: 7
Joined: Apr 2013
Reputation: 0
wifi is gone after reboot
Hi,
Every time I reboot Rasp. PI my wi-fi settings get lost. The" wireless key" line that I enter to /etc/network/interface manually or by running ' sudo iwconfig wlan0 key s: MY_KEY', disappears after each reboot.

I use xbian image, the wireless adapter is TP-link with WEP security.

How do I make my wi-fi settings survive the reboot?
Find all posts by this user
Quote this message in a reply
6th Apr, 2013, 12:01 AM
Post: #2
Koenkk Offline
Registered
Posts: 1,238
Joined: Dec 2012
Reputation: 112
RE: wifi is gone after reboot
Quote:thank you. I posted the question here http://forum.xbian.org/thread-743.html

XBian-config works only after ' sudo iwconfig wlan0 key s: MY_KEY' and ' sudo ifup wlan0' . XBian-config does not have on option to enter password(key), only asks for SSID.

If it doesn't ask your for a password your probably selected that it is an Open network.

Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here
Find all posts by this user
Quote this message in a reply
6th Apr, 2013, 12:23 AM
Post: #3
tina Offline
Registered
Posts: 7
Joined: Apr 2013
Reputation: 0
RE: wifi is gone after reboot
I select WEP. Tried now again it does let me enter password if I choose "manually" and not "scan" with xbian-config. But it does not manage to connect to the network.

I manage to connect only after adding the password from the terminal and 'ifup wlan0' till I reboot.
Find all posts by this user
Quote this message in a reply
6th Apr, 2013, 12:55 AM
Post: #4
Koenkk Offline
Registered
Posts: 1,238
Joined: Dec 2012
Reputation: 112
RE: wifi is gone after reboot
Can you try executing
Code:
sync

after the wireless network is working (this saves all changed to the disk).

Also make sure you shutdown your Pi properly, you can do this by executing
Code:
sudo halt

Now wait till the RED power LED on the raspberry pi stops burning and then replug the power.

Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here
Find all posts by this user
Quote this message in a reply
6th Apr, 2013, 01:31 AM
Post: #5
tina Offline
Registered
Posts: 7
Joined: Apr 2013
Reputation: 0
RE: wifi is gone after reboot
No, it did't help.

I also get this error messsage:
"Error for wireless request "Set Encode" (8B2A) :
invalid argument "My_KEY" if I run 'ifup wlan0' without running 'sudo iwconfig wlan0 key s: MY_KEY' first.

After I run the key command, with the same key_name that error message complained about, 'ifup' works.

Sometimes after the key command the error message still appears when running 'ifup', but the command works nevertheless.

Sorry, I did not notice the last line about waiting for the red light to turn off. I am doing it now again(sync and halt).
Waiting for for almost 30min now. Should it take that long?
Find all posts by this user
Quote this message in a reply
6th Apr, 2013, 02:30 AM
Post: #6
Koenkk Offline
Registered
Posts: 1,238
Joined: Dec 2012
Reputation: 112
Re: wifi is gone after reboot
Sorry I was mistaken, the green light should stop burning instead of the red one. Also, the passphrase has to be placed between "".

Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here
Find all posts by this user
Quote this message in a reply
6th Apr, 2013, 02:38 AM
Post: #7
tina Offline
Registered
Posts: 7
Joined: Apr 2013
Reputation: 0
RE: wifi is gone after reboot
the "" should be seen in the 'interfeces' file too?
Find all posts by this user
Quote this message in a reply
6th Apr, 2013, 03:15 AM
Post: #8
Koenkk Offline
Registered
Posts: 1,238
Joined: Dec 2012
Reputation: 112
RE: wifi is gone after reboot
First try the sync & halt

Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here
Find all posts by this user
Quote this message in a reply
6th Apr, 2013, 03:19 AM
Post: #9
tina Offline
Registered
Posts: 7
Joined: Apr 2013
Reputation: 0
RE: wifi is gone after reboot
tried, it did not help.

I used "" in the sudo iwconfig wlan0 key s:"MY_KEY". It did not help, now in the complain about key_name it shows it as "key_name".

Here is my interfaces now. Maybe something is wrong here?

auto lo

iface lo inet loopback
iface eth0 inet dhcp

allow-hotplug wlan0
iface wlan0 inet dhcp

wireless-essid www
wireless-key KEY_NAME


iface wlan0 inet dhcp
Find all posts by this user
Quote this message in a reply
6th Apr, 2013, 03:28 AM
Post: #10
Koenkk Offline
Registered
Posts: 1,238
Joined: Dec 2012
Reputation: 112
RE: wifi is gone after reboot
According to http://www.linuxforums.org/forum/networking/40796-wep-key-format-solved.html#6 the key needs to be hexidecimal

Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here
Find all posts by this user
Quote this message in a reply
6th Apr, 2013, 05:10 AM
Post: #11
tina Offline
Registered
Posts: 7
Joined: Apr 2013
Reputation: 0
RE: wifi is gone after reboot
Thank you. The problem was with the key format. I changed it to hexidecimal and even the xbian-config managed to connect to the network. And it worked after reboot as well.
Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Post Reply 


  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread
Forum Jump:

Current time: 21st Mar, 2023, 04:48 PM Powered By MyBB, © 2002-2023 MyBB Group.