Richard Hughes | 2 Jul 2005 12:39
Picon

Removal of Low icon and other stuff.

Okay: Progress update:

2005-07-01 Richard Hughes  <richard@...>
* src/gpm-notification.c : Removed the low icon code in prep for
DavidZ and Andrei's patches. Code is simpler and less complicated.

Andrei's menu patch [2] will go in soon (next week) with a design
something similar to my mockup [3]

DavidZ's patch [1] for themed icons will go in as soon as Andrei's work
is completed. Nice icons would be gratefully received.

Just so you know what the plan is :-) Comments welcome.

Richard.

[1] http://article.gmane.org/gmane.comp.gnome.powermanager.devel/219
[2] http://article.gmane.org/gmane.comp.gnome.powermanager.devel/230
[3] http://article.gmane.org/gmane.comp.gnome.powermanager.devel/237
Chris Spencer | 3 Jul 2005 20:11
Favicon

Suspend to Disk

Does GPM provide any user interface for the suspend to disk features 
embodied in such projects as http://sourceforge.net/projects/swsusp or 
http://www.suspend2.net ?

Sincerely,
Chris

-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
Richard Hughes | 4 Jul 2005 09:39
Picon

Re: Suspend to Disk

On Sun, 2005-07-03 at 14:11 -0400, Chris Spencer wrote:
> Does GPM provide any user interface for the suspend to disk features 
> embodied in such projects as http://sourceforge.net/projects/swsusp or 
> http://www.suspend2.net ?

In the fact that it can now call a script, yes. I'm not sure what (and
if) these projects have any user-changeable settings to modify.

See http://gnome-power.sourceforge.net/images/drop-down.png and you'll
see the menu that you can use.
Also see: http://gnome-power.sourceforge.net/gpm.php#gconf for the gconf
values and keys.

Tell me how you get on...

Richard.
Ow Mun Heng | 4 Jul 2005 14:37
Picon
Favicon

Re: Suspend to Disk

On Mon, 2005-07-04 at 08:39 +0100, Richard Hughes wrote:
> On Sun, 2005-07-03 at 14:11 -0400, Chris Spencer wrote:
> > Does GPM provide any user interface for the suspend to disk features 
> > embodied in such projects as http://sourceforge.net/projects/swsusp or 
> > http://www.suspend2.net ?
> 
> In the fact that it can now call a script, yes. I'm not sure what (and
> if) these projects have any user-changeable settings to modify.
> 
> See http://gnome-power.sourceforge.net/images/drop-down.png and you'll
> see the menu that you can use.
> Also see: http://gnome-power.sourceforge.net/gpm.php#gconf for the gconf
> values and keys.

Hi Richard,

	Glad to see the progress you've made since I last submitted that
patch :-)

Anyway, I tried out the new 0.(0?).5 version of GPM and for some reason,
nothing worked. Unlike the last version 0.3, there was a popup, this
time there was none.

I take it that the gconf keys can actually be used to call actual
scripts rather than command like echo? (I've not tried it out yet)

How does the warning work? It didn't/doesn't work for me.

--

-- 
Ow Mun Heng
(Continue reading)

Richard Hughes | 4 Jul 2005 15:09
Picon

Re: Suspend to Disk

On Mon, 2005-07-04 at 20:37 +0800, Ow Mun Heng wrote:
> On Mon, 2005-07-04 at 08:39 +0100, Richard Hughes wrote:
> > On Sun, 2005-07-03 at 14:11 -0400, Chris Spencer wrote:
> > > Does GPM provide any user interface for the suspend to disk features 
> > > embodied in such projects as http://sourceforge.net/projects/swsusp or 
> > > http://www.suspend2.net ?
> > 
> > In the fact that it can now call a script, yes. I'm not sure what (and
> > if) these projects have any user-changeable settings to modify.
> > 
> > See http://gnome-power.sourceforge.net/images/drop-down.png and you'll
> > see the menu that you can use.
> > Also see: http://gnome-power.sourceforge.net/gpm.php#gconf for the gconf
> > values and keys.
> 
> Hi Richard,
> 
> 	Glad to see the progress you've made since I last submitted that
> patch :-)

Good. Actions support in HAL may be some way off, and this was something
that a _lot_ of people were asking for.

> Anyway, I tried out the new 0.(0?).5 version of GPM and for some reason,
> nothing worked. Unlike the last version 0.3, there was a popup, this
> time there was none.

Could you print the output of gnome-power-manager --verbose please...

Also, make sure /apps/gnome-power/general/displayIcon is set, if no icon
(Continue reading)

Ow Mun Heng | 4 Jul 2005 15:28
Picon
Favicon

Re: Suspend to Disk

On Mon, 2005-07-04 at 14:09 +0100, Richard Hughes wrote:
> On Mon, 2005-07-04 at 20:37 +0800, Ow Mun Heng wrote:
> > 
> > 	Glad to see the progress you've made since I last submitted that
> > patch :-)
> 
> Good. Actions support in HAL may be some way off, and this was something
> that a _lot_ of people were asking for

Once it starts to work (even remotely) you'll see more ppl interested
right? :-)

> 
> > Anyway, I tried out the new 0.(0?).5 version of GPM and for some reason,
> > nothing worked. Unlike the last version 0.3, there was a popup, this
> > time there was none.
> 
> Could you print the output of gnome-power-manager --verbose please...

Okay.. I've rebooted the machine (it was under suspend2 for 6 days and
19 suspends and my PC-card nic was a bit edgy) and it works now. The
Send-Warning will come out with the *TESTING* dialog box. Cool.

Unfortunately, pulling the AC out doesn't generate a warning dialog.
Why?

** (gnome-power-manager:28131): DEBUG: property_modified
** (gnome-power-manager:28131): DEBUG: key = 'ac_adapter.present'
** (gnome-power-manager:28131): DEBUG: udi =
'/org/freedesktop/Hal/devices/acpi_AC'
(Continue reading)

Richard Hughes | 4 Jul 2005 15:43
Picon

Re: Suspend to Disk

On Mon, 2005-07-04 at 21:28 +0800, Ow Mun Heng wrote:
> On Mon, 2005-07-04 at 14:09 +0100, Richard Hughes wrote:
> > On Mon, 2005-07-04 at 20:37 +0800, Ow Mun Heng wrote:
> > > 
> > > 	Glad to see the progress you've made since I last submitted that
> > > patch :-)
> > 
> > Good. Actions support in HAL may be some way off, and this was something
> > that a _lot_ of people were asking for
> 
> Once it starts to work (even remotely) you'll see more ppl interested
> right? :-)

Yes, and it begins to be remotely useful... :-)

> > 
> > > Anyway, I tried out the new 0.(0?).5 version of GPM and for some reason,
> > > nothing worked. Unlike the last version 0.3, there was a popup, this
> > > time there was none.
> > 
> > Could you print the output of gnome-power-manager --verbose please...
> 
> Okay.. I've rebooted the machine (it was under suspend2 for 6 days and
> 19 suspends and my PC-card nic was a bit edgy) and it works now. The
> Send-Warning will come out with the *TESTING* dialog box. Cool.

Good, that's all I've done so far.

> Unfortunately, pulling the AC out doesn't generate a warning dialog.
> Why?
(Continue reading)

Ow Mun Heng | 4 Jul 2005 15:55
Picon
Favicon

Re: Suspend to Disk

On Mon, 2005-07-04 at 14:43 +0100, Richard Hughes wrote:
> On Mon, 2005-07-04 at 21:28 +0800, Ow Mun Heng wrote:
> > On Mon, 2005-07-04 at 14:09 +0100, Richard Hughes wrote:
> > > On Mon, 2005-07-04 at 20:37 +0800, Ow Mun Heng wrote:

> 
> > Unfortunately, pulling the AC out doesn't generate a warning dialog.
> > Why?
> 
> Urm... because I haven't coded that bit yet :-) Look in gpm-main.c :
> action_policy_do () and you'll see what happens at the moment. CVS is
> best as I've changed loads.

K. Will check it out later when time permits.

> > seems like the pulling out of ac is not registered.
> 
> Okay, does lshal --monitor detect the event?

*** lshal: property_modified, udi=/org/freedesktop/Hal/devices/acpi_AC,
key=ac_adapter.present
           is_removed=false, is_added=false
*** new value: false  (bool)

*** lshal: property_modified, udi=/org/freedesktop/Hal/devices/acpi_AC,
key=ac_adapter.present
           is_removed=false, is_added=false
*** new value: true  (bool)

yes it does.
(Continue reading)

Richard Hughes | 4 Jul 2005 16:32
Picon

Re: Suspend to Disk

On Mon, 2005-07-04 at 21:55 +0800, Ow Mun Heng wrote:
> On Mon, 2005-07-04 at 14:43 +0100, Richard Hughes wrote:
> > On Mon, 2005-07-04 at 21:28 +0800, Ow Mun Heng wrote:
> > > On Mon, 2005-07-04 at 14:09 +0100, Richard Hughes wrote:
> > > > On Mon, 2005-07-04 at 20:37 +0800, Ow Mun Heng wrote:
> 
> > 
> > > Unfortunately, pulling the AC out doesn't generate a warning dialog.
> > > Why?
> > 
> > Urm... because I haven't coded that bit yet :-) Look in gpm-main.c :
> > action_policy_do () and you'll see what happens at the moment. CVS is
> > best as I've changed loads.
> 
> K. Will check it out later when time permits.

Nope, you are right. I've forgotten to perform an action on battery
loss. Patch (to CVS) attached.

> > > I take it that gpm runs as daemon with Root privileges like acpid?
> > > Otherwise, it won't quite work. Anyway.. I'll test and see how things
> > > go. No point me talking bout it.
> > 
> > No, not setuid. HAL doing the event will be able to do it as root, but
> > not GPM. Can you make a shell script setuid (would that work?)
> 
> Well then this is a bit of a bad thing IMHO. Setting stuffs SETUID root
> is a bad thing.. ;-)

Won't be a problem when we are using HAL, as that runs as root (or at
(Continue reading)

Ow Mun Heng | 4 Jul 2005 17:02
Picon
Favicon

Re: Suspend to Disk

On Mon, 2005-07-04 at 15:32 +0100, Richard Hughes wrote:
> On Mon, 2005-07-04 at 21:55 +0800, Ow Mun Heng wrote:
> > On Mon, 2005-07-04 at 14:43 +0100, Richard Hughes wrote:
> > > On Mon, 2005-07-04 at 21:28 +0800, Ow Mun Heng wrote:
> > > > On Mon, 2005-07-04 at 14:09 +0100, Richard Hughes wrote:
> > > > > On Mon, 2005-07-04 at 20:37 +0800, Ow Mun Heng wrote:
> > 
> > > 
> > > > Unfortunately, pulling the AC out doesn't generate a warning dialog.
> > > > Why?
> > > 
> > > Urm... because I haven't coded that bit yet :-) Look in gpm-main.c :
> > > action_policy_do () and you'll see what happens at the moment. CVS is
> > > best as I've changed loads.
> > 
> > K. Will check it out later when time permits.
> 
> Nope, you are right. I've forgotten to perform an action on battery
> loss. Patch (to CVS) attached.

Cool and quick too :-)
Nimble coder eh.. :-)

> 
> > > > I take it that gpm runs as daemon with Root privileges like acpid?
> > > > Otherwise, it won't quite work. Anyway.. I'll test and see how things
> > > > go. No point me talking bout it.
> > > 
> > > No, not setuid. HAL doing the event will be able to do it as root, but
> > > not GPM. Can you make a shell script setuid (would that work?)
(Continue reading)


Gmane