Question about battery-applet, acpid VS gnome-power-manager

2007-12-06 Thread Michael Frey
Todd,

I was just wondering if you could explain the decision to use acpid / 
custom battery applet instead of using the existing gnome-power-manager? 

The gnome-power-manager already has a status bar applet that works quite 
well and would avoid duplicate code and less maintenance.  
Gnome-power-manager already also handles listening to hal events for 
things like power button etc.. for suspend / shutoff tasks.

It might be worth looking into.

Thanks,
Michael


-- 
Ubuntu-mobile mailing list
Ubuntu-mobile@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-mobile


RE: Question about battery-applet, acpid VS gnome-power-manager

2007-12-06 Thread Brandt, Todd E
Hi Michael, sorry again for missing the meeting this morning, I was
pulling an all-nighter and my brain got back at me by incorporating the
sound of my alarm clock into a dream. 

First and foremost, the reason to not use GPM was made because we had
our own plans to build a mobile specific power manager called PPM:

http://moblin.org/projects_ppm.php

Initially we didn't know what license we were approved for so we began
writing everything from scratch. I actually still don't know if the
license is compatible with GPLv2, so that rules out merging with GPM.
Eventually there will be some nifty LPIA specific power optimizations in
there that will make the jump from GPM worth it in the mobile domain.

I actually just pulled out the code for the battery and brightness
applets from GPM to make the moblin-applets versions (giving credit in
the copyright file of course), and hacked them way way down to run in a
hildon environment. The GPM code natively uses libbonobo and the
PanelApplet class to instantiate applets, and neither or those will work
in a hildon environment. To convert them to hildon status bar applets I
tore out all the PanelApplet stuff and based gave the applet objects
GtkButton parents and then made them conform to the Hildon status bar
API spec.

So basically the GPM battery and brightness applets are this big: 
|---|, 
and I made them this big for moblin: 
|---|.

Hope that helps, the caffeine is slowly kicking in.

-Original Message-
From: Michael Frey [mailto:[EMAIL PROTECTED] 
Sent: Thursday, December 06, 2007 10:10 AM
To: ubuntu-mobile@lists.ubuntu.com
Cc: Brandt, Todd E
Subject: Question about battery-applet, acpid VS gnome-power-manager

Todd,

I was just wondering if you could explain the decision to use acpid / 
custom battery applet instead of using the existing gnome-power-manager?


The gnome-power-manager already has a status bar applet that works quite

well and would avoid duplicate code and less maintenance.  
Gnome-power-manager already also handles listening to hal events for 
things like power button etc.. for suspend / shutoff tasks.

It might be worth looking into.

Thanks,
Michael

-- 
Ubuntu-mobile mailing list
Ubuntu-mobile@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-mobile