I've been running the battery-stats and battery-graph utilites for a while.
They are somewhat useful, but there are minor troubles.
For example,
battery-graph is a shell script that pipes data into
gnuplot to draw the picture of battery use over time. Wehn you run the utility:
Code:
prompt$ #=== plot usage [f]rom "datetime" with [d]uration of 4 hours
prompt$ battery-graph -f "13-FEB-2011 18:00" -d 4h
prompt$ #..... graph appears in a separate X11 window
#..... closing that window results in the following
** (<unknown>:26307): WARNING **: Failed to send buffer
<unknown>: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.0.
prompt$
Its been 20 years since I've written X11 or Motif or similar code so I have no idea how
to discover which resource is sought.
In addition, if you try to activate any of the toolbar parts of the resulting gnuplot window
or try to drag the plot away from the terminal window, then gnuplot "exits." (I suspect that the gnuplot "window" is a child of the "terminal window" that launched it or some similar X11-ism.)
Merci d'avance,
~~~ 0;-Dan