[PATCH] Turn Powerdevil suspend notification into a dialog

Marco Martin notmart at gmail.com
Thu Sep 24 09:27:27 BST 2009


On 9/24/09, Aurélien Gâteau <aurelien.gateau at canonical.com> wrote:
> Ingo Klöcker wrote:
>> On Tuesday 22 September 2009, Aurélien Gâteau wrote:
>>> In case you missed it, an earlier discussion about notification
>>> capabilities on this list diverged a bit on Powerdevil suspend
>>> notification. I am referring to the notification which appears when
>>> your laptop is running out of battery. Powerdevil shows a
>>> notification to tell you it will suspend the machine in a few
>>> seconds, unless you click the "Cancel" button of the notification.
>>>
>>> I believe this is one of the few cases where using a dialog is more
>>> appropriate than using a notification because the system is about to
>>> do something very drastic, so it should ensure the user does not miss
>>> it.
>>>
>>> The dialog approach has a drawback though: it can steal the focus,
>>> resulting in the user accidentally triggering one of the dialog
>>> buttons if the dialog receive a keystroke intended for the previously
>>> active window.
>>
>> I haven't read all messages in this thread, so maybe this has already
>> been asked by someone else:
>> How does Mac OS X notify the user when her laptop is running out of
>> battery?
>> How does Windows Vista or Windows 7 notify the user when his laptop is
>> running out of battery?
>>
>> If neither Mac OS X nor Windows use a dialog then I'd say that this is a
>> strong indication that a dialog is not the right solution for the
>> problem.
>
> If I am not mistaken, Max OS X uses a dialog, Windows uses a passive
> popup (no cancel button). But I believe none of them will automatically
> suspend, they will let you go to the end of the battery (I could be
> wrong on this).
>
> Aurelien
>
iirc windows yes uses a passive popup, and does authomatically
susoend, with no way to prevent that, except plugging the power cable

Marco Martin




More information about the kde-core-devel mailing list