On Fri, 2018-02-23 at 14:02 -0800, Andy Holmes wrote:
> Hi,
> I had a short conversation with hughsie about inserting an emulated
> device into the list of devices enumerated by UPower, esp DBus. He
> indicated there's little or no documentation on this, but might be
> possible by manipulating another entry point like up-device-idevice.
> Essentially, I have a device (phone/tablet) connected over LAN
> reporting it's battery level and state that I would like to register
> with UPower, but the connection is in userspace (ie. I can't modify
> UDev or sysfs) which is where UPower seems to find devices.
> If anyone has any pointers or knows of an existing example of this
> sort of thing, it would be appreciated.

There's currently no way to do that, you'll need to add a new
"UpDevice" backend type under src/linux, as I did to support batteries
reported by Bluetooth LE devices through bluez.

In fact, you could probably copy/paste the code, change the expected D-
Bus service to look for and use the same API to show/hide your device's

devkit-devel mailing list

Reply via email to