Re: gkrellm: Floating point exception during startup
Bill Wilson <[email protected]>
| Newsgroups | gmane.comp.gnome.apps.gkrellm |
|---|---|
| Message-ID | <[email protected]> |
On Tue, 24 Feb 2009 12:36:31 +0100 "Malte J. Wetz" <[email protected]> wrote: > 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? That's the problem and either the netbook or the kernel is not supporting it. > 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 > `---- Getting battery data from sysfs has become the preferred way, but you can still get gkrellm to use ACPI battery data. Just run: $ gkrellm -use-acpi-battery Then perhaps each time you do a kernel upgrade you can check to see if your sysfs battery data becomes fully supported. And along the way, to be sure what gkrellm is doing, just add the -d 0x8000 battery debug flag. Anyway, eliminating that divide by zero problem is important so thanks for your help in tracking it down. Bill ______________________________________________ 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