Home

Anonymous

jbattery

JBattery is what I consider an improvement over wmbattery in terms of
what the modern end-user wants. It uses large parts of wmbattery's code, but has
re-written it using Qt4 libraries. Previously, I used a modified wmbattery
battery called jbattery which was wmbattery with additional gtk code to display
a tray icon. JBattery is a real attempt at rewriting wmbattery.

All X-specific code that was in wmbattery has been removed from JBattery.
The role of JBattery is now that of staying in the tray and displaying
info. Additionally, it can notify the user via command-line interfaces assumed
to exist in the host machine. It can also play warning messages
through either an old (wmbattery based) OSS-module or the new command-line
paplay utility.

To be run, JBattery needs:
-- notify-send
-- paplay
-- s2ram (with root access, to suspend the machine)

To be compiled, JBattery needs:
-- Qt4 libraries
-- qmake-qt4
-- libhal
-- libdbus-1
-- libpthread
-- librt

It should be fairly easy to get a working JBattery windows version. It is only
a matter of writing a QWindowsBatteryReader, provided that the apm_info struct
is available. Additionally, the sound code can be #ifdef'ed to windows-simple
sound code. Notifications can be ported with windows-specific code as well.

JBattery is incomplete. It works in my system, but all other modules that I
could have made built-in were disabled and removed. It uses the HAL interface
which is trully dead now. I like it, however.
Code and Art is GPL'ed

More info on this project can be found at http://jorl17.blogspot.com