Ubuntu – Wireless is disabled by hardware switch on sony vaio

sonyvaiowireless

I have Sony VAIO VPCEB26FG. I installed ubuntu 11.04. When i switch on my wireless button only bluetooth gets activated and it shows wireless is disabled by hardware switch. I tried using command $sudo rfkill list. The output of which is

kiran@sytem:~$ rfkill list  
0: sony-wifi: Wireless LAN  
    Soft blocked: no  
    Hard blocked: no  
1: sony-bluetooth: Bluetooth  
    Soft blocked: no  
    Hard blocked: no  
2: phy0: Wireless LAN  
    Soft blocked: no  
    Hard blocked: no  
3: hci0: Bluetooth  
    Soft blocked: no  
    Hard blocked: no  

How to solve this problem??

Best Answer

This solved my problem on my Vaio vpceg:

sudo gedit /etc/rc.local

Place this above the exit 0 line:

rfkill unblock wifi
rfkill unblock all
sudo modprobe -r acer_wmi