電訊茶室's Archiver

角色 發表於 2019-2-7 15:51

Raspberry Pi —— Ways to reduce power consumption

[i=s] 本帖最後由 角色 於 2019-2-7 22:40 編輯 [/i]

因为server长期不接monitor,不接WiFi,看看是否能把不需要的power cut掉,减省电费。

1、关掉WiFi and bluetooth[code]
sudo rfkill block all
[/code],

重开[code]
sudo rfkill unbliock all
[/code].

man page for rfkill[code]
pi@raspberrypi:~ $ rfkill
Usage:        rfkill [options] command
Options:
        --version        show version (0.5-1+b1 (Debian))
Commands:
        help
        event
        list [IDENTIFIER]
        block IDENTIFIER
        unblock IDENTIFIER
where IDENTIFIER is the index no. of an rfkill switch or one of:
        <idx> all wifi wlan bluetooth uwb ultrawideband wimax wwan gps fm nfc
[/code].

本来都是把HDMI关掉,但是想到要救机的时候,插mon都开不到,没有别要把它也关掉。

Source:
[url]https://www.raspberrypi.org/forums/viewtopic.php?t=208110[/url]
[url]https://www.raspberrypi.org/forums/viewtopic.php?t=152692[/url]

上面有些方法去减少耗电。

vpn-learner 發表於 2019-2-13 10:50

如果只是想关闭wifi,(保留蓝牙)又用什么command?因为我仍需要用蓝牙keyboard 的。

角色 發表於 2019-2-13 11:12

那么你可以用下面指令[code]
sudo rfkill block wlan
[/code]在第一楼的信息,all包括很多与radio frequency(rf)有关的devices。

頁: [1]

Powered by Discuz! Archiver 7.2  © 2001-2009 Comsenz Inc.