Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] wlan shutting down (SIOCSFLAGS:Unknown Error 132)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
divago
Tux's lil' helper
Tux's lil' helper


Joined: 04 Jun 2010
Posts: 84

PostPosted: Tue Aug 17, 2010 12:36 pm    Post subject: [Solved] wlan shutting down (SIOCSFLAGS:Unknown Error 132) Reply with quote

Hi all
i got a problem during installation on eeepc p900
(again xD this installation is driving me mad xD )

when i do "/etc/ini.d/net.wlan0 restart" it shut down wlan0
thenn trying to restarting it says me
"SIOCSFLAG: Unknown Error 132".

i know what cause it: when bringing down wlan it litterally "shut down" it (RF Switch...)
i mean: it hardware turn off the wireless card
then fail to turn on afterwise

i got similar problem with the big laptop, then i just removed "RF Switch Control" from kernel (don't remember the exact name) and all worked fine

but i really _don't_ whant removing this from kernel 'cause eeepc _has_ software/hotkey switch to turn on and off wireless (and that's useful to save battery charge)

i'd like to post here my .config if could be useful but it's really too long...
btw i compiled a kernel _without_ modules so please, don't tell me to state lsmod :)

other useful information:
Code:
$ lsmod
Opening /proc/modules: No such file or directory


$ lscpu
Architecture:          i686
CPU(s):                1
Thread(s) per core:    1
Core(s) per socket:    1
CPU socket(s):         1
Vendor ID:             GenuineIntel
CPU family:            6
Model:                 13
Stepping:              8
CPU MHz:               900.205


# lspci
00:00.0 Host bridge: Intel Corporation Mobile 915GM/PM/GMS/910GML Express Processor to DRAM Controller (rev 04)
00:02.0 VGA compatible controller: Intel Corporation Mobile 915GM/GMS/910GML Express Graphics Controller (rev 04)
00:02.1 Display controller: Intel Corporation Mobile 915GM/GMS/910GML Express Graphics Controller (rev 04)
00:1b.0 Audio device: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) High Definition Audio Controller (rev 04)
00:1c.0 PCI bridge: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) PCI Express Port 1 (rev 04)
00:1c.1 PCI bridge: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) PCI Express Port 2 (rev 04)
00:1c.2 PCI bridge: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) PCI Express Port 3 (rev 04)
00:1d.0 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #1 (rev 04)
00:1d.1 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #2 (rev 04)
00:1d.2 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #3 (rev 04)
00:1d.3 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #4 (rev 04)
00:1d.7 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB2 EHCI Controller (rev 04)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev d4)
00:1f.0 ISA bridge: Intel Corporation 82801FBM (ICH6M) LPC Interface Bridge (rev 04)
00:1f.2 IDE interface: Intel Corporation 82801FBM (ICH6M) SATA Controller (rev 04)
00:1f.3 SMBus: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) SMBus Controller (rev 04)
01:00.0 Ethernet controller: Atheros Communications Inc. AR5001 Wireless Network Adapter (rev 01)
03:00.0 Ethernet controller: Attansic Technology Corp. L2 100 Mbit Ethernet Adapter (rev a0)

$ uname -a
Linux phoenix 2.6.35-gentoo-r1-netbook #1 SMP Sun Aug 15 19:45:12 CEST 2010 i686 Intel(R) Celeron(R) M processor 900MHz GenuineIntel GNU/Linux

Thanks all for helping :)[/code]


Last edited by divago on Thu Aug 19, 2010 8:38 pm; edited 1 time in total
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7389
Location: Goose Creek SC

PostPosted: Tue Aug 17, 2010 2:26 pm    Post subject: Reply with quote

Assuming you have emerged rfkill, what happens if you add
Quote:
preup () {
if [[ ${IFACE} == "wlan1" ]]; then
rfkill unblock all
fi
}
to /etc/conf.d/net and run
Code:
/etc/init.d/net.wlan0 restart
?
Back to top
View user's profile Send private message
divago
Tux's lil' helper
Tux's lil' helper


Joined: 04 Jun 2010
Posts: 84

PostPosted: Wed Aug 18, 2010 10:49 am    Post subject: Reply with quote

DONAHUE wrote:
Assuming you have emerged rfkill
mmmhhh to be honest i did not emerge rfkill until now :)

BUT
i did some experiment with the Fn+F2 button (that turn on and off wireless)
and this is the result

1) trying a direct restart (by init script)
Code:

# /etc/init.d/net.wlan0 restart
 * Stopping wlan0
 *   Bringing down wlan0
 *   Shutting down wlan0 ... [ ok ]
 * Starting wlan0
 SIOCSIFFLAGS: Unknown error 132
 SIOCSIFFLAGS: Unknown error 132
 SIOCSIFFLAGS: Unknown error 132
 *   Configuring wireless network for wlan0
 *   Trying to force preferred in case they are hidden
 *   Failed to associate with any preferred access points on wlan0
 *   Failed to configure wireless for wlan0


Then if i hardware turn off wireless card (by perssing Fn+F2 keys)
Code:

# /etc/init.d/net.wlan0 start
 * Starting wlan0
 *   Configuration not set for wlan0 - assuming DHCP
 *   Bringing up wlan0
 *     dhcp
 *       network interface wlan0 does not exist
 *       Please verify hardware or kernel module (driver)  [ !! ]


Now i turn on card (again, pressing Fn+F2 keys)
Code:

# /etc/init.d/net.wlan0 start
  * ERROR:  net.wlan0 is already starting.
# /etc/init.d/net.wlan0 status
  * status:  starting
# ifconfig wlan0
 wlan0    Link encap:Ethernet  HWaddr 00:15:af:a6:bb:5a
          inet addr:192.168.1.125  Bcast:192.168.255.255  Mask:255.255.0.0
          inet6 addr: fe80::215:afff:fea6:bb5a/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:204 errors:0 dropped:0 overruns:0 frame:0
          TX packets:13 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:34651 (33.8 KiB)  TX bytes:1606 (1.5 KiB)

of course i need to wait a little while (about 10-15 seconds) before ifconfig (but i got conky who can help me saying when wlan card is up :) )

this mean, i need to hardware shut down and turn on crd everytime i whant a restart?
it's fine, ok

btw i'll try your suggestion as soon as i emerge rfkill...
Back to top
View user's profile Send private message
divago
Tux's lil' helper
Tux's lil' helper


Joined: 04 Jun 2010
Posts: 84

PostPosted: Thu Aug 19, 2010 11:41 am    Post subject: Reply with quote

ok i used the preup function you told me inside /etc/conf.d/net
and it worked!

now i don't need anymore to turn off and on wireless card :)

tyvm =)
Back to top
View user's profile Send private message
d2_racing
Moderator
Moderator


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Thu Aug 19, 2010 11:54 am    Post subject: Reply with quote

divago, can you post this for the record :

Code:

# cd /usr/src/linux
# cat .config | grep -i kill
Back to top
View user's profile Send private message
divago
Tux's lil' helper
Tux's lil' helper


Joined: 04 Jun 2010
Posts: 84

PostPosted: Thu Aug 19, 2010 12:03 pm    Post subject: Reply with quote

d2_racing wrote:
divago, can you post this for the record :

Code:

# cd /usr/src/linux
# cat .config | grep -i kill

ok
Code:

CONFIG_RFKILL=y
CONFIG_RFKILL_LEDS=y
CONFIG_RFKILL_INPUT=y
# CONFIG_TOSHIBA_BT_RFKILL is not set

btw, using preup function of DONAHUE it work fine :)
Back to top
View user's profile Send private message
d2_racing
Moderator
Moderator


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Thu Aug 19, 2010 1:34 pm    Post subject: Reply with quote

Or disable that inside your kernel and you will be good to go :P
Back to top
View user's profile Send private message
divago
Tux's lil' helper
Tux's lil' helper


Joined: 04 Jun 2010
Posts: 84

PostPosted: Thu Aug 19, 2010 3:40 pm    Post subject: Reply with quote

d2_racing wrote:
Or disable that inside your kernel and you will be good to go :P
yeah i know 'cause i did it on my bigger notebook
but on eeepc i got an "hardware software switch" i mean i can turn off wifi card by pressing Fn+F2 (and it work!) so disabling RF Switch from kernel will make it impossible to do :\
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7389
Location: Goose Creek SC

PostPosted: Thu Aug 19, 2010 3:56 pm    Post subject: Reply with quote

Well done, divago. When convenient, pls edit the subject of your original post to include [Solved]
Back to top
View user's profile Send private message
divago
Tux's lil' helper
Tux's lil' helper


Joined: 04 Jun 2010
Posts: 84

PostPosted: Thu Aug 19, 2010 8:36 pm    Post subject: Reply with quote

DONAHUE wrote:
Well done, divago. When convenient, pls edit the subject of your original post to include [Solved]
oh right
you're right i forgot :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum