Newest 'dbus' Questions - Stack Overflow

Questions tagged [dbus]

D-Bus is a message bus system, which allows client programs to call procedures on a service - basically, the machine-local equivalent to XML-RPC and SOAP.

1
vote
0answers
23 views

Stop systemd service with DBus method

I have a server client application and I want to stop the server on Linux properly with systemd. The server and client are implemented in Java, running on JRE 1.8. I figured out the most elegant way ...
0
votes
0answers
16 views

Is it possible to control OMXplayer based on time in Python?

I am trying to control OMXplayer during playback of a video using a Python script. I am new to Dbus on Python, and am hopefully just missing something simple. Eventually I want to do this with a ...
0
votes
1answer
18 views

Could not start D-Bus. Could you call qdbus?. Nothing helped, any ides how to fix it?

I installed CodeBlocks from terminal with command sudo apt-get install codeblocks on Kubuntu 14.04 and then file manager started lag. I restarted computer and had error "Could not start d-bus. Can you ...
2
votes
1answer
59 views

No module named 'dbus.mainloop.pyqt5' even if all dependencies seem to be installed

I am trying to use DBUS as the main loop of PyQt5. System-wide I installed, system-wide (with apt, LinuxMint 19, amd64), the following dependencies: python3-pyqt5 Version: 5.10.1+dfsg-1ubuntu2 ...
0
votes
0answers
30 views

D-Bus connection error after Bluez 5.50 Gatt Server termination

I am running a BlueZ Gatt server based upon BlueZ V5.50 and the example-gatt-server.py file contained in the BlueZ test directory. Many times when the server program exits/terminates the D-Bus is left ...
0
votes
1answer
11 views

Using freedesktop portal to take screenshots with Python

I have been trying to write a flatpak application in python, which uses the freedesktop portal to take screenshots. I am adapting Gimp's freedesktop screenshot plugin which is written in c and I am ...
0
votes
1answer
34 views

How to resolve conflicting types problem In C

I am trying to re-use BlueZ code in my own C program to manage Bluetooth connection and running into compilation issues. When I analyzed the problem further here is what I think is happening: It ...
0
votes
0answers
18 views

dbus-1.0/dbus/dbus.h:29:10: fatal error: 'dbus/dbus-arch-deps.h' file not found

I am using dbus in my programme, but when i include #include <dbus-1.0/dbus/dbus.h> I am getting error : dbus-1.0/dbus/dbus.h:29:10: fatal error: 'dbus/dbus-arch-deps.h' file not found In the ...
0
votes
1answer
27 views

The name is not activable on g_dbus_proxy_call_sync

On a GNOME Xorg session, to get the return value of method GetIdletime exposed on DBus, you can either use $ dbus-send --print-reply --dest=org.gnome.Mutter.IdleMonitor /org/gnome/Mutter/IdleMonitor/...
0
votes
1answer
71 views

Kubernetes Pod: Failed to get D-Bus Connection

I have a docker containter based on centos/systemd. I run the container with docker run -d --privileged -v /sys/fs/cgroup:/sys/fs/cgroup:ro <image> Then i can access the container with: ...
1
vote
1answer
29 views

g_dbus_proxy_new_for_bus_sync: assertion 'g_variant_is_object_path (object_path)' failed

The code following code should retrieve systemd-logind IdleSinceHint property exposed on DBus /* * Compile with: * gcc -Wall print_user_idle_time.c -o print_user_idle_time `pkg-config --libs gio-...
0
votes
0answers
29 views

Bluez 5.5 RegisterAdvertisement reply error

I'm setting up a ble server use pc in linux, and want to us dbus-api use c, the issue is i successfully set power on and discoverable on but can't start advertise and the dbus reply "Failed to ...
1
vote
1answer
29 views

What is D-Bus Object Tree?

I have read lot of D-Bus documentation and understood various concepts such as: 1. Object 2. Interface 3. Method 4. Signal 5. Bus Connection 6. System vs Session Daemon However while reading through ...
0
votes
1answer
25 views

BlueZ5: Event when inbound pairing is complete

I'm writing a C++-application which manages Bluetooth connections for an embedded device. I talk to BlueZ5 via D-Bus under Linux. As first steps in implementing inbound pairing I did the following: ...
0
votes
0answers
13 views

d-feet returns g-dbus-error-quark: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod

I am testing a method that is shown as part of d-feet, the method is listed with the following arguments method_name (Struct of(Int32,Int32,Int32,String) _struct1, Struct of( Struct of(Int32,...
2
votes
1answer
60 views

How to fix notify2 'dbus' error in Python 3 on Windows 10

import notify2 notify2.Notification('title') I am using Python 3 with anaconda on Windows 10. When I am running it it's showing Traceback (most recent call last): File "E:\Python Scripting\...
0
votes
1answer
39 views

Trigger Ubuntu session logout from my own script

I want to write a Python script to run in Ubuntu session that can under certain conditions logout the user - think screen time management for kids :) Can someone give me a pointer where to look, how ...
0
votes
0answers
15 views

Create a dictionary of GVariant* and embed it inside another GVariant* dict

I am new to GDBus so please pardon me asking this. I have figured out how to create a dictionary GVariant* object using online examples: GVariantBuilder *b; GVariant *dict; b = g_variant_builder_new ...
0
votes
0answers
21 views

BlueZ D-Bus GATT Server how to activate the AquireWrite to get the MTU?

Had good success in making a GATT server with BlueZ. Recently I read that D-Bus is recommended to use. I rebuild my GATT server and found limitation on the process in using D-Bus. I obviously lack of ...
0
votes
0answers
34 views

Ubuntu 19.04 has DBus issue

I updated my OS to Ubuntu 19.04 recently. Upon doing so, I started to see the following exception: System.MethodAccessException: Method `NDesk.DBus.BusObject..ctor()' is inaccessible from method `...
1
vote
1answer
26 views

How to annotate an xml file with org.gtk.GDBus.C.ForceGVariant using gdbus-codegen

I am attempting to annotate an xml file so that dbus-codegen generates a method that uses GVariant * instead of a native type like gchar. Here is the xml code I am working with. <node> <...
0
votes
0answers
26 views

Can I connect a QDBusServer via pipes?

I use Qt DBus via TCP. If have found that I can set a method UNIX, is it possible to use it via PIPES only (and would that also work on Windows) I have tried to pass method=UNIX with no success. Any ...
1
vote
3answers
115 views

Parsing dbus monitor output messages

I am trying to parse the dbus monitor output messages. It has most of the messages as multi-line entries(including parameters). I need to parse and concatenate individual log messages to a single line ...
0
votes
1answer
39 views

Facing problem while installing “dbus package” using pip

I want to use windows notifications in python. I installed "notify2" package. It demanded to install "dbus" package as well. Following error occurred while installing the package. How to get rid of it?...
3
votes
2answers
105 views

dbus-monitoring loop exits automatically

I'm trying to execute a bash command on screen lock/unlock. Following tutorials & StackExchange questions, I came up with the following code: #!/bin/bash while true; do #added to try to solve ...
0
votes
0answers
67 views

Bluez dbus API GATT objects missing

I am currently using blueZ 5.50 on my embedded device with linux kernel 4.4.35. I use the DBUS API with g_dbus to control a BLE remote control that has a HID primary service (UUID 0x1812). I need to ...
0
votes
1answer
47 views

Print result from dbus object

I want to print the result from the dbus. In the command line i run this: busctl introspect org.freedesktop.systemd1 /org/freedesktop/systemd1 org.freedesktop.DBus.Properties And i get some results....
0
votes
1answer
43 views

Why is dbus service not functioning correctly?

I looked into this, this, this and this and couldn't find an answer. I'm trying to implement Example 5 from systemd.service but it's not working. Of course the reason is that I didn't quite understand ...
0
votes
1answer
19 views

How to use dbus in CentOS without Desktop Environment

My system is a centos with no gui. I have a server application which "listens" for a method call in a session dbus. It apparently works fine. I have pydbus and python3-gobject installed fine, I also ...
0
votes
0answers
20 views

method call over dbus hangs

We have two services communicating over dbus. ServiceA being sender and ServiceB implements the interface (is the destination). ServiceA is single-threaded, and is running an asio io_service. And ...
0
votes
1answer
52 views

Can't close a QMenu opened through dbus by double clicking in another app

I have 2 applications, 1 has a QMenu that can be opened through DBus ("menu" app) and the other can open that menu by double clicking ("clicking" app). When I open the menu by double clicking in the "...
0
votes
1answer
33 views

How to read notifications using DBus and Python 3

I was developing simple application, which reads notifications from DBus and does some stuff upon receiving it. This turned out to be quite a headache so I am sharing my code with you all.
0
votes
0answers
57 views

Qt WebEngine not linking with Qt 5.12 on Ubuntu 14.04

I am trying to build my Qt application and I'm getting the following linking error: /opt/Qt5.12.2/5.12.2/gcc_64/lib/libQt5WebEngineCore.so: undefined reference to 'dbus_bus_register@LIBDBUS_1_3' ...
0
votes
1answer
17 views

Meaning of Network Manager Dbus codes 'aa{ss}'

I am making a script to do IO to the NetworkManager over dbus. In the gnome developer docs function arguments are represented as things like 'aa{ss}' but i cannot find a description of there meaning. ...
0
votes
0answers
30 views

sending to existing dbus session bus from ssh

I cannot seem to send a signal to an existing session dbus with gdbus from an ssh connection. If the DBUS_SESSION_BUS_ADDRESS is unix:path=/run/user/1000/bus I believe I should be able to ssh into the ...
0
votes
1answer
28 views

Emit D-Bus signal using GDBus without owning a well-known name

I would like to use dbus to signal other instances of the same family of applications. It seems that to issue a signal I must execute a g_bus_own_name, emit the signal when the name is acquired, then ...
0
votes
0answers
54 views

cygwin warning: Error opening keyring and long pause

I'm running cygwin64 on Win10-64bit and have an X11 server running with a dbus-daemon. The X11 server is run rootless using startxwin. I'm not running anything gnome or kde based (because of the ...
1
vote
1answer
33 views

Lua: translate a Python code that emits a message using a XML dbus definition into Lua

I asked this in a comment of a previous question but I think it is better to move it here as a new independent question. I am trying to figure out how to translate this Python code to emit a dbus ...
0
votes
1answer
27 views

DBUS dbus_pending_call_steal_reply assertion

i am getting an dbus assertion and application crash randomly at the time of DBUS initialisation. Below is my code code snippet to get dbus. px_sess_ctxt->px_bus = dbus_g_bus_get (...
0
votes
0answers
13 views

Could you recommend properly interface class name for the process call handler?

Case : A process - dbus call - B process In case of this, I want to make handler class to receive dbus call in B process. But I don't know properly Interface Class name. Could you recommend to me ...
0
votes
0answers
50 views

using dbus and polkit to run a root privilege python service that calls a root script

I have written a python script that downloads deb files from launchpad, and then calls out to a shell script to use alien to convert the debs to rpms. The shell script uses alien, and so it needs to ...
0
votes
1answer
37 views

unable to unregister dbus signal for ble notifications

I am using python dbus library to register for receiving ble packets from a device. However, after a disconnect and reconnect, I am getting multiple callbacks. I tried unregistering the singal but it ...
0
votes
0answers
30 views

How to get ble MTU on runtime using dbus python

in my project, I work with a custom code based on the example-advertisement and the example-gatt-server provided in the bluez5.50 test folder. So my Raspberry Pi is working as a peripheral. Then I'm ...
0
votes
0answers
17 views

Control bus implementation

Actually, we have used control bus in our project when I try to understand the control bus module source code I don't understand anything and I couldn't interconnect whatever I understood...So pls ...
0
votes
0answers
39 views

Pairing management in Bluez5.50

I need some help to better investigate a Bluetooth problem. I'm working on a system composed of two devices, one is a Raspberry Pi W Zero and the other one is an Android phone. The Raspberry Pi acts ...
0
votes
0answers
52 views

dbus not working when Spotify runs on Xvfb

while running Spotify on Gnome the dbus call dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Pause works correct and action is ...
0
votes
1answer
171 views

dbus not working with python3 on a virtual environment?

I set up a virtual environment named "ComputerVision" with virtualwrapper, virtualen and pthon3. Everything works fine except of importing dbus in my python script. I want to use python3 but as you ...
0
votes
0answers
49 views

install dbus and import it to a python script not possible?

I want to connect my Thyimo to my RaspberryPi and control it with python. With : sudo apt-get install python-gobject sudo apt-get install python-sbus I installed successfully both packages. But ...
0
votes
0answers
121 views

Enabling static pin for bluetooth authentication BlueZ (Linux) error in bt-agent

I am trying to enable a static pin/password authentication entry for devices that are trying to connect to my raspberry pi. I have tried various methods including using bt-agent tools, while ...
1
vote
0answers
40 views

How to send unsigned values to dBus from Python

I'm trying to use PyQt5's DBus module to interact with the KDE PowerManagerAgent. When calling the AddInhibition method I need to send the first paramter as an uint32 (Unsigned int), but the code ...