... | ... | @@ -15,4 +15,10 @@ This includes an interface called `org.freedesktop.UPower`. Call a method on thi |
|
|
``` python
|
|
|
iface = dbus.Interface(upower, 'org.freedesktop.UPower')
|
|
|
iface.EnumerateDevices()
|
|
|
``` |
|
|
\ No newline at end of file |
|
|
```
|
|
|
|
|
|
## References
|
|
|
|
|
|
* https://dbus.freedesktop.org/doc/dbus-python/tutorial.html
|
|
|
* https://upower.freedesktop.org/docs/UPower.html
|
|
|
* https://unix.stackexchange.com/questions/203410/how-to-list-all-object-paths-under-a-dbus-service |
|
|
\ No newline at end of file |