![在运行 Debian 的 macbook pro 上读卡会耗尽我的电池](https://linux22.com/image/80938/%E5%9C%A8%E8%BF%90%E8%A1%8C%20Debian%20%E7%9A%84%20macbook%20pro%20%E4%B8%8A%E8%AF%BB%E5%8D%A1%E4%BC%9A%E8%80%97%E5%B0%BD%E6%88%91%E7%9A%84%E7%94%B5%E6%B1%A0.png)
我目前使用的是 macbook pro,但操作系统是 debian 8.2 而不是 os x
我使用的是 MacBook Pro,但有一个设备消耗了大量电量。此 USB 设备:读卡器(Apple)
32.5 W 100.0% Device USB device: Card Reader (Apple)
2.60 W 100.0% Device Radio device: btusb
209 mW 19.7 pkts/s Device Network interface: wlan0 (wl)
这个设备确实耗尽了我的电池,我注意到我的笔记本电脑在不插电的情况下甚至无法使用 2 小时,我安装了 powertop。进行了所有建议的更改,但此设备,我不知道如何禁用它。我什至不使用那个阅读器并且忘记了它在那里。
我在 rc.local 中将所有设备配置为使用有限电量
echo '0' > '/proc/sys/kernel/nmi_watchdog'
echo 'min_power' > '/sys/class/scsi_host/host0/link_power_management_policy'
echo '1' > '/sys/module/snd_hda_intel/parameters/power_save'
echo '1500' > '/proc/sys/vm/dirty_writeback_centisecs'
echo 'auto' > '/sys/bus/usb/devices/2-4/power/control'
echo 'auto' > '/sys/bus/usb/devices/1-12/power/control'
echo 'auto' > '/sys/bus/usb/devices/1-8.3/power/control'
echo 'auto' > '/sys/bus/pci/devices/0000:00:1f.3/power/control'
echo 'auto' > '/sys/bus/pci/devices/0000:01:00.1/power/control'
echo 'auto' > '/sys/bus/pci/devices/0000:00:1c.3/power/control'
echo 'auto' > '/sys/bus/pci/devices/0000:00:1c.4/power/control'
echo 'auto' > '/sys/bus/pci/devices/0000:00:1c.2/power/control'
echo 'auto' > '/sys/bus/pci/devices/0000:00:1c.0/power/control'
echo 'auto' > '/sys/bus/pci/devices/0000:00:1b.0/power/control'
echo 'auto' > '/sys/bus/pci/devices/0000:00:16.0/power/control'
echo 'auto' > '/sys/bus/pci/devices/0000:00:14.0/power/control'
echo 'auto' > '/sys/bus/pci/devices/0000:00:01.1/power/control'
echo 'auto' > '/sys/bus/pci/devices/0000:00:01.0/power/control'
echo 'auto' > '/sys/bus/pci/devices/0000:00:00.0/power/control'
echo 'auto' > '/sys/bus/pci/devices/0000:01:00.0/power/control'
echo 'auto' > '/sys/bus/pci/devices/0000:08:00.0/power/control'
echo 'auto' > '/sys/bus/pci/devices/0000:07:06.0/power/control'
echo 'auto' > '/sys/bus/pci/devices/0000:07:05.0/power/control'
echo 'auto' > '/sys/bus/pci/devices/0000:07:04.0/power/control'
echo 'auto' > '/sys/bus/pci/devices/0000:07:03.0/power/control'
echo 'auto' > '/sys/bus/pci/devices/0000:07:00.0/power/control'
echo 'auto' > '/sys/bus/pci/devices/0000:06:00.0/power/control'
echo 'auto' > '/sys/bus/pci/devices/0000:05:00.0/power/control'
echo 'auto' > '/sys/bus/pci/devices/0000:04:00.0/power/control'
echo 'auto' > '/sys/bus/pci/devices/0000:03:00.0/power/control'
echo 'auto' > '/sys/bus/pci/devices/0000:00:1f.0/power/control'
我怎样才能让这个设备正常运行或完全禁用它,因为我没有使用过它。
答案1
在里面USB 电源管理、内核文档,您将找到与端口设备相关的关闭电源先决条件设置的摘要:
echo 0 > power/pm_qos_no_power_off
echo 0 > peer/power/pm_qos_no_power_off # if it exists
echo auto > power/control # this is the default value
echo auto > <child>/power/control
echo 1 > <child>/power/persist # this is the default value