2012年11月28日 星期三

Linux Mint 14 安裝筆記 - VAIO VPCYA16FW 無線網卡問題排除

在安裝 Linux Mint 14 後發現在 VAIO VPCYA16FW 之前開機捉不到無線網卡的問題已經被修復,安裝完已經可以正常捉到網路卡了,但仍有一個問題,當在 Panel 上的 Network Manager 關閉無線網卡的開關後會發現無線網卡再也不能開啟,從網路上的資料發現這個問題能用 sudo rfkill unblock wlan 這個命令解決,為了不用每次都下命令所以在 /usr/share/cinnamon/applets/network@cinnamon.org/applet.js 加入 + 號後的命令:

    setEnabled: function(enabled) {
        if (enabled) {
+          Util.spawnCommandLine("rfkill unblock wlan");
            this.statusItem.actor.show();
            this.section.actor.show();
        } else {
            this.statusItem.actor.hide();
            this.section.actor.hide();
        }
    },