一、問題描述
本人使用的是聯想超極本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模塊的自動移出操作。
新聞熱點
疑難解答
圖片精選