I have a desktop PC with Win 7 and Ubuntu 12.04 and default GRUB, also, i have a wifi USB adapter plugged which automatically connect to my personal wifi.
My problem is this:
when i boot into Win 7 the wifi works fine, then i reboot to ubuntu and the wifi doesn't work automatically. Is fixed if i plug the USB-wifi out and in again.
Weird thing is if I reboot from Ubuntu to Ubuntu (and the wifi was working) it connects automatically as it should. If i reboot from ubuntu to ubuntu and the wifi was not working it wont connect automatically.
So theres seems to be 'something' that messes up things in the very moment i boot to Windows 7 via GRUB.
¿how to fix that? i constantly change from one system to another so is quite annoying to plug the USB in and out every time.
Hardware info: USB wifi adapter: TP-Link TL-WN321G V4 using chipset: "ID 148f:2070 Ralink Technology, Corp. RT2070 Wireless Adapter" (got it from $ lsusb) it works via the driver: rt2800usb
This is a fresh install Jan 23 2013 fully up to date. I have this problem since 12.04 came out, and 12.10 wont fix it.
when the USB wifi is not working it still detects it:
$ lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 003: ID 046d:c52f Logitech, Inc. Wireless Mouse M305
Bus 002 Device 004: ID 4971:ce04 SimpleTech
Bus 002 Device 005: ID 04cf:0022 Myson Century, Inc. OCZ Alchemy Series Elixir II Keyboard
Bus 002 Device 006: ID 148f:2070 Ralink Technology, Corp. RT2070 Wireless Adapter
then i unplug and plugin again:
$ lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 003: ID 046d:c52f Logitech, Inc. Wireless Mouse M305
Bus 002 Device 004: ID 4971:ce04 SimpleTech
Bus 002 Device 005: ID 04cf:0022 Myson Century, Inc. OCZ Alchemy Series Elixir II Keyboard
Bus 002 Device 007: ID 148f:2070 Ralink Technology, Corp. RT2070 Wireless Adapter
and there is that small change.
EDIT 1:
after some reading i got additional information: (this happens when the wifi wont connect)
$ sudo ifup wlan0
[sudo] password for marcos:
Ignoring unknown interface wlan0=wlan0.
$ iwconfig
lo no wireless extensions.
wlan0 IEEE 802.11bg ESSID:off/any
Mode:Managed Access Point: Not-Associated Tx-Power=20 dBm
Retry long limit:7 RTS thr:off Fragment thr:off
Power Management:on
eth0 no wireless extensions.
$ ifconfig wlan0
wlan0 Link encap:Ethernet direcciónHW <hidden MAC address>
ACTIVO DIFUSIÓN MULTICAST MTU:1500 Métrica:1
Paquetes RX:0 errores:0 perdidos:0 overruns:0 frame:0
Paquetes TX:0 errores:0 perdidos:0 overruns:0 carrier:0
colisiones:0 long.colaTX:1000
Bytes RX:0 (0.0 B) TX bytes:0 (0.0 B)
and this are the changes after i unplug and re-plug the USB wifi
$ iwconfig wlan0
wlan0 IEEE 802.11bg ESSID:"Red de Lourdes"
Mode:Managed Frequency:2.412 GHz Access Point: <hidden MAC address>
Bit Rate=54 Mb/s Tx-Power=20 dBm
Retry long limit:7 RTS thr:off Fragment thr:off
Power Management:on
Link Quality=59/70 Signal level=-51 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:145 Invalid misc:96 Missed beacon:0
$ ifconfig wlan0
wlan0 Link encap:Ethernet direcciónHW <hidden MAC address>
Direc. inet:<hidden IP address> Difus.:<hidden IP address> Másc:<hidden IP address>
Dirección inet6: <hidden IPv6 address> Alcance:Enlace
ACTIVO DIFUSIÓN FUNCIONANDO MULTICAST MTU:1500 Métrica:1
Paquetes RX:2108 errores:0 perdidos:0 overruns:0 frame:0
Paquetes TX:2259 errores:0 perdidos:0 overruns:0 carrier:0
colisiones:0 long.colaTX:1000
Bytes RX:845327 (845.3 KB) TX bytes:395596 (395.5 KB)
Any way to make a Bash script to get the wireless to work? any other solution? is the GRUB at fault here?