切换到 ubuntu 后电池使用寿命下降

切换到 ubuntu 后电池使用寿命下降

自从我从 Windows 切换到 Ubuntu 后,我的电池续航时间就不超过 20 分钟。以前大约需要 4 个小时才会耗尽电量。有人能帮我解决吗?

$--- TLP 0.8 --------------------------------------------

+++已配置的设置:/etc/default/tlp TLP_ENABLE=1 TLP_DEFAULT_MODE=AC DISK_IDLE_SECS_ON_AC=0 DISK_IDLE_SECS_ON_BAT=2 MAX_LOST_WORK_SECS_ON_AC=15 MAX_LOST_WORK_SECS_ON_BAT=60 SCHED_POWERSAVE_ON_AC=0 SCHED_POWERSAVE_ON_BAT=1 NMI_WATCHDOG=0 ENERGY_PERF_POLICY_ON_AC=performance ENERGY_PERF_POLICY_ON_BAT=powersave DISK_DEVICES="sda sdb" DISK_APM_LEVEL_ON_AC="254 254" DISK_APM_LEVEL_ON_BAT="128 128" SATA_LINKPWR_ON_AC=max_performance SATA_LINKPWR_ON_BAT=最小功率 PCIE_ASPM_ON_AC=性能 PCIE_ASPM_ON_BAT=省电 RADEON_POWER_PROFILE_ON_AC=高 RADEON_POWER_PROFILE_ON_BAT=低 RADEON_DPM_STATE_ON_AC=性能 RADEON_DPM_STATE_ON_BAT=电池 RADEON_DPM_PERF_LEVEL_ON_AC=自动 RADEON_DPM_PERF_LEVEL_ON_BAT=自动 WIFI_PWR_ON_AC=1 WIFI_PWR_ON_BAT=5 WOL_DISABLE=Y SOUND_POWER_SAVE_ON_AC=0 SOUND_POWER_SAVE_ON_BAT=1 SOUND_POWER_SAVE_CONTROLLER=Y BAY_POWEROFF_ON_BAT=0 BAY_DEVICE="sr0" RUNTIME_PM_ON_AC=开RUNTIME_PM_ON_BAT=自动 RUNTIME_PM_ALL=1 RUNTIME_PM_DRIVER_BLACKLIST="radeon nouveau" USB_AUTOSUSPEND=1 USB_BLACKLIST_WWAN=1 RESTORE_DEVICE_STATE_ON_STARTUP=0

+++ 系统信息 系统 = Acer V1.21 Aspire 5750G BIOS = V1.21 发布 = Ubuntu 16.04.1 LTS 内核 = 4.4.0-31-generic #50-Ubuntu SMP Wed Jul 13 00:07:12 UTC 2016 x86_64 /proc/cmdline = BOOT_IMAGE=/boot/vmlinuz-4.4.0-31-generic root=UUID=04c737ec-aebc-444a-b514-bbc68ae54e7d ro quiet splash 初始化系统 = systemd

+++系统状态TLP省电=已启用电源=AC

+++ 处理器 CPU 型号 = Intel(R) Core(TM) i7-2630QM CPU @ 2.00GHz

/sys/devices/system/cpu/cpu0/cpufreq/scaling_driver = intel_pstate /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor = powersave /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq = 800000 [kHz] /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq = 2900000 [kHz]

/sys/devices/system/cpu/cpu1/cpufreq/scaling_driver = intel_pstate /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor = powersave /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq = 800000 [kHz] /sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq = 2900000 [kHz]

/sys/devices/system/cpu/cpu2/cpufreq/scaling_driver = intel_pstate /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor = powersave /sys/devices/system/cpu/cpu2/cpufreq/scaling_min_freq = 800000 [kHz] /sys/devices/system/cpu/cpu2/cpufreq/scaling_max_freq = 2900000 [kHz]

/sys/devices/system/cpu/cpu3/cpufreq/scaling_driver = intel_pstate /sys/devices/system/cpu/cpu3/cpufreq/scaling_governor = powersave /sys/devices/system/cpu/cpu3/cpufreq/scaling_min_freq = 800000 [kHz] /sys/devices/system/cpu/cpu3/cpufreq/scaling_max_freq = 2900000 [kHz]

/sys/devices/system/cpu/cpu4/cpufreq/scaling_driver = intel_pstate /sys/devices/system/cpu/cpu4/cpufreq/scaling_governor = powersave /sys/devices/system/cpu/cpu4/cpufreq/scaling_min_freq = 800000 [kHz] /sys/devices/system/cpu/cpu4/cpufreq/scaling_max_freq = 2900000 [kHz]

/sys/devices/system/cpu/cpu5/cpufreq/scaling_driver = intel_pstate /sys/devices/system/cpu/cpu5/cpufreq/scaling_governor = powersave /sys/devices/system/cpu/cpu5/cpufreq/scaling_min_freq = 800000 [kHz] /sys/devices/system/cpu/cpu5/cpufreq/scaling_max_freq = 2900000 [kHz]

/sys/devices/system/cpu/cpu6/cpufreq/scaling_driver = intel_pstate /sys/devices/system/cpu/cpu6/cpufreq/scaling_governor = powersave /sys/devices/system/cpu/cpu6/cpufreq/scaling_min_freq = 800000 [kHz] /sys/devices/system/cpu/cpu6/cpufreq/scaling_max_freq = 2900000 [kHz]

/sys/devices/system/cpu/cpu7/cpufreq/scaling_driver = intel_pstate /sys/devices/system/cpu/cpu7/cpufreq/scaling_governor = powersave /sys/devices/system/cpu/cpu7/cpufreq/scaling_min_freq = 800000 [kHz] /sys/devices/system/cpu/cpu7/cpufreq/scaling_max_freq = 2900000 [kHz]

/sys/设备/系统/cpu/intel_pstate/min_perf_pct = 27 /sys/设备/系统/cpu/intel_pstate/max_perf_pct = 100 /sys/设备/系统/cpu/intel_pstate/no_turbo = 0

x86_energy_perf_policy.cpu0 = 性能 x86_energy_perf_policy.cpu1 = 性能 x86_energy_perf_policy.cpu2 = 性能 x86_energy_perf_policy.cpu3 = 性能 x86_energy_perf_policy.cpu4 = 性能 x86_energy_perf_policy.cpu5 = 性能 x86_energy_perf_policy.cpu6 = 性能 x86_energy_perf_policy.cpu7 = 性能

/proc/sys/内核/nmi_watchdog = 0

+++降压 PHC 内核不可用。

+++ 温度 CPU 温度 = 64 [°C] 风扇速度 =(不可用)

+++ 文件系统 /proc/sys/vm/laptop_mode = 0 /proc/sys/vm/dirty_writeback_centisecs = 1500 /proc/sys/vm/dirty_expire_centisecs = 1500 /proc/sys/vm/dirty_ratio = 20 /proc/sys/vm/dirty_background_ratio = 10 /proc/sys/fs/xfs/age_buffer_centisecs = (不可用) /proc/sys/fs/xfs/xfssyncd_centisecs = (不可用) /proc/sys/fs/xfs/xfsbufd_centisecs = (不可用)

+++ 存储设备 /dev/sda:型号 = WDC WD5000BPVT-22HXZT1
固件 = 01.01A01 APM 级别 = 254 状态 = 活动/空闲 调度程序 = 截止时间

    SMART info:
        4 Start_Stop_Count          =    22175 
        5 Reallocated_Sector_Ct     =        0 
        9 Power_On_Hours            =    12031 [h]
      193 Load_Cycle_Count          =   585507 
      194 Temperature_Celsius       =       39    [°C]

+++ SATA 积极链路电源管理 /sys/class/scsi_host/host0/link_power_management_policy = max_performance /sys/class/scsi_host/host1/link_power_management_policy = max_performance /sys/class/scsi_host/host2/link_power_management_policy = max_performance /sys/class/scsi_host/host3/link_power_management_policy = max_performance /sys/class/scsi_host/host4/link_power_management_policy = max_performance /sys/class/scsi_host/host5/link_power_management_policy = max_performance

+++ PCIe 主动状态电源管理 /sys/module/pcie_aspm/parameters/policy = default(使用 bios 首选项)

+++ Intel Graphics /sys/module/i915/parameters/powersave =(不可用) /sys/module/i915/parameters/enable_rc6 = 1(启用) /sys/module/i915/parameters/enable_fbc = -1(使用每芯片默认值) /sys/module/i915/parameters/lvds_downclock =(不可用) /sys/module/i915/parameters/semaphores = -1(使用每芯片默认值)

+++ 无线蓝牙 = 关闭(软件) wifi = 开启 wwan = 无(无设备)

wlan0(ath9k):已连接,电源管理=关闭

+++ 音频 /sys/module/snd_hda_intel/parameters/power_save = 0 /sys/module/snd_hda_intel/parameters/power_save_controller = N

+++运行时电源管理设备类别 = 全部设备黑名单 = (未配置)驱动程序黑名单 = radeon nouveau

/sys/bus/pci/devices/0000:00:00.0/power/control = on (0x060000,主机桥,无驱动程序) /sys/bus/pci/devices/0000:00:01.0/power/control = on (0x060400,PCI 桥,pcieport) /sys/bus/pci/devices/0000:00:02.0/power/control = on (0x030000,VGA 兼容控制器,i915) /sys/bus/pci/devices/0000:00:16.0/power/control = on (0x078000,通信控制器,mei_me) /sys/bus/pci/devices/0000:00:1a.0/power/control = on (0x0c0320,USB 控制器,ehci-pci) /sys/bus/pci/devices/0000:00:1b.0/power/control = on (0x040300,音频设备,snd_hda_intel) /sys/bus/pci/devices/0000:00:1c.0/power/control = on (0x060400,PCI 桥,pcieport) /sys/bus/pci/devices/0000:00:1c.1/power/control = on (0x060400,PCI 桥,pcieport) /sys/bus/pci/devices/0000:00:1c.3/power/control = on (0x060400,PCI 桥,pcieport) /sys/bus/pci/devices/0000:00:1d.0/power/control = on (0x0c0320,USB 控制器,ehci-pci) /sys/bus/pci/devices/0000:00:1f.0/power/control = on (0x060100,ISA 桥,lpc_ich) /sys/bus/pci/devices/0000:00:1f.2/power/control = on (0x010601,SATA 控制器,ahci) /sys/bus/pci/devices/0000:00:1f.3/power/control = on (0x0c0500,SMBus,无驱动程序) /sys/bus/pci/devices/0000:01:00.0/power/control = on (0x030000,VGA 兼容控制器,无驱动程序) /sys/bus/pci/devices/0000:02:00.0/power/control = on (0x020000,以太网控制器,tg3) /sys/bus/pci/devices/0000:02:00.1/power/control = on (0x080501,SD 主机控制器,sdhci-pci) /sys/bus/pci/devices/0000:02:00.2/power/control = on (0x088000,系统外设,无驱动程序) /sys/bus/pci/devices/0000:02:00.3/power/control = on (0x088000,系统外设,无驱动程序) /sys/bus/pci/devices/0000:03:00.0/power/control = on (0x028000,网络控制器,ath9k) /sys/bus/pci/devices/0000:05:00.0/power/control = on (0x0c0330,USB 控制器,xhci_hcd)

+++ USB 自动暂停 = 已启用 设备白名单 =(未配置) 设备黑名单 =(未配置) wwan 黑名单 = 已启用

总线 002 设备 004 ID 041e:323d 控制 = 开启,自动暂停延迟毫秒 (autosuspend_delay_ms) = 2000 -- Creative Technology, Ltd (snd-usb-audio, usbhid) 总线 002 设备 003 ID 046d:c52b 控制 = 开启,自动暂停延迟毫秒 (autosuspend_delay_ms) = 2000 -- Logitech, Inc. Unifying 接收器 (usbhid) 总线 002 设备 002 ID 8087:0024 控制 = 自动,自动暂停延迟毫秒 (autosuspend_delay_ms) = 0 -- Intel Corp. 集成速率匹配集线器 (hub) 总线 002 设备 001 ID 1d6b:0002 控制 = 自动,自动暂停延迟毫秒 (autosuspend_delay_ms) = 0 -- Linux Foundation 2.0 根集线器 (hub) 总线 004 设备 001 ID 1d6b:0003 控制 = 自动,自动暂停延迟毫秒 (autosuspend_delay_ms) = 0 -- Linux Foundation 3.0 根集线器 (hub) 总线 003 设备 002 ID 046d:c52b 控制 = on,autosuspend_delay_ms = 2000 -- Logitech, Inc. Unifying 接收器 (usbhid) 总线 003 设备 001 ID 1d6b:0002 控制 = auto,autosuspend_delay_ms = 0 -- Linux Foundation 2.0 根集线器 (hub) 总线 001 设备 003 ID 064e:c218 控制 = auto,autosuspend_delay_ms = 2000 -- Suyin Corp. (uvcvideo) 总线 001 设备 002 ID 8087:0024 控制 = auto,autosuspend_delay_ms = 0 -- Intel Corp. Integrated Rate Matching 集线器 (hub) 总线 001 设备 001 ID 1d6b:0002 控制 = auto,autosuspend_delay_ms = 0 -- Linux Foundation 2.0 根集线器(hub)

+++ 电池状态 /sys/class/power_supply/BAT0/manufacturer = SANYO /sys/class/power_supply/BAT0/model_name = Li_Ion_4000mA /sys/class/power_supply/BAT0/cycle_count = (不支持) /sys/class/power_supply/BAT0/charge_full_design = 4400 [mAh] /sys/class/power_supply/BAT0/charge_full = 496 [mAh] /sys/class/power_supply/BAT0/charge_now = 496 [mAh] /sys/class/power_supply/BAT0/current_now = 0 [mA] /sys/class/power_supply/BAT0/status = Full

如何添加代码而不在每行前面添加空格或符号?

答案1

使用 TLP 解决了我的问题。电池仍然只能使用 3 小时,但没关系 :-) http://www.webupd8.org/2013/04/improve-power-usage-battery-life-in.html

答案2

我发现通过这个内核参数让 intel_pstate 处于被动模式是至关重要的:

添加/etc/default/grub

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash intel_pstate=passive"

跑步update-grub

重启。

这样,空闲的机器将导致最低的时钟频率缩放。

相关内容