dbus

Are there any good recent reference books on IPC programming?

I grew up on UNIX Network Programming, Volume 2, Second Edition: Interprocess Communications (RIP, Richard Stevens), which was the essential reading for designing a multiprocess program back in the days. Re-reading it, it is rather lacking in more modern multiprocess/multithread topics, such as dbus, etc. Are there any good books which ...

When do hal properties get updated

I'm calling GetProperty on a org.freedesktop.Hal.Device from my handler during a PropertyNotified signal. I'm only calling GetProperty on properties that have been added or changed. When I call GetProperty during property adds, I'm getting a org.freedesktop.Hal.NoSuchProperty exception. I'm also worried that during changes, I'm gettin...

DBus-Server in Java?

Is there a server implementation of DBus for Java? There's a lib for clients and services (not servers). ...

Temporarily prevent linux from shutting down

I have a backup script that runs in the background daily on my linux (Fedora 9) computer. If the computer is shut down while the backup is in progress the backup may be damaged so I would like to write a small script that temporarily disables the ability of the user to reboot or shut the computer down. It is not necessary that the scri...

DBus query

I am using DBus in a project. I understand from DBus specification that for low level communication, it uses Unix domain sockets. I don't want to use Unix domain sockets for low level communication because I have a modified connect() call. Is there any other type of low level communication that DBus supports which does not use connect()?...

DBus equivalent for Windows

Anyone know of a Linux/DBus sort of mechanism for Windows? Thanks ...

How to write a functional test for a DBUS service written in Python?

(Title was: "How to write a unit test for a DBUS service written in Python?") I've started to write a DBUS service using dbus-python, but I'm having trouble writing a test case for it. Here is an example of the test I am trying to create. Notice that I have put a GLib event loop in the setUp(), this is where the problem hits: import u...

What is the underlying transport for D-Bus?

D-Bus allows programs to communicate. How is this IPC implemented? Unix domain sockets, shared memory + semaphores, named pipes, something else? Maybe a combination? ...

How do I create a D-Bus service that dynamically creates multiple objects?

I'm new to D-Bus (and to Python, double whammy!) and I am trying to figure out the best way to do something that was discussed in the tutorial. However, a text editor application could as easily own multiple bus names (for example, org.kde.KWrite in addition to generic TextEditor), have multiple objects (maybe /org/kde/docu...

How to mark a device in a way that can be retrived by HAL but does not require mounting or changing the label.

I'm trying to find a way to mark a USB flash device in a way that I can programmaticly test for without mounting it or changing the label. Are there any properties I can modify about a device that will not cause it to behave/look differently to the user? Running Ubuntu Jaunty. ...

What are good ways to get something like D-Bus to work across multiple Linux machines, possibly through firewalls?

The D-Bus specification says that D-Bus is.. a simple way for applications to talk to one another... Currently the communicating applications are on one computer... I would like something like D-Bus but to work across multiple Linux machines, and there may be firewalls involved. For example, if my mail server decides it receives a...

Unit testing for D-Bus and HAL?

How does one test a method that does some interactions with the local D-Bus (accessing a HAL object)? Results of tests will differ depending on the system that the test is run on, so I don't know how to provide the method reliable input. I'm working in Python, by the way. ...

freedesktop.org notifications in java

Hi all :) there's a freedesktop.org notification system using DBUS. Looks simple enough, but I just can't figure out how to use it in Java. Can someone please point to some sample code to display a simple message? Thank you! :) ...

QDBusAbstractAdaptor vs. QDBusAbstractInterface

When exposing some code to D-Bus using Qt D-Bus bindings, when should one use a Qt Adaptor over a Qt Interface? I'm having a difficult time understanding how exactly they differ since it seems like they provide the same functionality. ...

DBus interface properties

How do I get the list of available DBus interface properties? I am writing a script that would be tracking specific type of usb devices connections. A way to distinguish the connections to be tracked from all usb connections I guess is to check the properties of signals' interfaces DBus is sending on a usb connection. I'd like to get th...

Find a HAL object based on /dev node path

Hi, I'm using python-dbus to interface with HAL, and I need to find a device's UDI based on it's path in the /dev hierarchy. So given a path such as /dev/sdb, I want to get a value back like /org/freedesktop/Hal/devices/usb_device_10. ...

enable/disable device driver using HAL and DBus

I want to write a python code using HAL to get for a certain "udi" the info. about the device driver, and to enable/disable this device driver. ...

How do you pass information from an 8 byte array into variable bit size data containers?

I have an 8 byte message where the differing chunks of the message are mapped to datums of different types (int, bool, etc.), and they vary in bit sizes (an int value is 12 bits in the message, etc.). I want to pass only the bits a datum is concerned with, but I am not sure if there is a better way. My current thoughts is to make a bit...

Python threading question - returning control to parent

Hi all, Basically, I have a python program which listens for DeviceAdded DBus events (e.g. when someone plugs in a USB drive), and when an event occurs, I want to create a thread which collects metadata on that newly connected device. However, I want to do this asynchronously - that is, allow one thread to keep collecting metadata on th...

I'm trying to figure out how to use dbus with pidgin

My problem is I'm not sure how to interface them. Do I need to have pidgin installed in a particular way in order for dbus to interface with it? and if not does the pidgin gui have to be running in order for dbus to utilize it? ...