[Sugar-devel] Dbus signal when ebook switch is activated

Gonzalo Odiard gonzalo at laptop.org
Thu Oct 14 07:02:40 EDT 2010


Thanks Sasha and Peter
Anybody know what software is sending the signal now?

Gonzalo


On Thu, Oct 14, 2010 at 6:38 AM, Peter Robinson <pbrobinson at gmail.com>wrote:

> On Thu, Oct 14, 2010 at 9:27 AM, Sascha Silbe
> <sascha-ml-reply-to-2010-3 at silbe.org> wrote:
> > Excerpts from Gonzalo Odiard's message of Wed Oct 13 17:33:50 +0200 2010:
> >
> >> bus.add_signal_receiver(my_func,
> >>                         dbus_interface="org.freedesktop.Hal.Device",
> >>                         signal_name="PropertyModified")
> >
> > HAL has been deprecated [1] and will not be available anymore at some
> > point in the future, so I advise against relying on it.
> >
> > I don't know what the best way to listen to an ebook switch is. acpid
> > might be worth a look:
>
> Most distros don't use acpid either
>
> >>> In addition to rule files, acpid also accepts connections on a UNIX
> >>> domain socket (/var/run/acpid.socket by default). Any application may
> >>> connect to this socket. Once connected, acpid will send the text of all
> >>> ACPI events to the client. The client has the responsibility of
> >>> filtering for messages about which it cares. acpid will not close the
> >>> client socket except in the case of a SIGHUP or acpid exiting.
> >
> > Asking for advice on devkit-devel [2] might be a good idea as well.
> > UPower already has a LidIsClosed property (and sends property change
> > notifications [4]) so it might be straightforward to add support for
> > ebook switches.
>
> I think this should be an input event, I think in most cases this is
> how input from lid switches and the like are handled across most
> things now.
>
> Peter
> _______________________________________________
> Sugar-devel mailing list
> Sugar-devel at lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20101014/a05a33e8/attachment-0001.html>


More information about the Sugar-devel mailing list