Re: gkrellm: Floating point exception during startup
"Malte J. Wetz" <[email protected]>
| Newsgroups | gmane.comp.gnome.apps.gkrellm |
|---|---|
| Message-ID | <[email protected]> |
Bill Wilson <[email protected]> wrote: > and then if gkrellm will run, we can get a better idea of what's going > wrong if you get battery debug data by running: > $ gkrellm -d 0x8000 Thanks for your help so far. Here's the output from gkrellm (which starts fine with the patch): <------------- snip ---------------> mjw@aegir:~/downloads/gkrellm-2.3.2/src$ ./gkrellm -d 0x8000 --- GKrellM 2.3.2 --- sysfs_power_setup() entry setup_sysfs_power_entry: checking /sys/class/power_supply/ACAD/type read_sysfs_entry: /sys/class/power_supply/ACAD/type = Mains setup_sysfs_ac_power: /sys/class/power_supply/ACAD setup_sysfs_power_entry: checking /sys/class/power_supply/BAT0/type read_sysfs_entry: /sys/class/power_supply/BAT0/type = Battery setup_sysfs_battery: /sys/class/power_supply/BAT0 setup_sysfs_battery: /sys/class/power_supply/BAT0/charge_full, /sys/class/power_supply/BAT0/charge_now read_sysfs_entry: /sys/class/power_supply/ACAD/online = 1 read_sysfs_entry: /sys/class/power_supply/BAT0/present = 1 read_sysfs_entry: /sys/class/power_supply/BAT0/charge_full = 0 read_sysfs_entry: /sys/class/power_supply/BAT0/charge_now = 4420000 read_sysfs_entry: /sys/class/power_supply/BAT0/status = Full <------------- snap ---------------> I notice the "charge_full = 0" line which appears strange to me. Perhaps this netbook does not support that feature? > Were you getting good battery monitor readings before this all > started? No. The monitor was not even enabled because it always showed 0% (appearently, the code is still executed). Same for the monitor in XFCE. ibam says: ,---- | mjw@aegir:~/downloads/gkrellm-2.3.2/src$ ibam | Total battery time: 2:00:00 | Total charge time: 2:00:00 `---- The only useful information can be obtained via ACPI: ,---- | mjw@aegir:~$ cat /proc/acpi/battery/BAT0/state | present: yes | capacity state: ok | charging state: charged | present rate: 0 mA | remaining capacity: 4378 mAh | present voltage: 12473 mV `---- I tested the battery time with the following script which I started on the netbook and went to sleep. ,---- | #!/bin/sh | | echo "starting battery test..." > battest.log | | while true; do | echo -n "." | date >> battest.log | cat /proc/acpi/battery/BAT0/state >> battest.log | ibam >> battest.log | echo >> battest.log | sync | sleep 300 | done `---- The other morning, it was off (no surprise) and the logfile read: <------------- snip ---------------> starting battery test... So 22. Feb 00:31:21 CET 2009 present: yes capacity state: ok charging state: discharging present rate: 845 mA remaining capacity: 4374 mAh present voltage: 12252 mV Total battery time: 2:00:00 Total charge time: 2:00:00 [...lots of entries...] So 22. Feb 06:26:27 CET 2009 present: yes capacity state: ok charging state: discharging present rate: 809 mA remaining capacity: 113 mAh present voltage: 10577 mV Total battery time: 2:00:00 Total charge time: 2:00:00 <------------- snap ---------------> I just booted Windows XP which has all the proprietary Lenovo drivers installed. There, the Lenovo tool told me that my battery is currently 96% charged (which seems to be accurate given my previous plug/unplug experiments unter Linux). So the hardware itself seems to be ok. Best regards, Malte ______________________________________________ Gkrellm mailing list [email protected] Read archives-join-leave-set RSS feed: http://archive.lists.netservicesgroup.com This service is provided by The Network Services Group: http://www.netservicesgroup.com