I have VAIO VPCEA23EN with Ubuntu 12.04 32 Bit.
Bluetooth is working but not WiFi.
It says "disabled by hardware switch" even when it's enabled.
Open the terminal. the shortcut is:
Ctrl + Alt + T
Then type this command:
If it did not work from the beginning.Try typing it again like 2 or 3 times and then see
Sometimes the hard switch won't work. So this command works like a hard switch and helps enabling the Wifi.
I have seen similar behaviour with my Dell E5430. If the machine is booted with the hardware switch in the off position, then toggling it does nothing, and the wireless interface cannot be activated until the machine is rebooted with the switch in the 'on' position.
Once this is done - the hard switch works as expected - powering the wireless card up and down.
I have a similar problem with my asus x550c notebook none of the above answers helped but I have found that if I boot up and log in then close the lid and then open the lid again when I log in again the wi fi will be working hope this helps other users