On 13 May 2010 06:52, undrwater <[email protected]> wrote:
>
>
>>
>> Tap on the battery icon, and the percentage shown is "Rag Time". Some
> kind
>> of joke? April is past. ;)
>
> What's with your eyes? It says "rdg time".
> _______________________________________________
>
> My eyes see what they want to! :) Ah well...time for new glasses. Still,
> even "rdg time" doesn't give me the amount of batt left.
I wonder why the batget module doesn't show the status because it
reads the data correctly:
gettimeofday({1273745795, 750138}, NULL) = 0
gettimeofday({1273745795, 752396}, NULL) = 0
open("/sys/class/power_supply/battery/capacity", O_RDONLY) = 6
fstat64(6, {st_dev=makedev(0, 0), st_ino=2729, st_mode=S_IFREG|0444,
st_nlink=1, st_uid=0, st_gid=0, st_blksize=4096, st_blocks=0,
st_size=4096, st_atime=2010/05/13-12:04:15,
st_mtime=2010/05/13-12:04:15, st_ctime=2010/05/13-12:04:15}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x40299000
read(6, "29\n", 4096) = 3
close(6) = 0
munmap(0x40299000, 4096) = 0
open("/sys/class/power_supply/battery/current_now", O_RDONLY) = 6
fstat64(6, {st_dev=makedev(0, 0), st_ino=2721, st_mode=S_IFREG|0444,
st_nlink=1, st_uid=0, st_gid=0, st_blksize=4096, st_blocks=0,
st_size=4096, st_atime=2010/05/13-12:04:15,
st_mtime=2010/05/13-12:04:15, st_ctime=2010/05/13-12:04:15}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x40299000
read(6, "109875\n", 4096) = 7
close(6) = 0
munmap(0x40299000, 4096) = 0
open("/sys/class/power_supply/battery/status", O_RDONLY) = 6
fstat64(6, {st_dev=makedev(0, 0), st_ino=2718, st_mode=S_IFREG|0444,
st_nlink=1, st_uid=0, st_gid=0, st_blksize=4096, st_blocks=0,
st_size=4096, st_atime=2010/05/13-12:04:15,
st_mtime=2010/05/13-12:04:15, st_ctime=2010/05/13-12:04:15}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x40299000
read(6, "Discharging\n", 4096) = 12
close(6) = 0
munmap(0x40299000, 4096) = 0
open("/sys/class/power_supply/battery/time_to_empty_now", O_RDONLY) = 6
fstat64(6, {st_dev=makedev(0, 0), st_ino=2727, st_mode=S_IFREG|0444,
st_nlink=1, st_uid=0, st_gid=0, st_blksize=4096, st_blocks=0,
st_size=4096, st_atime=2010/05/13-12:04:15,
st_mtime=2010/05/13-12:04:15, st_ctime=2010/05/13-12:04:15}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x40299000
read(6, "9780\n", 4096) = 5
close(6) = 0
munmap(0x40299000, 4096) = 0
open("/sys/class/power_supply/battery/charge_now", O_RDONLY) = 6
fstat64(6, {st_dev=makedev(0, 0), st_ino=2723, st_mode=S_IFREG|0444,
st_nlink=1, st_uid=0, st_gid=0, st_blksize=4096, st_blocks=0,
st_size=4096, st_atime=2010/05/13-12:04:15,
st_mtime=2010/05/13-12:04:15, st_ctime=2010/05/13-12:04:15}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x40299000
read(6, "283279\n", 4096) = 7
close(6) = 0
munmap(0x40299000, 4096) = 0
write(1, "28 9780 1 0\n", 12) = 12
select(4, [3], [], [], {31, 430221}^C <unfinished ...>
Process 1325 detached
r...@gta02v6 ~ # bat
POWER_SUPPLY_NAME=battery
POWER_SUPPLY_TYPE=Battery
POWER_SUPPLY_STATUS=Discharging
POWER_SUPPLY_HEALTH=Good
POWER_SUPPLY_VOLTAGE_NOW=3753000
POWER_SUPPLY_CURRENT_NOW=100125
POWER_SUPPLY_CHARGE_FULL=978358
POWER_SUPPLY_CHARGE_NOW=282565
POWER_SUPPLY_TEMP=193
POWER_SUPPLY_TECHNOLOGY=Li-ion
POWER_SUPPLY_PRESENT=1
POWER_SUPPLY_TIME_TO_EMPTY_NOW=10680
POWER_SUPPLY_TIME_TO_FULL_NOW=3932100
POWER_SUPPLY_CAPACITY=29
POWER_SUPPLY_ONLINE=0
So just a display problem?
_______________________________________________
Shr-User mailing list
[email protected]
http://lists.shr-project.org/mailman/listinfo/shr-user