[PATCH] Turn Powerdevil suspend notification into a dialog

Sebastian Kügler sebas at kde.org
Wed Sep 23 11:36:48 BST 2009


On Wednesday 23 September 2009 10:02:13 Aurélien Gâteau wrote:
> Aaron J. Seigo wrote:
> > On September 22, 2009, Aurélien Gâteau wrote:
> >> What do you think about this?
> >
> > 
> > the workspace is being designed with a no-dialog goal. dialogs are 
> > interruptions, can be confused as coming from the application the user
> > is  working on and not well associated with the workspace itself.
> 
> I agree. I discussed this with Celeste before implementing it and she 
> suggested to use the same kind of interface as the logout, shutdown, 
> reboot window from ksmserver.
> 
> I gave it a try, but it was:
> - Hackish: I had Powerdevil send dbus calls to ksmserver to show the 
> ShutdownDialog in a "suspend" mode.
> - Didn't look right: While testing I realized using this interface was 
> not very useful because at the time it shows up, Powerdevil has already 
> disabled compositing, so you don't get smooth transitions.

I thought of this as well, but it  won't work: we don't want anything modal, we want 
to tell the user "I'm really close to running out of battery. Kiss you IRC friends 
goodbye, save your documents.". You definitely don't want an "always on top" thing 
when you're actually asked to quickly wrap up whatever you've been doing because it 
obstructs the very thing you're supposed to do then. 
That's also why the logout thing doesn't work. It's as modal as modal gets, even 
making the background less readable (blurring, desaturating).

Powerdevil doesn't need to suspend compositing on suspend, btw.
-- 
sebas

http://www.kde.org | http://vizZzion.org | GPG Key ID: 9119 0EF9
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 489 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20090923/fcd31668/attachment.sig>


More information about the kde-core-devel mailing list