Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
59 views

Bluetooth LE GATT server running on a Raspberry Pi with .NET 8

I have cobbled together this .NET 8 application that should run on a Raspberry Pi (Raspberry Pi OS, 64-bit Linux) and do the following: Publish Bluetooth LE advertisements with specific manufacturer ...
ygoe's user avatar
  • 20.2k
0 votes
0 answers
21 views

How to call BLE StartDiscovery with sdbus-c++ on DBus consistently?

I started with this blog post Me and the Devil BlueZ: Reading BLE Sensors From C++. Since the repo had been archived I forked it, added a CI build and fixed a few minor issues here https://github.com/...
parsley72's user avatar
  • 8,997
1 vote
0 answers
43 views

-Solved- Updating BLE GATT characteristic based on GPIO Input [closed]

Newbie here working on a BLE project. Got the GATT server working with advertisement, services, etc using https://github.com/Douglas6/cputemp (customized to my specific needs). Also have the client ...
Daniel Shevnock's user avatar
1 vote
1 answer
69 views

PyQt6 - DBus signal not being received?

I'm trying to create a system to keep track of the currently-playing media via mpris. Adapted from this question's PyQt6 answer, I have tried the following code: from PyQt6 import QtCore, QtWidgets, ...
supremekirb's user avatar
0 votes
0 answers
40 views

How to read reply message from QDBus

i have two application, first application send QDbus message, second - read this message and send reply. How i can read reply message in second application? example with d-send is ok, i read from ...
ZILINBEK's user avatar
0 votes
0 answers
21 views

Starting a venv and dbus session in a Bash script [duplicate]

I'm trying make a bash wrapper for my python program, but I'm running into an issue because myprogram.py needs to run in my python venv as well as within a dbus session. I've made a bash wrapper for ...
Hundell's user avatar
  • 11
-1 votes
1 answer
68 views

No module named 'gi' after building onefile executable with PyInstaller

I'm trying to build my script written in Python into single file executable. When I used pyinstaller -F script.py on my computer, that's worked. But when I try to build executable by GitHub Workflows, ...
sech1p's user avatar
  • 27
2 votes
1 answer
58 views

Correct Python DBus Connection Syntax?

I'm having trouble getting dbus to connect: try: logging.debug("Attempting to connect to D-Bus.") self.bus = SessionBus() self.keepass_service = self.bus.get(&...
Emily's user avatar
  • 2,331
0 votes
1 answer
56 views

"org.ofono.MessageManager interface" missing in "org.ofono" service

I'm working with the "org.ofono.MessageManager" interface to detect the "MessageAdded" signal on a currently connected Bluetooth device. However, while introspecting the object ...
its_me_mak's user avatar
2 votes
1 answer
38 views

ColorManager. CreateDevice from command line. Object created but disappears

I'm trying to create a display object for ColorManager (I have none because there isn't any programs/daemons running for that) from command line. I've tryed all the command I know: dbus-send --system -...
franky99's user avatar
0 votes
1 answer
71 views

How can I access MPRIS2 metadata from JavaScript?

I want to fetch metadata about currently playing music on Linux music players that support MPRIS2. Python has a library that provides a high-level API for this, but JavaScript doesn't. I tried ...
mikwee's user avatar
  • 163
-1 votes
1 answer
52 views

BLE on android cannot call onCharacteristicChanged()

I'm tring to develope a demo of bel communication BLE server runs on a linux board with BT module, the server is developed with python-dbus, and the part of Characteristic is shown as below class ...
Xianghui's user avatar
2 votes
1 answer
413 views

How to use dockerized dbus for inter process communication on MacOS?

Maybe it is a bit of an exotic question, but somehow I don't get if it is possible to have dbus up and running in a docker container and to use it as a message middleware. The actual use case looks ...
DimarZio's user avatar
  • 173
2 votes
1 answer
132 views

Can GetManagedObjects be used to return a subtree?

In a Python app that accesses Bluetooth, I can query all of the attributes belonging to a connected device with: import dbus bus = dbus.SystemBus() object_manager = dbus.Interface( bus....
David C.'s user avatar
  • 961
1 vote
1 answer
69 views

Value does not live long enough in main [closed]

While writing some Rust, I've run into an issue with this code: fn main() { let session = Connection::new_session().unwrap(); let manager = DBusManager::new(&session); let tray = ...
N0tACyb0rg's user avatar
0 votes
1 answer
51 views

Flutter application built with snapcraft using file_picker not showing dialog

I've built a Flutter application that works perfectly on Windows, Linux and Android. However, when I compile and run the code as a snap package, the file dialog windows do not appear. The dialogs use ...
SignalOne's user avatar
1 vote
1 answer
44 views

PyQt D-BUS add multiple output arguments to the method

I want to add several output arguments in a PyQt5 D-BUS method. I cloned the example from qt example. In class CarInterfaceAdaptor, I added a new method control which has three output arguments: speed,...
sfzhang's user avatar
  • 769
0 votes
0 answers
42 views

how to extract the substates from sdbus-cpp onsignal call

I have put up a demo code to monitor the ssh service signals & to take action when the substate is dead .SubState property s "running" ...
i sarkar's user avatar
-1 votes
2 answers
92 views

dbus RequestScan Method in python

I'm trying to reverse engineer this sample code I found online which i don't understand. As I understand it, the code returns the SSID's that my wlan0 device finds. What troubles me, is the list of ...
user3808752's user avatar
0 votes
0 answers
59 views

how to inspect locally running BLE GATT server on Ubuntu Linux using D-bus?

I am using following sample code: example-gatt-server for testing purpose. Example: -> In this code we have registered Service: HeartRateService which has multiple Characteristics as: ...
raj123's user avatar
  • 614
0 votes
1 answer
129 views

'RequestInput' Callback in sdbus-c++ Triggered After Connection Timeout

I'm writing code to connect a particular Wi-Fi device using Connection Manager and sdbus-c++. When calling the Connect function, the system asks for a password via RequestInput. The password is ...
its_me_mak's user avatar
1 vote
1 answer
102 views

How to read string property from DBUS_TYPE_VARIANT?

I have a small Qt app I use dbus to set "org.freedesktop.login1.Session", "SetBrightness" to control the backlight for a laptop display. As part of the program I write the current ...
David C. Rankin's user avatar
1 vote
1 answer
47 views

EOFError when trying to call Inhibit method on org.freedesktop.login1.Manager via dbus-fast

I'm developing a Python application which will be distributed to users on Linux in various forms (Flatpak, PyInstaller executable, maybe others). In this application, I want to call the Inhibit method ...
Newbyte's user avatar
  • 3,109
2 votes
1 answer
334 views

What causes inter-process communication to take millions of cycles?

In the best case, Inter-process communication is obviously slower than communication between threads, as threads share resources, such as the heap. However, why is inter-process communication several ...
EarthenSky's user avatar
2 votes
1 answer
143 views

Secure communication between a daemon and D-Bus on Linux

So I have a daemon which is used to authenticate users via Azure Entra Id (the daemon is Himmelblaud). I'm writing a session D-Bus service (the bare bones here) to provide SSO creds to various apps ...
David Mulder's user avatar
  • 7,977
1 vote
0 answers
71 views

How do you add complex types with Qt DBus in Qt5/6

For background: I'm writing a program that listens for the creation of new IPv4 Config objects in NetworkManager and gets the DHCP-provided gateway and nameservers from the properties of the object. ...
davolfman's user avatar
  • 274
0 votes
1 answer
270 views

I am getting error that dbus package is not installed in virtual env

I am using virtual env to run my program, but it show this error every time I run my code: UserWarning: The Python dbus package is not installed. Try installing it with your distribution's package ...
MRKC's user avatar
  • 3
1 vote
0 answers
86 views

How to get an inhibitor lock for a service in C language?

I am making a service and I need to know when the system is about to shutdown, in order to perform a last action and finish the service. Following Inhibitor Locks documentation (Taking Delay Locks) I ...
Tux's user avatar
  • 13
1 vote
1 answer
95 views

Trying to access Inkscape from d-bus fails (but works with Gio)

I am trying to use dbus to drive Inkscape from scripts This code - which I got from here - works ok: # Start after inkscape is running. print ("DBus test") import gi gi.require_version(&...
simone's user avatar
  • 5,167
0 votes
2 answers
87 views

String representation of GVariant

Is there a function to parse a generic glib GVariant pointer into a const char*? Such as the way it's done in DBus? signal time=1717768489.237441 sender=:1.22 -> destination=(null destination) ...
K-J's user avatar
  • 576
1 vote
1 answer
98 views

How to handle Bluetooth pairing passkey confirmation using sd-bus in C?

I'm developing a Bluetooth application for an embedded device on Ubuntu. I'm using the sd-bus library to pair a Bluetooth device with a given MAC address. The code I've written successfully initiates ...
its_me_mak's user avatar
1 vote
2 answers
172 views

How to pass sba(sv) arguments via qdbus

I'm having a problem with qdbus. I need to pass sba(sv) to the SetUnitProperties method. I am only able to pass sba{sv} by using a dictonary. I can't find any documentation or examples on how to pass ...
gomme600's user avatar
0 votes
1 answer
104 views

Reconnecting to Dbus daemon after a failover from an application written in vala

I have an application written in vala which communicates to another process (written in vala) using dbus-daemon. It works fine. But it fails to communicate after dbus-daemon is restarted. My ...
varghese's user avatar
0 votes
1 answer
73 views

How to display the bluetooth devices near a raspberry pi for a limited amount of time?

I would like that the following script runs for a certain time (let's say 10 sec) e lists the available bluetooth devices near a RaspBerry Pi 4. When I run the following script (adapted from this ...
Eduardo's user avatar
  • 173
0 votes
1 answer
206 views

Getting DBus notifications of systemd service crashes?

I have linux application that consists of multiple processes, one of them is a "supervisor" process that takes actions if the others crash. All of the processes in the application are ...
Gyorgy Szekely's user avatar
0 votes
1 answer
43 views

Only trusted callers (e.g. uid 0 or an action owner) can use CheckAuthorization() and pass details

The program didnt give an error until the key polkit.message was added to to self.details. is there a way to pass the message without getting the error? code: class LinuxLocalAuth: def __init__(...
vv2006-mc's user avatar
  • 107
1 vote
0 answers
187 views

Getting screenshots and title/application name of a window in ubuntu 22.04 wayland

There is a Linux application that collects activities in the current GUI session: once every time it takes a screenshot of the screen and writes down the name (title) of the window that is in focus ...
ibse's user avatar
  • 583
1 vote
0 answers
80 views

Get result from Eval gnome dbus API method

I'm using the Eval method from the gnome dbus API to get the name of the window that is currently in focus. https://gitlab.gnome.org/GNOME/gnome-shell/-/blob/main/data/dbus-interfaces/org.gnome.Shell....
ibse's user avatar
  • 583
0 votes
1 answer
219 views

Take screenshot in gnome environment via its dbus api

I'm trying to take a screenshot using the gnome dbus api https://gitlab.gnome.org/GNOME/xdg-desktop-portal-gnome/-/blob/main/data/org.gnome.Shell.Screenshot.xml #include <stdbool.h> #include <...
ibse's user avatar
  • 583
0 votes
0 answers
80 views

Calling a method from gnome service via dbus

I want to contact gnome via dbus and use the Screenshot method from here https://gitlab.gnome.org/GNOME/xdg-desktop-portal-gnome/-/blob/main/data/org.gnome.Shell.Screenshot.xml I use the c API for ...
ibse's user avatar
  • 583
1 vote
0 answers
80 views

DBus get stuck on compositor start

We use a Wayland compositor written in Qt5 to start and show some other applications written in Qt5 on an embedded Linux display computer. All the applications and the compositor are using the DBus, ...
Strambauergooglemailcom's user avatar
0 votes
0 answers
781 views

python-dbus: org.freedesktop.DBus.Error.AccessDenied: Cannot access system DBUS over Python on Linux

I am trying to create a Python script that I can run as a user systemd service on a Raspberry Pi running Raspberry Pi OS Bookworm. The script's purpose is to listen to system DBUS messages coming from ...
antonpoll's user avatar
0 votes
0 answers
67 views

Error when calling new operator - malloc.c:2379

I am trying to create a dbus proxy using a MyDBUS library I have been assigned The problem is, when I try to do new MyDBUS() the program stops and a malloc error comes out on the screen output, before ...
TheHerborist's user avatar
1 vote
1 answer
74 views

IPC between non-isolated and isolated CPUs

I have 2 CPUs - cpu1 and cpu2. Process A (non-real-time) runs on cpu1, Process B (real-time) runs on cpu2. I want to isolate cpu2 from the Linux scheduler by using isolcpus or tuned-profiles-realtime. ...
uohzxela's user avatar
  • 661
0 votes
0 answers
200 views

Bluez - BLE trouble connecting to BT dual mode devices

I have two devices running Bluez in linux. I'm writing a C application using GDBus and bluez v5.54. The application is a sample app meant to demonstrate how to write code for bluetooth low energy. I ...
quantumKoala's user avatar
0 votes
0 answers
44 views

I tried to register agent to connect with private network but not working [DBUS-CONNMAN-DART]

static Future<void> RegisterAgent(DBusObjectPath path) async { var introspectable = OrgFreedesktopDBusIntrospectable(dbus, 'net.connman', DBusObjectPath('/')); try { await ...
Mathav's user avatar
  • 1
0 votes
1 answer
304 views

sdbus-c++: client doesn't react to signals from server

I'm trying to create the daemon without UI and GUI-app that will configure it. This app should to send commands to daemon and display updated info. I'm trying to use DBus for it and sdbus-c++ library. ...
Robotex's user avatar
  • 1,026
-2 votes
1 answer
70 views

std::unique_ptr<DBusMessage> != nullptr after move into function parameter

I'm trying to write a program that uses DBus to interact with BlueZ. From the information I have been able to gather from the DBus docs, BlueZ DBus API docs, and various forums, my thought process was ...
SwampyX's user avatar
  • 120
2 votes
1 answer
38 views

Do I have to keep the caller of DBus.Client.export alive for as long as I want the exported interface at the object path to work?

If not, what keeps alive the functions I export to implement the interface? I am implementing a notification server in Haskell, and at the moment I have something like this, startServer :: IORef ...
Enlico's user avatar
  • 28k
0 votes
1 answer
25 views

Is it even possible to write a notification server that fully conforms to the desktop notification specification (DNS)?

As far as I've understood, some programs that send notifications, will call Notify once with replaces_id = 0 in order to get an ID assigned, and on next calls to Notify, they'll provide that ...
Enlico's user avatar
  • 28k

1
2 3 4 5
29