SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2013-04-11 21:08:07

Creech
Member
From: Florida
Registered: 2013-04-08
Posts: 11

(Solved)Enable Wireless on startup

Hello everyone!

I've been fiddling with my computer for a few days and everything has been running great! I'm loving #! and Openbox.

I do have one problem, though.

Whenever I boot up, or log in from my computer going to sleep, wireless is disabled and I have to re-enable it (which is just right clicking it on tint2 and clicking "enable wireless")


Is there anything I can do or change that will make it enabled at all times?


Thank you in advance.

Last edited by Creech (2013-04-15 01:42:00)


All is one, and one is all.

Offline

Help fund CrunchBang, donate to the project!

#2 2013-04-11 21:21:29

dura
Bloated Gimp
From: interzone
Registered: 2012-09-15
Posts: 2,107

Re: (Solved)Enable Wireless on startup

Not sure about after suspend, but for boot up, put:

rfkill unblock wifi

in /etc/rc.local immediately above exit 0.

The suspend problem might be a power saving you might be able to turn off....somehow....

Offline

#3 2013-04-11 22:34:44

Creech
Member
From: Florida
Registered: 2013-04-08
Posts: 11

Re: (Solved)Enable Wireless on startup

That seems to have done the trick.


The suspend part was less of a deal for me, really. I use a laptop and it gets booted on and off a few times a day to carry between work, school and home, so this really helped me out.

Thanks!


All is one, and one is all.

Offline

#4 2013-04-14 03:18:09

Creech
Member
From: Florida
Registered: 2013-04-08
Posts: 11

Re: (Solved)Enable Wireless on startup

Okay. I'm still having problems with this so I'm going to take off the solved tag.

While the rfkill command posted above works, it immediately reverts back to off and I have to enable it in the Network Manager Applet that resides in tint2.

Is there any way I can make the applet enable the wifi automatically?


All is one, and one is all.

Offline

#5 2013-04-14 04:46:11

DebianJoe
#! Code Whisperer
From: The Bleeding Edge
Registered: 2013-03-13
Posts: 1,207
Website

Re: (Solved)Enable Wireless on startup

Dura is right, even if this fixes your boot issue, after going to sleep....it'll be back anyhow.

What wireless chipset are you running?

lspci | grep -i wireless

Post output.

Offline

#6 2013-04-14 05:51:30

uname
#! Junkie
Registered: 2013-03-15
Posts: 476

Re: (Solved)Enable Wireless on startup

Perhaps nm-applet is the problem. Configure wifi in /etc/network/interfaces manually. Does it work correctly?

Offline

#7 2013-04-14 12:00:32

Creech
Member
From: Florida
Registered: 2013-04-08
Posts: 11

Re: (Solved)Enable Wireless on startup

DebianJoe wrote:

Dura is right, even if this fixes your boot issue, after going to sleep....it'll be back anyhow.

What wireless chipset are you running?

lspci | grep -i wireless

Post output.

03:00.0 Network controller: Ralink corp. RT5390 Wireless 802.11n 1T/1R PCIe


And uname, I'm unsure on how to configure it in that file. Any tips on that?


All is one, and one is all.

Offline

#8 2013-04-14 12:26:17

uname
#! Junkie
Registered: 2013-03-15
Posts: 476

Re: (Solved)Enable Wireless on startup

/etc/network/interfaces (add):

auto eth1
iface eth1 inet dhcp
wireless-mode Managed
wireless-essid WLANName
wpa-psk plainpassword

After edit restart the network

/etc/init.d/networking stop
/etc/init.d/networking start

or boot the system.
While the /etc/network/interfaces contains "eth1" the network-manager could not configure the device.

I use it on my most systems because i have got only one WLAN.

Last edited by uname (2013-04-14 12:28:20)

Offline

#9 2013-04-14 20:47:44

Creech
Member
From: Florida
Registered: 2013-04-08
Posts: 11

Re: (Solved)Enable Wireless on startup

Okay, I did as you said. I was able to stop the networking fine, but trying to start up again caused this output:

Configuring network interfaces...eth1: ERROR while getting interface flags: No such device
Error for wireless request "Set Mode" (8B06) :
    SET failed on device eth1 ; No such device.
Error for wireless request "Set ESSID" (8B1A) :
    SET failed on device eth1 ; No such device.
ioctl[SIOCSIWPMKSA]: No such device
ioctl[SIOCSIWMODE]: No such device
ioctl[SIOCGIWRANGE]: No such device
ioctl[SIOCGIWMODE]: No such device
ioctl[SIOCSIWAP]: No such device
ioctl[SIOCSIWESSID]: No such device
ioctl[SIOCSIWENCODEEXT]: No such device
ioctl[SIOCSIWENCODE]: No such device
ioctl[SIOCSIWENCODEEXT]: No such device
ioctl[SIOCSIWENCODE]: No such device
ioctl[SIOCSIWENCODEEXT]: No such device
ioctl[SIOCSIWENCODE]: No such device
ioctl[SIOCSIWENCODEEXT]: No such device
ioctl[SIOCSIWENCODE]: No such device
ioctl[SIOCSIWENCODEEXT]: No such device
ioctl[SIOCSIWENCODE]: No such device
ioctl[SIOCSIWENCODEEXT]: No such device
ioctl[SIOCSIWENCODE]: No such device
ioctl[SIOCGIWMODE]: No such device
ioctl[SIOCSIWAP]: No such device
ioctl[SIOCSIWESSID]: No such device
wpa_supplicant: /sbin/wpa_supplicant daemon failed to start
run-parts: /etc/network/if-pre-up.d/wpasupplicant exited with return code 1
Internet Systems Consortium DHCP Client 4.2.2
Copyright 2004-2011 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Cannot find device "eth1"
Bind socket to interface: No such device
Failed to bring up eth1.
done.

After running

rfkill list

I"ve found out that that doesn't exist (as the error above told me, so i changed the intefaces file to the right ones, and now it looks like this:

auto lo
iface lo inet loopback
auto asus-lan
iface asus-lan inet dhcp
wireless-mode Managed
wireless-essid ATT352
wpa-psk 5165668546

I tried running

rfkill unblock all 

to take the softblock of of asus-lan but that doesn't do anything for me.

Here's the output of

rfkill list

  if you would like it:


0: asus-wlan: Wireless LAN
	Soft blocked: yes
	Hard blocked: no
1: phy0: Wireless LAN
	Soft blocked: no
	Hard blocked: no



So, in the long run, after restarting the  network with the right information inputted, I get this, even with my new changes:


Configuring network interfaces...asus-lan: ERROR while getting interface flags: No such device
Error for wireless request "Set Mode" (8B06) :
    SET failed on device asus-lan ; No such device.
Error for wireless request "Set ESSID" (8B1A) :
    SET failed on device asus-lan ; No such device.
ioctl[SIOCSIWPMKSA]: No such device
ioctl[SIOCSIWMODE]: No such device
ioctl[SIOCGIWRANGE]: No such device
ioctl[SIOCGIWMODE]: No such device
ioctl[SIOCSIWAP]: No such device
ioctl[SIOCSIWESSID]: No such device
ioctl[SIOCSIWENCODEEXT]: No such device
ioctl[SIOCSIWENCODE]: No such device
ioctl[SIOCSIWENCODEEXT]: No such device
ioctl[SIOCSIWENCODE]: No such device
ioctl[SIOCSIWENCODEEXT]: No such device
ioctl[SIOCSIWENCODE]: No such device
ioctl[SIOCSIWENCODEEXT]: No such device
ioctl[SIOCSIWENCODE]: No such device
ioctl[SIOCSIWENCODEEXT]: No such device
ioctl[SIOCSIWENCODE]: No such device
ioctl[SIOCSIWENCODEEXT]: No such device
ioctl[SIOCSIWENCODE]: No such device
ioctl[SIOCGIWMODE]: No such device
ioctl[SIOCSIWAP]: No such device
ioctl[SIOCSIWESSID]: No such device
wpa_supplicant: /sbin/wpa_supplicant daemon failed to start
run-parts: /etc/network/if-pre-up.d/wpasupplicant exited with return code 1
Internet Systems Consortium DHCP Client 4.2.2
Copyright 2004-2011 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Cannot find device "asus-lan"
Bind socket to interface: No such device
Failed to bring up asus-lan.
done.

Last edited by Creech (2013-04-14 20:49:21)


All is one, and one is all.

Offline

#10 2013-04-15 01:41:18

Creech
Member
From: Florida
Registered: 2013-04-08
Posts: 11

Re: (Solved)Enable Wireless on startup

Okay now for some reason it's working again with my changes made to uname's post. (seen above)


Thanks for the help everyone.


All is one, and one is all.

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.

Debian Logo