LinuxQuestions.org

LinuxQuestions.org (http://www.linuxquestions.org/questions/index.php)
-   Linux - Hardware (http://www.linuxquestions.org/questions/forumdisplay.php?f=18)
-   -   Need to (re)-enable wi-fi device in kernel module (http://www.linuxquestions.org/questions/showthread.php?t=4175457388)

Phoenix_Swelter 04-08-2013 12:56 PM

Need to (re)-enable wi-fi device in kernel module
 
A year or so ago I found an article online about how to disable my wi-fi device in the kernel. Knowing I was never going to use the wi-fi, and disliking the need to turn off the bright orange wi-fi light every time I booted, I disabled it.

Now I need wi-fi capability, and I can't remember what I did to disable it!

I am running Kubuntu 12.10 on an Aspire 5610. lspci shows the controller as an Intel Corporation PRO/Wireless 3945ABG [Golan] Network Connection (rev 02). The kernel is 3.5.0-26

lsmod shows 3945 in the following places:
iwl3945 63696 0
iwlegacy 87811 1 iwl3945
mac80211 461261 2 iwl3945,iwlegacy
cfg80211 175574 3 iwl3945,iwlegacy,mac80211

Any suggestions?

evo2 04-08-2013 06:11 PM

Hi,

a quick web search seems to indicate that iwl3945 is the correct module... normally I would disable a device by blacklisting the corresponding kernel module, but it seems that is not the path you took. Are you sure it is really disabled? Do you see the device when running iwconfig and 'ifconfig -a'?
Also, what does 'rfkill list all' show (from the rfkill package)?

What method are you using for network configuration? Eg /etc/network/interfaces, wicd, network-manager, etc?

Evo2.

Phoenix_Swelter 04-09-2013 04:06 PM

Quote:

Originally Posted by evo2 (Post 4927871)
Hi,

a quick web search seems to indicate that iwl3945 is the correct module... normally I would disable a device by blacklisting the corresponding kernel module, but it seems that is not the path you took. Are you sure it is really disabled? Do you see the device when running iwconfig and 'ifconfig -a'?

Yes, I do see the device with both iwconfig and ifconfig -a.

Quote:

Also, what does 'rfkill list all' show (from the rfkill package)?
0: phy0: Wireless LAN
Soft blocked: no
Hard blocked: yes

Quote:

What method are you using for network configuration? Eg /etc/network/interfaces, wicd, network-manager, etc?
Not /etc/network/interfaces. That file only contains:
auto lo
iface lo inet loopback

So, whatever was the default for the Kubuntu installation.
Edit: Apparently it is currently NetworkManager.

Addendum:
I found on the net how to get rid of the Hard block. Now both Soft blocked and Hard blocked read 'no'.

But the wireless HW switch still seems to do nothing - the power light is always off. And I was unable to find any BIOS option to enable or disable wireless.

Thanks for the reply - I hope this helps you get me on the right track

evo2 04-09-2013 11:12 PM

Hi,

other than the light being off, it sounds like it is working. Can you see any access points if you run a scan? Eg:
Code:

iwlist wlan0 scan

Evo2.

EDDY1 04-10-2013 12:14 AM

Have you tried
Quote:

rmmod -f iwl3945
rfkill unblock all
modprobe iwl3945

Phoenix_Swelter 04-10-2013 05:30 PM

Quote:

Originally Posted by evo2 (Post 4928621)
Hi,

other than the light being off, it sounds like it is working. Can you see any access points if you run a scan? Eg:
Code:

iwlist wlan0 scan

$ iwlist wlan0 scan
wlan0 Failed to read scan data : Network is down

# ifup wlan0
Ignoring unknown interface wlan0=wlan0.

Phoenix_Swelter 04-10-2013 05:35 PM

Quote:

Originally Posted by EDDY1 (Post 4928642)
Have you tried
rmmod -f iwl3945
rfkill unblock all
modprobe iwl3945

# rmmod -f iwl3945
#

# rfkill unblock all
#

# modprobe iwl3945
#

# ifup wlan0
Ignoring unknown interface wlan0=wlan0.

evo2 04-10-2013 05:37 PM

Hi,

"ifup wlan0" will only work if you have a wlan0 section in your /etc/network/interfaces. Try

Code:

ifconfig wlan0 up
iwlist wlan0 scan

Evo2.

Phoenix_Swelter 04-10-2013 05:46 PM

Quote:

Originally Posted by evo2 (Post 4929367)
Hi,

"ifup wlan0" will only work if you have a wlan0 section in your /etc/network/interfaces. Try

Code:

ifconfig wlan0 up
iwlist wlan0 scan


# ifconfig wlan0 up
SIOCSIFFLAGS: No such device

evo2 04-10-2013 05:53 PM

Hi,

ok... have to guess a bit here otherwise it will be a tedious one post per command

What about the following?
Code:

rfkill list all
ifconfig wlan0
iwconfig wlan0
ifconfig wlan0 0
iwconfig wlan0
iwlist wlan0 scan

Evo2.

Phoenix_Swelter 04-10-2013 06:01 PM

Quote:

Originally Posted by evo2 (Post 4929379)
Hi,

ok... have to guess a bit here otherwise it will be a tedious one post per command

What about the following?
Code:

rfkill list all
ifconfig wlan0
iwconfig wlan0
ifconfig wlan0 0
iwconfig wlan0
iwlist wlan0 scan


No problem - I appreciate the effort.

$ rfkill list all
1: phy1: Wireless LAN
Soft blocked: no
Hard blocked: no

$ ifconfig wlan0
wlan0 Link encap:Ethernet HWaddr 00:18:de:4d:14:d3
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

$ iwconfig wlan0
wlan0 IEEE 802.11abg ESSID:off/any
Mode:Managed Access Point: Not-Associated Tx-Power=0 dBm
Retry long limit:7 RTS thr:off Fragment thr:off
Power Management:on

# ifconfig wlan0 0
SIOCSIFFLAGS: No such device

$ iwconfig wlan0
(same as above)

$ iwlist wlan0 scan
wlan0 Failed to read scan data : Network is down

# iwlist wlan0 scan
wlan0 Interface doesn't support scanning : Network is down

EDDY1 04-11-2013 04:02 AM

Have you tried right-clicking on network icon & enable wireless?

jlinkels 05-17-2013 07:45 AM

Have you solved this? I am also struggling with an Acer Aspire. WiFi controller is different, but what is see is exactly the same. If you solved it, it might give me a pointer.

jlinkels

EDDY1 05-17-2013 10:14 AM

Quote:

Originally Posted by jlinkels (Post 4953095)
Have you solved this? I am also struggling with an Acer Aspire. WiFi controller is different, but what is see is exactly the same. If you solved it, it might give me a pointer.

jlinkels

What's the model of your acer?
Aso post output of lspci

jlinkels 05-18-2013 07:29 AM

Aspire 5040
Do you mind if I point you to my post in the Mint forums?
http://forums.linuxmint.com/viewtopic.php?f=53&t=134064

Furthermore, I discovered something else. On the front of the Aspire is a radio on/off button. Now when I press that button, I see this happening in the output of rfkill list all:

After booting:
Soft blocked: no
Hard blocked: no

press 1
Soft blocked: yes
Hard blocked: no

press 2
Soft blocked: no
Hard blocked: yes

press 3
Soft blocked: yes
Hard blocked: yes

press 4
Soft blocked: no
Hard blocked: yes

And pressing the radio switch keeps toggling the Soft blocked. While at the second press the Hard blocked became asserted, it never changed again.

Apparently it is possible to control Hard blocked from software. If I knew how to do it... Obviously I tried to write 0 or 1 to /sys/class/device/net/..../rfkill (I am not sure about the exact path, I am not behind that laptop now)

It was also remarkable to see that the value /sys/class/device/net/..../rfkill
after boot:
/sys/class/device/net/..../rfkill = 0

echo 1 > /sys/class/device/net/..../rfkill
/sys/class/device/net/..../rfkill = 1

echo 0 > /sys/class/device/net/..../rfkill
/sys/class/device/net/..../rfkill = 2

jlinkels


All times are GMT -5. The time now is 10:45 PM.