關於聯想超極本裝入Ubuntu系統無法開啟無線硬體開關的解決,ubuntu開關
一、問題描述
本人使用的是聯想超極本yoga2 pro,預設裝入Win8系統,然當裝入ubuntu雙系統時,會出現無線硬體開關關閉的問題,當然也就無法連網。
使用
rfkill list all
會出現如下提示
0:ideapad_wlan: Wireless LANSoft blocked: noHard blocked:yes1:ideapad_bluetooth: BluetoothSoft blocked: noHard blocked: yes2:phy0: Wireless LANSoft blocked: noHard blocked:no3:hci0: BluetoothSoft blocked: yesHard blocked: no
可以看到,優先順序前的ideapad_wlan的Hard blocked 預設為yes,即ubuntu預設關閉了硬體wifi開關,而超極本yoga2 pro 這樣的只有軟體開關wifi,沒有硬體開關的啟動,所以引起了wifi無法開啟的問題。
二、問題解決
從無線模組的顯示列表可以看出,序號2的wifi模組是軟硬體是可以啟動的,所以,只要將前面預設的模組移出即可;使用命令:
sudo modprobe -r ideapad_laptop
即移出了ideapad的無線模組,再使用命令查看:
rfkill list all
如下提示:
2:phy0: Wireless LANSoft blocked: noHard blocked:no3:hci0: BluetoothSoft blocked: yesHard blocked: no
即wifi模組工作正常,然而每次重啟ubuntu系統都要重新進行模組移出,故可將該命令設定為開機自啟動,方法是在/etc/rc.local檔案中添加命令。
#!/bin/sh -e## rc.local## This script is executed at the end of each multiuser runlevel.# Make sure that the script will "exit 0" on success or any other# value on error.## In order to enable or disable this script just change the execution# bits.## By default this script does nothing.#因為使用的是非管理員登入,故在執行sudo命令時要輸入密碼,方可自動化執行,#此處假設使用者密碼為123,命令一定要在exit 0之前運行,該檔案如果沒有修改許可權#修改前使用 chmod 命令修改許可權即可!echo "123" |sudo modprobe -r ideapad_laptopexit 0
開機啟動後系統會自動執行改指令檔,完成wifi模組的自動移出操作。