This should probably be done as a patch to gnome-power-manager.

Thinkpad laptops in particular already do something like this (it's
implemented in the BIOS) that does a chime to notify the user that the
laptop is still on when the lid is closed and the power cord is detached to
prevent people from putting their laptop in their bag and having it
overheat.


On Sun, Oct 12, 2008 at 5:26 AM, Bram Neijt <[EMAIL PROTECTED]> wrote:

> Dear GNOME developers,
>
> I have  a program idea that I would like to create and test out, but I
> have no idea whether something like this has already been created and
> what documentation to read in order to create it.
>
> I want an application that will sound an alarm if my laptop adapter is
> unplugged while the screen is locked. The idea is that if somebody tries
> to steal my locked laptop, disconnecting the power, it will start
> shouting "I'm being stolen!" (by playing a sound file).
>
> Because it needs both power information and screen-lock information and
> is laptop specific, I think a separate program is needed. The questions
> I have are:
>
> - How do I keep an eye on the power status? What interface should I
> register, dbus something??
> - How do I keep an eye on the screen-saver status, where can I register
> for locking/unlocking events?
> - Is there something like this already created, would it be scriptable
> instead of programming it out completely?
>
> For most of these questions, links would suffice. Any ideas are of
> course also welcome.
>
> Greetings,
>  Bram Neijt
>
> _______________________________________________
> desktop-devel-list mailing list
> desktop-devel-list@gnome.org
> http://mail.gnome.org/mailman/listinfo/desktop-devel-list
>
_______________________________________________
desktop-devel-list mailing list
desktop-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/desktop-devel-list

Reply via email to