轉(zhuǎn)載自:http://www.ithao123.cn/content-7322302.html
原文鏈接:http://www.modmypi.com/blog/disable-wifi-power-management
現(xiàn)象:
樹莓派2使用usb無線網(wǎng)卡時,有時ssh會自動斷開,這種情況可能是由于啟用了電源管理功能,
無線網(wǎng)卡在空閑時會自動關(guān)閉。
運(yùn)行iwconfig,觀察Power Management狀態(tài),如果為on則需要修改。
解決:
修改配置文件:
sudo nano /etc/network/interfaces
在無線網(wǎng)卡(一般是wlan0)中添加一句
wireless-power off
重啟sudo reboot再運(yùn)行一次iwconfig