Turning on wireless using hardware switch doesn't work

On any distro based on Ubuntu 12.04, the wireless switch will disable wireless, but when I turn it back on I have to run “sudo rfkill unblock all” to be able to re-enable wireless.

Any help?
Thanks!

Can you supply the make and model of your laptop … and the output from:

sudo lshw -C network

and

uname -srp

and

rfkill list

Sorry it took so long to get back to you…

It’s a Sony Vaio PCG61A11L

lshw:

 *-network
       description: Wireless interface
       product: AR9285 Wireless Network Adapter (PCI-Express)
       vendor: Atheros Communications Inc.
       physical id: 0
       bus info: pci@0000:02:00.0
       logical name: wlan0
       version: 01
       serial: 64:27:37:ab:c9:57
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
       configuration: broadcast=yes driver=ath9k driverversion=3.2.0-23-generic firmware=N/A ip=192.168.254.2 latency=0 link=yes multicast=yes wireless=IEEE 802.11bgn
       resources: irq:16 memory:d2500000-d250ffff
  *-network
       description: Ethernet interface
       product: AR8151 v2.0 Gigabit Ethernet
       vendor: Atheros Communications Inc.
       physical id: 0
       bus info: pci@0000:09:00.0
       logical name: eth0
       version: c0
       serial: 78:84:3c:b3:a6:d1
       capacity: 1Gbit/s
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress vpd bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=atl1c driverversion=1.0.1.0-NAPI firmware=N/A latency=0 link=no multicast=yes port=twisted pair
       resources: irq:44 memory:d1400000-d143ffff ioport:2000(size=128)

uname:

Linux 3.2.0-23-generic x86_64

Here’s rfkill now:

0: phy0: Wireless LAN
	Soft blocked: no
	Hard blocked: no
1: sony-wifi: Wireless LAN
	Soft blocked: no
	Hard blocked: no

Now when the switch is switched off (either software or hardware) it says that all of them are soft and hard blocked. Then when the physical switch is switched back on (or I try to switch the software switch back on) it says it’s still soft blocked.

Can you post the output from:

lsmod