roberts: you are right about the rate being wrong. Due to a mental blunder, I put in the wrong scaling factor in the effective rate calculation. There are 12 battery state samples per second, not 10 like I assumed last night (I blame "coding while tired"
). So the correct conversion factors for the discharging and charging rate should be 720 (samples per hour), not 600. You can manually patch your code around lines 710 and 735 with the new factor or try the new version 0.9.4 attached here.
This fix won't help the very unrealistic initial estimates (for the first two or three minutes) when you switch between charging and discharging, or vice-versa. As bmarkus points out, simple kinds of estimates using the ACPI values are fairly bad. I may move to more of a "learning" approach where a few observational parameters are stored in the .flit.conf file, so the accuracy should improve over time (multiple charge and discharge cycles), and we can avoid the initially unrealistic results.
jemimah: I'm a Puppy user too, but over the last few months, I'm mostly using TC, which is frugally installed in my Puppy partition. Anyway, I'm not targeting JWM or Puppy specifically right now, so changes to better support such use are likely to be deferred, but if I can make a simple change to prevent a segfault, I'll try to do that. Can you provide a few more details about your Puppy environment and what you did exactly in Flit that led to a segfault? Doesn't Puppy use ALSA for sound?
ALSA should be able to be supported by using amixer (or whatever it is called) in the same way that my earlier Flit versions did with ossmix, but I have a bunch of other things I plan to work on first. If you are a coder and want to try to add ALSA support, I would consider merging it into my releases.
As for the clock in flwm, I've never tried flwm configured with that option, so I don't know first-hand how that would work, but I strongly suspect that with the normal left-side title bars, there is not enough room for the title and a clock and a battery read-out. Ususally, there is not enough room for the full title itself! Maybe if I get the "topside titlebar" version of flwm working, it could be considered.
--
Mike L.