Chinaunix首页 | 论坛 | 博客
  • 博客访问: 370154
  • 博文数量: 66
  • 博客积分: 3201
  • 博客等级: 中校
  • 技术积分: 695
  • 用 户 组: 普通用户
  • 注册时间: 2007-07-04 11:17
文章分类

全部博文(66)

文章存档

2016年(1)

2014年(1)

2012年(1)

2011年(2)

2010年(18)

2009年(42)

2008年(1)

分类:

2010-01-10 12:44:56

Linux下 Thinkpad 笔记本电池管理软件。

电池充电控制
 
设置开始与停止充电的阀值(百分比)
# echo 40 > /sys/devices/platform/smapi/BAT0/start_charge_thresh
# echo 70 > /sys/devices/platform/smapi/BAT0/stop_charge_thresh
# cat /sys/devices/platform/smapi/BAT0/*_charge_thresh
(表示低于40%时开始充电,高于70%就停止)
设置禁止充电时间
17分内防止充电到BAT0(首选电池):
# echo 17 > /sys/devices/platform/smapi/BAT0/inhibit_charge_minutes
Hint:
 用于控制给那个电池充电当使用多个电池 Ultrabay battery.
取消禁止充电:
# echo 0 > /sys/devices/platform/smapi/BAT0/inhibit_charge_minutes
强制禁止充电(即使接AC):
# echo 1 > /sys/devices/platform/smapi/BAT0/force_discharge
Hint:
用于控制给那个电池充电当使用多个电池 Ultrabay battery. 
取消强制禁止充电:
# echo 0 > /sys/devices/platform/smapi/BAT0/force_discharge
显示电池状态信息
 
显示额外的电池状态,比如充电情况、电压、电流、容量、充电次数和型号信息:
# cat /sys/devices/platform/smapi/BAT0/installed
# cat /sys/devices/platform/smapi/BAT0/state '状态:idle/charging/discharging
# cat /sys/devices/platform/smapi/BAT0/cycle_count
# cat /sys/devices/platform/smapi/BAT0/current_now # instantaneous current
# cat /sys/devices/platform/smapi/BAT0/current_avg # last minute average
# cat /sys/devices/platform/smapi/BAT0/power_now   # instantaneous power
# cat /sys/devices/platform/smapi/BAT0/power_avg   # last minute average
# cat /sys/devices/platform/smapi/BAT0/last_full_capacity
# cat /sys/devices/platform/smapi/BAT0/remaining_percent
# cat /sys/devices/platform/smapi/BAT0/remaining_running_time
# cat /sys/devices/platform/smapi/BAT0/remaining_charging_time
# cat /sys/devices/platform/smapi/BAT0/remaining_capacity
# cat /sys/devices/platform/smapi/BAT0/design_capacity
# cat /sys/devices/platform/smapi/BAT0/voltage
# cat /sys/devices/platform/smapi/BAT0/design_voltage
# cat /sys/devices/platform/smapi/BAT0/manufacturer
# cat /sys/devices/platform/smapi/BAT0/model
# cat /sys/devices/platform/smapi/BAT0/barcoding
# cat /sys/devices/platform/smapi/BAT0/chemistry
# cat /sys/devices/platform/smapi/BAT0/serial
# cat /sys/devices/platform/smapi/BAT0/manufacture_date
# cat /sys/devices/platform/smapi/BAT0/first_use_date
# cat /sys/devices/platform/smapi/BAT0/temperature # in milli-Celsius
# cat /sys/devices/platform/smapi/ac_connected
阅读(726) | 评论(0) | 转发(0) |
0

上一篇:Xserver补丁

下一篇:Quake4秘籍

给主人留下些什么吧!~~