我的华硕EEE上网本在电池电量不足时会执行硬关机,而不会发出任何警告-即电源刚刚关闭,没有任何关机过程。我在系统日志中找不到任何内容,并且在发生任何错误消息之前都不会打印任何错误消息。我在以前的(K)Ubuntu版本中遇到了这个问题,并希望更新到Ubuntu Precise可以帮助解决该问题,但事实并非如此。
Power应用程序中“电源严重不足时”的选项当前为空-唯一的选项是(灰色)休眠和“关闭电源”。
我已经重新安装了indicator-power
,没有任何效果。所报告的剩余时间acpi
不稳定,所报告的剩余时间也是不稳定的gnome-power-statistics
。(例如,acpi
连续运行两次,我得到2h16min,然后剩下3h21min。剩余时间中的这些跳跃也在gnome-power-statistics
图中显示。)
可能可以编写脚本给我预先警告(按照下面的@RanRag的评论),但是我更愿意隔离为什么在这种情况发生之前我没有从系统收到电池严重不足的通知,以便我可以收到通知时采取适当的措施(挂起/关闭/接通电源)。
有关电池的一些其他信息:
kroon@minia:~$ upower -i /org/freedesktop/UPower/devices/battery_BAT0
native-path: /sys/devices/LNXSYSTM:00/device:00/PNP0A08:00/PNP0C0A:00/power_supply/BAT0
vendor: ASUS
model: 1005P
power supply: yes
updated: Fri Aug 17 07:31:23 2012 (9 seconds ago)
has history: yes
has statistics: yes
battery
present: yes
rechargeable: yes
state: charging
energy: 33.966 Wh
energy-empty: 0 Wh
energy-full: 34.9272 Wh
energy-full-design: 47.52 Wh
energy-rate: 3.7692 W
voltage: 12.61 V
time to full: 15.3 minutes
percentage: 97.248%
capacity: 73.5%
technology: lithium-ion
History (charge):
1345181483 97.248 charging
1345181453 97.155 charging
1345181423 97.062 charging
1345181393 96.970 charging
History (rate):
1345181483 3.769 charging
1345181453 3.899 charging
1345181423 4.061 charging
1345181393 4.201 charging
kroon@minia:~$ cat /proc/acpi/battery/BAT0/state
present: yes
capacity state: ok
charging state: charging
present rate: 332 mA
remaining capacity: 3149 mAh
present voltage: 12612 mV
kroon@minia:~$ cat /proc/acpi/battery/BAT0/info
present: yes
design capacity: 4400 mAh
last full capacity: 3209 mAh
battery technology: rechargeable
design voltage: 10800 mV
design capacity warning: 10 mAh
design capacity low: 5 mAh
cycle count: 0
capacity granularity 1: 44 mAh
capacity granularity 2: 44 mAh
model number: 1005P
serial number:
battery type: LION
OEM info: ASUS
acpi=off
选件才能启动。也许您的情况也可能归咎于一些ACPI问题。
acpi=off
,电池电量指示器消失,gnome-power-statistics不显示电池,并且upower
以上说明失败并显示错误消息failed to set path: cannot refresh: Cannot get device properties for /org/freedesktop/UPower/devices/battery_BAT0: Couldn't call GetAll() to get properties for /org/freedesktop/UPower/devices/battery_BAT0: Method "GetAll" with signature "s" on interface "org.freedesktop.DBus.Properties" doesn't exist
bash script
为自己创建一个在后台运行的小程序。伪代码将类似于if battery_status < 10% than notify-send "battery low" and put my system to suspended state(sudo pm-suspend)
。要获取电池状态,请查看此帖子,然后使用sed/awk/cut
工具提取所需的信息。