Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1172674
  • 博文数量: 341
  • 博客积分: 12744
  • 博客等级: 上将
  • 技术积分: 4040
  • 用 户 组: 普通用户
  • 注册时间: 2008-05-12 09:34
文章分类
文章存档

2014年(1)

2013年(10)

2012年(17)

2011年(63)

2010年(102)

2009年(107)

2008年(41)

分类: LINUX

2009-03-15 13:30:56

Configure the battery at Conky can be a nightmare looking for this solution at web 'cus there isn't very information about it. I already had this problem...

ACPI battery number is given as argument, at 'funtions' battery, battery_bar and battery_percent. By default the argument is BAT0. But if it doen't work, let's find out the correct argument:

Open the terminal and type:
$ ls /proc/acpi/battery

There can be various kind of output:
CMB0
BAT1
BAT0
...etc

My output was: CMB0

Open the .conkyrc file and edit to (examples):
${battery CMB0}
${battery_bar CMB0}
${battery_percent CMB0}


Obviously, replace CMB0 with the output you received earlier.

阅读(644) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~