Forum > General

I am developing a SW-AMP audio player project. Help with Dbus, GDbus, mpris!

<< < (3/3)

No, my laptop's keyboard doesn't work because of USB. I can see the mouse and external keyboard via wireshark, but the laptop keyboard is not on either USB monitor.

Doesn't entirely surprise me, although I've heard that an increasing number of internal devices are implemented as USB. In that case I'm pretty sure that the lowest level you can capture is evtest.

One thing does occur to me, and that is that when I've had problems using Wireshark to capture from devices (that I knew were literally USB devices, i.e. USB mouse-like) in the past it might have been because their data was being intercepted by a kernel module before it reached the module that "TEEd" it to Wireshark. Might have been nothing more complex than a loading-order issue (I've seen stranger things).

If it were a device being hotplugged (i.e. rather than an internal keyboard) you might get some useful hints from dmesg output. Are there any kernel modules loaded that are specific to that laptop, which might be doing "clever" stuff with keyboard events?

In any event, I hope I've pointed you in some interesting directions. One thing I can't comment on unfortunately is DBus: even though it's what you explicitly asked about :-)


Thank you for trying to help! But I need a solution not for some exotic device, but my player must work on any hardware, so a private case will not save me. I am saying that the system sees this keyboard and uses it as intended. And even my program sees events from these keys if they are not intercepted by the system as shortcuts. From which I come to the conclusion that Dbus cannot be dispensed with here. And so it turns out that in order to solve a simple problem, you have to work a lot to learn the low-level Dbus level and add it to your program, because I can't use high-level libraries like dbus-glib or GDbus in my project in any way.


[0] Message Index

[*] Previous page

Go to full version